Skip to content

Terminate

How-to4 minPractitioner

Before you start

A Terminate step ends the workflow right there, with the response and message you choose. It suits a workflow that checks rules before a save, and refuses the save with a clear reason.

Put it at the end of a Decision path that should not continue. For example, if a contract has no end date, stop and tell the user. A Terminate ends its path.

  1. Click + on the path that should stop and choose Terminate. It sits in the Logic group.
  2. Under End the workflow as, choose Success, Warning or Failed.
  3. Under Message, write what the person should read. Use Insert data to include a value.
A Terminate step selected, with the End the workflow as cards and a Message box on the right.
    End the workflow as decides how the run is treated.
    Message is what the person reads.
EndingWhat happens
SuccessStops here. Everything above stands
WarningStops and shows the message as a warning
FailedStops, marks the run as failed and, before a save, blocks the save

The Message is a Smart Script: plain text works, and you can add values from fields.

Worked example: refuse a contract without an end date

Section titled “Worked example: refuse a contract without an end date”

Omar’s contract workflow runs before the save. A Decision checks Contract end date is empty. On Yes, a Terminate set to Failed shows: “Add an end date before saving this contract.” The record is not saved until someone fills it in.

  • It ends the whole workflow, even inside a loop or on one path of a Decision.
  • In a workflow that runs before the save, this message is what the person saving sees.

Check yourself

A Terminate sits inside a Loop. What does it stop?
Show the answer

The whole workflow. Terminate ends the whole workflow, even inside a loop or on one path of a Decision.

Layla adds a Terminate set to Failed. What should she write under Message?
Show the answer

What the person should read, such as "Add an end date before saving this contract.". Always write a Message. It is what the person reads.

What's next

Last checked