Agent determination AC00000168

Mike Gambier madgambler at hotmail.com
Wed Oct 8 08:27:16 EDT 2008


Andy,
 
Your WF is going into error because the Agent Determination Rule has the 'Terminate if no result' option set (HRS1203-ENFORCE).
If this wasn't a SAP object, a cheap option, although not recommended, might be to remove the flag setting and allow all of the Task Assignments to become valid by default (i.e. the Work Item would be routed to all agents who are listed against the Task Assignments). This wouldn't be a good idea if the Task was a General one though, of course.
 
If you owned the PFAC Rule and still wanted to keep the flag setting as it is and therefore always error the Workflow, then you could try creating a 'Catch-All' responsibility (i.e. a fallback condition if no agent can be determined) provided you are confient you can always pick out this particular scenario somehow (e.g. by the value of a specific parameter like userid).
 
In your case, you might try the Function Module PFAC Rule approach where you can define your own PFAC Rule that invokes a wrapper FM that calls your current PFAC Rule and catches the exception. This way, if no Agent is determined, you can always default something in to the container at runtime. Once you have defined your own Rule you can simply change your WF Definition to use this new Rule instead. 
 
Or you could simply write a PFAC Rule that calls the same FM SWX_GET_MANAGER and handles the exception NOBODY_FOUND in a manner of your choosing.
 
We tend to prefer the FM approach with a config table lurking around so that the defaults can be changed from time to time without disturbing the code.
 
Regards,
 
Mike GT



Date: Wed, 8 Oct 2008 12:41:21 +0100From: abcurtis at gmail.comTo: sap-wug at mit.eduSubject: Agent determination AC00000168

We use rule AC00000168 to find a Chief to Approve expenses, so when the 'top chief' (the big chief), submits expenses the wf goes into error as he does not have a chief!  Anyone got a novel/innovative solution for this?
 
Andy
_________________________________________________________________
Discover Bird's Eye View now with Multimap from Live Search
http://clk.atdmt.com/UKM/go/111354026/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20081008/0c27717b/attachment.htm


More information about the SAP-WUG mailing list