You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 831311e
Browse filesBrowse the repository at this point in the historyBrowse files
- Best practice 2 now says that deleting a record whose approval is pending is not refused: the delete lands, cancels the request and cascades the record's `master_detail` child rows. It is refused whole with `409 RECORD_LOCKED` only where that cascade has no single transaction to run in, or a child row has a second cascading parent.
14
+
- Best practice 2 now says that deleting a record whose approval is pending is not refused: the delete lands, cancels the request and cascades the record's `master_detail` child rows. It is refused with `409 RECORD_LOCKED` only where that cascade has no single transaction to run in, or the child object declares a second cascading relation (another `master_detail`, or any field declaring `deleteBehavior: 'cascade'`).
15
15
- The `lockRecord` config row states its bound again: it locks the record from edits.
16
16
- Best practice 2 no longer names a parent field group as a way a `lookup` child is shown in the record's details: a group places a `lookup` child only when it already declares `relatedList: 'primary'`.
Copy file name to clipboardExpand all lines: skills/objectstack-automation/references/state-machines-and-approvals.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -334,7 +334,7 @@ Object-hook `ctx` is a different vocabulary — see **objectstack-data**
334
334
| Field | Purpose |
335
335
|:------|:--------|
336
336
|`approvers`| Who may act (≥ 1 — see Approver Types above). Each approver may carry an optional **`group`** label (e.g. `{ type: 'position', value: 'crm_auditor', group: 'finance' }`) — with `behavior: 'per_group'`, approvers sharing a label form one group; unlabelled approvers each form their own |
337
-
|`behavior`|`first_response` (first approver decides), `unanimous` (all must approve), `quorum` (`minApprovals` of N — M-of-N collective sign-off), or `per_group` (EACH approver `group` must reach `minApprovals` — one-from-each-group sign-off). In every mode a single rejection finalizes the node as `rejected`. Default `first_response`|
337
+
|`behavior`|`first_response` (first approver decides), `unanimous` (all must approve), `quorum` (`minApprovals` of N), or `per_group` (EACH approver `group` must reach `minApprovals`). In every mode a single rejection finalizes the node as `rejected`. Default `first_response`|
338
338
|`minApprovals`| Approvals required — total for `quorum`, per group for `per_group`. Omitted ⇒ ALL resolvable approvers under `quorum`, `1` per group; clamped at runtime so a misconfiguration can never deadlock |
339
339
|`lockRecord`| Lock the record from edits while pending. Default `true`|
340
340
|`approvalStatusField`| Business-object field to mirror `pending`/`approved`/`rejected`/`returned`/`recalled` onto (should be readonly) |
@@ -370,9 +370,9 @@ These are wired on the **graph**, not in node config:
370
370
the record and its `master_detail` child rows only: a `lookup` child shown
371
371
in the record's details (`relatedList: 'primary'`) stays editable (warning
372
372
`approval-detail-editable-while-pending`). Deleting the pending record
373
-
still lands, cancelling the request and cascading those rows; it is refused
374
-
whole (`409 RECORD_LOCKED`) where the cascade lacks one transaction or
375
-
a row has a second cascading parent.
373
+
still lands, cancelling the request and cascading its `master_detail`rows;
374
+
it is refused (`409 RECORD_LOCKED`) where the cascade lacks one transaction
375
+
or the child object declares a second cascading relation.
376
376
3.**Notify the submitter from downstream nodes** wired to the `approve` /
377
377
`reject` edges. Opening already tells each resolved approver
378
378
(`approval.requested`); ⛔ no `notify` node for the opening: it tells
0 commit comments