Get all the path of a BPMN process

Is there any Api to get all the possible path of a BPMN process?

Hi @xlhtc007,

That is currently not possible. You can reconstruct all the paths that have been taken by a process by using the Historic Activity Instance table.

Best,
Nikola

thx, @nikola.koevski ! And I have another question. I use the businessRuleTask, and notice that this element have “id” and “name” attributes in default. My question is : Is there any other attribute and the complete attribute list of “bpmn:businessRuleTask”. If there is no other attribute, How can I extend a custom attribute like “strategyId” that can be parsed with Bpmn class in package “org.camunda.bpm.model.bpmn”.

Hi @xlhtc007,

You can find all the possible BusinessRuleTask attributes here: https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/business-rule-task/#camunda-extensions.

Check out this topic on more information on adding custom attributes: Adding custom attributes

Best,
Nikola

@nikola.koevski thanks a lot for ur warm heart and patient answer. I found the Camunda extension of BusinessRuleTask, and solve my problem. I currently encounter another small problem. My case is to generate a bpmn xml file using Camunda api. I notice that Camunda provide ProcessBuilder to create the BpmnModelInstance. Is there any tutorial about the best practice to do so? Thank u again!

Hi @xlhtc007,

You can find some examples on creating a Model Instance and writing it to a file here: https://docs.camunda.org/manual/latest/user-guide/model-api/bpmn-model-api/create-a-model/

Glad I could help! :slight_smile:

Cheers,
Nikola