Handling Exceptional or Abnormal Conditions

Orchestration activities throw exceptions whenever exceptional or abnormal conditions occur. A Catch activity can be added to the Exception Handlers node of the event handler to provide the actions that should be taken for the identified exception.

ClearPath ePortal Exceptions

Refer to Orchestration Exceptions for a complete list of exceptions.

Refer to Orchestration Toolbox Selections for information about what exceptions are thrown by activity.

Handling Exceptions in an Event Handler

A Catch activity can be for a specific exception, such as ReceiveTimeoutException, or for all exceptions that might be thrown by using the Exception exception.

  1. Drag the Catch activity from the Toolbox to the Exception Handlers node of the appropriate event handler.

  2. In the Properties window, select an exception from the ExceptionName list.

  3. If the exception can have multiple exception codes or multiple sub codes, or both, do the following to determine the exact exception that was thrown:

    1. Drag an appropriate Structured Activity under the Catch activity.

    2. In the Properties window, select the Condition property.

    3. In the Edit Condition dialog box, describe that condition to be met.

  4. Add the activities appropriate for handling the exception under the Catch activity.

Creating Custom Exceptions

Throwing an Exception Using Pre-defined Exceptions

A Throw activity can be created if an exception must be thrown that is not thrown by an activity.

  1. Drag the Throw activity from the Toolbox to the Start node of the appropriate event handler.

  2. In the Properties window, do the following:

  3. Select the pre-defined exception from the ExceptionName list.

  4. Set the Message, ExceptionCode, and ExceptionSubCode properties to appropriate values.

    The Catch activity can investigate these properties.

Throwing a Custom Exception

If the exceptions thrown by orchestration activities are not sufficient, a custom exception can be created.

  1. Drag the Throw activity from the Toolbox to the Start node of the appropriate event handler.

  2. In the Properties window, do the following:

    1. Select UserException from the ExceptionName list.

    2. Set the Message, ExceptionCode, and ExceptionSubCode properties to values for the orchestration.

      The Catch activity can investigate these properties.