Workflow Challenge - Agent Determination before creation of the actual work item

Alon Raskin araskin at eOutlook.com
Wed Nov 19 09:23:03 EST 2003


I do think its possible but this is definitely a tough one....=20
=20
I have a step in my workflow and I would like to calculate who the =
possible agents are for the subsequent step.
=20
I have already written the code that reads the workflow definition and =
calculates the Task ID of the subsequent step (it wasnt easy but I got =
it to work). Now that I have the Task ID I want to calculate who the =
possible agents are. While this is not that hard if the possible agents =
are just some sort of Org Object but the difficulty occurs when the =
possible agents of the subsequent task are calculated by the use of a =
Role. If that is the case, then I have to programmatically read the =
bindings of the Role and then programmatically read the bindings of the =
container and then simulate that binding so that I can calcualte the =
result of the role. As you can see this is not going to be an easy task. =
Does anyone know of any FMs that could simplify this task for me?=20
=20
The alternate to the above paragraph is to have an exit or BADI which =
occurs when the Role Resolution occurs (ie. when the work item resolves =
the possible agents). Then I could simply plug my code into the exit and =
get my info then. Does anyone know if such an EXIT exists?
=20
I look forward to your thoughts/comments.
=20
Regards,
=20
Alon Raskin
=20
=20
 


More information about the SAP-WUG mailing list