End

This control allows you stop the automation before the end of your workflow.

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

Using the End Control

  1. In your automation, on the right-hand side panel, go to the Controls section.

  2. Drag and drop End in a loop, in the workflow of your 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 the output parameters.

    1. To add an output parameter for the automation, go to the Input/Output section and click Add new output parameter.

    2. Enter a name and a description.

    3. Click on the dropdown menu to select a type (simple type or data type).

  4. Save your automation.

Use Case Example

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

Prerequisite

You have created the automation an automation.

Procedure

  1. In your automation, on the right-hand side panel, go the the Controls section.

  2. Drag and drop the Condition control in your workflow.

  3. Drag and drop the End control on the default condition branch.

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

  4. In the Input/Output section of your automation, click 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. Click on the end nodes to set the output parameters values:

    1. For the End node, the user sets the value Error.

    2. For the main automation, the user sets the value Ok.

  6. Save your automation.

Result

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.