Termination Approval Rule Failing for HR but working for Line Manager
Summary:
I am trying to route Termination approvals differently based on whether the Line Manager (LM) or an HR Specialist initiates the request. I have configured mutually exclusive rules in the Terminate task using the following logic:
Rule 1 (LM Submits - Working):
((transactionApprovalRequest.Requestor == GetManager("LINE_MANAGER", Task.payload.Worker's Current Assignment.result.Assignment Supervisor)) AND (Worker's Proposed Assignment.result.Termination Type == "VOLUNTARY"))
Rule 2 (HR Submits - Failing):
1. ((transactionApprovalRequest.Requestor != GetManager("LINE_MANAGER", Task.payload.Worker's Current Assignment.result.Assignment Supervisor)) AND (Worker's Proposed Assignment.result.Termination Type == "VOLUNTARY"))
2. ((transactionApprovalRequest.Requestor != GetManager("LINE_MANAGER",Task.payload.Worker's Current Assignment.result.Assignment Supervisor)) AND (Worker's Proposed Assignment.result.Termination Type == "IN_VOLUNTARY"))