cancel
Showing results for 
Search instead for 
Did you mean: 

Determine the agents does not working.

Former Member
0 Kudos
104

Hello Every body,

I set up a workflow for payment release in FI and I'm using this rule to determine the agents, in which case this workflow has two levels of release.

Then in step "activity" let the rule set and 00400125 | Job Property | -> | attributes | I left as "general purpose". In the function I made a PR_WF_ACTOR1_DET improvement through customer-function to read a table z, containing approvers. The table fields are: WFVAR FRWEG STUFE HWBIS, which are filled correctly by function.

For the tests I'm watching the workitem is being directed to for the two approvers. My need is that the workitem is intended only for the first approver, and if it approves, then be directed to the second.

Any help will be very welcome.

JB

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185167
Active Contributor
0 Kudos

Hello,

One way is to put the agent determination in a separate step (e.g. if it's an AC rule then create a method to call that rule).

Then, as suggested above, use a loop to loop through the agents that were returned, only continuing the loop after each approval.

regards

Rick Bakker

hanabi technology

former_member183917
Active Contributor
0 Kudos

Hi- My understanding is- you are determining agents using std. Rule and Rule returns 2 approvers . So parallely 2 approvers are receiving the workitem

If you need to go with sequentially (i mean after approved by 1st approver then 2...), then you need to create 1 activity step and call the std. FM by giving the rule number and get all the approvers

Now you could make use of Loop step type or Block and send the FI document in sequentially

FM: RH_GET_ACTORS will give all the agents based on the Rule number and Rule container's value

Vinoth

Edited by: S Vinoth on Dec 19, 2011 6:31 PM

Edited by: S Vinoth on Dec 19, 2011 6:34 PM

Former Member
0 Kudos

S Vinoth and Rick Bakker Thanks, I'll work on this idea.

Edited by: Joao Freitas on Dec 20, 2011 3:45 PM