Summary
In this chapter, we learned about compensation in WS-BPEL 2.0 in detail. It lets us define a compensation logic as per a <scope>
or an <invoke>
activity and trigger it from <catch>
, <catchAll>
, <compensationHandler>
, or <terminationHandler>
using <compensate>
or <compensateScope>
. We used a book ordering process to explain the concepts in detail. Therefore, at the end of this chapter, the reader is capable of specifying compensation handlers and can trigger them in BPEL processes to undo activities in the business processes that have already completed normally.