Specify exception handling for a flow

About this task

You can use Process Manager to monitor for specific exception conditions when a flow is run, and specify handlers to run automatically if those exceptions occur.

You can monitor a flow for the following exceptions:

  • Overrun—the flow runs longer than it should
  • Underrun—the flow runs for an abnormally short time
  • The flow has exit code—the flow ends with a particular exit code
  • Number of unsuccessful jobs—a particular number of jobs in the flow are unsuccessful

Procedure

  1. From the Action menu, select Add Flow Attribute, or right-click in a blank section of the flow definition and select Flow Attribute, and select the Exception Handlers tab. The Flow Attribute dialog box appears.
  2. On the Exception Handling tab, click Add.
  3. In the Exception type field, select the exception you want to handle.
  4. If you chose Runs more than..., in the Expected run time field, specify the maximum time, in minutes, the flow can run before it should be killed.

    If you chose Runs less than..., in the Expected run time field, specify the minimum time, in minutes, the flow can run before it should be rerun.

    If you chose the flow has exit code, in the Value field, choose the operator and value that best define the exit code requirement. For example, greater than 5.

    If you chose number of unsuccessful jobs, in the Value field, choose the operator and value that best define the requirement. For example, greater than 3.

  5. In the Action field, select the appropriate exception handler. In most cases, however, the appropriate exception handler is selected for you, as follows:

    If you monitor for this exception...

    This handler is used...

    Overrun

    Kill

    Underrun

    Rerun

    Exit code

    Rerun

    Number of unsuccessful jobs

    Kill


  6. Click OK. The exception handling specification is added to the list.
  7. Repeat steps 2 through 6 until you have finished specifying exceptions to handle. Click OK.