Use Case and Sample Code for Ad Hoc Approval Runtime Process APIs
The Ad Hoc Approval feature allows an approver to add a new approval step in an active approval process. For example, if, while approving a request, the Deal Desk concludes that a quote will require additional approvals from Legal and the CFO, creates those approval steps for a quote, decides the sequence for approval, and creates a new approval step. You can create and modify an ad hoc approval process in runtime.
API flow for an ad hoc approval runtime process: