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.

Get WS-BPEL 2.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.