Editing a current process definition in Activiti

三世轮回 提交于 2019-12-11 03:24:51

问题


Whenever I need to make a change in the process definition I have to re deploy the process definition.It seems that creates a new version of the process definition.

Is there a way where I can update the existing process definition and not create a new version all the time.

What will happen to the old process instances if there is a new version of process definition in place.

Any help on the above queries is appreciated.


回答1:


I don't think the Activiti API provides a way to replace an existing process definition without deploying a new version.

When you deploy a new version of a process, any existing process instances on the old version continue running on the old version.

However, there is a SetProcessDefinitionVersionCmd class you can use to change the process version on a process instance. It's not "smart", though; it simply changes the version number, and doesn't change any other runtime data, so it can break process instances if you make an incompatible change in the process definition.



来源:https://stackoverflow.com/questions/19101496/editing-a-current-process-definition-in-activiti

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!