Business requirement - Send escalation mails to different levels of the manager based on how many days a work item is past due. For example in a parallel processing workflow, agent A, B, C were chosen to do approval. If agent C forwarded work item to agent D, escalation mail should go to D's supervisor instead of C's supervisor when deadline is missed.
Problem - How do I capture the actual agent after a work item was forwarded(although I can see it obviously in workflow log). I found function modules available to use but they all require work item ID as input parameter. The issue I had was I won't be able to get work item ID until work item is executed(through binding). I also tried to use "Method Before work item EXECUTION" but I did not see information I want populated in workflow container.
Could anyone please share your thoughts how this problem can be solved?