Compensation
Compensation, or undoing steps in the business process that have already completed successfully, is one of the most important concepts in business processes. Let us discuss the compensation on our travel process and suppose that in addition to checking the flight availability, our business process would also have to confirm the flight tickets, make the payments, reserve a hotel room, and make the payment for the hotel room. If the business travel is canceled (for various reasons) the reservation and payment activities would have to be undone compensated. In business processes, the compensation behavior must be explicitly defined. Therefore, when defining the BPEL process, we would have to explicitly define how to compensate the flight ticket confirmation, how to compensate the flight ticket payment, and so on.
Note
The goal of compensation is to reverse the effects of previous activities that have been carried out as part of a business process that is being abandoned.
Compensation...