System Behavior (Use Cases)
Use Case Diagram
---
config:
layout: fixed
---
flowchart TD
subgraph subGraph0["<b>Flight Reservation System (FRS)</b>"]
UC1["Search One Way Trip & Display Inventory"]
UC2["Book & Create Reservation"]
end
subgraph subGraph1["External Systems"]
GDS["Global Distribution Systems"]
CRS["Central Reservation System - Airline Backend"]
EmailSMS["Email/SMS Provider"]
end
A["Customer"] --> UC1 & UC2
B["Airline Staff/Agent"] --> UC1 & UC2
UC1 --> UC2 & GDS & CRS
UC2 --> CGDS & CRS & EmailSMS
UC1:::usecase
UC2:::usecase
EmailSMS:::external
DCS:::external
A:::actor
B:::actor
classDef actor fill:#9FF,stroke:#007,stroke-width:2px
classDef external fill:#f9f,stroke:#333,stroke-width:2px
classDef usecase fill:#DDF,stroke:#333,stroke-width:2px

Primary Actors:
- Customer
- Airline Staff /Agent
Use Cases:
- Search One Way Trip & Display Inventory
- Book & Create Reservation
Secondary Actors:
- Global Distribution Systems (GDS)
- Central Reservation System - Airline Backend (CRS)
- Email/SMS Provider
Use Case Narrative: Search One Way Trip & Display Inventory
Use Case Name
Search & Display Inventory
Primary Actor
Customer, Airline Staff/Agent
Goal
The customer or agent searches for a flight (origin, destination, dates). The FRS must fetch and present an up-to-the-minute list of all available flights, seats, and their current prices.
Preconditions
- The customer is registered/logged or Guest into the system.
Main Success Scenario
- The customer/airline staff selects departure city.
- The customer/airline staff selects departure airport in the selected city.
- The customer/airline staff selects destination city.
- The customer/airline staff selects departure date.
- The customer/airline staff submits the search for available flights.
- The system validates the customer inputs.
- The system retrieves the real time inventory and fare.
- The system displays the consolidated results to the customer.
Extensions (Alternative Flows)
- Central Reservation System (CRS) is unavailable:
- The system notifies the customer that real time inventory and fare data cannot be retrieved at this time.
- Flight tickets are not available:
- The system notifies the customer and suggests modifying their booking dates and airline preferences.
Postconditions
- The system displays available flights seats and their prices based on the customer search.
Use Case Narrative: Book & Create Reservation
Use Case Name
Book & Create Reservation
Primary Actor
- Customer, Airline Staff/Agent
Goal
- Reserve a seat on a selected flight.
Preconditions
- The customer/airline staff has searched for available flight.
Main Success Scenario
- The customer/airline staff selects one flight from the displayed inventory.
- The system prompts the user to enter passenger information.
- The system saves the passenger information.
- The system confirms the flight reservation.
Extensions (Alternative Flows)
- Missing or invalid passenger detais, the system displays and error message and requests correction.
- Session expired, customer must restart the booking process.
Postconditions
- Temporaty booking record is created and ready for payment.