Database Reference
In-Depth Information
In the preceding figure, we performed compensation to scope the BookTicket element,
that is, <compensate scope=" BookTicket"/> , in the booking task service. This
service is a static composition controller with three scopes dedicated to three different
bookings explained in the previous points. As you understand, to the modularity, every
type of booking is a separate service (could be BPEL). You can keep insert and de-
lete operations for every booking type in one service or present them as different BPEL
processes if you want to maintain them in a single SCA. In this case, you can connect
them to the master controller using Mediators ( HotelReservation , BookTicket ,
and CarRent ) and apply (optional) Policies to Mediators as well, as in the previous ex-
ample. Thus, in the preceding figure, we connected to the BookTicketService medi-
ator, WSDL, for reservation and cancellation (from the compensation sequence). Do not
forget to extend your master controller with the Catch(All) exception handler for
technical errors provided by composition members, and we are done.
The realization of the Compensative Transaction SOA pattern by the Ora BPEL compens-
ation handlers is elegant and intuitive, and you can always rely on the business rollback
feature in your static composition controllers.
Search WWH ::




Custom Search