Using the BPEL Designer and Service Engine

Using the Compensate Element

The Compensate element is used to start compensation on all inner scopes that have successfully completed. The Compensate activity can only be used within Catch, CatchAll, Compensation Handler or Termination Handler elements.

Before adding Compensate element to the process, be certain to add one of the following to either the Process or Scope element:

The Compensate activity causes compensation of all scopes immediately enclosed in the scope containing the fault handler, compensation handler, or termination handler with the Compensate activity.

Usage

From the Palette, drag the Compensate activity and place it inside the Catch, CatchAll, Compensation Handler or Termination Handler element on the diagram. The Compensate activity requires no property configuration, its behavior is predefined.