Below is a System Sequence Diagram for a reservation system, which highlights the interaction between external actors (e.g., customer, administrator) and the system during a reservation workflow:
sequenceDiagram
participant Customer
participant System as Reservation System
Customer ->> System: Enter reservation details
System -->> Customer: Validate inputs
Customer ->> System: Submit reservation request
System ->> System: Check resource availability
alt Resource available
System ->> System: Create reservation
System ->> Customer: Confirm reservation
System ->> System: Trigger payment process
System ->> Customer: Notify payment status
else Resource not available
System ->> Customer: Display unavailability message
end
Explanation of the Diagram:
Actors and System:
- The Customer interacts with the Reservation System to complete a reservation process.
Key Interactions:
- The customer enters reservation details, and the system validates the input fields.
- After submission, the system checks if the requested resource is available.
Decision Point:
- If the resource is available, the system:
- Creates the reservation record.
- Confirms the reservation with the customer.
- Triggers the payment process and communicates payment status to the customer.
- If the resource is not available, the system informs the customer with an appropriate message.
- If the resource is available, the system: