Skip to main content
A complete ends the run successfully and sets the procedure’s one declared output. Every path that succeeds must end at a complete. To build an intermediate value and keep going, use value instead.

Syntax

complete id=release-rejected
The fence takes no attributes after id.

Fields

complete is stricter than value: templates, optional references and ?? fallbacks are not allowed. Build those in a value node first and reference the result.

Example

Two branches of a choice each end with their own complete. Both build the same declared output from the values available on that branch:
cancellation-review.procedure.md
With policy_number: NW-100234 and balance_due: 412.5, the run ends at cancelled and returns:
To return a value you already built, reference it whole: value: $notice_letter.

On retry and resume

  • Nothing after it. A complete has no next step. A node placed after it on the same path is unreachable and fails validation.
  • No falling off the end. Every path that succeeds reaches exactly one complete. Reaching the end of the document without one is invalid.
  • All or nothing. The run resolves the whole value and checks it against the output schema before the run ends. No partial output is ever visible.
  • Fixed output. The output can’t be silently rewritten. A different value needs different data going in, or a new published version.
  • Failure has no output. A run that is cancelled or fails ends with its own outcome and no successful output.

Common errors

See also