SlideShare a Scribd company logo
Using Activity Diagrams to
Model Use Cases Visually
Part 2: Model the logical interactions
by Declan Chellar
Our activity diagrams model
the Actor/System interactions
within a System Use Case.
Actor needs to do
something
System responds
by asking for some
information
Actor provides
information
System does
something with
the information
Our activity diagrams model
the Actor/System interactions
within a System Use Case.
The System neither knows nor
cares where the Actor gets
the customer details.
Analogy: A chef does not care what the waiter
says to the diner. The chef only cares about
what the waiter writes on the order slip.
Analogy: A chef does not care what the waiter
says to the diner. The chef only cares about
what the waiter writes on the order slip.
The Actor
Analogy: A chef does not care what the waiter
says to the diner. The chef only cares about
what the waiter writes on the order slip.
The System The Actor
Actor elects to Add Customer
System requests
customer details
Actor asks
customer for
details
Customer provides
details to Actor
Actor provides
customer details to
System
The System neither knows nor
cares where the Actor gets
the customer details
Interactions outside the
Actor/System relationship
belong in other models.
Actor elects to Add Customer
System requests
customer details
Actor asks
customer for
details
Customer provides
details to Actor
Actor provides
customer details to
System
The highlighted steps belong
in a low-level business
process diagram, not an
activity diagram.
Actor elects to Add Customer
System requests
customer details
Actor asks
customer for
details
Customer provides
details to Actor
Actor provides
customer details to
System
Much better!
Actor elects to Add Customer
System requests
customer details
Actor provides
customer details
Actor elects to Add Customer
Actor provides
customer details
System connects
to CRM System
database
System saves
customer details to
CRM System
database
CRM System
confirms customer
detals saved
Similarly, the Actor neither
knows nor cares what the
System has to do to produce
the result the Actor needs.
System confirms
customer detals
saved
Analogy: The waiter does not care what
the chef has to do in the kitchen to
produce the order.
Actor elects to Add Customer
Actor provides
customer details
System connects
to CRM System
database
System saves
customer details to
CRM System
database
CRM System
confirms customer
detals saved
System confirms
customer detals
saved
The highlighted steps belong
in a Technical Use Case, not
an activity diagram.
Actor elects to Add Customer
Actor provides
customer details
System saves
customer details to
CRM System
database
System confirms
customer detals
saved
Much better!
Actor elects to Add Customer
Actor provides
customer details
System saves
customer details to
CRM System
database
System confirms
customer detals
saved
But wait!
Actor elects to Add Customer
Actor provides
customer details
System saves
customer details to
CRM System
database
System confirms
customer detals
saved
Our diagram should be
technology-agnostic
Actor elects to Add Customer
Actor provides
customer details
System saves
customer details to
CRM System
database
System confirms
customer detals
saved
The steps and text of our
diagram should remain valid
even if the technology
changes, so we remove any
reference to technology.
Our activity diagram should
only model the logical
interactions between the
Actor and the System.
Our activity diagram should
only model the logical
interactions between the
Actor and the System.
Actor needs to do
something
System responds
by asking for some
information
Actor provides
information
System does
something with
the information
The physical layout of how
that interaction occurs is not
relevant at this level.
Actor clicks on the
“Do something”
button
System responds
by asking for some
information
Actor provides
information
System does
something with
the information
Screen design in an activity
diagram draws focus away
from the logic of the System
Use Case and must be
avoided.
Actor clicks on the
“Do Something”
button
System responds
by asking for some
information
Actor provides
information
System does
something with
the information
We simply don’t care at this
point whether it’s a button or
a hyperlink or an item in a
drop-down list!
We also don’t care about
steps that model the screen
flow and field validations.
Actor clicks on the
“Do something”
button
System responds
by asking for some
information
Actor provides
information
System checks whether
Actor provided
mandatory information
System does
something with
the information
System displays
error message
Actor clicks on the
“Do something”
button
System responds
by asking for some
information
Actor provides
information
System checks whether
Actor provided
mandatory information
System does
something with
the information
System displays
error message
Actor clicks on the
“Do something”
button
System responds
by asking for some
information
Actor provides
information
System does
something with
the information
Much better!
Actor clicks on the
“Do something”
button
System responds
by asking for some
information
Actor provides
information
System checks whether
Actor provided
mandatory information
System does
something with
the information
System displays
error message
Of course we don’t lose these
screen flow details. We
capture them in a screen flow
diagram, not an activity
diagram.
SUMMARY
1. Interactions between the Actor and a third
party should be modelled in a low-level
business process model.
SUMMARY
1. Interactions between the Actor and a third
party should be modelled in a low-level
business process model.
2. What the System has to do in the “kitchen”
to produce a result for the Actor should be
modelled within a Technical Use Case.
SUMMARY
1. Interactions between the Actor and a third
party should be modelled in a low-level
business process model.
2. What the System has to do in the “kitchen”
to produce a result for the Actor should be
modelled within a Technical Use Case.
3. Avoid references to widgets on screens.
SUMMARY
1. Interactions between the Actor and a third
party should be modelled in a low-level
business process model.
2. What the System has to do in the “kitchen”
to produce a result for the Actor should be
modelled within a Technical Use Case.
3. Avoid references to widgets on screens.
4. Screen flow should be modelled in a screen
flow diagram.
SUMMARY
1. Interactions between the Actor and a third
party should be modelled in a low-level
business process model.
2. What the System has to do in the “kitchen”
to produce a result for the Actor should be
modelled within a Technical Use Case.
3. Avoid references to widgets on screens.
4. Screen flow should be modelled in a screen
flow diagram.
www.chellar.com/blog

More Related Content

PPTX
Activity Diagram tutorial part 3
PPT
Intro to UML - Use Case diagrams
PPTX
Lecture#04, use case diagram
PPT
Uml diagrams usecase
PPT
Use Case Diagram
PDF
Advanced Use Case Diagram and Model
PPT
Uml use casediagrams assignment help
PPT
Use case modeling
Activity Diagram tutorial part 3
Intro to UML - Use Case diagrams
Lecture#04, use case diagram
Uml diagrams usecase
Use Case Diagram
Advanced Use Case Diagram and Model
Uml use casediagrams assignment help
Use case modeling

What's hot (19)

PPT
Database Modeling presentation
PPTX
Use Case Diagram Templates by Creately
PPT
Use Cases
PPT
Use Case and Activity Diagrams Modeling Notation
DOC
Use case diagrams
PPT
Use Case and Activity Diagrams Modeling Notation
PDF
Lecture04- Use Case Diagrams
PDF
PPTX
Class Diagram Templates by Creately
DOCX
Hr profile option
PPT
Lecture 15 requirements modeling - scenario, information and analysis class...
PPT
Lecture 13 requirements modeling - flow & behavior (2)
DOCX
PPT
Use Case Diagram
PPT
Use case Diagram
PDF
Introduction to UML
PPT
Lecture05
RTF
PPTX
Use case modeling & analysis v 1
Database Modeling presentation
Use Case Diagram Templates by Creately
Use Cases
Use Case and Activity Diagrams Modeling Notation
Use case diagrams
Use Case and Activity Diagrams Modeling Notation
Lecture04- Use Case Diagrams
Class Diagram Templates by Creately
Hr profile option
Lecture 15 requirements modeling - scenario, information and analysis class...
Lecture 13 requirements modeling - flow & behavior (2)
Use Case Diagram
Use case Diagram
Introduction to UML
Lecture05
Use case modeling & analysis v 1
Ad

Viewers also liked (20)

PPT
Activity Diagram
PPT
Uml Activity Diagram
PDF
Activity diagram-UML diagram
PDF
Mgi unleashing indonesia_potential_full_report
PPSX
Uml tutorial (1) (1)
PDF
TD-635-03-PSBO
PPTX
Enhancement of Action Description Language for UML Activity Diagram Review
PPTX
UML Diagram @ Software engineering discussion
PPT
Uml sequence diagrams
PDF
Business Process Modeling
PPT
Sequence diagrams
PDF
Business Process Modeling
PPTX
Activity diagram
PPTX
Activity diagram tutorial
PPTX
Sequence diagram
PPTX
Activity Diagram Templates by Creately
DOC
Modeling techniques forthe business analyst
PPTX
Sequence diagrams in UML
PDF
Basic Statistical Process Control
PDF
INTRODUCTION TO UML DIAGRAMS
Activity Diagram
Uml Activity Diagram
Activity diagram-UML diagram
Mgi unleashing indonesia_potential_full_report
Uml tutorial (1) (1)
TD-635-03-PSBO
Enhancement of Action Description Language for UML Activity Diagram Review
UML Diagram @ Software engineering discussion
Uml sequence diagrams
Business Process Modeling
Sequence diagrams
Business Process Modeling
Activity diagram
Activity diagram tutorial
Sequence diagram
Activity Diagram Templates by Creately
Modeling techniques forthe business analyst
Sequence diagrams in UML
Basic Statistical Process Control
INTRODUCTION TO UML DIAGRAMS
Ad

Similar to Activity diagram tutorial part 2 (20)

DOCX
Use case basics
PDF
Combined UseCase Description, MockUp Screens & System Sequence Diagram
PPT
What is a_use_case
PDF
Use Case UML Diagram
PPTX
SAD06 - Use Case Diagrams
PPTX
Use case diagrams 2014
PPT
Obey The Rules: Implementing a Rules Engine in Flex
PPT
Flex 360 Rules Engine
PPT
Flex 360 Rules Engine
PPT
PDF
1_Use-Case (1).pdf
PPT
UseCase.ppt software engineering use3 cases
PPTX
Job Portal
 
PPT
05 use-case-modeling-1mon
PPT
05 use-case-modeling-1mon
PDF
Day01 01 software requirement concepts
PDF
Unit 3 system models
PDF
Use case Modeling
PPTX
Lesson02_Use Case Diagrams
PPTX
Use Case Analysis and Diagramming
Use case basics
Combined UseCase Description, MockUp Screens & System Sequence Diagram
What is a_use_case
Use Case UML Diagram
SAD06 - Use Case Diagrams
Use case diagrams 2014
Obey The Rules: Implementing a Rules Engine in Flex
Flex 360 Rules Engine
Flex 360 Rules Engine
1_Use-Case (1).pdf
UseCase.ppt software engineering use3 cases
Job Portal
 
05 use-case-modeling-1mon
05 use-case-modeling-1mon
Day01 01 software requirement concepts
Unit 3 system models
Use case Modeling
Lesson02_Use Case Diagrams
Use Case Analysis and Diagramming

More from Declan Chellar (9)

PPTX
Business analysis is about more than software requirements
PPTX
BPMN 2.0 - an introduction to the Level 1 Palette
PPTX
Defining process scope
PPTX
Iliad Book 1
PPTX
BPMN in Pegasystems' PRPC Flow Rules
PPTX
Process Model versus PRPC Discovery Map
PPTX
Tracing Data Requirements
PPTX
The Importance of Data Analysis in Producing a Robust Physical Data Model
PPTX
A Tale Of Two Projects
Business analysis is about more than software requirements
BPMN 2.0 - an introduction to the Level 1 Palette
Defining process scope
Iliad Book 1
BPMN in Pegasystems' PRPC Flow Rules
Process Model versus PRPC Discovery Map
Tracing Data Requirements
The Importance of Data Analysis in Producing a Robust Physical Data Model
A Tale Of Two Projects

Recently uploaded (20)

PDF
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
PDF
Stem Cell Market Report | Trends, Growth & Forecast 2025-2034
PPT
Chapter four Project-Preparation material
PDF
Training And Development of Employee .pdf
PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
PDF
Unit 1 Cost Accounting - Cost sheet
PDF
Chapter 5_Foreign Exchange Market in .pdf
PPTX
Amazon (Business Studies) management studies
PDF
Business model innovation report 2022.pdf
PDF
A Brief Introduction About Julia Allison
PDF
IFRS Notes in your pocket for study all the time
PPTX
Belch_12e_PPT_Ch18_Accessible_university.pptx
PDF
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
PPTX
Principles of Marketing, Industrial, Consumers,
PDF
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
PDF
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
PDF
Types of control:Qualitative vs Quantitative
DOCX
Euro SEO Services 1st 3 General Updates.docx
PDF
Nidhal Samdaie CV - International Business Consultant
PDF
Roadmap Map-digital Banking feature MB,IB,AB
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
Stem Cell Market Report | Trends, Growth & Forecast 2025-2034
Chapter four Project-Preparation material
Training And Development of Employee .pdf
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
Unit 1 Cost Accounting - Cost sheet
Chapter 5_Foreign Exchange Market in .pdf
Amazon (Business Studies) management studies
Business model innovation report 2022.pdf
A Brief Introduction About Julia Allison
IFRS Notes in your pocket for study all the time
Belch_12e_PPT_Ch18_Accessible_university.pptx
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
Principles of Marketing, Industrial, Consumers,
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
Types of control:Qualitative vs Quantitative
Euro SEO Services 1st 3 General Updates.docx
Nidhal Samdaie CV - International Business Consultant
Roadmap Map-digital Banking feature MB,IB,AB

Activity diagram tutorial part 2

  • 1. Using Activity Diagrams to Model Use Cases Visually Part 2: Model the logical interactions by Declan Chellar
  • 2. Our activity diagrams model the Actor/System interactions within a System Use Case.
  • 3. Actor needs to do something System responds by asking for some information Actor provides information System does something with the information Our activity diagrams model the Actor/System interactions within a System Use Case.
  • 4. The System neither knows nor cares where the Actor gets the customer details.
  • 5. Analogy: A chef does not care what the waiter says to the diner. The chef only cares about what the waiter writes on the order slip.
  • 6. Analogy: A chef does not care what the waiter says to the diner. The chef only cares about what the waiter writes on the order slip. The Actor
  • 7. Analogy: A chef does not care what the waiter says to the diner. The chef only cares about what the waiter writes on the order slip. The System The Actor
  • 8. Actor elects to Add Customer System requests customer details Actor asks customer for details Customer provides details to Actor Actor provides customer details to System The System neither knows nor cares where the Actor gets the customer details
  • 9. Interactions outside the Actor/System relationship belong in other models. Actor elects to Add Customer System requests customer details Actor asks customer for details Customer provides details to Actor Actor provides customer details to System
  • 10. The highlighted steps belong in a low-level business process diagram, not an activity diagram. Actor elects to Add Customer System requests customer details Actor asks customer for details Customer provides details to Actor Actor provides customer details to System
  • 11. Much better! Actor elects to Add Customer System requests customer details Actor provides customer details
  • 12. Actor elects to Add Customer Actor provides customer details System connects to CRM System database System saves customer details to CRM System database CRM System confirms customer detals saved Similarly, the Actor neither knows nor cares what the System has to do to produce the result the Actor needs. System confirms customer detals saved
  • 13. Analogy: The waiter does not care what the chef has to do in the kitchen to produce the order.
  • 14. Actor elects to Add Customer Actor provides customer details System connects to CRM System database System saves customer details to CRM System database CRM System confirms customer detals saved System confirms customer detals saved The highlighted steps belong in a Technical Use Case, not an activity diagram.
  • 15. Actor elects to Add Customer Actor provides customer details System saves customer details to CRM System database System confirms customer detals saved Much better!
  • 16. Actor elects to Add Customer Actor provides customer details System saves customer details to CRM System database System confirms customer detals saved But wait!
  • 17. Actor elects to Add Customer Actor provides customer details System saves customer details to CRM System database System confirms customer detals saved Our diagram should be technology-agnostic
  • 18. Actor elects to Add Customer Actor provides customer details System saves customer details to CRM System database System confirms customer detals saved The steps and text of our diagram should remain valid even if the technology changes, so we remove any reference to technology.
  • 19. Our activity diagram should only model the logical interactions between the Actor and the System.
  • 20. Our activity diagram should only model the logical interactions between the Actor and the System. Actor needs to do something System responds by asking for some information Actor provides information System does something with the information
  • 21. The physical layout of how that interaction occurs is not relevant at this level.
  • 22. Actor clicks on the “Do something” button System responds by asking for some information Actor provides information System does something with the information Screen design in an activity diagram draws focus away from the logic of the System Use Case and must be avoided.
  • 23. Actor clicks on the “Do Something” button System responds by asking for some information Actor provides information System does something with the information We simply don’t care at this point whether it’s a button or a hyperlink or an item in a drop-down list!
  • 24. We also don’t care about steps that model the screen flow and field validations.
  • 25. Actor clicks on the “Do something” button System responds by asking for some information Actor provides information System checks whether Actor provided mandatory information System does something with the information System displays error message
  • 26. Actor clicks on the “Do something” button System responds by asking for some information Actor provides information System checks whether Actor provided mandatory information System does something with the information System displays error message
  • 27. Actor clicks on the “Do something” button System responds by asking for some information Actor provides information System does something with the information Much better!
  • 28. Actor clicks on the “Do something” button System responds by asking for some information Actor provides information System checks whether Actor provided mandatory information System does something with the information System displays error message Of course we don’t lose these screen flow details. We capture them in a screen flow diagram, not an activity diagram.
  • 29. SUMMARY 1. Interactions between the Actor and a third party should be modelled in a low-level business process model.
  • 30. SUMMARY 1. Interactions between the Actor and a third party should be modelled in a low-level business process model. 2. What the System has to do in the “kitchen” to produce a result for the Actor should be modelled within a Technical Use Case.
  • 31. SUMMARY 1. Interactions between the Actor and a third party should be modelled in a low-level business process model. 2. What the System has to do in the “kitchen” to produce a result for the Actor should be modelled within a Technical Use Case. 3. Avoid references to widgets on screens.
  • 32. SUMMARY 1. Interactions between the Actor and a third party should be modelled in a low-level business process model. 2. What the System has to do in the “kitchen” to produce a result for the Actor should be modelled within a Technical Use Case. 3. Avoid references to widgets on screens. 4. Screen flow should be modelled in a screen flow diagram.
  • 33. SUMMARY 1. Interactions between the Actor and a third party should be modelled in a low-level business process model. 2. What the System has to do in the “kitchen” to produce a result for the Actor should be modelled within a Technical Use Case. 3. Avoid references to widgets on screens. 4. Screen flow should be modelled in a screen flow diagram.