cancel
Showing results for 
Search instead for 
Did you mean: 

Can I programmatically create BPMN (the xml) using Activiti?

afshad
Champ in-the-making
Champ in-the-making
Is it possible to use the API to programmatically create the BPMN for a process instead of using the modeler??
Has anyone done this? Any examples? The user guide has nothing regarding this. Only shows how to create processes from existing BPMN xml.

Thanks.
2 REPLIES 2

heymjo
Champ on-the-rise
Champ on-the-rise
I'ld be interested to know this as well.

The api currently only allows to dynamically add tasks to an existing process instance. For our case we would need to add a number of tasks, of which some must be executed in parallel. So I kind of need to add a parallel gateway dynamically. Is this something the engine internals could cope with currently, or do i need to find a workaround ?

afshad
Champ in-the-making
Champ in-the-making
I am generating the BPMN XML myself. Its not a big deal to modify the xml either and add a parallel gateway. Just lookup the xml syntax for it.
However if an Open Source API did this for us we would not have to worry about the BPMN being correct.
The modeler is only good if you already know your workflow.
In my situation the workflow is generated as the user uses the software.