camunda / camunda-modeler-plugin-example

Plugin example for the Camunda Modeler. Use this as a starting point for creating your own plugins.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Camunda Modeler Plugin Example

Compatible with Camunda Modeler version 5 Plugin Type

This example serves as a starting point for creating your own plugin for the Camunda Modeler.

Development Setup

Use npm, the Node.js package manager to download and install required dependencies:

npm install

To make the Camunda Modeler aware of your plugin you must link the plugin to the Camunda Modeler plugin 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 plugin.

Building the Plugin

You may spawn the development setup to watch source files and re-build the client plugin on changes:

npm run dev

Given you've setup and linked your plugin as explained above, you should be able to reload the modeler to pick up plugin 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 plugin for release, executing all necessary steps, run:

npm run all

Before you Publish

  • Clearly state which Camunda Modeler version your plugin is compatible with and which type of plugin it is by changing the badges at the top of this README. See best-practice examples below.
  • Ensure you renamed the bpmn-js extension from PLEASE_CHANGE_ME to something unique
  • Ensure you've removed the menu and style folders as well as their references in ./index.js if you do not need them

Badges to indicate typical plugin types

Badge Markdown
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-BPMN-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-BPMN_(Camunda_Platform_7)-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-BPMN_(Camunda_Platform_8)-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-BPMN_Moddle-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-BPMN_Moddle_(Camunda_Platform_7)-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-BPMN_Moddle_(Camunda_Platform_8)-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-DMN-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-DMN_Moddle-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-React-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-Styles-orange.svg)](#)
Plugin Type [![Plugin Type](https://img.shields.io/badge/Plugin_Type-Menu-orange.svg)](#)

Additional Resources

Licence

MIT

About

Plugin example for the Camunda Modeler. Use this as a starting point for creating your own plugins.


Languages

Language:JavaScript 99.2%Language:CSS 0.8%