Type identifier:
flow:cancelCategory: Flow Operations
Cancels a running or scheduled Flow run. Use this node to stop a previously scheduled Flow from running, or to terminate an in-progress run.
Handle | Data Type | Required | Description |
|---|---|---|---|
|
| Yes | Execution trigger input |
|
| Yes | The ID of the run to cancel |
flowExecutionIdstring (CUID2 format)Notes:
flowExecutionId output when schedulingHandle | Data Type | Description |
|---|---|---|
|
| Emitted when cancellation succeeds |
|
| Emitted when cancellation fails |
errorWhen the error handle is triggered, an error object is available with the following structure:
{
message: string; // Description of what went wrong
}Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label for the node |
|
| Yes |
| CUID2 of the Flow to cancel |
flowIdstring (CUID2 format, 25 characters)Notes:
flowExecutionId input must reference a run of this specific Flowtrigger input handleflowExecutionId input valueflowExecutionId is a valid stringWhen cancellation succeeds:
success is triggeredWhen cancellation fails:
error is triggeredScenario | Behaviour |
|---|---|
Missing | Error: "flowExecutionId is a required string" |
Invalid | Error: "flowExecutionId is a required string" |
Run not found | Error: "failed to cancel flow execution: ..." |
Run already completed | Error: "failed to cancel flow execution: ..." |
Run already cancelled | Error: "failed to cancel flow execution: ..." |
Unexpected exception | Error handle triggered, exception logged |
{
"type": "flow:cancel",
"data": {
"label": "Cancel Scheduled Email",
"flowId": "clx1234567890abcdefghij"
}
}Input Handles:
trigger (trigger)flowExecutionId (string)Output Handles:
success (trigger)error (trigger)