Breadcrumb
- Sabre Red 360 Software Development Kit Help
- Web Red Apps
- Web Modules
- Examples
- com.sabre.redapp.example3.desktop.auto.wf.extensions.hotel Sample
com.sabre.redapp.example3.desktop.auto.wf.extensions.hotel Sample
The com.sabre.redapp.example3.desktop.auto.wf.extensions.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:
-
BeforeHotelShoppingExtension
-
AfterHotelShoppingExtension
-
BeforeHotelDetailsExtension
-
AfterHotelDetailsExtension
-
BeforeHotelBookExtension
-
AfterHotelBookExtension
-
AfterHotelModifyExtension
-
BeforeHotelBookInputExtension
-
-
The sample is triggered in specific conditions described in the table below:
Extension point | Action & trigger condition | Expected Result | |
---|---|---|---|
Hotel Shopping |
BeforeHotelShoppingExtension |
Search for a hotel with HH and SI chain code |
HH should be removed from the search results list. |
Hotel Shopping |
AfterHotelShoppingExtension |
Search with Sabre Property Rating = 5 |
"Workflow canceled" should appear |
View Rates |
BeforeHotelDetailsExtension |
Perform View rates for a hotel with three guests |
Currency should be replaced to "GPB" on view rates results |
View Rates |
AfterHotelDetailsExtension |
Perform View rates for a hotel with Chain Code = 7B |
"Workflow canceled" should appear |
Hotel Sell |
BeforeHotelBookExtension |
The person’s first name should differ from "Sabre" during selling. |
Replace provided credit card during selling with GVI4XXXXXXXXXXX1111EXP 03 25-SAMPLELASTNAME |
Hotel Sell |
AfterHotelBookExtension |
Sell hotel in DFW with "SI" chain code containing "Sheraton" word in hotel name |
Browser with "YourOwnWebsite" should appear. The website should display proper value for confirmation, hotel address, and room type. |
PNR |
AfterHotelModifyExtension |
Change traveler name. It should contains word "TEST". |
Browser with "YourOwnWebsite" should appear. The website should display proper values for traveler name, checkIn, checkOut and others. |
Running the Sample
-
In Eclipse, import the com.sabre.redapp.example3.desktop.auto.wf.extensions.hotel plug-in into your workspace and add it to your run configuration.
-
Launch Sabre Red 360 from your run configuration, and log in with your CERT Sabre ID. Make sure that you have CSL enabled.
-
Start the hotel flow by using the graphical interface Hotel Search option

-
The sample triggers changes when: shopping for hotels, showing hotel details and booking a hotel
Sample for the dynamo.hotel.modify:afterHotelModify
extension point
This sample demonstrates what data can be accessed in the dynamo.hotel.modify:afterHotelModify
extension point.
Graphical hotel modify workflow is triggered by clicking on the options icon in hotel segment in Trip Summary and selecting the Change dates
option. Subsequent modals are presented to the user to allow hotel modification. After the hotel modification is completed, extension point will be executed. Below you can see a sample extension point page, showing what data were accessed for a sample hotel modification:
For more details please examine implementation of com.sabre.redapp.example3.auto.wf.extensions.hotel.SampleAfterHotelModifyExtension
.
Note
|
Ths feature works in Sabre Red 360 only and only for the graphical Change dates flow. In SRW 2.0 this does not apply.
|