I am currently working on a web application that shall be able to analyze BPMN models.
First, models should be uploaded to the web application. Then the web application should identify certain logical blocks in the model automatically. Those logical blocks could be OR-blocks or loops for example:
In order to identify these logical blocks in my code, I have to somehow access the general structure of the process model.
I can already upload BPMN models to my web application and visualize them using the “viewer” of bpmn-js. Now I need a variable where all the elements of the uploaded process are stored in a structured and easily accessible way.
Is there a way to access the structure of the model using bpmn-js? Is it already stored somewhere?
Thanks in advance for any help I receive.