Compensate
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
- From the Palette, drag a Compensate activity to the BPEL Editor.
- Optional. In the Properties view, provide a name and description of the compensate activity.
- Build a compensation handler. See Using Compensation Handlers.
More information