Collect element easly from Moddle


#1

Given an imported BPMN diagram, is there a way to extrapolate all elements of a certain type, such as all bpmn:DataInput, without having to cross the entire Moddle tree from top to bottom?
That is, avoiding to start from the upper node of the node “definitions” and so on considering recursively all the children?
Is there a sort of directory that keeps the references to all the imported tags (and therefore not only the tags related to “shapes”, such as “dataInput” for example) that you can consult to avoid the tree search I was talking about above?


#2

What is your use-case? Once we understand it, we may be able to help you in a more constructive manner.