Hi, I’m trying to simulate some processes with bpmn-js. Regarding BoundaryEvents, is there really no type like “Message_Boundary_Event” in the elementRegistry or in the bpmn file?
Such an event is defined by a
bpmn:BoundaryEvent that has a
Hope that helps.
perfect, thank you very much!!
I already see the parent of the boundary_event with
var parent_id = elementRegistry._elements[“BoundaryEvent_0eep1xg”].element.businessObject.eventDefinitions.$parent.attachedToRef.id
is there also a direct way to get the boundary_event from the parent without editing the elementRegistry?
Thank you once again!!
Please make sure to use the public APIs such as
ElementRegistry#get to avoid your code breaking due to changes to the internals.
var myBoundaryEvent = elementRegistry.get('myBoundaryEventId'); var myTask = byBoundaryEvent.host;
good point!! thank you very much!!