cancel
Showing results for 
Search instead for 
Did you mean: 

Changing script tasks of in-flight processes

elygre
Confirmed Champ
Confirmed Champ
We use activiti to support processes that take 6-12 months to complete. During that period, we will typically upgrade the application several times (every 3-4 months).

Some of these running processes contain script tasks that use custom java-apis, Now we need to make minor changes to those apis, and thus we need to make changes in the script tasks.

New processes will use new process definitions using new apis, but how do we change the existing in-flight processes?

Eirik
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Eirik,

Options:
    * your API should support backward compatibility.
    * service registry

To answer your question:
you can create new process definition and use org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd to change version  of the process instance.

Regards
Martin