SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
Activity Diagrams
Activity Diagrams
 To model the dynamic aspects of a
system
 It is essentially a flowchart
Showing flow of control from activity to activity
 Purpose
Model business workflows
Model operations
Activity Diagrams
Activity diagrams commonly contain
Activity states and action states
Transitions
Objects
Action States and Activity States
 Action states are atomic and cannot be decomposed
Work of the action state is not interrupted
 Activity states can be further decomposed
Their activity being represented by other activity
diagrams
They may be interrupted
Transitions
When the action or activity of a state
completes, flow of control passes
immediately to the next action or activity
state
A flow of control has to start and end
someplace
initial state -- a solid ball
stop state -- a solid ball inside a circle
Transitions
Branching
A branch specifies alternate paths taken
based on some Boolean expression
A branch may have one incoming
transition and two or more outgoing ones
Branching
Example of Activity Diagram
Forking and Joining
Use a synchronization bar to specify the
forking and joining of parallel flows of
control
A synchronization bar is rendered as a
thick horizontal or vertical line
Fork
 A fork may have one incoming transitions and two or more
outgoing transitions
 each transition represents an independent flow of control
 conceptually, the activities of each of outgoing transitions are
concurrent
 either truly concurrent (multiple nodes)
 or sequential yet interrupted (one node)
Join
 A join may have two or more incoming transitions
and one outgoing transition
above the join, the activities associated with each of
these paths continues in parallel
at the join, the concurrent flows synchronize
each waits until all incoming flows have reached the
join, at which point one flow of control continues on
below the join
Example of an Activity Diagram
Swimlanes
 Activity diagrams tell you what happens, but they do not tell you who
does what. In programming, this means that the diagram does not
convey which class is responsible for each activity.
 A swimlane is a way to group activities performed by the same actor
on an activity diagram or to group activities in a single thread.
 each group representing the business organization responsible
for those activities
 each group is called a swimlane
 Each swimlane is divided from its neighbor by a vertical solid line
Swimlanes
 Each swimlane has a name unique within its diagram
 Each swimlane may represent some real-world entity
 Each swimlane may be implemented by one or more
classes
 Every activity belongs to exactly one swimlane, but
transitions may cross lanes
Example of Activity Diagram
Example of Activity Diagram
Thanks

Contenu connexe

Tendances

INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
Ashita Agrawal
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
mewaseem
 

Tendances (20)

UML
UMLUML
UML
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
Class diagram- UML diagram
Class diagram- UML diagramClass diagram- UML diagram
Class diagram- UML diagram
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbols
 
Object Oriented Analysis Design using UML
Object Oriented Analysis Design using UMLObject Oriented Analysis Design using UML
Object Oriented Analysis Design using UML
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
1. introduction to uml
1. introduction to uml1. introduction to uml
1. introduction to uml
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
State chart diagram
State chart diagramState chart diagram
State chart diagram
 
Uml
UmlUml
Uml
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Collaboration Diagram
Collaboration DiagramCollaboration Diagram
Collaboration Diagram
 
Activity Diagram Examples by Creately
Activity Diagram Examples by Creately Activity Diagram Examples by Creately
Activity Diagram Examples by Creately
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Uml class Diagram
Uml class DiagramUml class Diagram
Uml class Diagram
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
 

Similaire à Lecture6 activity diagrams

Slide 6 Activity Diagram
Slide 6 Activity DiagramSlide 6 Activity Diagram
Slide 6 Activity Diagram
Niloy Rocker
 
Unit III Dynamic and Implementation UML Diagrams.pptx
Unit III Dynamic and Implementation UML Diagrams.pptxUnit III Dynamic and Implementation UML Diagrams.pptx
Unit III Dynamic and Implementation UML Diagrams.pptx
anguraju1
 
Lab # 05
Lab # 05Lab # 05
Lab # 05
Mr SMAK
 
Selab1 slides
Selab1 slidesSelab1 slides
Selab1 slides
Sumedha
 

Similaire à Lecture6 activity diagrams (20)

Activity Diagram part8
Activity Diagram part8Activity Diagram part8
Activity Diagram part8
 
Slide 6 Activity Diagram
Slide 6 Activity DiagramSlide 6 Activity Diagram
Slide 6 Activity Diagram
 
Unit III Dynamic and Implementation UML Diagrams.pptx
Unit III Dynamic and Implementation UML Diagrams.pptxUnit III Dynamic and Implementation UML Diagrams.pptx
Unit III Dynamic and Implementation UML Diagrams.pptx
 
week07a.pdf
week07a.pdfweek07a.pdf
week07a.pdf
 
Fundamentals of Software Engineering
Fundamentals of Software Engineering Fundamentals of Software Engineering
Fundamentals of Software Engineering
 
UML, ER and Dimensional Modelling
UML, ER and Dimensional ModellingUML, ER and Dimensional Modelling
UML, ER and Dimensional Modelling
 
ACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptxACTIVITY DIAGRAM.pptx
ACTIVITY DIAGRAM.pptx
 
Chapter7
Chapter7Chapter7
Chapter7
 
Activity
ActivityActivity
Activity
 
Lecture 19...unit 3.....se
Lecture 19...unit 3.....seLecture 19...unit 3.....se
Lecture 19...unit 3.....se
 
ActivityDiagrams.ppt
ActivityDiagrams.pptActivityDiagrams.ppt
ActivityDiagrams.ppt
 
Lab # 05
Lab # 05Lab # 05
Lab # 05
 
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsSE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour Diagrams
 
UML
UMLUML
UML
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction Modeling
 
SAD09 - Activity Diagrams
SAD09 - Activity DiagramsSAD09 - Activity Diagrams
SAD09 - Activity Diagrams
 
Flowchart
FlowchartFlowchart
Flowchart
 
Chapter 3 mathematical modeling of dynamic system
Chapter 3 mathematical modeling of dynamic systemChapter 3 mathematical modeling of dynamic system
Chapter 3 mathematical modeling of dynamic system
 
Selab1 slides
Selab1 slidesSelab1 slides
Selab1 slides
 

Plus de Shahid Riaz

Plus de Shahid Riaz (20)

Shimla deputation (1906)
Shimla deputation (1906)Shimla deputation (1906)
Shimla deputation (1906)
 
#Syed ahmad shaheed barailvi
#Syed ahmad shaheed barailvi#Syed ahmad shaheed barailvi
#Syed ahmad shaheed barailvi
 
How to program in c++ with 100 examples
How to program in c++ with 100 examples  How to program in c++ with 100 examples
How to program in c++ with 100 examples
 
Virtual private networks in theory and practice
Virtual private networks in theory and practiceVirtual private networks in theory and practice
Virtual private networks in theory and practice
 
Database systems administration week 1
Database systems administration week 1Database systems administration week 1
Database systems administration week 1
 
Database systems administration traning 02
Database systems administration traning 02Database systems administration traning 02
Database systems administration traning 02
 
Database systems administration traning 02
Database systems administration traning 02Database systems administration traning 02
Database systems administration traning 02
 
Database systems administration traning 01
Database systems administration traning 01Database systems administration traning 01
Database systems administration traning 01
 
Database systems administration traning 0
Database systems administration traning 0Database systems administration traning 0
Database systems administration traning 0
 
Database systems administration traning 04
Database systems administration traning  04Database systems administration traning  04
Database systems administration traning 04
 
Managing people and organizing team
Managing people and organizing teamManaging people and organizing team
Managing people and organizing team
 
Lec 1 intro to internet
Lec 1 intro to internetLec 1 intro to internet
Lec 1 intro to internet
 
Course guidlines course book it 3548
Course guidlines course book it 3548Course guidlines course book it 3548
Course guidlines course book it 3548
 
Lecture12 software design class diagram
Lecture12 software design class diagramLecture12 software design class diagram
Lecture12 software design class diagram
 
Lecture11 use case sequence diagram
Lecture11 use case sequence diagramLecture11 use case sequence diagram
Lecture11 use case sequence diagram
 
Lecture10 use case model operation contracts
Lecture10 use case model operation contractsLecture10 use case model operation contracts
Lecture10 use case model operation contracts
 
Lecture9 domain model visualizing
Lecture9 domain model visualizingLecture9 domain model visualizing
Lecture9 domain model visualizing
 
Lecture8 system sequence
Lecture8 system sequenceLecture8 system sequence
Lecture8 system sequence
 
Lecture7 use case modeling
Lecture7 use case modelingLecture7 use case modeling
Lecture7 use case modeling
 
Lecture 5 defining the system
Lecture 5 defining the systemLecture 5 defining the system
Lecture 5 defining the system
 

Dernier

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 

Dernier (20)

How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 

Lecture6 activity diagrams

  • 2. Activity Diagrams  To model the dynamic aspects of a system  It is essentially a flowchart Showing flow of control from activity to activity  Purpose Model business workflows Model operations
  • 3. Activity Diagrams Activity diagrams commonly contain Activity states and action states Transitions Objects
  • 4. Action States and Activity States  Action states are atomic and cannot be decomposed Work of the action state is not interrupted  Activity states can be further decomposed Their activity being represented by other activity diagrams They may be interrupted
  • 5. Transitions When the action or activity of a state completes, flow of control passes immediately to the next action or activity state A flow of control has to start and end someplace initial state -- a solid ball stop state -- a solid ball inside a circle
  • 7. Branching A branch specifies alternate paths taken based on some Boolean expression A branch may have one incoming transition and two or more outgoing ones
  • 10. Forking and Joining Use a synchronization bar to specify the forking and joining of parallel flows of control A synchronization bar is rendered as a thick horizontal or vertical line
  • 11. Fork  A fork may have one incoming transitions and two or more outgoing transitions  each transition represents an independent flow of control  conceptually, the activities of each of outgoing transitions are concurrent  either truly concurrent (multiple nodes)  or sequential yet interrupted (one node)
  • 12. Join  A join may have two or more incoming transitions and one outgoing transition above the join, the activities associated with each of these paths continues in parallel at the join, the concurrent flows synchronize each waits until all incoming flows have reached the join, at which point one flow of control continues on below the join
  • 13. Example of an Activity Diagram
  • 14. Swimlanes  Activity diagrams tell you what happens, but they do not tell you who does what. In programming, this means that the diagram does not convey which class is responsible for each activity.  A swimlane is a way to group activities performed by the same actor on an activity diagram or to group activities in a single thread.  each group representing the business organization responsible for those activities  each group is called a swimlane  Each swimlane is divided from its neighbor by a vertical solid line
  • 15. Swimlanes  Each swimlane has a name unique within its diagram  Each swimlane may represent some real-world entity  Each swimlane may be implemented by one or more classes  Every activity belongs to exactly one swimlane, but transitions may cross lanes