<div dir="ltr">Hi Rick,<br><br>You are correct, I am using process control to set workitem to "obsolete".. since the task is not 'Completed' by any agent, and agents have missed the deadline, do not want to use terminating event and 'Complete' the task.. My design is similar to following:<br>
<br><a href="http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4b97e453d11d189430000e829fbbd/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4b97e453d11d189430000e829fbbd/content.htm</a><br><br>I have been using this approach for years now. and had no issues.<br>
<br>Regards,<br>Sudhir<br><br><div class="gmail_quote">2008/7/31 Sample, Rick <span dir="ltr"><<a href="mailto:Rick.Sample@graybar.com">Rick.Sample@graybar.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span>Sudhir,</span></div>
<div dir="ltr" align="left"><span><font size="2" face="Microsoft Sans Serif"></font></span> </div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>I still may be a little fuzzy on the design.
</span></font><font size="2" face="Microsoft Sans Serif"><span>Your task with the "Latest / Requested End"
modeled deadline ends how? </span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>From the verbiage here it sounds like you are killing
the task via some type of </span></font><font size="2" face="Microsoft Sans Serif"><span>Process Control </span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>l</span></font><font size="2" face="Microsoft Sans Serif"><span>ike, "Cancel Work Item" step, "Set
to task to obsolete" step, etc. </span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>Yes?</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span></span></font> </div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>If so, I don't think this 'should' work. Kill task
/ WFs generally mean just that. Kill it and stop processing.</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>I avoid these as much as possible. (Took them all out
and never use them for this reason) </span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>Assuming I have <font size="2" face="Microsoft Sans Serif"><span>followed your </span></font><font size="2" face="Microsoft Sans Serif"><span>design.
</span></font>I created a quick hack in my sandbox and </span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>can verify that this does not work for me either.
</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font> </div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>Have you tried to use a </span></font><font size="2" face="Microsoft Sans Serif"><span>terminating
event to end the task? </span></font><font size="2" face="Microsoft Sans Serif"><span>Instead of the Kill, you could replace
</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>with a Raise Term event step. (?) </span></font><font size="2" face="Microsoft Sans Serif"><span>Then, the Task
will definitely complete its processing and flow correctly.</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span></span></font> </div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span>But if it worked before, you should be
able to get SAP to make corrections for you. </span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>Never used the new Process Control (Kill) steps but let
me know. </span></font></div><div class="Ih2E3d">
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span></span></font> </div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span><span style="font-size: 8pt; color: rgb(51, 153, 204); font-family: Arial;"><span style="font-weight: bold; color: rgb(0, 0, 0);">Rick Sample</span> <span style="color: rgb(0, 0, 0);">| </span>Office (314) 573-5700<span style="color: rgb(0, 0, 0);"> | </span><a href="mailto://rick.sample@graybar.com" target="_blank">rick.sample@graybar.com</a> <br>
<a href="http://www.graybar.com/" target="_blank">www.graybar.com</a> - <i>Works to Your
Advantage</i> </span></span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font> </div>
<font size="2" face="Microsoft Sans Serif"></font><font size="2" face="Microsoft Sans Serif"></font><br>
</div><div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><div class="Ih2E3d"><b>From:</b> <a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a>
[mailto:<a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a>] <b>On Behalf Of </b>Sudhir
Pargaonkar<br></div><b>Sent:</b> Thursday, July 31, 2008 3:08 PM<div><div></div><div class="Wj3C7c"><br><b>To:</b> SAP
Workflow Users' Group<br><b>Subject:</b> Re: _RULE_RESULT
binding<br></div></div></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>
<div dir="ltr">Sure Rick.. would be great.. my release
is<br>SAP_BASIS 700 0013
SAPKB70013 SAP Basis Component<br><br>I created a method using
FM "SAP_WAPI_WORKITEM_RECIPIENTS".. I pass workitem ID to this FM before I set
it as obsolete.. Once I get list of all agents from here, I am sending them
reminder emails... <br><br>can not use After Method on the task since no one is
executing the workitem when the deadline is reached. It is being set as
obsolete. <br><br>do let me know if you can get the binding to work and get
_RULE_RESULT values back to workflow container in your release.
<br><br>Thanks.<br>sudhir<br><br>
<div class="gmail_quote">2008/7/31 Sample, Rick <span dir="ltr"><<a href="mailto:Rick.Sample@graybar.com" target="_blank">Rick.Sample@graybar.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>Ah! I
see now. I was reading _RULE_RESULT and "thinking" _WI_ACTUAL_AGENT.
<blush> Sorry!</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>I don't
think I have a WF that passes all role agents. Interesting.
</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span></span></font> </div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>If not
some binding issue and currently no SAP Note to apply (or no SAP Note created
for this issue), </span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>I would
say just create a new method and plop it in the After method on the task.
</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>If a
solution becomes available later you, </span></font><font size="2" face="Microsoft Sans Serif"><span>you would not have to rip the whole
WF Template apart and take out the BG tasks. </span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>You
would only need to remove the method on the task. A tad
simpler!</span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span></span></font> </div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span>**
Though </span></font><font size="2" face="Microsoft Sans Serif"><span>I
would make serious effort to get SAP to correct! </span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span></span></font> </div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span><span>Please let me know when you have a solution. I will create
a quick test on this just to see for myself and on my
release.</span></span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span><span>[SAP_BASIS 700 0014 SAPKB70014 SAP
Basis Component]</span></span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span><span></span></span></font> </div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span><span>I
will let you know what shakes out for me it you are interested.
</span></span></font></div>
<div dir="ltr" align="left"><font size="2" face="Microsoft Sans Serif"><span><span></span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"><span></span></font><font size="2" face="Microsoft Sans Serif"></font> </div>
<span style="font-size: 8pt; color: rgb(51, 153, 204); font-family: Arial;"><span style="font-weight: bold; color: rgb(0, 0, 0);">Rick Sample</span> <span style="color: rgb(0, 0, 0);">| </span>Office (314) 573-5700<span style="color: rgb(0, 0, 0);"> | </span><a href="mailto://rick.sample@graybar.com" target="_blank">rick.sample@graybar.com</a> <br>
<div><a href="http://www.graybar.com/" target="_blank">www.graybar.com</a> - <i>Works to Your Advantage</i>
</div></span><br></div>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma">
<div><b>From:</b> <a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a> [mailto:<a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a>] <b>On Behalf Of </b>Sudhir
Pargaonkar<br></div><b>Sent:</b> Thursday, July 31, 2008 1:51 PM
<div><font face="Microsoft Sans Serif"></font><br><b>To:</b> SAP
Workflow Users' Group<br></div><b>Subject:</b> Re: _RULE_RESULT
binding<br></font><br></div>
<div>
<div></div>
<div>
<div></div>
<div dir="ltr">Hi Rick,<br><br>I understand that WF-BATCH would be the user that
would set workitem as obsolete. Let me explain the scenario:<br><br>workitem
is in the inbox of say 5 users determined by a agent determination rule. as
per thomas email, when any one of them executes the workitem, we know
"Executed By" user as well as list of these 5 users in workflow container if
we have a binding between _RULE_RESULT and a workflow container
element.<br><br>Issue is, if we have a modeled deadline.. and WF-BATCH sets
workitem to obsolete status using process control step. In this case, we still
need list of those 5 users who had the workitem in their inbox. So that we can
send them an email saying, they have missed the deadline. In this scenario,
contents of _RULE_RESULT are not transfered to workflow container even if we
have correct binding. <br><br>hope that explains the situation. I am also in
the process of creating a method and background step to read agents of the
workitem to avoid this problem. <br><br>Let me know if there is another
solution to keep the design clean. <br><br>Thanks<br>Sudhir<br><br>
<div class="gmail_quote">2008/7/31 Sample, Rick <span dir="ltr"><<a href="mailto:Rick.Sample@graybar.com" target="_blank">Rick.Sample@graybar.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div dir="ltr" align="left"><span><font face="Microsoft Sans Serif">
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>Thomas,</span></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>Sorry, I may
be jumping into the middle and </span></span><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>I may be
missing something but I don't see the issue. </span></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>How is the
task terminating? By the deadline itself? i.e. an actual agent does not have
to execute </span></span></span></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>the task for
it to complete?</span></span></span></span></p></font></span>
<div>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>>></span>Ran
into the same issue, if the work item is executed then the <i><span style="font-style: italic;">_</span>Rule_Result</i> </span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>>></span>is
populated and you have what you need. </span></p></div>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>An
'actual agent' executed the task, and you have an agent. </span></span></p>
<div>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>>></span>But
if not executed, like when a deadline is reached, you get nothing - very
annoying.</span></p></div>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>If
the deadline is reached, and no 'actual agent' executed the task, I would
think </span></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>you
would <i>not</i> want to populate the <span style="font-style: italic;">_</span><i>Rule_Result. </i>Would only
have WF-BATCH as the agent </span></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>because
WF-BATCH is the user that tripped the Deadline. Not an agent.
</span></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span><span style="font-size: 10pt; color: navy; font-family: Arial;">Sudhir,</span></span></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>>>note
can not be applied as it doesn't match correct version. </span></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span>Hmmm... What
version are you on? Service Patch
level?</span></span></p><span><font face="Microsoft Sans Serif"></font></span></div>
<div dir="ltr" align="left">
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span><font color="#000000">I will be upgrading another 4.6c to ECC6 soon, so I have
interest in this issue you are experiencing. </font></span></span></p>
<p><span style="font-size: 10pt; color: navy; font-family: Arial;"><span><font color="#000000">The last system I do not believe I had this
scenario.</font></span></span></p></div>
<div dir="ltr" align="left"><span><font face="Microsoft Sans Serif"><span style="font-size: 10pt; color: navy; font-family: Arial;"><span><span style="font-size: 8pt; color: rgb(51, 153, 204); font-family: Arial;"><br>
<span style="font-weight: bold; color: rgb(0, 0, 0);">Rick Sample</span> <span style="color: rgb(0, 0, 0);">| </span>Workflow Analyst/Developer<br>11885
Lackland Road<span style="color: rgb(0, 0, 0);"> | </span>Maryland Heights, MO
63146 <span style="color: rgb(0, 0, 0);">| </span>Office (314) 573-5700<span style="color: rgb(0, 0, 0);"> | </span><a href="mailto://rick.sample@graybar.com" target="_blank">rick.sample@graybar.com</a> <br><a href="http://www.graybar.com/" target="_blank">www.graybar.com</a> - <i>Works
to Your Advantage</i> <br><br><img alt="Graybar® works to your advantage" src="cid:120232620@31072008-3050"> </span></span></span></font></span></div><font size="2" face="Microsoft Sans Serif"></font><font size="2" face="Microsoft Sans Serif"></font><font size="2" face="Microsoft Sans Serif"></font><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><b>From:</b> <a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a> [mailto:<a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a>] <b>On Behalf Of </b>Maue,
Thomas<br><b>Sent:</b> Thursday, July 31, 2008 12:05 PM
<div><br><b>To:</b> SAP Workflow Users' Group<br></div><b>Subject:</b> RE:
_RULE_RESULT binding<br></font><br></div>
<div>
<div></div>
<div>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; color: navy; font-family: Arial;">Sudhir,</span></font></p>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; color: navy; font-family: Arial;">Ran into the same
issue, if the work item is executed then the <i><span style="font-style: italic;">_</span>Rule_Result</i> is populated and you have
what you need. But if not executed, like when a deadline is reached,
you get nothing - very annoying.</span></font></p>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; color: navy; font-family: Arial;">I had to add a
background step to return the rule agents before routing the escalation to
managers or sending an SAP notification to agents. Some of these were
responsibilities type rules so had to create a method to find agents since
there was no corresponding function module to execute.
</span></font></p>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; color: navy; font-family: Arial;">Would have been a
lot easier/cleaner if <i><span style="font-style: italic;">_</span>Rule_Result </i>was
populated!</span></font></p>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; color: navy; font-family: Arial;">Regards,</span></font></p>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; color: navy; font-family: Arial;">Thomas
Maue</span></font></p>
<div>
<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">
<hr size="2" width="100%" align="center">
</span></font></div>
<p><b><font size="2" face="Tahoma"><span style="font-weight: bold; font-size: 10pt; font-family: Tahoma;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;"> <a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a> [mailto:<a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Sudhir
Pargaonkar<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday,
July 31, 2008 10:39 AM<br><b><span style="font-weight: bold;">To:</span></b>
SAP Workflow Users' Group<br><b><span style="font-weight: bold;">Subject:</span></b> _RULE_RESULT
binding</span></font></p></div>
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Hi All,
<br><br>I am on ECC 6.0 system.. I want to get result of agent determination
rule into workflow container so that I can send all these users reminder
email once the deadline is reached. <br><br>In earlier systems, it used to
work fine.. but now, no values are being passed to workflow container even
though the binding is correct. I tried to apply SAP NOTE 707767 but it says,
note can not be applied as it doesnt match correct version. <br><br>any
suggestions on how to fix this issue? I can always create a new step and a
method to find out list of agents selected, but wanted to do it the right
way..<br><br>thanks<br>Sudhir</span></font></p></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></div>
<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>
<br></blockquote></div><br></div>