first of all I’d like to say that you have a very nice thing going here with bpmn.io! During my studies I worked a little with the Camunda engine and its webapps, now I’m working with bpmn-io/-js.
Unfortuneately, I am not well versed in JS or other web technologies, but I’m trying to get by with the documentation you have, forum posts and just tinkering.
I know how to access the underlying businessObject of a shape in the modeller / viewer (I’m using the bpmn-js seed). What I’d like to do though is the following:
- Read a BPMN file in XML format and parse it into some sort of elementRegistry.
- Access the elements like you would do in the renderer via the underlying businessObject of a shape, but without rendering anything / the shape.
- Then I would need to cycle through all elements to collect certain task types etc.
Is this possible, or do I have to go “the renderer way” to access an elementRegistry?
How can I get certain kinds of elements (i.e. tasks, user tasks,…) from the elementRegistry?