Approval workflow logic to identify 2 up Manager
Summary:
Hi All,
We have the below requirement for Approval Workflow.
- if HR initiates the transaction —> Auto Approve
- if Line Manager initiates —- go for approval
- if Line Manager's Manager(1 up manager) initiates — go for approval
We used below logics for Line Manager and HR but if 1 up Manager initiates then the transaction gets auto approved considering the HR condition but not sure if we can create something for 1 up Manager
LM ---- > (transactionApprovalRequest.Requestor == GetManager("LINE_MANAGER",Task.payload.Worker's Current Assignment.result.Assignment Supervisor))
HR --- > (transactionApprovalRequest.Requestor != GetManager("LINE_MANAGER",Task.payload.Worker's Current Assignment.result.Assignment Supervisor))
Tagged:
0