<br><font size=2 face="sans-serif">Rick</font>
<br>
<br><font size=2 face="sans-serif">Without seeing the actual template, could you not set a container value globally once before any of the workitems with different methods and outcomes are set and then only reset it after the one that you are interested in ? . . . . Or am I not understanding your problem correctly !</font>
<br>
<br><font size=2 face="sans-serif">Mike - Another Friday afternoon worker !</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Rick Sample&quot; &lt;Rick.Sample@GBE.COM&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: sap-wug-bounces@mit.edu</font>
<p><font size=1 face="sans-serif">22/04/2005 15:08</font>
<br><font size=1 face="sans-serif">Please respond to &quot;SAP Workflow Users' Group&quot;</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;&lt;SAP-WUG@MITVMA.MIT.EDU&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;Methods AFTER work item execution - how-to?</font></table>
<br>
<br>
<br><font size=2><tt>I never used &quot;Methods AFTER work item execution&quot; but I have a case <br>
where I think I may be able to use but need some assistance. <br>
<br>
Here is what I have and what I want to do:<br>
I have a task with several Outcomes. <br>
I need to update a Workflow template container to a simple value after<br>
every outcome. <br>
Different outcomes execute different background methods after the task<br>
is called and may<br>
change the value. Depends on what outcome. <br>
What I am trying to avoid is putting the same Container Operation on <br>
every outcome except one. <br>
<br>
So, I have my business object with a method called SetMyValue with <br>
a parm same as the WF Template container and a simple one line of code<br>
<br>
SWC_SET_ELEMENT CONTAINER 'zMyValue' 'Y'.<br>
I have the task container same as WF Template container and all binding<br>
set. <br>
<br>
When I inspect the WF Template container after execution of the task,<br>
the Wf Template <br>
container is missing. Which tells me that the binding is set correct<br>
but not being set <br>
by the called method. i.e. any time binding are defined and no values<br>
are set the <br>
WF containers get blown out. At least this is what I notice in 4.6c. <br>
<br>
I read page 470 In Practical Workflow for Sap but no examples and not a<br>
real in depth topic.<br>
I want to know how to use the &quot;Method After execution&quot; call so don't<br>
get hung up on the logic. <br>
<br>
<br>
Any help is appreciated.<br>
4.6C<br>
<br>
Rick Sample<br>
SAP Workflow / Developer<br>
Graybar, Inc.<br>
11885 Lackland Rd.<br>
63146-4208<br>
314.573.5822<br>
Rick.Sample@GBE.com<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
</tt></font>
<br>
<br>