Methods AFTER work item execution - how-to?

Rick Sample Rick.Sample at GBE.COM
Fri Apr 22 10:08:47 EDT 2005


I never used "Methods AFTER work item execution" but I have a case 
where I think I may be able to use but need some assistance. 

Here is what I have and what I want to do:
I have a task with several Outcomes. 
I need to update a Workflow template container to a simple value after
every outcome. 
Different outcomes execute different background methods after the task
is called and may
change the value. Depends on what outcome. 
What I am trying to avoid is putting the same Container Operation on 
every outcome except one. 

So, I have my business object with a method called SetMyValue with 
a parm same as the WF Template container and a simple one line of code

SWC_SET_ELEMENT CONTAINER 'zMyValue' 'Y'.
I have the task container same as WF Template container and all binding
set. 

When I inspect the WF Template container after execution of the task,
the Wf Template 
container is missing. Which tells me that the binding is set correct
but not being set 
by the called method. i.e. any time binding are defined and no values
are set the 
WF containers get blown out. At least this is what I notice in 4.6c. 

I read page 470 In Practical Workflow for Sap but no examples and not a
real in depth topic.
I want to know how to use the "Method After execution" call so don't
get hung up on the logic. 


Any help is appreciated.
4.6C

Rick Sample
SAP Workflow / Developer
Graybar, Inc.
11885 Lackland Rd.
63146-4208
314.573.5822
Rick.Sample at GBE.com


More information about the SAP-WUG mailing list