AW: Methods AFTER work item execution - how-to?

Workflow nathanfox at swissinfo.org
Fri Apr 22 13:25:15 EDT 2005


Have you bound the task container to the template container for your
container element.

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.

cheers
Nathan
  -----Ursprungliche Nachricht-----
  Von: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu]Im Auftrag
von Rick Sample
  Gesendet: Freitag, 22. April 2005 18:03
  An: sap-wug at mit.edu
  Betreff: Re: Methods AFTER work item execution - how-to?


  First part of your response:
  Yes. I can set the same WF Template / Task container with other methods
before and after this task.

  Second part:
  I think we are on the same page. Yes. I want to set the container in one
method verses putting a
  container operation on every outcome.
  Then, depending on the outcome, I could be calling a method to change to a
different value. For instance,
  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
  be 'X', then another method will do something else with the flag depend on
...whatever...

  I debug the method and I see the container being set and step through it
but see nothing in the WF Template...
  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!)

  Rick

  >>> Mike.Nickson at bhint.com 4/22/2005 9:39 >>>


  Rick

  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 !

  Mike - Another Friday afternoon worker !



       "Rick Sample" <Rick.Sample at GBE.COM>
        Sent by: sap-wug-bounces at mit.edu
        22/04/2005 15:08
        Please respond to "SAP Workflow Users' Group"


                To:        <SAP-WUG at MITVMA.MIT.EDU>
                cc:
                Subject:        Methods AFTER work item execution - how-to?



  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
  _______________________________________________
  SAP-WUG mailing list
  SAP-WUG at mit.edu
  http://mailman.mit.edu/mailman/listinfo/sap-wug


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050422/e05b5f8c/attachment.htm


More information about the SAP-WUG mailing list