SlideShare a Scribd company logo
Process View
Dr. Huma Hayat Khan
Activity Diagram
• Activity diagram is an important diagram in UML to
describe dynamic aspects of the system.
• Activity diagram is basically a flow chart to represent
the flow from one activity to another activity. The
activity can be described as an operation of the
system.
• So the control flow is drawn from one operation to
another. This flow can be sequential, branched or
concurrent. Activity diagrams deals with all type of
flow control by using different elements like fork, join
etc.
activity diagram It related bs computer semester 5
How to Draw an Activity Diagram
• Before drawing an activity diagram we must
have a clear understanding about the elements
used in activity diagram.
• The main element of an activity diagram is the
activity itself.
• An activity is a function performed by the
system. After identifying the activities we need
to understand how they are associated with
constraints and conditions.
Cont…
• So before drawing an activity diagram we
should identify the following elements:
– Activities
– Association
– Conditions
– Constraints
Order management system (example)
• In the diagram four activities are identified
which are associated with conditions.
• One important point should be clearly
understood that an activity diagram cannot be
exactly matched with the code.
• The activity diagram is made to understand
the flow of activities and mainly used by the
business users.
Cont…
• The diagram is drawn with the four main
activities:
– Send order by the customer
– Receipt of the order
– Confirm order
– Dispatch order
Cont…
• Description:
– After receiving the order request condition checks
are performed to check if it is normal or special
order. After the type of order is identified dispatch
activity is performed and that is marked as the
termination of the process.
activity diagram It related bs computer semester 5
Decision and Merge Nodes
• Decision nodes and merge nodes have the
same notation: a diamond shape
• The control flows coming away from a
decision node will have guard conditions
Fork and Join Nodes
• Forks and joins have the same notation: either
a horizontal or vertical bar
– They indicate the start and end of concurrent
threads of control
– Join synchronizes two inflows and produces a
single outflow
– The outflow from a join cannot execute until all
inflows have been received
Process Order Example

More Related Content

PPTX
Use Case Descriptions Collabration .pptx
PPT
Slide 6 Activity Diagram
PPT
Uml Activity Diagram
PPTX
Activity diagram
PPT
Software designe and constractionLec 4B.ppt
PPT
SE- Lecture 5 for software development.ppt
PPT
SE- Lecture 5 SE for easy understanding.ppt
PPTX
UML - Activity Diagrams (1) for cs.pptx
Use Case Descriptions Collabration .pptx
Slide 6 Activity Diagram
Uml Activity Diagram
Activity diagram
Software designe and constractionLec 4B.ppt
SE- Lecture 5 for software development.ppt
SE- Lecture 5 SE for easy understanding.ppt
UML - Activity Diagrams (1) for cs.pptx

Similar to activity diagram It related bs computer semester 5 (20)

PPT
08 state diagram and activity diagram
PDF
Activity diag
PDF
unified modeling language diagrams
DOC
Online shopping cart system file
PDF
Uml intro
PPTX
ACTIVITY DIAGRAM.pptx
PPTX
Unit three Advanced State Modelling
PPT
4 Activity & Statechart diagram.ppt4 Activity & Statechart diagram.ppt4 Activ...
PPT
analysis and design with uml
PDF
3 interaction and_state_modeling
PPTX
ACTIVITY DIAGRAMS IN OBJECT ORIENTED ANALYSIS AND DESIGN
PDF
6-UseCfgfhgfhgfhgfhgfhfhhaseActivity.pdf
PPTX
Requirement engineering.pptx power point
PPTX
SOFTWARE engineering REQuirements .pptx
PPT
PPT
Analysis modeling & scenario based modeling
PPTX
BPM - Activity diagram.pptx
PPTX
UML - activity diagram tutorial
PPTX
LECTURE 9 (Week 5) - Behavioral Diagrams.pptx
08 state diagram and activity diagram
Activity diag
unified modeling language diagrams
Online shopping cart system file
Uml intro
ACTIVITY DIAGRAM.pptx
Unit three Advanced State Modelling
4 Activity & Statechart diagram.ppt4 Activity & Statechart diagram.ppt4 Activ...
analysis and design with uml
3 interaction and_state_modeling
ACTIVITY DIAGRAMS IN OBJECT ORIENTED ANALYSIS AND DESIGN
6-UseCfgfhgfhgfhgfhgfhfhhaseActivity.pdf
Requirement engineering.pptx power point
SOFTWARE engineering REQuirements .pptx
Analysis modeling & scenario based modeling
BPM - Activity diagram.pptx
UML - activity diagram tutorial
LECTURE 9 (Week 5) - Behavioral Diagrams.pptx
Ad

Recently uploaded (20)

PPTX
climate analysis of Dhaka ,Banglades.pptx
PPTX
Computer network topology notes for revision
PPT
Reliability_Chapter_ presentation 1221.5784
PDF
Transcultural that can help you someday.
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPT
Quality review (1)_presentation of this 21
PDF
Introduction to Data Science and Data Analysis
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Lecture1 pattern recognition............
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
IB Computer Science - Internal Assessment.pptx
PDF
Mega Projects Data Mega Projects Data
PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PDF
[EN] Industrial Machine Downtime Prediction
climate analysis of Dhaka ,Banglades.pptx
Computer network topology notes for revision
Reliability_Chapter_ presentation 1221.5784
Transcultural that can help you someday.
oil_refinery_comprehensive_20250804084928 (1).pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
Clinical guidelines as a resource for EBP(1).pdf
Quality review (1)_presentation of this 21
Introduction to Data Science and Data Analysis
Acceptance and paychological effects of mandatory extra coach I classes.pptx
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Lecture1 pattern recognition............
Introduction-to-Cloud-ComputingFinal.pptx
IB Computer Science - Internal Assessment.pptx
Mega Projects Data Mega Projects Data
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
[EN] Industrial Machine Downtime Prediction
Ad

activity diagram It related bs computer semester 5

  • 2. Activity Diagram • Activity diagram is an important diagram in UML to describe dynamic aspects of the system. • Activity diagram is basically a flow chart to represent the flow from one activity to another activity. The activity can be described as an operation of the system. • So the control flow is drawn from one operation to another. This flow can be sequential, branched or concurrent. Activity diagrams deals with all type of flow control by using different elements like fork, join etc.
  • 4. How to Draw an Activity Diagram • Before drawing an activity diagram we must have a clear understanding about the elements used in activity diagram. • The main element of an activity diagram is the activity itself. • An activity is a function performed by the system. After identifying the activities we need to understand how they are associated with constraints and conditions.
  • 5. Cont… • So before drawing an activity diagram we should identify the following elements: – Activities – Association – Conditions – Constraints
  • 6. Order management system (example) • In the diagram four activities are identified which are associated with conditions. • One important point should be clearly understood that an activity diagram cannot be exactly matched with the code. • The activity diagram is made to understand the flow of activities and mainly used by the business users.
  • 7. Cont… • The diagram is drawn with the four main activities: – Send order by the customer – Receipt of the order – Confirm order – Dispatch order
  • 8. Cont… • Description: – After receiving the order request condition checks are performed to check if it is normal or special order. After the type of order is identified dispatch activity is performed and that is marked as the termination of the process.
  • 10. Decision and Merge Nodes • Decision nodes and merge nodes have the same notation: a diamond shape • The control flows coming away from a decision node will have guard conditions
  • 11. Fork and Join Nodes • Forks and joins have the same notation: either a horizontal or vertical bar – They indicate the start and end of concurrent threads of control – Join synchronizes two inflows and produces a single outflow – The outflow from a join cannot execute until all inflows have been received