How to Add Custom Compensation to an Orchestration
An orchestration transaction that is configured as long running can have custom compensation code to reverse or undo the effects of the transaction. If the orchestration has completed successfully and has been called by another orchestration, the calling orchestration can invoke its compensation block using a Compensate shape.
To specify that an orchestration will use custom compensation
In the Orchestration View window, select Orchestration Properties.
In the Properties window, select Custom in the drop-down for the Compensation property.
The Compensation tab appears next to the Orchestration tab at the bottom of the Design Surface.
To design custom compensation for an orchestration
Click the Compensation tab at the bottom of the Design Surface.
The Compensation Design Surface appears.
Add shapes to the Compensation Design Surface just as you would in the Orchestration Design Surface.
For more information, see Adding Shapes to Orchestrations.