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.
When to use it
Section titled “When to use it”- At the end of every path, so each finished run has a clear outcome such as
booked,renewedordeclined. - 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.
When not to use it
Section titled “When not to use it”- 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.
Settings
Section titled “Settings”| 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. |
What it produces
Section titled “What it produces”- 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.
Example
Section titled “Example”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" }