cancel
Showing results for 
Search instead for 
Did you mean: 

create new process via API

lucat
Champ in-the-making
Champ in-the-making
Hi all.

I have deployed some processes into activiti repository, and need to create a new process reading the elements of my already deployed "bpmn20.xml" processes. Is there any way to do that via API? Or i need to read the xml of the processes and to copy what i need?

I found getElements(), getNodes() methods that return me the objects of the process (startevent, endevent, usertask…) but i haven't found anything to copy all the element in a new process.

Any idea?
2 REPLIES 2

lucat
Champ in-the-making
Champ in-the-making
no one can help me?

frederikherema1
Star Contributor
Star Contributor
Currently, there is no way of deploying the "POJO" representation of a process-definition into the engine, only BPMN-files work. So I'm afraid you'll have to alter the BPMN2.0 in your code, rather than the actual ProcessDefinition….