This example is based on Camunda Modeler Plugin Example.
robot
in their task id (case insensitive).Use npm, the Node.js package manager to download and install required dependencies:
npm install
To make the Camunda Modeler aware of your plug-in you must link the plug-in to the Camunda Modeler plug-in directory via a symbolic link.
Available utilities to do that are mklink /d
on Windows and ln -s
on MacOS / Linux.
Re-start the app in order to recognize the newly linked plug-in.
You may spawn the development setup to watch source files and re-build the client plug-in on changes:
npm run dev
Given you've setup and linked your plug-in as explained above, you should be able to reload the modeler to pick up plug-in changes. To do so, open the app's built in development toos via F12
. Then, within the development tools press the reload shortcuts CTRL + R
or CMD + R
to reload the app.
To prepare the plug-in for release, executing all necessary steps, run:
npm run all
The build results also a Camunda Cockpit compatible bpmn-js extension module at ./dist/module.js
. Please, follow the Camunda Cockpit plugins guide on how to copy ./dist/module.js
into a proper location depending on your Camunda distribution, and how to configure it as a bpmn-js extension, e.g.:
{
bpmnJs: {
additionalModules: [
'scripts/robot-module.js'
]
}
}
MIT