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.
Solved! Go to Solution.
Thanks. Some options listed below
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
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,
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?
We are using Activiti community version V 5.20
Thanks,
Thanks. Some options listed below
Great. I liked the idea of keeping different model versions. I will give it a try.
Thank you very much for your help.
i'm new to Activiti, could you please explain more bout point 2 here ?
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.