Use Case Diagrams
Use Case Diagrams
• What It Is: A graphical representation that shows the interaction between actors (users or systems) and use-
cases (functions or tasks) in a system.
• Purpose: It helps understand what the system should do from an end-user's perspective.
2. ER Diagram Basics
• What It Is: A graphical representation of entities (like tables in a database) and their relationships.
• Purpose: It focuses more on the data structure — how different data elements are connected, usually in database
design.
• Who It Is: A person, system, or external entity that interacts with the system.
• Example: In an online shopping system, a customer or payment system is an actor.
2. Use-Case
3. System Boundary
• What It Is: The box that defines the scope of the system being designed. All use-cases are inside it.
• Purpose: Shows what is part of the system and what is not.
a. Include
• When Used: When a use-case sometimes needs another use-case based on certain conditions.
• Example: Logging in can extend to password recovery if the user forgets their password.
Correcting Misconceptions
1. Explicit and Implicit Relationships: These terms are not used in use-case diagrams. Instead, we use include
and extend.
2. Include vs. Extend:
o Include: Necessary actions; always happen.
o Extend: Optional actions; happen under specific conditions.
3. Focus of Use-Case vs. ER Diagrams:
o Use-Case = User interactions and system functions.
o ER Diagram = Database structure and data relationships.
• Identify Actors: Look for users, external systems, or other stakeholders that interact with the system.
• Identify Use-Cases: Highlight all the functions or tasks the system should perform.
• The basic solid line with a simple arrow is not double-headed. It's a basic connection showing interaction.
• The dotted line with a single arrowhead is for include or extend relationships. These lines are always labeled
with <> or <>.
I'm glad to hear you're feeling confident about use-case diagrams! Since you want to be thorough, let me quickly go over
any last details, common mistakes, and tips to make sure nothing is missed.
1. Forgetting Labels:
Always label include (<<include>>) and extend (<<extend>>) relationships properly. Without the labels, the
meaning can get confusing.
2. Incorrect Arrow Direction:
The arrowhead should always point toward the use-case that is being included or extended. Double-check the
direction!
3. Mixing Up Actors and Use-Cases:
o Actors are always outside the system boundary.
o Use-cases are inside the boundary.
o Don't treat actors as use-cases or vice versa.
4. Overcomplicating the Diagram:
o Only include relevant actors and use-cases — keep it simple and focused.
o Don't try to show every single detail of the system; use-case diagrams are meant to give an overview, not
intricate details.
5. Using Arrows for Basic Association Lines:
For simple actor-to-use-case associations, a solid line without arrows is often fine. No need to overthink it!
B. Best Practices:
C. Quick Warning:
D. Last Tip:
• Read the Scenario Carefully: When working with case studies to create use-case diagrams, underline or highlight phrases
like "must happen," "optional," "only if," "necessary," etc. These often indicate potential include or extend relationships.
That wraps it up! If you feel confident now or need any last clarifications, just let me know. You're all set to make some
solid use-case diagrams!