cancel
Showing results for 
Search instead for 
Did you mean: 

Rule to find Superior

Former Member
0 Kudos

Hi

i have a requirement.

1)we are using three level approval, where in first level employees immediate manager will approve

2)Second level task will go to the immediate managers manager approval

3)In the third level go the manager of second level manager approval

but here two levels are working fine, when the task moving to the third level, there is no manager or superior for second level manager as per org structuer, so Rule looking for for the superior if its not found its terminating.

But here my requirement is if there is no superior in the next level the Task needs to forward directly to the HR Admin approval.

We are using standard rule with FM HR_ASR_AGENTFINDER.

Kindly adcivce me on this.

Thanks in Advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Assume approvers are A, B and C, where C is the top most approver in the org structure.

1 simple solution would be to use a check condition in your 3rd stage of approval on the user id of the 2nd stage approver. If 2nd level approver was user C, then you can route your approval agent to HR admin, else you can continue to use the normal agent determination method.

Advantage of this method is that it is very simple to implement. Useful if you know that approver C is going to be in that position for long. Dis-advantage is that you have to hard code the user id in the decision step. If C's position is not stable, then you might have to write a code to check on the position id rather than user id.

It all depends on how complex your needs are.

Satish

Former Member
0 Kudos

Thanks for your reply Satish

here we can't hard code the 3rd level user, we are checking with position id's.

Canu plz explain how to check with position id, without modifying the standard rule.

Thanks.

Former Member
0 Kudos

also there are people in third level also, in few cases only we are facing this no third level manager.

When ever rule looking in org sturucture there are people in third level also, that time it wont any prob, but if there is no third level then its creating the problem.

Thanks

Former Member
0 Kudos

for your case, copy the FM HR_ASR_AGENTFINDER into a custom FM. In the new FM include a logic at the end which will help you to set the agent as HR Admin when the manager is not found.

now, you can use a custom rule in your task with this custom FM.