I have a case when I need to attach the boundary event (error boundary event especially) to the service task programmatically.
I.e. I need to attach it to the service task and refer it to some “bpmn:Error” element.
So, the “bpmn:Error” element should be created as well…
I’ve tried to find some info bout it, but no luck.
So, my question is: How to create the “bpmn:Error” element, the error boundary event that refers to the “bpmn:Error” element, and attach it to the “bpmn:ServiceTask”?
Are there any docs or suggestions about it?