I have been following the examples for adding custom elements, which has been a partial success.
This is working fine for when I update the diagram and save the XML, I see the custom elements in there. However when I attempt to load the same XML in to the modeler, the custom elements have been taken out.
Could there be an obvious reason for that? Such as something I need to ensure is in my customisation file? Only I think I’ve followed the examples, so I would expect this to work?
As an example, I’m trying to allow this XML to be created:
So is there something that I need to define for the bpmn2 namespace or the bpmn2:timeCycle element for the modeler to be allow such elements to also be loaded as well as saved?
Can you maybe share your project as a CodeSandbox? It will help us a lot to review your configurations and custom modules, and then expect what’s going on.
This is loaded in using importXML and when the “Save” button (top left) is clicked then saveXML is called and within that the XML to be saved is written to the console where it can be seen that the above custom elements are no longer in the XML.
Hi. Can anyone help me with this issue? Apologies if it’s basic or missing the point. But nonetheless I could still do with some help with what to do …! Many thanks.
These elements are removed because they are considered extensions and thus are not allowed in the places where there are in the original XML. property, timeCycle and conditionExpression are already defined in the BPMN model, why redefine them in a bpmn2 extension?