Building Handlers

Timeout, Fault, and Compensation handlers are generally built the same way. Fault and Compensation handlers can be used in a loop or a complex activity. A timeout handler can only be used in a complex activity.

To create a Timeout Handler:

  1. Set the timeout on the complex activity.

  2. Open the complex activity.

  3. Right-click and select Add_Timeout_Handler.

  4. Close the complex activity.

  5. Connect the Time-out handler node to the flow of activities that are to perform if the timeout occurs before all activities in the complex activity are performed.

 

To create a Fault Handler:

  1. Open the complex activity or loop.

  2. Drag Fault from the Simple Activities tool palette into the complex activity or loop.

  3. Right-click and select Add_Fault_Handler.

  4. Close the complex activity or loop.

  5. Connect the Fault handler node to the flow of activities that are to perform if the fault condition evaluates to True.

 

To create a Compensation Handler:

  1. Open the complex activity or loop.

  2. Drag Compensate from the Simple Activities tool palette into the complex activity or loop.

  3. Right-click and select Add_Compensation_Handler.

  4. Close the complex activity or loop.

  5. Connect the Compensate handler node to flow of activities that are to perform if the compensation condition evaluates to True.