Hi Rick,<br>
    Thanks for helping me out, Handling escalation at method level instead at workflow level, for this I need to use standard FM for forwarding workitem or there are already standard methods for deadline escalation using methods.<br>

     Rick, if you can provide me some sample doc for understanding deadline escalation using methods, it will help me to achieve my purpose.<br>Thanks.<br><br clear="all">Best Regards<br>Tushar Shinde.<br><a href="mailto:tushar.shinde20@gmail.com">tushar.shinde20@gmail.com</a><br>

<br>
<br><br><div class="gmail_quote">On Sat, Dec 3, 2011 at 4:05 PM, Rick Bakker <span dir="ltr">&lt;<a href="mailto:rbakker@gmail.com">rbakker@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br>
<br>
If deadline/agent determination rules get too complex then the<br>
simplest thing to do is to take it outside of the workflow and put it<br>
in a method. If the minimum escalation date is 1 day then set the<br>
deadline to 1 day and call a method to decide if it really should be<br>
escalated and to whom.<br>
<div class="im HOEnZb"><br>
regards<br>
Rick Bakker<br>
hanabi technology<br>
<br>
</div><div class="HOEnZb"><div class="h5">On Sat, Dec 3, 2011 at 8:59 PM, Tushar Shinde &lt;<a href="mailto:tushar.shinde20@gmail.com">tushar.shinde20@gmail.com</a>&gt; wrote:<br>
&gt; Hi Rick,<br>
&gt;      Agent determination is already done, my concern is how it can be<br>
&gt; handled at workflow level i.e sometimes I need to escalate to next agent but<br>
&gt; sometimes the escalation should not happen. In same path how can I control<br>
&gt; the escalation to happen or not to happen.<br>
&gt; Any inputs for this.<br>
&gt;<br>
&gt; Regards<br>
&gt; Tushar Shinde.<br>
&gt; <a href="mailto:tushar.shinde20@gmail.com">tushar.shinde20@gmail.com</a><br>
&gt; <a href="mailto:ts_tushar@yahoo.co.in">ts_tushar@yahoo.co.in</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Dec 3, 2011 at 3:08 PM, Rick Bakker &lt;<a href="mailto:rbakker@gmail.com">rbakker@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; You will have to build a fairly complex agent determination method with<br>
&gt;&gt; ABAP.<br>
&gt;&gt;<br>
&gt;&gt; regards<br>
&gt;&gt; Rick Bakker<br>
&gt;&gt; hanabi technology<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Dec 3, 2011 at 6:57 PM, Tushar Shinde &lt;<a href="mailto:tushar.shinde20@gmail.com">tushar.shinde20@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Dear Workflow Team,<br>
&gt;&gt; &gt;         I had a scenario to be built up in my existing workflow, the<br>
&gt;&gt; &gt; scenario is, my existing workflow is of 2-Levels, wherein now based on<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; new requirement I have to achieve the below mentioned purpose.<br>
&gt;&gt; &gt; 1. When workflow triggers, it goes first to Reporting Manager (1st<br>
&gt;&gt; &gt; Level) -&gt;<br>
&gt;&gt; &gt; then to HOD(2nd Level), but now as per new requirement, if say today the<br>
&gt;&gt; &gt; workitem comes in inbox of HOD(2nd Level), and if for next 1-day HOD is<br>
&gt;&gt; &gt; on<br>
&gt;&gt; &gt; Leave also if HOD is directly reporting to President of company, then<br>
&gt;&gt; &gt; only<br>
&gt;&gt; &gt; the workflow should be escalated to HR instead of escalating to<br>
&gt;&gt; &gt; President,<br>
&gt;&gt; &gt; otherwise no need for any escalation.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2. But here, the main problem is, the workitem should initially goto HOD<br>
&gt;&gt; &gt; &amp;<br>
&gt;&gt; &gt; should get escalated only after 1-day, if HOD is on Leave only on that<br>
&gt;&gt; &gt; particular day &amp; only if HOD is direct reporting to President, if the<br>
&gt;&gt; &gt; condition are not met than the workitem should not get escalated to HR<br>
&gt;&gt; &gt; or<br>
&gt;&gt; &gt; President.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 3.Also there is apossibility of 1st Level &amp; 2nd Level are both same<br>
&gt;&gt; &gt; Agents<br>
&gt;&gt; &gt; or Person, in that case I have to built a check at 1st Level also.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; One thing is sure that I have to branch into 2-condition if the person<br>
&gt;&gt; &gt; is<br>
&gt;&gt; &gt; direct reporting to president than 1st Branch will execute else 2nd<br>
&gt;&gt; &gt; Branch<br>
&gt;&gt; &gt; will execute. Now whatever escalation logic I have to implement is that<br>
&gt;&gt; &gt; will<br>
&gt;&gt; &gt; be in 1st Branch.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hope, I am pretty much clear in explaining my problem. Please let me<br>
&gt;&gt; &gt; know<br>
&gt;&gt; &gt; how best I can solve the problem.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Happy Weekend.<br>
&gt;&gt; &gt; God Bless.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Best Regards<br>
&gt;&gt; &gt; Tushar S.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; SAP-WUG mailing list<br>
&gt;&gt; &gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt;&gt; &gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SAP-WUG mailing list<br>
&gt;&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt;&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt;<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
</div></div></blockquote></div><br>