Skip to content

Camunda

Marco Lori edited this page Dec 11, 2018 · 4 revisions

Introducing Camunda

The official Camunda documentation defines Camunda in the following way:

Camunda is a Java-based framework supporting BPMN for workflow and process automation, CMMN for Case Management and DMN for Business Decision Management.

We decided to use Camunda BPMN Model API because it offered a clean and easy way to extract data from existing BPMN models in Java.

To read a BPMN model, for instance, all we need to use is:

File file = new File("PATH/TO/MODEL.bpmn");
BpmnModelInstance modelInstance = Bpmn.readModelFromFile(file);

And all we did to extract the number of occurrences of a specific element in the model is:

int numberOfTasks = modelInstance.getModelElementsByType(taskType).size();

Once we gathered all the different datas from the BPMN model we were able to procede with the metrics computation.

Clone this wiki locally