Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Uipath maestro flow/Terminate
Reference · Uipath maestro flow

Terminate

Part of Uipath maestro flow. Install the skill and your agent reads this page when it needs the depth.

Terminate

Terminate stops the entire run. In a parallel arm it aborts sibling work; it does not complete the Flow with output values.

Signature: .terminate(name, label?).

.branch('fatal', input('fatal'),
  (yes) => yes.terminate('abort', 'Abort run'),
  (no) => no.step('continue', script({ code: 'return "ok";' })))

Choose Terminate only when the requirement is stop-all rather than return an answer from one path. A green run alone is weak evidence for this node. Use an abort-specific witness: for example, show that a sibling side effect never happened. Do not use the instance status: a terminated run ends Completed, and .terminate() outputs come back null.

Inside a parallel arm it aborts sibling arms, whereas .return(...) only ends its own path. Its mappings are terminal metadata, not a readable action result: out('<terminate>') remains invalid.

Stopping another path at the same Terminate

A Terminate's name is a step name, so another path can stop there with .stepToRef(name) instead of getting a Terminate of its own. The flow then has ONE Terminate with several incoming edges, as the canvas draws it. Needs @uipath/maestro-builder-sdk 6.32.2 or later; an older SDK refuses the ref as REF_INTO_PORT_LIST,

<!--skill-flavor:terminate-ref-sdk-upgrade:start-->

so upgrade with npm install -g @uipath/maestro-builder-sdk@latest.

<!--skill-flavor:terminate-ref-sdk-upgrade:end-->
.stepToList('branch-missing', (b) => b.step('reportMissing', script({ code })).terminate('stopFailed'))
.stepToList('branch-throttled', (b) => b.step('reportThrottled', script({ code })).stepToRef('stopFailed'))

At a glance

Stop the entire Flow run, including sibling parallel arms.

Use it only for stop-all intent; prove cancellation with an abort-specific witness.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.