Functional standard / Definition kinds / Constrains Routine
routine
A reusable repeating duty.
Runtime
The schedule on the definition seeds the instance. /v1/routines/run creates tasks. It does not complete them.
Elements
| Name | Card. | Type | Description |
|---|---|---|---|
| defaults | 0..1 | object | Fields copied onto a new instance. Values given at creation win. |
| approval_required_for | 0..* | code | Extra states that need an Approval to enter. |
| schedule | 0..1 | Schedule | Default every_days, anchor, until, grace_days. |
Example
{ "schedule": { "every_days": 1 }, "defaults": { "title": "Ward vitals", "assignee_role": "nurse" } }