How to rollback/goto any previous step in custom workflow model programatically? [AEM6.4]
Hi,
I'm using AEM6.4 for this project and there's a scenario in the Workflow where on the particular condition I need to 'Go back to one of the previous workflow steps?'
Say(refer image below): When the action fails on 'Step D' the control/workflow must be set again to 'Step A' and start again from that step.
I'm new to AEM & not sure if that's even possible but that's what is the requirement?
I saw a brief note on 'GoTo' statements for AEM 6.4 documentation on workflows but that's it just 2-3 lines about it. (not very helpful)
But unfortunately couldn't find any reference doc or example regarding the same. ![]()

Or in other words:
There's already Rollback(to any previous workflow step) functionality available in AEM (AEM6.4 atleast) via UI whenever a workflow step fails (refer image below). I just want to achieve this programmatically within the custom workflow process class.
Any help regarding this is appreciated.
-Thanks
