I am currently trying to access the elementRegistry. I already used the main approach here from the forum without success. My starting point is the bpmn-js modeler example from github.
var elementRegistry = modeler.get('elementRegistry'); console.log(elementRegistry); console.log(elementRegistry.get('Process_1'));
The console output says that there is an elementRegistry object which is filled with subobjects. So I should be able to access them with the get() function. But as you can see the result is undefined.
I am really clueless. Has anyone observed something similar?