You can define how errors in a specific workflow element are handled during a workflow run by adding an error handler to the workflow element. You can add an error handler only to workflow elements that do not have a specified error path.

Before you begin

  • Create a workflow.

  • Open the workflow for editing in the workflow editor.

  • Add some elements to the workflow schema.

About this task

Important:

Workflows that contain a Handle error element are not compatible with Orchestrator 5.5.x or earlier.

Procedure

  1. Drag a Handle error element to the appropriate element in the workflow schema.

    A dialog box appears.

  2. From the drop-down menu in the dialog box, select how errors should be handled.

    Option

    Description

    Throw exception

    When an error occurs, an exception is thrown. You can modify the exception binding.

    Call a workflow

    When an error occurs, a selected workflow runs.

    Custom script

    When an error occurs, a custom script runs.

  3. Click Select.

Results

You added an error handler to a workflow. When the workflow reaches this element, it performs the selected action before ending its run.