Skip to content

End

An End step finishes the run. It sets an outcome code you can report on, a result (success, failed or cancelled), and an optional output for whoever is waiting for the run.

  • At the end of every path, so each finished run has a clear outcome such as booked, renewed or declined.
  • To return values to an API caller that waits for completion.
  • To return values to a parent workflow that runs this one as a Sub-workflow.
  • A failure should be handled before the run ends. Use an Error handler, which can also end the run.
  • Only one branch is finished and others should carry on. Let that branch stop without an End step, or bring the branches together with a Join first.
Setting What it does
Outcome Required. Default: completed. A code for reporting, such as booked.
Result success (default), failed or cancelled.
Output Name and expression pairs. Returned to a parent workflow or an API caller that waits.
  • The run’s outcome, result and output.
  • Nothing can follow an End step.

An End step finishes the whole run, even if other parallel branches are still going. They are stopped. A path that simply has no next step stops without ending the run.

An online store returns the confirmed delivery slot to the system that started the run.

API / webhook (respond on completion) → MCP tool (book slot, store as slot) → End (outcome slot_booked)

Output:

Name Expression
slot data.slot.window
awb data.slot.awb

The API caller receives:

{ "slot": "2026-12-03 10:00-13:00", "awb": "A99120" }