Using the BPEL Designer and Service Engine

Using the CompensateScope Element

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:

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.

Usage

  1. From the Palette, drag the CompensateScope activity and place it inside the Catch, CatchAll, Compensation Handler or Termination Handler element on the diagram.

  2. Right-click the CompensateScope element and choose Properties.

  3. 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.