How to go back to previous step in a sub workflow?
692994Oct 5 2010 — edited Oct 6 2010We are calling a sub workflow upon approval action from a main workflow. In the child workflow we have 9 steps. If at any step in the child workflow (other than first) user does reject action, the workflow control should go back to previous step in the child workflow itself.
We added a custom action in the exit events of all the child workflow steps. Following is the logic of exit event of Step4 of child workflow. Similar logic is there for all steps in the child workflow.
<$if wfAction and wfAction like "REJECT"$>
<$wfSet("wfJumpTargetStep", "Step3@childWF")$>
<$wfSet("wfJumpEntryNotifyOff", "0")$>
<$endif$>
With this code when the user is doing reject action from child workflow, it is taking us back to the main workflow and not to the previous step of child workflow.
Is this approach correct?
-Pratap