<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Arial">
<DIV><SPAN class=588522217-22042005>Have you bound the task container to the
template container for your container element.</SPAN></DIV>
<DIV><SPAN class=588522217-22042005></SPAN> </DIV>
<DIV><SPAN class=588522217-22042005>Transfer from the after-method to the task
container depends on elements having the same name. Transfer from task
container back to template container depends on binding.</SPAN></DIV>
<DIV><SPAN class=588522217-22042005></SPAN> </DIV>
<DIV><SPAN class=588522217-22042005>cheers</SPAN></DIV>
<DIV><SPAN class=588522217-22042005>Nathan </SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
face=Tahoma>-----Ursprüngliche Nachricht-----<BR><B>Von:</B>
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]<B>Im Auftrag von
</B>Rick Sample<BR><B>Gesendet:</B> Freitag, 22. April 2005
18:03<BR><B>An:</B> sap-wug@mit.edu<BR><B>Betreff:</B> Re: Methods AFTER work
item execution - how-to?<BR><BR></FONT></DIV>
<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> </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 do something else with the flag
depend on ...whatever...</DIV>
<DIV> </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> </DIV>
<DIV>Rick<BR><BR>>>> Mike.Nickson@bhint.com 4/22/2005 9:39
>>><BR></DIV>
<DIV style="COLOR: #000000"><BR><FONT face=sans-serif>Rick</FONT>
<BR><BR><FONT 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 face=sans-serif>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"
<Rick.Sample@GBE.COM></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> </FONT><BR><FONT
face=sans-serif size=1> To:
<SAP-WUG@MITVMA.MIT.EDU></FONT> <BR><FONT
face=sans-serif size=1> cc:
</FONT> <BR><FONT face=sans-serif size=1>
Subject: Methods AFTER work
item execution - how-to?</FONT></TD></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></BLOCKQUOTE></BODY></HTML>