Use case diagram include and extend, examples
Actors, use cases, the system boundary and include, extend and generalization in a UML use case diagram, with editable examples such as a library and a shop.
What is a use case diagram
A use case diagram shows on one page who (actors) does what (use cases) with a system. Use it to list features from the user's side.
- The scope picture of a requirements document or proposal
- Software engineering assignments
- Exam questions on include and extend
Symbols and meanings
| Symbol | Meaning |
|---|---|
| Actor | A user role or an outside system; a stick figure. |
| Use case | One goal the user achieves; an oval. |
| System boundary | What the system covers; a large rectangle. |
| Include | Always run as part of the base use case. |
| Extend | Added to the base only under a condition. |
| Generalization | Hollow triangle from child to parent. |
Basis: UML 2.5 유스케이스 다이어그램(OMG): 액터, 유스케이스, 시스템 경계, 포함·확장·일반화
How to draw one
- Draw the system boundary and name it.
- Put actors (roles or external systems) outside it.
- Draw use cases inside as ovals with verb phrases.
- Join actors and use cases with solid lines.
- Use dashed include arrows for steps that always run, and extend arrows for steps added under a condition.
Our diagram text: system Name, actor Role, (Use case), Role -- (Use case), (Base) ..> (Included) : include, (Extension) ..> (Base) : extend, Child --|> Parent.
Common mistakes
- A use case no actor reaches.
- Include or extend arrows drawn to an actor.
- Extend arrows pointing the wrong way (from the extension to the base).
- Use cases named after screens instead of actions.
The editor's notation check flags these mistakes every time the picture changes.
12 use case diagram examples
- Library system use case diagram
- Online shop use case diagram
- ATM use case diagram
- Course registration use case diagram
- Clinic booking use case diagram
- Food delivery app use case diagram
- Car park use case diagram
- Cafe kiosk use case diagram
- Webcomic platform use case diagram
- Gym membership use case diagram
- Online exam use case diagram
- Concert ticketing use case diagram