Agent Assignment in WS10000276

Dart, Jocelyn jocelyn.dart at sap.com
Tue Feb 10 22:34:00 EST 2004


Raju,
You cannot use standard rule resolutions in place of &Agent_0001.Agents& for EBP.
You must use adhoc agent assignment.  The approval preview needs adhoc agent assignment so that it can calculate the agents in advance of the workflow starting.
 
This means:
* Create an ad hoc agent object similar to ASBMANOFSL.  It must be a direct subtype
of object AAGENT.
* Looking at ASBMANOFSL as a guide... redefine the same attributes/methods as in ASBMANOFSL.
Add the equivalent business object program code as in ASBMANOFSL.
* In the "Create" method of your subtype, call your rule resolution.  Make sure you only return users in agent format (i.e. US followed by user id).  Be careful to look at how
ASBMANOFSL retrieves the shopping cart object from workflow container element "ReqReq" and how it
fills the agent object/list of agents once the approvers are found.
* Leave the workflow step pointing to &Agent_0001.Agents&
* Change the container element definition of Agent_0001 to point to your new ad hoc agent object.
* Test
 
You might want to buy the book! There's a whole chapter on EBP - how this agent assignment works is in there (book looks at EBP 3.0 but the ad hoc agent assignment technique has been used from EBP 2.0B up to current day).
Regards,
Jocelyn.
 
 
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of Omkaram, Raju
Sent: Wednesday,11 February 2004 1:09 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Agent Assignment in WS10000276
 
 
Hello All,
 
Due to business requirement, I had to customize an EBP workflow WS10000276.
I copied the std workflow and there is no problem. However, for approval
task I had to pass my own role resolution in place of  std expression for
agent &Agent_0001.agents& . The problem I am facing is that during approval
process,  the approver is not able to see next approver in the approval
preview window as in the standard workflow.
 
The standard task expression for agent is &Agent_0001.agents& is based on
object type ASBMANOFSL and my guess that a method in the object is causing
the next approver to be visible in the Preview window. Before I spend lot of
time (unfortunately I can not afford at this juncture) I want to ping our
forum brains to see if I can get some direction.
 
Any help or direction is highly appreciated.
 
 
Thanks
 
Raju Omkaram
 


More information about the SAP-WUG mailing list