Breadcrumb
- Sabre Red 360 Software Development Kit Help
- Web Red Apps
- Workflow Extensions
- Extension point abort
Extension point abort
Abort
Red Apps can abort workflow execution in extension points by returning ABORT
status:
{
"Status": "ABORT"
}
Whenever this happens, an extension point abort event is triggered and appropriate info is shown in the response area:

Abort event
This event is triggered after flow execution has been aborted in an extension point. It enables Red Apps to define custom logic to be run after the workflow is aborted so Red App does not lose control. In order to use this event, you must import the event identifier first:
import {EXTENSION_POINT_ABORT_EVENT} from 'sabre-ngv-sdk-events/events';
In addition, a data model is also available. A data model interface is available in the public API:
import {ExtPointAbortEventData} from 'sabre-ngv-sdk-events/interfaces/ExtPointAbortEventData';
Callback can be registered in several ways. The easiest way to use is EventBusService
:
const eventBusService: EventBusService = getService(EventBusService);
eventBusService.on(EXTENSION_POINT_ABORT_EVENT, (data: ExtPointAbortEventData) => {
// Custom logic
});
Abort event data
Abort event data available in the event contains:
-
ID of the extension point that has been aborted
-
Data model available in the extension point that has been aborted
-
Class associated with extension point data model
Example abort event data:
{
"extpId": "dynamo.air.pricing:beforePricing",
"data": {
"AirPriceRq": {
"CheckForLowerAvailableFare": false,
"CheckForLowerAvailableFareAndRebook": false,
"CheckForLowerFareRegardlessOfAvailability": false,
"Retain": false
}
},
"dataType": "pos.CommandMessageAirPriceRq"
}
Abort info configuration
You can hide workflow canceled info using abort info configuring.
It is defined as part of the extension point response and taken into account only in case of the ABORT
status.
At the moment, the configuration contains only one property that allows you to hide workflow canceled info.
Example extension point response that hides workflow canceled info:
{
"Status": "ABORT",
"AbortInfo": {
"Hide": true
}
}
If not defined abort info Hide
property defaults to false
.
Example
You can see abort event usage in com.sabre.redapp.example3.web.wf.extension sample.