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
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 achoice each end with their own
complete. Both build the same declared output from the values available on that branch:
cancellation-review.procedure.md
policy_number: NW-100234 and balance_due: 412.5, the run ends at cancelled and returns:
value: $notice_letter.
On retry and resume
- Nothing after it. A
completehas 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
valuenodechoicenodeinvokenode, which returns a child’scompleteoutput to its parent- Run procedures from your system, which shows how to read a run’s output