Hello guys!
I'm pretty new with workflow and i have this requirement
Employee1 requested a leave application and it was sent to Manager1 for approval
Request is still pending to Manager1 thru work item(loop until approved in workflow)
Employee1 is transferred to another org unit with new manager(Manager2)
All pending requests of Employee1 should be transferred to Manager2
My question is what is the best approach to handle this scenario? my initial assumption was to trigger another Zworkflow after the request but upon further checking, the initial triggered workflow is in loop and I can't forward the work item to new manager using SW*FORWARD* FM.
Is it possible to add another activity in workflow wherein it should check the current manager and change the agent there?
Or should i restart the current workflow when employee transfer is triggered?
Or any other better way to this as I'm really lost