Modeler Plugin: Add custom ExtensionElement

Hi,

still doing some tests with a modeler plugin.
I already managed to create/read/write camunda-Elements (connector etc.) in my plugin using the bpmnFactory.
But now I’m wondering what is the right way to add some custom Elements of my own namespace?

Are there any examples you could provide/link me that do it the way its meant to be done?

Thanks & best regards
KeyKon

Creating custom elements for the bpmn-js Modeler is possible, please see this example for a good starting point.

Once having your extensions for bpmn-js to support your custom elements and your custom meta model, you can integrate it like you probably did before. To register the moddle extensions you have to use registerBpmnJSModdleExtension helper.

2 Likes