Add modules to bpmn-to-image

How can I add modules to bpmn-to-image?

I have some modules that add custom decorators and shapes and would like to have them rendered.

I assume that in

I should be able to add

additionalModules: [ MyModule ]

But how can I load the module? Trying

import MyModule from './modules/mymodule/';

or

const MyModule = relative(__dirname, require.resolve('./modules/mymodule/index.js'));

didn’t work for me.

The solution posted Bpmn-to-image for (collapsed) subprocesses - #2 by rajgoel allows SVG creation using modeller applications with custom modules.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.