cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new task in activiti diagram while process already started

crisostomo
Champ in-the-making
Champ in-the-making
I am new in Activiti. *sorry*

What I am trying to find out is it possible to add a new task in the diagram while the initial process is already deployed?
I believe that you can add task/subtask inside the program, but the difference here is, if you would like to add a task node in the diagram, and deploy it as a new version of the process, how can the program can adapt to the newly deployed process?

Thanks in advance!
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Are you using the Activiti Designer or XML? Or do you want to use the Java based BpmnModel to change the existing process definition? In case of the BpmnModel you can get the existing instance with the RepositoryService and then change the model like you want to. The changed BpmnModel can then be deployed using the RepositoryService.

Best regards,

crisostomo
Champ in-the-making
Champ in-the-making
Actually I am using the Activiti Designer. Is it possible to edit the diagram using the Activiti Designer, and then deploy it as a replacement on the existing process definition? What adjustments should be done in the program to adapt on it dynamically?

Because in my samples I have constant task ids because I know the whole process. But now, how can I know if the there is a new task available on the updated process definition dynamically since the addition of new task is not known?

Thanks again..