Using Virtual Approver
As users complete transactions that require approvals, Virtual Approver determines the appropriate approver and sends a workflow routing. As each approver completes the approval, Virtual Approver determines whether additional approvals are needed and, if necessary, sends additional workflow routings.
To trigger Virtual Approver from a page, use two PeopleCode functions in the record definition that is associated with the page:
-
Use the Virtual_Approver function in the SaveEdit PeopleCode.
This function checks the approval rules that you defined in the approval rules sets and determines whether an item must be routed for approval.
-
Use the Virtual_Router function in the Workflow PeopleCode.
This function routes items to the next step in the approval process.