Approval chain
Section titled “Approval chain”This pattern is for builders whose records need someone’s agreement before they count: a request a manager must approve, a vacancy HR must review, an answer a support manager must sign off. Read it after My First Application and Workflows & approvals.
The problem
Section titled “The problem”An approval is a decision by a particular role — the requester’s manager, the HR team, the director for large amounts — at a particular moment. The process must reach the right person even when people change jobs or go on leave, must offer “not yet” as well as “no”, must leave a record of who decided and why, and must not wait forever. Approvals built from a status field that people edit, or from steps that name individual employees, fail on every one of those counts.
When to use it
Section titled “When to use it”Use a workflow-based approval chain whenever:
- a record must not move on until a specific role has agreed;
- the approver depends on the record — the requester’s manager, the person in an Assigned to field, a director only above an amount;
- you need the decision and its comment in the record’s history;
- the decision must happen within a time limit.
If nobody has to decide anything — the record only needs people to be told — a reaction is enough; you do not need a step.
How to build it in OSOS
Section titled “How to build it in OSOS”- Open the entity’s designer (Administration › Applications › Modules, open the module, open the entity, and edit it) and select the Workflows tab. A new workflow starts with an Initial Step and a Complete Step; the initial step is always owned by the person who created the record.
- Add one step per decision, not per person. For each step choose the owner by
role — see Choose who acts at a step:
- the submitter’s manager — User, User Type Previous Step Owner, Step Name the initial step, Relative on, Relation Manager, Relation Grade 1 (or 2 for the manager’s manager);
- a team — Group, Group Type Fixed, then Single User with Take Ownership (anyone in the team claims it) or Org Unit Manager, or All Users when several members must each decide;
- a person named on the record — User, User Type Field.
- Fill in Fallback Assignment 1 — the designer requires it whenever the owner is not one fixed person. End the fallback chain with one specific person.
- In Create New Step, tick Return and Reject for each approval step. Rename the actions — Return for changes, Reject — and set their Action comment status to Required so the approver must say why. See Return for changes, or reject.
- For amount- or type-based routing, open the main action and use Expression based target › Add Conditional Step: for example, send requests over a threshold to a Director approval step and the rest straight on. Conditions are checked in order; the first true one wins.
- Open each step’s Requirements and set the fields: what the submitter entered is Locked for the approver; the approver’s own comment field is Editable or Mandatory. See Control the fields at each step.
- Turn on Timing on steps that must not wait, and add an On Time Exceeded reaction to escalate. See Time limits and escalation.
- For a stage several processes share — a standard budget approval — build it once as its own workflow on the same entity and call it from a Sub-Workflow Step. See Reuse a process: sub-workflows.
- For a high-stakes action, turn on Require step-up verification before
execution in its Action Settings
Since 1.10, so the approver confirms who they are first. See Ask for identity confirmation before an action. - Save and test every route — approve, return, reject and each conditional route — as the real owners. See Test your workflow.
Two more options under the owner help in real life: Enable Reassign lets an approver hand the step to a colleague, and Allow Adhoc step lets them ask someone else for an extra opinion; the record then comes back to them automatically.
Worked example: two approval chains from the tutorials
Section titled “Worked example: two approval chains from the tutorials”Customer Support — a manager sign-off that never dead-ends. In the Customer Support tutorial, the Help Desk step can send a ticket to Manager Approval, owned by the Support Manager (User, Fixed). Both of its actions, Approve and Reject, go back to Help Desk. A rejected answer is not the end of the ticket — the desk reworks it — so routing Reject to Help Desk rather than to Complete Step is the right design. The desk step itself is owned by the Technical Support Office group with Take Ownership, and Fallback Assignment 1 names the Support Manager.
To harden it for production:
- set Reject’s Action comment status to Required, so the desk learns why the answer was refused;
- if the manager will change, replace the fixed owner with a group of managers (Group, Fixed, Single User, Take Ownership) — the step then survives staff changes.
Recruitment — a chain of roles. In the Recruitment tutorial, a job application goes from Request processing (an HR member: Group HR, Single User, Take Ownership, with a fixed-user fallback and Allow Adhoc step) through the interviews to Job offer, owned by the HR manager: Group HR, Single User, Choose Selection Type Org Unit Manager, again with a fixed-user fallback. The interviews are owned by an HR member in the same way, and the task steps that follow an interview by Previous Step Owner, so the HR member who ran the interview also handles the task. Every reject action routes to an Archive candidate step, which can Reset the application to Request processing — a rejection that can still be undone.
Anti-patterns
Section titled “Anti-patterns”- One step per approver’s name. A step owned by Lina breaks the day Lina leaves. Own steps by role — a group, the submitter’s manager, a field — and keep fixed people for fallbacks.
- Approving by editing a status field. A Status field set to Approved by hand has no owner, no time limit, no required comment and no workflow history. Make the decision a workflow action; let a reaction set any status field — see Request and ticket lifecycle.
- No fallback owner. If the owner cannot be found and no fallback works, the record cannot move to that step. Always end the chain with one specific person.
- A rejection that dead-ends silently. A Reject with an optional comment that ends the workflow leaves the submitter guessing. Require a comment, notify the submitter with a reaction, and offer Return for changes when the request can be fixed.
- Copying the same approval stage into several workflows. Every copy has to be changed separately. Build it once and call it as a sub-workflow.
Related pages
Section titled “Related pages”- Workflows & approvals — every step, owner and action setting
- Publish a service with an approval workflow
- Request and ticket lifecycle
- Reaction-driven automation
- Working hours & holidays — the schedules time limits count against
- Application design patterns
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27