Get Started! You Will Love This Easy-To-Use Diagram Software

EdrawMax is an advanced all-in-one diagramming tool for creating professional flowcharts, org charts, mind maps, network diagrams, UML diagrams, floor plans, electrical diagrams, science illustrations, and more. Just try it, you will love it!

Home > Article > UML Use Case Examples

UML Use Case Diagram Examples

A Comprehensive Guide to Understanding and Creating Use Case Diagrams

Promotional banner for EdrawMax, a powerful all-in-one diagramming tool.

What is a Use Case Diagram?

During software development, use case diagrams are essential for visualizing and specifying the behavior of a system. They illustrate how a system will perform and interact with external entities, known as actors, to achieve specific goals.

The primary benefit of a use case diagram is that it keeps the end-user's needs at the forefront of the design process. It effectively shows the relationship between various use cases, actors, and the system itself. The best practice is to keep these diagrams concise and focused on the system's core functionality.

Key Elements of a Use Case Diagram

Use case diagrams are composed of four fundamental elements. Let's explore them in detail.

Use Cases

A use case represented as an oval shape with a name inside.

Use cases represent a specific function or action that a user wants to perform with the system. They are created based on user requirements and needs, serving as a blueprint for system development and testing.

Actors

An actor represented as a stick figure, labeled 'Actor Name'.

An actor is an external entity that interacts with the system. This can be a human user, an organization, a machine, or another external system. Actors are placed on the diagram to show how they will engage with the use cases.

Subsystems

A subsystem represented by a large rectangle with rounded corners.

Subsystems are components within a larger system that behave independently. In UML diagrams, they are used to represent distinct, self-contained units of the system.

Relationships

Examples of different types of relationships in a use case diagram, including includes, extends, and generalization.

Relationships define the connections and interactions between model elements. They illustrate how use cases, actors, and subsystems relate to one another within the diagram.

Source: www.ibm.com

EdrawMax

All-in-One Diagram Software
Create more than 210 types of diagrams effortlessly
Start diagramming with various templates and symbols easily
  • Superior file compatibility: Import and export drawings to various file formats, such as Visio
  • Cross-platform supported (Windows, Mac, Linux, Web)
Free Download Free Download Free Download Try Online Free

Practical Use Case Diagram Examples

This section provides several practical use case diagram examples to help you better understand the concepts.

1. Use Case Diagram for an ATM System

A use case diagram for an ATM system showing interactions between a customer, a technician, and the bank.

Get 500 AI tokens free
star icon

This diagram illustrates the functionality of an Automatic Teller Machine (ATM) subsystem. It shows how customers and technicians interact with the system. The actors are the customer and the technician, while use cases include "Check Balance," "Withdraw Cash," "Deposit Funds," and "Repair & Maintain." The relationship with the bank system is also depicted, as it authenticates customer actions.

2. Use Case Diagram for a Website

A use case diagram for a website showing a site user and a webmaster as actors.

Get 500 AI tokens free
star icon

In this example, the actors are the site user and the webmaster. The site user's use cases involve searching, browsing, and viewing documents and events. The webmaster's use cases are focused on managing the site content, such as uploading documents, posting new events, and managing user accounts.

3. Use Case Diagram for a Library Management System

A use case diagram for a library management system with multiple actors like students, staff, and a database.

Get 500 AI tokens free
star icon

This diagram shows the various interactions within a library management system. The actors include students, staff, a librarian, and even the library's database. Use cases range from authenticating users and reserving books to paying fines and renewing loans. This example highlights how a non-human entity (the database) can function as an actor.

4. Use Case Diagram for Online Shopping

A use case diagram for an online shopping system showing registered users, web customers, PayPal, and credit payment services.

Get 500 AI tokens free
star icon

This illustration depicts a typical online shopping system. Actors include various types of customers (registered, new, and web customers), as well as payment services like PayPal and credit card companies. The use cases include "View Items," "Make a Purchase," and "Checkout," with relationships showing how these actions are connected.

5. Use Case Diagram for a Hospital Management System

A use case diagram for a hospital management system showing a receptionist as the main actor.

Get 500 AI tokens free
star icon

This use case diagram for a hospital management system shows the receptionist as the primary actor. The receptionist interacts with use cases such as "Schedule Patient Appointment" and "Patient Admission," which are logically related to other functions within the system.

6. Use Case Diagram for a Car Rental System

A use case diagram for a car rental system showing actors like the insurance company, customer, employee, and manager.

Get 500 AI tokens free
star icon

This UML diagram for a car rental system includes actors such as the insurance company (an organization), a customer, an employee, and a manager. It shows how each actor interacts with various use cases, from "Bill Payment" to car rental and return processes.

7. Use Case Diagram for a Student Registration System

Get 500 AI tokens free
star icon

This diagram models a student registration system. The key actors are students, professors, and administrators, who interact with numerous use cases to manage course enrollment and student information.

8. Use Case Diagram for an Airline Reservation System

A use case diagram for an airline reservation system showing interactions between passengers, admins, and banks.

This diagram focuses on a subsystem of an airline reservation system. The actors are passengers, administrators, and financial institutions (banks). Passengers interact with use cases like "Login," "Check Availability," and "Book Ticket," while admins handle tasks like canceling tickets and updating flight schedules. The bank is involved with payment-related use cases.

Get 500 AI tokens free
star icon

Watch this video to learn more about creating UML diagrams with EdrawMax.

Create Use Case Diagrams with EdrawMax

Creating a use case diagram is a crucial step before software development. It helps you gain a clear understanding of user needs and ensures your system's functions are user-friendly and feasible. The visual nature of these diagrams makes it easier to test and refine software quickly.

You can use EdrawMax to create a professional use case diagram. As a versatile diagramming tool, EdrawMax provides all the necessary libraries and features to make the process efficient. You can either import your own templates or leverage the many pre-generated examples to speed up your work.

EdrawMax allows you to easily export your project to various formats and offers a free version for preliminary work, with premium features available through paid plans.

edrawmax logoEdrawMax Desktop
Simple alternative to Visio
210+ types of diagrams
10K+ free templates & 26k+ symbols
10+ AI diagram generators
10+ export formats
edrawmax logoEdrawMax Online
Edit diagrams anywhere, anytime
Personal cloud & Dropbox integration
Enterprise-level data security
Team management and collaboration

Related Articles