Hi all,
I have used bpmn-js-example-custom-shapes to extend the base model of bpmn.io with custom elements. I need to replace my custom elements using the menu, like you do with bpmn elements.
I have created my CustomReplaceMenuProvider.js and CustomReplaceOptions.js including the following code:
I get the menu to appear in the elements but I can’t get the replacement to take place when I click on the options. What do I need to modify to achieve this?
I reckon that my custom entries have not a proper action attribute.
Where should I define the functionality of the action attribute? Where in the project is the functionality of these attributes defined for bpmn entries? For instance in this case, where is ‘replace-with-none-intermediate-throw’ functionality defined?
I have tried to do something similar to what you do with the bpmn elements but I can’t manage to replace my custom elements. Could you give me a hint on how to create the actions directly?