The CompensateScope element is used to start compensation on a specific scope that has successfully completed. The CompensateScope activity can only be used within Catch, CatchAll, Compensation Handler or Termination Handler elements.
Before adding the CompositeScope element, add one of the following to the Process or Scope element:
A Fault Handler and Catch or Catch All
A Compensation Handler
A Termination Handler
The Compensate Scope activity enables compensation for one specified Scope or Invoke element enclosed into the scope that contains the handler with the Compensate Scope activity by invoking the compensation handler of the Scope or Invoke element.
From the Palette, drag the CompensateScope activity and place it inside the Catch, CatchAll, Compensation Handler or Termination Handler element on the diagram.
Right-click the CompensateScope element and choose Properties.
In the Properties dialog box, configure the following:
Name — Enter an arbitrary name.
Target — From the drop-down list, select a scope or an invoke activity to be compensated.
Documentation — Optionally, write a comment on the activity.