Condition to check if requestor is the second level manager of the employee
Summary:
Content (please ensure you mask any confidential information):
We need to build a condition to check if the requestor is the second level manager of the employee for whom the leave is getting applied on system. How can we achieve this?
I found the below expression but it is not working for absence.
BPMHierarchyBuilder.getManager("supervisory",GetManager("LINE_MANAGER",Task.payload.Worker's Current Assignment.result.AssignmentSupervisor),-1,null,"LINE_MANAGER") == Task.payload.transactionApprovalRequest.Requestor
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):