Skip to main content

process-paths

Define, revise, retrieve, list, and deactivate process paths

📄️List process paths

Returns only Active paths by default — matching the retired YAML catalogue's own posture that every consumer's normal read is 'the currently valid set,' not everything that ever existed. Pass ?all=true for the audit view (Active and Deactivated paths). The list is keyset-paginated (REST guideline section 3): `limit` (1-500, default 100) and an opaque `cursor`, in pathId order (the unique key); the answer is `{items, nextCursor}` and `nextCursor` is absent on the last page. Filters (`all`) are repeated on every page request. Any query parameter other than `all`, `limit` and `cursor` is 400 `unknown-query-parameter` (a retired paging parameter such as `after` or `offset` fails loudly instead of reading page one forever).

📄️Revise an Active process path's matchPrefix/requiredCapabilities/cycleTimeP95/eligibility/intake

pathId and direct are not revisable (direct describes a structural routing fact, not an operator-tunable parameter). Returns 422 if the path is Deactivated — a deactivated path is a closed historical record. A no-op revision (identical matchPrefix, requiredCapabilities, cycleTimeP95, eligibility, and intake) is a successful 200 that does NOT republish ProcessPathUpdated. intake (ADR 0034) is optional here: omitting it keeps the current intake.

📄️Deactivate (retire) a process path

Idempotent: deactivating an already-deactivated path is a no-op success and does NOT republish ProcessPathDeactivated. Publishes ProcessPathDeactivated the first time a path transitions to Deactivated. A path that any site's CPT schedule still lists in a cutoff's eligiblePathIds cannot be deactivated (ADR 0026): the request is refused with 409 path-referenced-by-cpt-schedule, naming the sites, and nothing changes — revise those schedules first. A path that an ACTIVE process flow has a stage on cannot be deactivated either (ADR 0042): 409 path-in-active-flow, naming the flows — revise or retire those flows first. This service takes no position on work already assigned to this path in a downstream context — that is each consumer's own operational concern.