Getmanager function does not work in Manage Contracts to identify initiator as Manager or not
Summary:
We are trying to Identify manager or not manager as requestor for Manage Contracts transaction.
Content (please ensure you mask any confidential information):
In our requirement we have different approvals if Manager did contract update or HR User perform transaction.
So using Get Manager function I wrote simple rules.
1] Manager initiated.
(GetManager("LINE_MANAGER",Task.payload.Worker's Current Assignment.result.Assignment Supervisor) == "Task.payload.transactionApprovalRequest.Requestor")
2] NotManager_Initiated. Initiator is not Manager.
(GetManager("LINE_MANAGER",Task.payload.Worker's Current Assignment.result.Assignment Supervisor) != "Task.payload.transactionApprovalRequest.Requestor")
When a manager user perform the transaction on his direct report, NotManager_Initiated rule is getting triggering.