07-19-2017 11:03 AM
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 ?
Please help.
Thanks.
07-20-2017 02:11 PM
Thanks. Some options listed below
07-20-2017 12:00 PM
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.
Ciju
07-20-2017 01:28 PM
Thanks Ciju.
I am using callActivity and if the inflight instance calls the new process version, we are passing some output variable to the main process.
Can we somehow update the main process version also to accept the new output parameters in the callactivity.
Like you said above, If we add a new input attribute in the main process, how would inflight instance accept it?
Thanks,
07-20-2017 01:34 PM
Before going into the detail, may I ask a couple of questions so that I can provide responses accordingly
Are you using Community version or the Enterprise version?
If Community, are you using V5 engine or the new V6 engine?
07-20-2017 01:59 PM
We are using Activiti community version V 5.20
Thanks,
07-20-2017 02:11 PM
Thanks. Some options listed below
07-20-2017 02:28 PM
Great. I liked the idea of keeping different model versions. I will give it a try.
Thank you very much for your help.
12-29-2022 12:39 AM
i'm new to Activiti, could you please explain more bout point 2 here ?
Explore our Alfresco products with the links below. Use labels to filter content by product module.