COMP433 · Chapter 4 · building an activity diagram
Unpacking a use case into an activity diagram
A use case diagram says what the system does; an activity diagram shows how one use case flows, in what order, with which decisions, and who does each step. Here we take the Book room use case and unpack its description (beside the diagram) into a flow; as each action is drawn, the description line it comes from lights up. Press Full screen to see both at full size.
Book room · use case description
ActorsGuest, Payment ProviderPreat least one room is available1Guest selects a room2Guest enters a promo code (optional)3Guest enters details and card4System requests authorisation from the provider5On approval, the room is reserved6Booking is confirmedAltif declined, re-enter and retry; if no room, end