Previous Topic: Exception HandlingNext Topic: Run Processes Interactively


Create Exception Handlers

Exception handlers let you create sequences of operators for the following predefined exceptions in a process:

Aborted

Occurs on a user-specified or operator abort.

System Error

Occurs with any type of communication failure. For example, when the process contains an incorrect touchpoint name or it refers to an agent that is not running.

Timeout

Occurs when both of the following circumstances are true:

Unidentified Response

Occurs when no output connector corresponds to the response.

Follow these steps:

  1. Click the Designer tab.
  2. Click Open, navigate to the folder with the process to open, select the process, and click Open.
  3. Select the Exception Handler tab.
  4. Expand the Standard folder in the Operators palette and drag the Exception operator to the process.
  5. Expand the Exception operator properties dialog.
  6. Expand Information and type a name in the Name field.

    Note: The best practice is to name operators in a default exception handler with a prefix so they do not match operator names in the process that loads the default exception handler.

  7. Expand Exception Occurred.
  8. Select an exception type from the drop-down list.
  9. From the palette, drag more operators to the process that completes the rule for the exception. Link the operators in the execution sequence.

    Note: If you finish the sequence without adding any Stop operators, the main process resumes. Optionally, you can stop the process for one or more paths in the Exception Handler.

  10. In the toolbar, click Save.

    The new exception rule is added.

As part of exception handling, you can reset the operator and then continue the process. You can also select to ignore an exception and continue with the process. To ignore an exception, set the operator in simulate mode and continue with the process. The Reset operator resides on the Common palette. You can use the Reset operator in the process pane, exception handler, and lane change handler.

Follow these steps:

  1. Right-click Add, Reset to add a Reset operator.

    The text box displays an entry with a drop-down list from which to select one of the operators in the current process. You can add multiple operator names.

  2. To manipulate an operator name, click Delete, Move Up, and Move Down as appropriate.
  3. Enter an expression that resolves to a string (for example, operator name) or a list of values (for example, operator names) at run time. Take this action instead of selecting an operator name from the drop-down list.
  4. Select or clear Continue with Result.
    Selected:

    Makes the EndCondition option available to select either Successful or Unsuccessful.

    Successful:

    If an error condition is met at run time, CA Process Automation assumes that the selected operators are successful. It continues with the rest of the process flow.

    Unsuccessful:

    If an error condition is met at run time, CA Process Automation assumes that the selected operators failed. It continues with the rest of the process flow.

    Cleared:

    If an error condition is met at run time, CA Process Automation resets the selected operators, then continues with the process flow.

  5. (Optional) To ignore an exception and continue the process, add a Reset operator in the exception handler mode to ignore the exception:
    exceptionStart-<operator-name>.Source
    

Note: When you add a field to the Reset operator Operators List, the process Loop operator names appear in the drop-down list of the new field. The Reset operator resets all operators in the Loop operator and resets the Loop operator to the first iteration. After the reset, the Loop operator restarts from the first iteration. Because the Loop operator does not support simulation, the Reset operator always resets a Loop operator. The Loop operator resets and the following field values are ignored: