Use Case Diagrams
The Use Case diagrams are essential tools within the Unified Modeling Language (UML) that serve the purpose of visually illustrating functional interactions between external users (actors) and the system being modeled. These diagrams help to define not only the scope of the system but also the functionality it provides.
Key Components:
Actors
External users or systems that interact with the application.
Use Cases
The functionalities that the system provides to its actors.
System Boundary
A delineation that encapsulates use cases within the system's scope.
Relationships
- Include: Indicates that a use case always includes another, referring to shared logic.
- Extend: A use case may optionally extend another, which implies conditional logic.
- Generalization: Shows inheritance between actors or use cases.
Example in E-Commerce
An example of a Use Case diagram in an e-commerce system involves:
- Actor: Customer
- Use Cases: Register, Login, Search Product, Add to Cart, Checkout, Make Payment.
Here, the diagram illustrates various interactions:
- Customer --> (Search Product)
- Customer --> (Add to Cart)
- Customer --> (Checkout)
- (Customer) --> (Make Payment)
As a Business Analyst (BA), these Use Case diagrams are instrumental in defining system functionality from an end-user perspective, identifying user roles and their goals, and validating operational scope with stakeholders dealing with the project.