Skip to main content

com.sabre.redapp.example3.web.wf.extension.hotel Sample

The com.sabre.redapp.example3.web.wf.extension.hotel sample includes the following functionality:

  • This sample shows how to use CSL Hotel extension points in the Sabre Red 360

  • The sample uses 7 Hotel extension points:

    1. BeforeHotelShoppingExtension

    2. AfterHotelShoppingExtension

    3. BeforeHotelDetailsExtension

    4. AfterHotelDetailsExtension

    5. BeforeHotelBookExtension

    6. AfterHotelBookExtension

    7. AfterHotelModifyExtension

    8. BeforeHotelBookInputExtension

  • Start the hotel flow by using the graphical interface Hotel Search option

hotel web search
  • The sample is triggered when: shopping for hotels, showing hotel details, booking a hotel or modifing pnr. It shows modal with name of extension point. User can click Continue or Cancel button. Click Cancel button to stop workflow. Click Continue button to move to next step.

sample web before hotel shopping ext point
Table 1. Sample description and trigger conditions:
Extension point Action & trigger condition Expected Result

Hotel Shopping

BeforeHotelShoppingExtension

Search for a hotel in any location or in JFK location.

Modal with extension point name is open. If you choose JFK, location has been replaced to DFW.

Hotel Shopping

AfterHotelShoppingExtension

Search for any hotel.

Modal with extension point name is open.

View Rates

BeforeHotelDetailsExtension

Perform View rates for a hotel.

Modal with extension point name is open. If you set GuestCount to 3 in hotel search, this value will be changed to 4.

View Rates

AfterHotelDetailsExtension

Perform View rates for a hotel.

Modal with extension point name is open.

Hotel Sell

BeforeHotelBookExtension

Book any hotel.

Modal with extension point name is open. If you set SupplementalInformation to "foo" in book form, this value will be changed to "bar".

Hotel Sell

AfterHotelBookExtension

Book any hotel.

Modal with extension point name is open.

PNR

AfterHotelModifyExtension

Click modify in PNR.

Modal with extension point name is open.