CompensateCompensate

When an error occurs you can use compensation to roll back portions of the process that have already completed. What is Compensation?

There are two compensation activities; Compensate and Compensate Scope. The Compensate activity does not identify an enclosed scope and so executes the compensation handler on all qualified enclosed scopes, reversing the order of their completion. Compensate Scope, on the other hand, specifies one particular inner scope, one that has successfully completed, for compensation.

Both activities can only be used from within a fault handler or another compensation handler.

To add a Compensate activity:

  1. From the Palette, drag a Compensate activity to the BPEL Editor.
  2. Optional. In the Properties view, provide a name and description of the compensate activity.
  3. Build a compensation handler. See Using Compensation Handlers.
Related Topics
Bullet What is Compensation?
Bullet Using Compensation Handlers
Bullet CompensateScope