Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion content/docs/automation/approvals.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,12 @@ On finalization the request row gets `status: 'approved'` (or `'rejected'`),
mirrored to the same value, and the record unlocks. The parked run resumes down
the `approve` or `reject` branch.

On an object that declares [`closedStates`](/docs/data-modeling/closed-states),
the record does not unlock there: it is held until the approval is over, and
where the outcome is one of the object's closed values it is then closed to every
caller's change instead of unlocked
([Approvals on an object that declares `closedStates`](#closed-states)).

Statuses in full: `pending`, `approved`, `rejected`, `recalled`, `returned`,
`cancelled` (the platform voided the request, for example because its record was
deleted; `cancel_reason` on the row says why) — the `APPROVAL_STATUSES` constant in `@objectstack/spec/contracts`, which is also
Expand Down Expand Up @@ -997,7 +1003,10 @@ flow's `revise` edge. The submitter reworks the record and `resubmit`s (a fresh
round opens for all approvers) or `recall`s (abandons it). Past the node's
`maxRevisions` budget (default 3) a send-back **auto-rejects** instead. The
flow's approval node must declare a `revise` edge, and that edge must target an
`approval_revise` node, for send-back to be available. A recall from the revise
`approval_revise` node, for send-back to be available. A record that is in one
of its object's [closed states](/docs/data-modeling/closed-states) through
another field stays closed in the revise window, and the submitter cannot rework
it ([An approval that does not mirror onto the closing field](#an-approval-that-does-not-mirror-onto-the-closing-field)). A recall from the revise
window cancels the run; when that run is an item of a batch sign-off (a `map`
over approval items), the recall also wakes the batch, which records the item's
slot as the cancelled marker `{ $status: 'cancelled', $itemRunId }` and moves on
Expand Down
Loading
Loading