282 WebSphere Business Integrator Server Foundation V5.1 Handbook
In our case, if the payment fails then the flight and car services will be called in
the forward direction already. Compensation will automatically call the associated
compensating services to cause a reversal of this work.
Flight compensation
We will configure a simple Java service to perform the flight cancellation that gets
triggered by compensation.
1. Locate the Reserve Flight sequence and then find the Invoke Flight
Partner activity inside the sequence.
2. Select the activity and switch to its Compensation properties.
3. Change the Partner Link to FlightBookingSystem, the operation to
cancelReservation, and select FlightBookingRequest from the drop-down
list of input varia ...