Breadcrumb
- Sabre Red 360 Software Development Kit Help
- Web Red Apps
- Web Modules
- Examples
- com.sabre.redapp.example3.web.wf.extension Sample
com.sabre.redapp.example3.web.wf.extension Sample
This sample is a collection of various web extensions registered to extension points on several workflows. Extensions demonstrates how to intercept the flows and how to modify the data.
Displaying extension’s data
A separate group are extensions that display the data in a popup window. Extensions are enabled with
EXTP-DISP
remark. If the remark is present in the session then the extension will open a popup window
with the data that are passed to that extension.
It is possible to trigger the popup window only for one extension point by adding a suffix to the EXTP-DISP
remark with name of the extension point, e.g.:
-
EXTP-DISP-BEFOREPRICING
-
EXTP-DISP-AFTERPRICEQUOTECREATION
-
EXTP-DISP-BEFOREAIRSHOPPINGINPUT
-
EXTP-DISP-BEFOREAIRBOOKANDPRICE
-
EXTP-DISP-BEFOREAIRAVAILABILITY
If the extension point allows data modification then it will be possible to edit the JSON on the popup window. Invalid data modification may cause errors and cancels processing of the flow.
