Hi. Apologies in advance if this is a basic question. But if an element is added to a diagram, I can get to that element’s object by using the element registry. But if that element has a child element in the XML then the element registry doesn’t seem to give me access to that.
For instance, given this XML element:
<bpmn:intermediateCatchEvent id="Event_0b267wr"> <bpmn:timerEventDefinition id="TimerEventDefinition_08vc3yw" /> </bpmn:intermediateCatchEvent>
I can get to
bpmn:intermediateCatchEvent using the element registry. But it’s children property is always empty.
I’ve also tried using
getAll in the element registry but the
bpmn:timerEventDefinition element is not returned by those functions either.
So how can I get access to the