currently I’am working on a new extension of our BPMN Modeler.
We are creating an “bpmn:Error” when the user enters an error message on an error end event.
After removing and adding an event definition on one or more end events. The bpmn file collects all “bpmn:Error” objects. But some of them are no longer referenced. So they are orphaned.
I tried to use the eventBus to catch the information which event definition is deleted and which errorRef is effected. But no change event seams to store the event definition while deleting.
This event contains only Ids for the changed property. But the Id of the oldProperties does not exist in my process.
Do you have any idea?
What is the proposed way to handle such orphaned “bpmn:Error” objects?
Such I simple ignore them?
Many thanks in advanced.
Best regards, Anja