cancel
Showing results for 
Search instead for 
Did you mean: 

How to update a diagram on runtime

haroldfinch
Champ in-the-making
Champ in-the-making
Hi there
I'm new in activiti and it's so amazing.I read activiti.in.action and majority of userguide.My problem is
I designed a diagram and it has starevent-usertask-mailtask-endevent. I started eight processes and they are waiting on usertask to kermit confirm.But now I want to remove mailtask and I don't want to send mail. I want to update the deployment that before I made. How can I update it? And if I update the diagram what will happen process instances that is waiting on usertask ? After usertask,they will continue to mailtask or endevent? I want them to continue according to new diagram,it's meaning it have to go to  endevent.Thanks in advance.
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

You should deploy a new process definition with the same id and this will create a new version of the process definition in the Activiti Engine. The already running process instances will keep running with the old process definition by default. But you can migrate the process definition version using org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd per process instance.

Best regards,

jbarrez
Star Contributor
Star Contributor
Awesome avatar, by the way 😉