Book a demo

← Documentation

Handling Errors in the flow

Overview

The Error step allows the user to define an Error model and map data to it.

Note: Note this option is available only for Contracts with OpenAPI Technology view

Adding Error steps

  1. On the flow canvas, the Error step appears in the Flow Steps menu:

    Adding Error steps screenshot

  2. Drag the Error step to the canvas. Repeat this as many times as necessary to include all possible error codes.

    Adding Error steps screenshot

  3. You may change the Error step name and Error status code by right-clicking on the Error node on the canvas:

    Adding Error steps screenshot

  4. To change the Error stepname, select Edit Name. Type the new name and click on Save.

    Adding Error steps screenshot

  5. To change the Error Status Code, select Edit Status Code. Enter the new status code and click on Save.
    Note: The status code must be unique and not in use.

    Adding Error steps screenshot

  6. To define the error code fields, right-click on the Error step and select Open:

    Adding Error steps screenshot

  7. You may select one of the following options that appear:

    Adding Error steps screenshot

Invoke Step exception handling

The Invoke step:

  • might return an applicative error (e.g. No Record Found) that needs to be handled with a condition because it is valid data returned from the backend.
  • might return a system error (exception) that the flow will catch if an On Error exception handling is defined.
  • might cause the flow to stop if a system error (exception) occurs and an On Error exception handling is not defined. For example, the backend connection details are broken and the flow can not invoke the RPC program.

To set up the Error handling:

  1. Right-click on the Invoke Step that will trigger the error and select Open:

    Invoke Step exception handling screenshot

  2. The Invoke step opens below:

    Invoke Step exception handling screenshot

  3. Click on On Error:

    Invoke Step exception handling screenshot

  4. Select the appropriate node to handle the error from the Connect to options. For an Existing Output/Error step, select from the list:

    Invoke Step exception handling screenshot

  5. Click on Save:

    Invoke Step exception handling screenshot

  6. The Invoke step is mapped to the selected Error step on the canvas:

Read more

Tell us about yourself

You've been browsing the catalog. Leave your details to keep exploring.

Privacy policy