UML Use Case / Sequence Diagrams
Traian-Florin Șerbănuță
2025
What are requirements?
Scenarios and use cases
UML Use Case Diagrams
Interactive Exercise 1: Identify actors and use cases
UML Sequence Diagrams
Interactive Exercise 2: Model an interaction
Wrap-up and discussion
Examples:
A course management system should:
functional
allow registered students to submit assignments online
non-functional
be able to accomodate up to 50k students
domain
comply with GDPR regulations
Without good requirements: models and implementations diverge from real needs.
Goal: Fully automated baggage handling system for all airlines
What Went Wrong:
Unclear & Changing Requirements:
Frequent scope changes, especially from airlines
Stakeholder Misalignment:
Conflicting airline needs not reconciled
Overly Ambitious Design:
Unrealistic automation goals
Poor Communication:
Incomplete and inconsistent requirement documentation
Impact:
Key Lesson:
Clear, stable, and agreed-upon requirements are essential for complex system success.
Example Scenario:
A student logs into the portal, views enrolled courses, and submits a project file.
Notation: ovals (use cases), stick figures (actors), box (system boundary)
Login
includes Register
Generate Reports
extends
Manage Course Offering
Students can register for exams, view schedules, and submit answers online. Professors can create exams, publish grades, and review submissions. The system authenticates all users.
Visualize the sequence of interactions that fulfill a use case.
Scenario: “User logs into the system”
User
LoginPage
AuthService
Database
5a. The AuthService responds with error: Authentication Failed.
The Login Interface replies with success message
Scenario: “Customer places an order in an online shop.”
Customer
WebApp
OrderService
PaymentGateway
Database
Some design patterns