Find an element not in the diagram by id


#1

How can i find an element that is not shown in the diagram itself by id, like a "bpmn:DataObject?
The “elementRegistry” contains elements shown in the diagram itself like “bpmn:DataObjectReference”.
But is there a way to search for a “bpmn:DataObject” element by id?
Thanks.


#2

You’d need to build up such a search registry for yourself.