AlmondTill/G3N API

Saga

object type

A Saga — the cross-boundary / multi-step mutation record-of-truth: each step advances status AND commits its effect in ONE transaction; the record IS the durable state machine. Isolation = the semantic lock. System-minted end to end: the wire is read-only (no create/edit/transition mutations exist — lifecycle is kit-channel; the first live records mint with the first genuinely multi-step process, checkout). failed is the terminal — compensation itself could not complete; recovery is a NEW linked saga, never a resurrection.

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like SG-… — stable for the record’s life.
typeString String!The kind of record — always Saga here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of pending, running, compensating, completed, compensated or failed.
parentIdID ID!The parent org group; for a Saga parentId === rootId.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
sagaTypeSagaType SagaType!The canned process kind. Immutable at birth.
lockAggregateIdID ID!The aggregate the semantic lock isolates — e.g. the Order under checkout. Immutable at birth.
participantsSagaParticipant [SagaParticipant!]!The construct refs this saga's steps touch (1..32, distinct). Immutable at birth.
compensationLogSagaCompensationEntry [SagaCompensationEntry!]!The compensation audit log (born empty; appends while compensating, ≤ 64 — the failed terminal's last line records why). Server data, never caller-writable.
sfExecutionArnStringNull on SF-less sagas and the degraded lane. The ops/reconcile handle.
taskTokenStringThe live WaitForTaskToken callback token. Present ⟺ the execution is paused at the external wait; kit-stamped.

Used by