includes and excludes in use case diagram

In Use Case Diagrams: Includes & Excludes

By Mark Jones
AD

In the realm of systems engineering, use case diagrams are a compelling visual tool for illustrating the functional and non-functional requirements of a system. Central to these diagrams are the use cases themselves, which encapsulate the system's behavior from the perspective of the different users or actors involved. A vital aspect of crafting effective use case diagrams is understanding what should be included and excluded, a topic we delve into in this comprehensive guide.

Let's commence with the premise that use case diagrams are not meant to define the system's structure, but rather its behavior. In terms of inclusion, the first dictate is to ensure all primary functional behaviors of the system are represented as use cases. These are the key processes or functionalities that the system must support, such as logging in, making a purchase, or generating a report. Each use case should be worded as an active verb or verb phrase in the present tense, focusing on what the system does, not how it does it.

Includes in Use Case Diagrams

To begin with, identifying primary actors and their respective relationships with the system is critical. Actors can be human users or other systems interacting with the system under consideration. Each use case should clearly define which actor(s) participate in it, and how. Depicting this relationship visually using lines with brief labels (like <-generate> or :create) is a standard practice.

AD
UML Use Case Diagram for Airline Reservation
UML Use Case Diagram for Airline Reservation
How to create a use case diagram | moelgendy blog
How to create a use case diagram | moelgendy blog
Download Use Case Diagram for Library Management System
Download Use Case Diagram for Library Management System

Incorporating use case dependencies is another essential component. Not every use case stands alone; often, one use case may precede or lead to another. Representing these dependencies through arrowed lines can dramatically enhance the diagram's clarity and usefulness. Furthermore, including and naming any relevant systems or entities associated with the use case (often referred to as 'data stores') paints a more complete picture of the system's boundary and operation.

Precise Use Case Descriptions

A descriptive but concise narrative of each use case's flow, including preconditions, main success scenario, and postconditions, is indispensable. This bulleted list or short paragraph should detail the sequence of events, inputs, outputs, and any critical decisions made within the use case. Actors should be referred to actively, emphasizing their role in the use case.

Use Case Diagram | Learn UML | Omer Javed Articles
Use Case Diagram | Learn UML | Omer Javed Articles
the employee management system is shown in this diagram, it shows how employees can manage their work
the employee management system is shown in this diagram, it shows how employees can manage their work
Use Case Diagram for E-Commerce Websites
Use Case Diagram for E-Commerce Websites

A best practice is to avoid detailed implementation or design specifications in the use case description. The goal here is to capture functional behavior from the user's perspective, enabling non-technical stakeholders to understand and validate the system requirements.

Use Case Extensions and Alternatives

Sometimes, a use case may contain exceptional paths or alternate flows based on certain conditions. These are typically represented by 'alt' symbols and should be briefly explained to provide a comprehensive view of the system's behavior. Additionally, indicating use case extensions - optional flows that enhance or extend the base functionality - can Harvard further insights into the system's flexibility and adaptability.

AD

Special care should be taken to avoid overwhelming the diagram with too many use cases, extensions, or alternatives. Keep it clean and concise – remember, the aim is to provide a clear representation, not a comprehensive system specification.

Use Case Diagram for Event Management System
Use Case Diagram for Event Management System
Use Case Diagram Tutorial: What It Is and How to Create One | Creately
Use Case Diagram Tutorial: What It Is and How to Create One | Creately
UML Use Case Diagram Tutorial with Examples
UML Use Case Diagram Tutorial with Examples
Bank Transaction System | Creately
Bank Transaction System | Creately
Hospital Management UML Diagram
Hospital Management UML Diagram
UML Use Case Diagrams: Tips
UML Use Case Diagrams: Tips

Excludes in Use Case Diagrams

As important as including the right elements in use case diagrams is understanding what to exclude. Most crucially, avoid delving into the system's internal structures or technical implementations. Use case diagrams should focus on what the system does, not how it does it. This separation promotes clarity, ensuring that the diagram communicates the functional requirements effectively.

It's also recommended to avoid over-complicating use case diagrams with elaborate sequence diagrams, activity flows, or swimlane diagrams for individual use cases. These details are better served in different types of diagrams designed for more specific purposes.

AD

Redundancy and Unnecessary Detail

Eliminate any redundant use cases – each use case should represent a unique functional behavior. Similarly, avoid detailed specifications of system components or data models in the diagram. While these are essential aspects of the system, they should be depicted in separate diagrams like class diagrams or entity-relationship diagrams.

Use Case Diagram for Student Enrollment System
Use Case Diagram for Student Enrollment System
Student Attendance System | Creately
Student Attendance System | Creately
UML Use Case Diagram
UML Use Case Diagram
End-to-End UML: Sequence Diagram
End-to-End UML: Sequence Diagram
UML Use Case Diagram for Online Shopping
UML Use Case Diagram for Online Shopping
Redirecting...
Redirecting...
a diagram that shows the flow of different items in an organization, including two people and one person
a diagram that shows the flow of different items in an organization, including two people and one person
End-to-End UML: Use Case Diagram
End-to-End UML: Use Case Diagram
Life Insurance System Use Case Diagram
Life Insurance System Use Case Diagram
Usecase diagram
Usecase diagram
Use Case Diagram Tutorial: What It Is and How to Create One | Creately
Use Case Diagram Tutorial: What It Is and How to Create One | Creately
Use Case Diagram Template
Use Case Diagram Template
Use Case Diagram for University Admission System
Use Case Diagram for University Admission System
LB use cases
LB use cases

Lastly, be mindful of not including non-functional requirements directly into the use case diagram. While some non-functional aspects, like performance or security, may influence the use case, they should be documented separately in a system specification or requirements document.

The key to effective use case diagrams is balance – including enough detail to clearly portray functional behavioral aspects while excluding irrelevant or overly complex information. Striking this balance ensures your diagrams serve their intended purpose, providing a vital tool for communication and validation among stakeholders.

AD
AD