For more information, please refer to this announcement explaining best practices for getting answers to questions.
How to Stop Approval work flow below the level of CEO
Summary:
We have a requirement to stop the approval workflow going to President / CEO.
I found one recommendation of using below string with using AOR but it fails is case of more than 1 direct reportees to President/CEO.
HierarchyBuilder.getPrincipal(GetRepresentative("TOP_PARTICIPANT",Task.payload.Worker's Current Representative.result),-1,"","")
The above string was validated in BPM but failing as mentioned above. The below string is not being validated by BPM and giving error.
HierarchyBuilder.getPrincipal(GetRepresentative("TOP_PARTICIPANT",Task.payload.Requestor's Representative.result),-1,"","")
Any Idea how to cater this scenario. Its creating lot of trouble at client side.