cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating task from old bpmn process to new process

rupeshmukherjee
Champ in-the-making
Champ in-the-making
HI,
I am using activiti for one of our business process . We have created almost 100000 task for a process say "RealWorkflow".  Few of the tasks have been completed. Now due to some requirement change, I had updated few more steps/operations  in my process(.bpmn) file and re-deployed it.
Problem : The new task that I have created after the re-deployment works fine and it takes the new changes in the bpmn file.
But for the old task I can't do those new operations(I have included in the updated process).

Question:  1.How to migrate those old tasks from the old process to the new process  so that new changes in the process will be available  
                     to those old tasks.
                 2.Is there any way by which I can retain both version of the process , the old task will follow the the process and the new tasks  
                    will follow the new one.

If both things are not possible, Can you please give me some other alternate approach ..

Thanks,
Rupesh Mukherjee
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Rupesh,

1.How to migrate those old tasks from the old process to the new process so that new changes in the process will be available
to those old tasks.

Migration to the latest process definition can not be done automatically. In special occasions you can use
org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd
2.Is there any way by which I can retain both version of the process , the old task will follow the the process and the new tasks will follow the new one.

The default behavior is process instance is driven by process definition which is the latest at the time when process instance starts. Process definitions (all versions) are stored in the repository.

Regards
Martin