How to maintain activiti versioning to handle inflight instances for the old process versions?
We have inflight instances in production, if super process runs in an old version. When we roll out our new process changes, the super process instance has sub processes, say task is pending at review step in old version, then submits the review to manager . Sub process attached to the manager review is taking the new process version instead of the old version. I want all the super process, sub processes to be running with previous version rather than the newer version.
Can we configure something in activiti so that inflight instances use the old process version, sub process versions instead of newer version ?
How are you calling the child process? Sub-Process or Call Activity?
If Sub-Process, old instances should be running on the old version.
If Call Activity, it will take new version of the process. I see this is a very valid use case, suggest raising an issue or a PR if you would like to contribute towards this feature! An easy fix might be additional input attribute for process definition id or version using which you can dynamically query a particular version of process.
Activiti is an Apache-licensed business process management (BPM) engine. Such an engine has as core goal to take a process definition comprised of human tasks and service calls and execute those in a certain order, jigging rods, while exposing various API's to start, manage and query data about process instances for that definition.