How requests are generated (policy + workflow)
You rarely create an approval by hand. Instead, a policy — either a Workflow Management rule on a document type, or a chain configured on a request type — creates the request automatically when a matching document or internal request is submitted.
Purpose
This page explains where approval requests come from, so you know where to adjust things when a document follows the wrong chain or does not appear in anyone’s queue.
When to use
- When you need to understand why a PO, expense or request did (or did not) produce an approval.
- When you are about to configure rules for a new document type.
Before you start
| Two sources of requests | Configured in | Permission |
|---|---|---|
| Business documents (invoices, purchase orders, leave…) | Rules and policies at /approvals/rules; workflow templates at /approvals/automation/workflows | workflow:write |
| Internal requests submitted by employees | Request types at /approvals/settings/request-types | requests:manage |
Understand the policy
In Workflow Management, a policy says, for example, “every PO over 50 million routes to the department head, then Finance.” For internal requests, the equivalent is the approval chain configured on the request type itself (see Configuring request types and approval chains).
The source app triggers it
When a matching PO, expense, leave request or internal request is submitted, the policy fires and creates an approval request in Approvals.
The chain runs
The request moves step by step through the configured approvers; every approval, rejection or return for revision is recorded, and the source document status is updated in step.
A step condition can only read the keys that the source module actually sends. If a condition asks for a key that is not in that data, the condition is false and the step is skipped. Build conditions from the key list the builder shows you.
Each document type has only one active workflow, so a document is never in two chains at once. Changing the document status is the job of the module that owns the document, not of the approval step.