๐Ÿ‡ฌ๐Ÿ‡ง EN
๐Ÿ‡ฎ๐Ÿ‡น IT

๐Ÿ›‘ Stop

Explicitly terminates the workflow run with a specified status โ€” completed or failed. Use at the end of conditional branches to signal definitive outcomes clearly.

Category: Flow Control  ยท  Type identifier: stop

Overview

When a workflow reaches a Stop node, execution ends immediately. No further steps are executed regardless of what comes after it in the graph or the linear sequence. The run is recorded in the run history with the status and message you specify.

While a workflow that simply "runs out of steps" also finishes, the Stop node makes the intention explicit. This is especially important at the end of conditional branches, where you want to be clear about whether the branch represents a successful outcome, a deliberate early exit, or an error condition.

Stop is most commonly placed at the end of the false branch of a Logic Gate, at the end of each arm of a Switch, and anywhere you detect an unrecoverable error and want to surface a clear failure message in the run log.

Stop produces no output. Because execution terminates immediately, there are no output variables to reference in subsequent steps โ€” there are none.

Configuration

Field Status Description
Status Required completed โ€” the run finishes and is marked as successful. Use this for intentional early exits where everything went as expected.

failed โ€” the run finishes and is marked as failed. Use this for error conditions or business rule violations that should be visible as failures in the run history.
Message Optional A human-readable explanation logged alongside the run result. Visible in the run detail view. Supports {{ variable }} references. Keep it short and informative โ€” this is what you will read when reviewing run history.

Output Data

None. The Stop node terminates execution. It does not produce any output variables.

Example Usage

Reject a workflow run when approval is denied

An approval workflow checks whether a reviewer has approved a request. If they have rejected it, the workflow should stop and record a clear failure message.

  1. Add a Logic Gate node that checks:
    Field: {{ review.output.decision }} Operator: equals Value: rejected
  2. Connect the true port (decision equals rejected) to a Stop node.
  3. Configure the Stop node:
    Status: failed Message: Request rejected by {{ review.output.reviewer_name }} on {{ review.output.reviewed_at }}
  4. Connect the false port (not rejected) to the next step in the approval workflow, which fulfils the request.

Early exit on missing data

Before processing an order, verify that the required fields are present. If critical data is missing, stop cleanly rather than allowing downstream steps to fail with cryptic errors.

// Logic Gate: order.output.customer_id is null โ†’ true branch โ†’ Stop Status: failed Message: Order {{ trigger.output.order_id }} is missing a customer ID. Processing aborted.

Tips & Notes

Related Nodes