Expand description
What the schema generator writes for a workflow: its steps as data, and the one trait that performs what only typed code can.
A WorkflowSpec is the compiled form of a schema/workflows/<name>.workflow.yaml with
config.executor: engine. The generated module carries it as JSON (WorkflowSpec::from_json)
beside a WorkflowDefinition implementation, which does the three things a spec cannot say:
call an entity’s generated service (create, update, delete, query, fetch), move a record
through its state machine, and call the hand-written verbs and functions of the workflow’s
Actions trait.
Structs§
- Branch
- One branch of a condition step; the first whose
whenholds is taken, a branch with nowhenis theelse. - Call
- What a
WorkflowDefinitionis asked to perform. - Comp
Step - One compensation step.
- Emit
Spec - An event a terminal step stages.
- Failure
Spec - What a step does when it fails.
- Outcome
- What a step does when it succeeds (or when a wait is answered or times out).
- Retry
Spec - The retry policy of a workflow or of one step.
- Step
Spec - One step.
- WaitKey
- One equality of a wait’s condition: the event’s field must equal the context expression.
- Workflow
Spec - The compiled workflow.
Enums§
- Backoff
- How long to wait between attempts of a step that failed for a transient reason.
- Step
Kind - What a step is.
- Terminal
- How a terminal step ends the instance.
Traits§
- Workflow
Definition - A workflow the engine can run: its spec, and what only typed code performs.