Add modules to bpmn modeler integrated into java web application

Hey all,

I’m currently using the basic bpmn-js functionality into my java web application based on spring boot and primefaces. The usage of the basic bpmn-js module work properly by adding the bpmn-js as a webjar with maven to my project libs. Now I would like to advance the functionality with the cool functions/moduls available for bpmn js. I. e. the coloring of the bpmn elements with the color picker or as well the commenting functionality. How is the best way to do that?

Thanks and best regards,

The best way to do this is probably to not use webjars but consume these elements as pre-compiled bundles.

  • Ensure each of the bundles exposes a global
  • Wire BpmnJS and the extensions together
<!-- exposes BpmnJSExtension global -->
<script src="bpmn-js-extension.js" />

<!-- exposes BpmnJS global -->
<script src="bpmn-viewer.js" />

  var bpmnJS = new BpmnJS({
    additionalModules: [ BpmnJSExtension ]

To make easier to handle for you, consider bundling your custom BPMN modeler version and consume it like you did consume the webjar bundle.