Skip to content
Development preview · 2.0.0-SNAPSHOT

Durable terminology

Use this page to look up API and implementation names while reading Durable architecture. For example, a Run can represent one execution of an order-processing flow. Waiting for payment creates a Wait, and creating a shipment can be an Effect. Saved positions and variables let a Worker resume the flow after a restart.

Java types, enums, configuration keys, and wire fields keep their source spelling. Other engine and deployment terms are in the project glossary.

Term Meaning
Process definition Model source supplied by the caller. ProcessDefinition.Inline contains model type, process code, and exact text, without a version, Alias, or deployment metadata.
Process artifact Execution data supplied by Deploy: exact version, verified definition, digest, and direct call bindings. Release metadata stays in the publication record. Durable separately saves its definition and recovery state.
Process version An immutable published identifier, (namespace, code, version). Version identifiers cannot be reused.
Alias A route to published versions. Changes can send new invocations or Runs to another version; an existing Run never resolves it during recovery.
Process invocation One ProcessEngine.execute or trigger call. The engine does not save progress across calls; the application manages any state needed between them.
Durable run An execution that can be recovered, bound to an exact stored Process. Its optional Version records the start source; recovery uses the saved Process.
Trigger Selects where a local ProcessEngine invocation starts. It does not complete a Durable Wait.

Distinguish a specific process definition from its format, such as TBBPM or BPMN. A protocol specifies data transport, database operations, or synchronization rules.

Waits, external operations, and recovery state

Section titled “Waits, external operations, and recovery state”
Term Meaning
Wait occurrence One persisted external wait. Its WaitToken identifies that wait, not a Worker attempt, lease, delivery, or business operation.
Complete Wait DurableProcessEngine.completeWait saves a result that matches the Wait’s declared type. A Worker reads that result and executes the next steps; the API itself does not synchronously execute the remaining process or complete the Run.
Effect An Action using effect execution to interact with an external system. Its request and result are saved separately. It remains an Action rather than a new node type.
Semantic checkpoint Where execution resumes, including scope and control frames but no process variables.
Continuation snapshot The checkpoint and typed process variables needed to continue. It contains neither generated code nor current application implementations.
Frontier One path within a continuation that can run or is waiting. Persisting the path order makes scheduling deterministic.
Turn A batch of work a Worker performs under one Run lease. It can contain multiple Machine turns; normal completion saves its progress in one Store transaction.
Machine turn One step-bounded DurableProgram.advance(...) call. It selects a runnable path and returns MachineTurnResult.

A Machine turn is one call to the internal executor, not necessarily one database commit. Under one Run lease, a Worker may call advance(...) several times, including entering or returning from a child process. These calls share a step budget. The Worker then saves the recovery state, markers for processed results, new Wait/Timer/Effect records, and the Run’s updated state in one Store transaction.

Term Meaning
Journal Append-only audit and diagnostic records. Recovery does not replay the Journal, and its records do not correspond one-to-one with Outbox events.
Outbox Persists supported integration events for delivery. Delivery can repeat; consumers deduplicate by event ID. See the Outbox runbook for failed deliveries.
Run view Lifecycle information returned by getRun and listRuns, sanitized and without business payloads.
Run result getRunResult returns NotFound, NotCompleted, Succeeded, Failed, or Cancelled. Only Succeeded includes business output. NotFound does not prove that Start never committed; a failed or cancelled Run may still have unresolved external Effects.
Command Groups fields that must be checked together for privileged or deployment operations, such as revision, actor, reason, and audit context. Frequent application calls take direct arguments.
Query Immutable filters, ordering, limits, and cursor for a read operation.