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:
Set the timeout on the complex activity.
Open the complex activity.
Right-click and select Add_Timeout_Handler.
Close the complex activity.
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:
Open the complex activity or loop.
Drag Fault from the Simple Activities tool palette into the complex activity or loop.
Right-click and select Add_Fault_Handler.
Close the complex activity or loop.
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:
Open the complex activity or loop.
Drag Compensate from the Simple Activities tool palette into the complex activity or loop.
Right-click and select Add_Compensation_Handler.
Close the complex activity or loop.
Connect the Compensate handler node to flow of activities that are to perform if the compensation condition evaluates to True.