Elements can set bindings that define how the workflow behaves if it encounters an error in that element.

Prerequisites

Verify that the Schema tab of the workflow editor contains elements.

Procedure

  1. Place the pointer on the element for which you want to define exception binding.

    A blue and a red arrow appear on the element's right.

  2. Place the pointer on the red arrow until it enlarges, hold down the left mouse button, and drag the red arrow to the target element.

    A red dashed arrow links the two elements. The target element defines the behavior of the workflow if the element that links to it encounters an error.

  3. Click the element that links to the exception handling element.
  4. Click the Exceptions tab in the schema element properties tabs at the bottom of the Schema tab.
  5. Click the Not set button to set the Output Exception Binding value.
    • Select a parameter to bind to the exception output parameter from the exception attribute binding dialog box.

    • Click Create parameter/attribute in workflow to create an exception output parameter.

  6. Click the target element that defines the exception handling behavior.
  7. Click the IN tab in the schema element properties tabs at the bottom of the Schema tab.
  8. Right-click in the IN tab and select Bind to workflow parameter/attribute.
  9. Select the exception output parameter and click Select.
  10. Click the OUT tab for the exception handling element in the schema element properties tabs at the bottom of the Schema tab
  11. Define the behavior of the exception handling element.
    • Right-click in the OUT tab and select Bind to workflow parameter/attribute to select an output parameter for the exception handling element to generate.

    • Click the Scripting tab and use JavaScript to define the behavior of the exception handling element.

Results

You defined how the element handles exceptions.

What to do next

You must define how to obtain input parameters from users when they run the workflow.