End

Use an End control to stop an automation.

Context

You can use the End control in the following controls that are set in the automation:

Procedure

  1. In your automation, on the right-hand side panel, go to the Controls section.
  2. Drag and drop End in a branch in the automation.
  3. Optional: Set an output parameter.

    The output parameter you define for the main automation is the same as the output parameter for the End control. However, you can set different values for both output parameters.

    1. To add an output parameter for the automation, go to the Input/Output section and select Add New Output Parameter.

    2. Enter a name and a description.

    3. Select the dropdown menu to choose a type (simple type or data type).

  4. Save your automation.

Example

Context

The following use case demonstrates how to set a different output parameter value for the End control.

Procedure

  1. In your automation, on the right-hand side panel, go the Controls section.
  2. Drag and drop the Condition control into your automation canvas.
  3. Drag and drop the End control on the default condition branch.

    If the automation goes through the default branch, the automation will stop instantly.

  4. In the Input/Output section of your automation, select Add new output parameter.
    1. Enter the name status.

    2. Select the type string.

    3. Save your automation.

    As a result, the output parameters of the main automation and the output parameters of the End control call for a status.

  5. Select the End nodes to set the output parameters values:
    1. For the End node on the default branch, set the value Error.

    2. For the main automation, set the value OK.

  6. Save your automation.

Results

If the automation goes through the default condition branch, the automation stops instantly with the output parameter Error. If not, the automation ends with the output parameter OK.