Diagram Desk

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
Search booksBorrow a bookReturn a bookRegister booksAuthenticate memberPay late fee«include»«extend»Library systemMemberLibrarian
Library system use case diagram

Symbols and meanings

SymbolMeaning
ActorA user role or an outside system; a stick figure.
Use caseOne goal the user achieves; an oval.
System boundaryWhat the system covers; a large rectangle.
IncludeAlways run as part of the base use case.
ExtendAdded to the base only under a condition.
GeneralizationHollow triangle from child to parent.

Basis: UML 2.5 유스케이스 다이어그램(OMG): 액터, 유스케이스, 시스템 경계, 포함·확장·일반화

How to draw one

  1. Draw the system boundary and name it.
  2. Put actors (roles or external systems) outside it.
  3. Draw use cases inside as ovals with verb phrases.
  4. Join actors and use cases with solid lines.
  5. 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

Draw a use case diagram from scratch

All SeewolLabs tools