Cockpit Plugins

Plugin Compatibility

Please note that the code of Cockpit plugins might need to be migrated when updating Camunda BPM to a higher version (e.g. CSS styles).

Cockpit defines a plugin concept to add own functionality without being forced to extend or hack the Cockpit web application. You can add plugins at various plugin points, e.g., the processes dashboard as shown in the following example:

The Nature of a Cockpit Plugin

A cockpit plugin is a maven jar project that is included in the cockpit webapplication as a library dependency. It provides a server-side and a client-side extension to cockpit.

The integration of a plugin into the overall cockpit architecture is depicted in the following figure.

On the server-side, it can extend cockpit with custom SQL queries and JAX-RS resource classes. Queries (defined via MyBatis) may be used to squeeze additional intel out of an engine database or to execute custom engine operations. JAX-RS resources on the other hand extend the cockpit API and expose data to the client-side part of the plugin.

On the client-side a plugin may include AngularJS modules to extend the cockpit webapplication. Via those modules a plugin provides custom views and services.

File structure

The basic skeleton of a cockpit plugin looks as follows:

├── src/
|   ├── main/
|   |   ├── java/
|   |   |   └── org/my/plugin/
|   |   |       ├── db/
|   |   |       |   └──                                    (5)
|   |   |       ├── resource/
|   |   |       |   ├──                     (3)
|   |   |       |   └── ...                                           (4)
|   |   |       └──                                     (1)
|   |   └── resources/
|   |       ├── META-INF/services/
|   |       |   └── org.camunda.bpm.cockpit.plugin.spi.CockpitPlugin  (2)
|   |       └── org/my/plugin/
|   |           ├── queries/
|   |           |   └── sample.xml                                    (6)
|   |           └── assets/app/                                       (7)
|   |               └── app/
|   |                   ├── plugin.js                                 (8)
|   |                   ├── view.html
|   |                   └── ...
|   └── test/
|       ├── java/
|       |   └── org/my/plugin/
|       |       └──
|       └── resources/
|           └── camunda.cfg.xml
└── pom.xml

As runtime relevant resource it defines

  1. a plugin main class
  2. a META-INF/services entry that publishes the plugin to Cockpit
  3. a plugin root JAX-RS resource that wires the server-side API
  4. other resources that are part of the server-side API
  5. data transfer objects used by the resources
  6. mapping files that provide additional cockpit queries as MyBatis mappings
  7. resource directory from which client-side plugin assets are served as static files
  8. a main file that bootstraps the client-side plugin in a AngularJS / RequireJS environment

Plugin Exclusion (Client Side)

You can exclude some plugins from the interface by adding a cam-exclude-plugins attribute to the HTML base tag of the page loading the interface. The content of the attribute is a comma separated list formatted like: <plugin.key>:<>. If the feature ID is not provided, the whole plugin will be excluded.

Excluding a Complete Plugin

This example will completely deactivate the action buttons on the right side of the process instance view.

<base href="/"
      cam-exclude-plugins="cockpit.processInstance.runtime.action" />

Excluding a Plugin Feature

In this example we deactivate the cancel action in the cockpit process instance view and disable the job retry action button:

<base href="/"
                           cockpit.processInstance.runtime.action:job-retry-action" />

Plugin points

In this section you will find all Cockpit plugin points. To configure where you place your plugin have look at the following exampe:

var ViewConfig = [ 'ViewsProvider', function(ViewsProvider) {
  ViewsProvider.registerDefaultView('cockpit.processDefinition.view', {
    id: 'runtime',
    priority: 20,
    label: 'Runtime'

For more information on creating and configuring your own plugin, please see How to develop a Cockpit plugin.


Name: cockpit.dashboard.section (previously, now deprecate cockpit.dashboard)

With Camunda BPM 7.5, the dashboard and sections of Cockpit have been re-organized and new names have been given to the plugin points.

Old plugins will still be visible on the dashboard until you change their namespace (from cockpit.dasboard to cockpit.dashboard.section).


The dashboard section plugins have some additional properties / options you can set to control the way they integrate in the application. You can find some examples of those plugins here.


A menu link will be shown in the header of the Cockpit if you set this property. The label property of the plugin is used as the “text”.


This property can be used to control when the menu link is set to be active. You can set a function in order to set the active CSS class properly.


You can set this property to true on your plugin if you do not want it to be shown on the dashboard (but still want a menu point in the header).


You can dynamically determine if a section is accessible using the following notation

// …
access: ['angularDependency', function (angularDependency) {
  return function (callback) {
    var bool = angularDependency.something; // would hide the dashboard section / header link if `bool` is false
    cb(null, bool);
// …

You can see a working example in which the plugin is hidden when no report types are found.

Processes Dashboard

Name: cockpit.processes.dashboard

Decisions Dashboard

Name: cockpit.decisions.dashboard

Process Definition Runtime Tab


Process Instance Runtime Tab


Process Definition Runtime Action

Name: cockpit.processDefinition.runtime.action

Process Instance Runtime Action

Name: cockpit.processInstance.runtime.action

Process Definition View

Name: cockpit.processDefinition.view

Process Instance View

Name: cockpit.processInstance.view

Process Definition Diagram Overlay

Name: cockpit.processDefinition.diagram.overlay

Process Instance Diagram Overlay

Name: cockpit.processInstance.diagram.overlay

Job Definition Action

Name: cockpit.jobDefinition.action

Decision Definition Tab


Decision Definition Action

Name: cockpit.decisionDefinition.action

Decision Definition Table

Name: cockpit.decisionDefinition.table

This plugin should contain an initialize function recieving a data object with the following fields:

  • decisionDefinition: The data about the decision definition corresponding to the REST response
  • decisionData: The data-depend object for the decision definition
  • tableControl: Control object for the rendered dmn-table corresponding to the dmn-table widget


ViewsProvider.registerDefaultView('cockpit.decisionDefinition.table', {
  id: 'my-plugin',
  initialize: function(data) {
    var viewer = data.tableControl.getViewer();
    // ...

Decision Instance Tab


Decision Instance Action

Name: cockpit.decisionInstance.action

Decision Instance Table

Name: cockpit.decisionInstance.table

Repository Resource Action

Name: cockpit.repository.resource.action

Repository Resource Detail

Name: cockpit.repository.resource.detail

Report View


See the Reports section for an example report plugin.

On this Page: