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:
<bpmn:timerEventDefinition id="TimerEventDefinition_14abtv0"> <bpmn2:timeCycle cron="0/1 * * * * ?" /> </bpmn:timerEventDefinition>
which I have been able to do and to save the resultant XML. However when loading the XML model in to the modeler, this element has reverted back to:
<bpmn:timerEventDefinition id="TimerEventDefinition_14abtv0" />
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?