<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Arial">
<DIV>First part of your response:</DIV>
<DIV>Yes. I can set the same WF Template / Task container with other methods before and after this task. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Second part:</DIV>
<DIV>I think we are on the same page. Yes. I want to set the container in one method verses putting a </DIV>
<DIV>container operation on every outcome. </DIV>
<DIV>Then, depending on the outcome, I could be calling a method to change to a different value. For instance, </DIV>
<DIV>if I just cancel out of the task and do nothing, I want to flag it "X', Default for all. If reject, the default value will </DIV>
<DIV>be 'X', then another method will&nbsp;do something else with the flag depend on ...whatever...</DIV>
<DIV>&nbsp;</DIV>
<DIV>I debug the method and I see the container being set and step through it but see nothing in the WF Template...</DIV>
<DIV>Like I said, I am just trying to learn how to use these methods. Never used before. (Could never figure out what to use them for!) </DIV>
<DIV>&nbsp;</DIV>
<DIV>Rick<BR><BR>&gt;&gt;&gt; Mike.Nickson@bhint.com 4/22/2005 9:39 &gt;&gt;&gt;<BR></DIV>
<DIV style="COLOR: #000000"><BR><FONT face=sans-serif size=2>Rick</FONT> <BR><BR><FONT face=sans-serif size=2>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 face=sans-serif size=2>Mike - Another Friday afternoon worker !</FONT> <BR><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<TD><FONT face=sans-serif size=1><B>"Rick Sample" &lt;Rick.Sample@GBE.COM&gt;</B></FONT> <BR><FONT face=sans-serif size=1>Sent by: sap-wug-bounces@mit.edu</FONT> 
<P><FONT face=sans-serif size=1>22/04/2005 15:08</FONT> <BR><FONT face=sans-serif size=1>Please respond to "SAP Workflow Users' Group"</FONT> <BR></P>
<TD><FONT face=Arial size=1>&nbsp; &nbsp; &nbsp; &nbsp; </FONT><BR><FONT face=sans-serif size=1>&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;&lt;SAP-WUG@MITVMA.MIT.EDU&gt;</FONT> <BR><FONT face=sans-serif size=1>&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</FONT> <BR><FONT face=sans-serif size=1>&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;Methods AFTER work item execution - how-to?</FONT></TR></TBODY></TABLE><BR><BR><BR><FONT size=2><TT>I never used "Methods AFTER work item execution" 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 "Method After execution" 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></DIV></BODY></HTML>