difference between include and extend relationship in use case diagram

Understanding 'Include' vs 'Extend' in UML Use Case Diagrams

By John White
AD

Usecase diagrams in software engineering are graphical representations that depict the functional requirements of a system. Two key relationships in usecase diagrams are 'include' and 'extend'. Both of these relationships help in managing the complexity of use cases and provide additional details. However, they serve different purposes and have distinct characteristics. Let's delve into the difference between the 'include' and 'extend' relationship in usecase diagrams.

The 'include' and 'extend' relationships are not the same, and understanding their difference is crucial for effective use of usecase diagrams. This article aims to provide a comprehensive comparison, making it easier for software developers, analysts, and project managers to leverage these relationships accurately.

Understanding the 'include' Relationship

'Include' relationship in usecase diagrams signifies that one use case incorporates the behavior of another use case. When a use case 'includes' another, it means the included use case is a part of the parent use case. This could be a repetitive action or a prerequisite that must always happen during the execution of the parent use case.

AD
Use Case Diagram | Learn UML | Omer Javed Articles
Use Case Diagram | Learn UML | Omer Javed Articles
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
Difference Between Entity and Relationship in DBMS - Pediaa.Com
Difference Between Entity and Relationship in DBMS - Pediaa.Com

To indicate an 'include' relationship, a dashed line is drawn from the parent use case to the 'include' use case. A supporting dotted line with an open triangle at the end is drawn from the 'include' use case.

Use Cases for the 'include' Relationship

The 'include' relationship is useful when there are shared behaviors or recurring processes in different use cases. For example, consider an 'Order' use case and a 'Return' use case. Both use cases require a 'Payment Processing' step. Rather than duplicating this process in both use cases, it can be 'included' in both use cases. This reduces redundancy and makes the diagram clearer.

UML Use Case Diagram Tutorial with Examples
UML Use Case Diagram Tutorial with Examples
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

Here's a simple representation:

  • Order < dashed-line > Payment Processing (include)
  • Return < dashed-line > Payment Processing (include)
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 for Login and Registration | UML
Use Case Diagram for Login and Registration | UML
Verifying Use Cases, Data Flow Diagrams, Entity Relationship Diagrams, and State Diagrams via State Linkages
Verifying Use Cases, Data Flow Diagrams, Entity Relationship Diagrams, and State Diagrams via State Linkages
UML Use Case Diagram
UML Use Case Diagram
End-to-End UML: Use Case Diagram
End-to-End UML: Use Case Diagram
UML Use Case Diagrams: Tips
UML Use Case Diagrams: Tips
Shop System Use Case Diagram
Shop System Use Case Diagram
Use Case Diagram
Use Case Diagram
Use Case Diagram for E-Commerce Websites
Use Case Diagram for E-Commerce Websites
Verifying Use Cases, Data Flow Diagrams, Entity Relationship Diagrams, and State Diagrams via State Linkages
Verifying Use Cases, Data Flow Diagrams, Entity Relationship Diagrams, and State Diagrams via State Linkages
Bank Transaction System | Creately
Bank Transaction System | Creately
Simple Usecase Template | Creately
Simple Usecase Template | Creately
Use Case Diagram for Hotel Management System
Use Case Diagram for Hotel Management System
UML Use Case Diagram for Airline Reservation
UML Use Case Diagram for Airline Reservation
Use Case Diagram for Student Enrollment System
Use Case Diagram for Student Enrollment System
End-to-End UML: Use Case Diagram
End-to-End UML: Use Case Diagram
UML Use Case Diagram for Online Shopping
UML Use Case Diagram for Online Shopping
a diagram showing the different types of people connected to each other
a diagram showing the different types of people connected to each other
Use Case Diagram Template
Use Case Diagram Template
UML Class Diagram Relationships Explained with Examples | Creately
UML Class Diagram Relationships Explained with Examples | Creately
AD