How to parse a .bpmn file programmatically using bpm Engine?

From my study to he Camunda Engine, it auto loads the .bpmn an .dmn resource via the configuration. My current purpose is to parse a .bpmn file, and fetch the task or gateway elements, the sequence of the elements. How can I do that? Is there any API provided by the bpm Engine to do that?

Hi @xlhtc007,

maybe Parse Listeners are what you’re looking for here?


Hi @tmetzke,
Thanks for ur reply. I dig into the camunda bpmn model APIs (org.camunda.bpm.model.bpmn), and found what I need.