Next Element in bpmn

I want to get all elements in my bpmn but i think there is just findFlowElementsOfType().

also I want to know what is the type of next element. but outgoing() and targetRef() returns just a string. can I get the exact element using these strings?
I mean when I get targetRef, can I use it to get target element?

If you use the BpmnModel, you can go through all elements.

Either use the find methods that take in an id. Or, use #getOutgoingFlows and then #getTargetFlowElement on the SequenceFlow.

1 Like