cancel
Showing results for 
Search instead for 
Did you mean: 

Process Instance migration

cyterdan
Champ in-the-making
Champ in-the-making
Hi,

We're currently running activiti for a business process (with no sub process or parallel execution).

We're looking to deploy a new version of the process definition and gracefully migrate all the process instances to the new version.
This has been discussed in the past but I'm wondering what is the current best practice to achieve this.

Two solutions we can think of :
- using the api to automatically create new process instances with the new version, replacing the old one, copying the process variables and submitting the tasks until we reach an "equivalent" task

- modifying the process definition version on the existing instances and moving the instances to the correct task directly in the activiti database

Thanks for your input
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Cyterdan,

The first option is more suitable for simulations.

I would vote for the option 2:
  1. the history is kept
  2. no additional effort is needed to get the process instance to the state.
Regards
Martin