How to Specify the Role of Requestor from Approval Rules?
Would like to migrate Termination approval rules from BPM to Transaction Console- Approval Rules, given that BPM is more challenging to maintain the rules.
Here are the rules we need for termination?
- If termination is initiated by Employee or Manager, Person type = Employee, then route to AOR for approval;
- If termination is initiated by HR users (with specific role like HR Specialist or HR Manager), then auto approved;
How to recognize how initiated the transaction? I know I can use below attribute to identify manager, but how to recognize employee or HR user?
transactionApprovalRequest.Requestor == "RequestManager.managerUsername"