AnsweredAssumed Answered

Process Instance migration

Question asked by cyterdan on Feb 25, 2016
Latest reply on Feb 26, 2016 by martin.grofcik

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