I don't have much experience with Java nor with BPMN but m****y goal is to create a code that parse a .bpmn file deducing some information from it.
I don't need to execute the processes, I just need to infer some informations such as:
- which are the participant;
- what participant executes a specific task;
- which tasks follow a given task;
I've tried to look into the main technologies such as: Camunda, Flowable and jBPM; but to me they all seem to target the execution of processes rather than a merely syntactic analysis (which I think is what I need).
I'm now thinking of creating a code that parse the XML of a BPMN diagram using technologies like DOM or SAX.
Does anyone have a suggestion on how I should approach my goal ??
CodePudding user response:
BPMN files usually are structured as XML. So you can do your own XML-Parsing using JAXP. I also use the SAXparser, find a little introduction here.
I read there are BPMN libraries for Java, too, but I haven't tried any of these jet. Here is a good stack link for this topic: Parsing BPMN file
Hope this helps for a start :)
CodePudding user response:
You can have a look at the Camunda library I used here: https://github.com/rob2universe/bpmn-creator
Alternatively, if you prefer JS, you may find https://bpmn.io/ helpful.