cancel
Showing results for 
Search instead for 
Did you mean: 

Version mapping between Parent and Child workflows

sandeepkhatri01
Champ in-the-making
Champ in-the-making
My understanding of Activiti says that –
Once I deploy the parent and child workflows, Activiti creates a mapping between parent workflow version and child workflow version.  On redeploying/editing the child workflow new version of child workflow is created. However, parent workflow still points to old version as mapping as already been created on first deployment.

Parent workflow doesn't point to latest version of child workflow unless parent workflow is redeployed.

Is my understanding correct ? If yes, Then I want to control this behavior. I want My parent workflow to always point to latest version of child workflow. Is this can be achieved ?

Or Is there any better way to manage this ?
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
I guess you're referring to a call-activity. The call-activity will always start the LATEST version of the referenced process-definition (that is, the latest process-definition deployed for the key that is configured).

So only redeploying the called-process (child) will cause all NEW parent-processes to use the new deployed versions. All running processes, which are currently executing the child-process, will keep using the old child-process. Existing parent-processes which have not yet reached the point where the call-activity is, will also use the new child-process, once the call-activity is executed.

Hope this enlightens you. Not sure how you got to the above conclusion, userguide states:

Note that the process definition of the subprocess is resolved at runtime. This means that the subprocess can be deployed independently from the calling process, if needed.

sandeepkhatri01
Champ in-the-making
Champ in-the-making
Thanks. I did some queries on Activiti Schema and reached to conclusion. I'll again validate my understanding by deploying some more workflow Smiley Happy

frederikherema1
Star Contributor
Star Contributor
Please share any thoughts/solutions around this topic.