0
0
Software Engineeringknowledge~10 mins

Use case diagrams in Software Engineering - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Use case diagrams
Identify Actors
Identify Use Cases
Draw Actors and Use Cases
Connect Actors to Use Cases
Add Relationships (include, extend)
Review Diagram for Completeness
The flow shows how to create a use case diagram step-by-step from identifying actors to reviewing the final diagram.
Execution Sample
Software Engineering
Actors: Customer, Admin
Use Cases: Login, Purchase, Manage Inventory
Connections: Customer->Login, Customer->Purchase, Admin->Manage Inventory
This example lists actors and use cases, then shows how actors connect to use cases in a use case diagram.
Analysis Table
StepActionDetailsResult
1Identify ActorsCustomer, AdminActors listed
2Identify Use CasesLogin, Purchase, Manage InventoryUse cases listed
3Draw Actors and Use CasesActors as stick figures, Use cases as ovalsBasic diagram shapes created
4Connect Actors to Use CasesCustomer->Login, Customer->Purchase, Admin->Manage InventoryRelationships drawn
5Add RelationshipsInclude 'Login' in 'Purchase'Diagram shows include relationship
6Review DiagramCheck all actors and use cases connectedDiagram complete and clear
7EndAll steps doneUse case diagram ready
💡 All actors and use cases identified and connected, diagram reviewed and finalized
State Tracker
ElementStartAfter Step 1After Step 2After Step 4After Step 5Final
ActorsNoneCustomer, AdminCustomer, AdminCustomer, AdminCustomer, AdminCustomer, Admin
Use CasesNoneNoneLogin, Purchase, Manage InventoryLogin, Purchase, Manage InventoryLogin, Purchase, Manage InventoryLogin, Purchase, Manage Inventory
ConnectionsNoneNoneNoneCustomer->Login, Customer->Purchase, Admin->Manage InventoryInclude: Login in PurchaseAll connections drawn
Key Insights - 3 Insights
Why do we identify actors before use cases?
Actors represent who interacts with the system, so knowing them first helps define what actions (use cases) they perform, as shown in execution_table step 1 and 2.
What does the 'include' relationship mean in a use case diagram?
It means one use case always uses another as part of its process, like 'Purchase' includes 'Login' in step 5 of the execution_table.
Can an actor connect to multiple use cases?
Yes, actors can interact with many use cases, for example, 'Customer' connects to both 'Login' and 'Purchase' in step 4.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at step 4, which actor connects to 'Manage Inventory'?
AAdmin
BBoth Customer and Admin
CCustomer
DNo actor connects
💡 Hint
Check the 'Connections' column at step 4 in the execution_table
At which step does the diagram show the 'include' relationship?
AStep 3
BStep 4
CStep 5
DStep 6
💡 Hint
Look for 'Add Relationships' action in the execution_table
If we add a new actor 'Guest' who only logs in, which step would change?
AStep 1 only
BSteps 1 and 4
CStep 5 only
DNo steps change
💡 Hint
Adding an actor affects actor list and connections, see variable_tracker and execution_table steps 1 and 4
Concept Snapshot
Use case diagrams show system users (actors) and their actions (use cases).
Actors are drawn as stick figures; use cases as ovals.
Connect actors to use cases with lines.
Use 'include' to show one use case uses another.
Helps understand system requirements visually.
Full Transcript
Use case diagrams visually represent how users interact with a system. The process starts by identifying actors, who are the users or external systems. Next, identify use cases, which are the actions or services the system provides. Then, draw actors as stick figures and use cases as ovals. Connect actors to the use cases they interact with using lines. Add relationships like 'include' to show when one use case is part of another. Finally, review the diagram to ensure it clearly shows all interactions. This step-by-step approach helps create clear and useful diagrams for understanding system behavior.