SlideShare a Scribd company logo
1 of 50
Data Flow Diagrams
SYSTEM ANALYSIS
 STRUCTURED ANALYSIS
 UNSTRUCTURED ANALYSIS
TOOLS OF STRUCTURED
ANALYSIS
 DATA FLOW DIAGRAMS
 DECISION TABLE
 SYSTEM FLOW CHART
 ENTITY RELATIONSHIP(ER) DIAGRAM
Data Flow Diagram:
"a network representation of a
system. The system may be
automated, manual, or mixed. The
DFD portrays the system in terms of
its component pieces, with all
interfaces among the components
indicated." - Tom DeMarco
hence DFDs:
focus on the movement of data
between external entities and
processes, and between processes
and data stores
DATA FLOW DIAGRAMS
Levels OF DFDs
 CONTEXT DIAGRAM
 0 – LEVEL DIAGRAM (NEXT LEVEL)
 LEVEL 1 DIAGRAMS
 LOGICAL DFDS
 PHYSICAL DFDS
LOGICAL DFDs
 STRUCTURED ANALYSIS
 Focuses on the business and how the business
operates. It is not concerned with how the system
will be constructed.
PHYSICAL DFDs
 The data flow diagrams which represent the
model of the current system (manual or
computerized), are known as physical DFDs.
 Shows how the system will be implemented
including the hardware, software, files and people
involved in the system
Physical Data Flow Diagrams
Physical vs Logical DFDs
 Physical
 when any physical object or process is present
 Logical
 when no physical components are present
 Physical = How? i.e. limited to the way
things are done
 Logical = What? i.e. concerned with what is
done
 Example – a data store called ‘Sales
Notebook’ is a physical data store but
‘Sales File’ is logical.
DFDs SYMBOL
DFD MODELING NOTATION
EXTERNAL ENTITY
 It represent any entity that supplies data or
receives information from system. For example,
customer, sales department, employee etc., are
external entities.
CUSTOMER
DATA FLOW
 The data flow indicates the movement of data
either from input to process or from process to
output. Data flow is labeled to show what data is
flowing. For example, customer details, sales
report, etc., are data flows.
New customer
Information
PROCESS
 Processes are the actions performed on input
data to produce the output data. They are given
some meaningful names. For example, prepare
bill, calculate sales, compute pay etc., are the
processes.
2.1
Create customer Record
DATA STORE
 Data store indicates the data file or register where
data is accumulated. For example, customer
master file, employee register, sales transaction
files, etc., are data stores.
Customer
Master file
D3
COMMON MISTAKES
Creating Data Flow Diagrams
Creating DFDs is a highly iterative process of
gradual refinement.
General steps:
1. Create a preliminary Context Diagram
2. Identify Use Cases, i.e. the ways in which users
most commonly use the system
3. Create DFD fragments for each use case
4. Create a Level 0 diagram from fragments
5. Decompose to Level 1,2,…
6. Go to step 1 and revise as necessary
7. Validate DFDs with users.
Constructing a Context Diagram
 identify and list sources/sinks (external
entities)
 identify and list inputs to and outputs from
sources/sinks (external entities)
 create context diagram
.
 Level-O Diagram
 A data flow diagram (DFD) that represents a
system’s major processes, data flows and data
stores at a high level of detail.
 When the Context Diagram is
expanded into DFD level-0, all the
connections that flow into and out of
process 0 needs to be retained.
Level-0 DFD of Hoosier Burger’s food ordering system
8.30
Lower-Level Diagrams
 Functional Decomposition
 Balancing
Decomposition of DFDs
 Functional decomposition
 An iterative process of breaking a system description
down into finer and finer detail
 Uses a series of increasingly detailed DFDs to describe
an IS
 Act of going from one single system to many
component processes
 Repetitive procedure
 Lowest level is called a primitive DFD
 Level-N Diagrams
 A DFD that is the result of n nested decompositions of
a series of subprocesses from a process on a level-0
diagram
Balancing DFDs
 When decomposing a DFD, you must conserve
inputs to and outputs from a process at the next
level of decomposition
 Ensures that the input and output data flows of
the parent DFD are maintained on the child DFD
 This is called balancing
 Example: Hoosier Burgers
 In Figure 1, notice that there is one input to the system,
the customer order
 Three outputs:
 Customer receipt
 Food order
 Management reports
Context diagram of Hoosier Burger’s Food ordering system
Balancing DFDs Example (Continued)
 Notice Figure 2. We have the same inputs and
outputs
 No new inputs or outputs have been introduced
 We can say that the context diagram and level-0
DFD are balanced
Figure 2
Level-0 DFD of Hoosier Burger’s food ordering system
Balancing DFDs:
An unbalanced example
 Figure 3:
 In context diagram, we have one input to the system, A
and one output, B
 Level-0 diagram has one additional data flow, C
 These DFDs are not balanced
Figure 3: An unbalanced set of data
flow diagrams
SOURCE SINK
(a) Context diagram
(b) Level-0 diagram
SOURCE 1
SINK
0
SOURCE 2
1.0
2.0
A B
A
C
B
Creating Data Flow Diagrams
Lemonade Stand Example
Creating Data Flow Diagrams
Steps:
1. Create a list of activities
2. Construct Context Level DFD
(identifies sources and sink)
3. Construct Level 0 DFD
(identifies manageable sub processes )
4. Construct Level 1- n DFD
(identifies actual data flows and data stores )
Example
The operations of a simple
lemonade stand will be used
to demonstrate the creation
of dataflow diagrams.
Creating Data Flow Diagrams
1. Create a list of activities
Example
Think through the activities
that take place at a lemonade
stand.
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Creating Data Flow Diagrams
Example
Also think of the additional
activities needed to support
the basic activities.
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labor
1. Create a list of activities
Creating Data Flow Diagrams
Example
Group these activities in
some logical fashion,
possibly functional areas.
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labour
1. Create a list of activities
Creating Data Flow Diagrams
0.0
Lemonade
System
EMPLOYEE
CUSTOMER
Pay
Payment
Order
Context Level DFD
Example
Create a context level
diagram identifying the
sources and sinks (users).
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labor
VENDOR
Payment
Purchase Order
Production Schedule
Received Goods
Time Worked
Sales Forecast
2. Construct Context Level DFD
(identifies sources and sink)
Product Served
Creating Data Flow Diagrams
Level 0 DFD
Example
Create a level 0 diagram
identifying the logical
subsystems that may exist.
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labor
3. Construct Level 0 DFD
(identifies manageable sub processes )
2.0
Production
EMPLOYEE
Production
Schedule
1.0
Sale
3.0
Procure-
ment
Sales Forecast
Product Ordered
CUSTOMER
Pay
Payment
Customer Order
VENDOR
Payment
Purchase Order
Order
Decisions
Received Goods
Time Worked
Inventory
Product Served
4.0
Payroll
Creating Data Flow Diagrams
Level 1 DFD
Example
Create a level 1
decomposing the processes
in level 0 and identifying
data stores.
4. Construct Level 1- n DFD
(identifies actual data flows and data stores )
1.3
Produce
Sales
Forecast
Sales Forecast
Payment
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labor
1.1
Record
Order
Customer Order
ORDER
1.2
Receive
Payment
PAYMENT
Severed Order
Request for Forecast
CUSTOMER
Creating Data Flow Diagrams
Level 1 DFD
Example
Create a level 1
decomposing the processes
in level 0 and identifying
data stores.
4. Construct Level 1 (continued)
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labor
2.1
Serve
Product
Product Order
ORDER
2.2
Produce
Product
INVENTORTY
Quantity Severed
Production
Schedule
RAW
MATERIALS
2.3
Store
Product
Quantity Produced &
Location Stored
Quantity Used
Production Data
Creating Data Flow Diagrams
Level 1 DFD
Example
Create a level 1
decomposing the processes
in level 0 and identifying
data stores.
4. Construct Level 1 (continued)
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labor
3.1
Produce
Purchase
Order
Order Decision
PURCHASE
ORDER
3.2
Receive
Items
Received
Goods
RAW
MATERIALS
3.3
Pay
Vendor
Quantity
Received
Quantity On-Hand
RECEIVED
ITEMS
VENDOR
Payment Approval
Payment
Creating Data Flow Diagrams
Level 1 DFD
Example
Create a level 1
decomposing the processes
in level 0 and identifying
data stores.
4. Construct Level 1 (continued)
Time Worked
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labor
4.1
Record
Time
Worked
TIME CARDS
4.2
Calculate
Payroll
Payroll Request
EMPLOYEE
4.3
Pay
Employe
e
Employee ID
PAYROLL
PAYMENTS
Payment Approval
Payment
Unpaid time cards
Process Decomposition
4.1
Record
Time
Worked
4.2
Calculate
Payroll
4.3
Pay
Employe
e
3.1
Produce
Purchase
Order
3.2
Receive
Items
3.3
Pay
Vendor
2.1
Serve
Product
2.2
Produce
Product
2.3
Store
Product
1.1
Record
Order
1.2
Receive
Payment
2.0
Production
1.0
Sale
3.0
Procure-
ment
4.0
Payroll
0.0
Lemonade
System
Level 0 Level 1
Context Level

More Related Content

Similar to DATA FLOW DIAGRAMS Yamini devi.ppt

Similar to DATA FLOW DIAGRAMS Yamini devi.ppt (20)

DFD1.ppt
DFD1.pptDFD1.ppt
DFD1.ppt
 
Data Flow Diagrams
Data Flow DiagramsData Flow Diagrams
Data Flow Diagrams
 
Dfd examples
Dfd examplesDfd examples
Dfd examples
 
dtata flow digram
dtata flow digramdtata flow digram
dtata flow digram
 
DFD
DFDDFD
DFD
 
DFD Examples.ppt
DFD Examples.pptDFD Examples.ppt
DFD Examples.ppt
 
DFD Examples.ppt
DFD Examples.pptDFD Examples.ppt
DFD Examples.ppt
 
DFD(Data Flow Diagrams) and Examples
DFD(Data Flow Diagrams) and ExamplesDFD(Data Flow Diagrams) and Examples
DFD(Data Flow Diagrams) and Examples
 
DFD Examples.ppt, what are DFD, solved exmples of DFD
DFD Examples.ppt, what are DFD, solved exmples of DFDDFD Examples.ppt, what are DFD, solved exmples of DFD
DFD Examples.ppt, what are DFD, solved exmples of DFD
 
Dfd examples
Dfd examplesDfd examples
Dfd examples
 
Dfd mechanics
Dfd mechanicsDfd mechanics
Dfd mechanics
 
Dfd over flowcharts
Dfd over flowcharts Dfd over flowcharts
Dfd over flowcharts
 
Dfd mechanics
Dfd mechanicsDfd mechanics
Dfd mechanics
 
Dfd2
Dfd2Dfd2
Dfd2
 
Data flow diagram
Data flow diagram Data flow diagram
Data flow diagram
 
DFD.ppt
DFD.pptDFD.ppt
DFD.ppt
 
DFD_Context-_zero-level.ppt
DFD_Context-_zero-level.pptDFD_Context-_zero-level.ppt
DFD_Context-_zero-level.ppt
 
Design Flow Diagram for Information System
Design Flow Diagram for Information SystemDesign Flow Diagram for Information System
Design Flow Diagram for Information System
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagram
 
Data Flow 2
Data Flow 2Data Flow 2
Data Flow 2
 

Recently uploaded

Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxStephen Sitton
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodManicka Mamallan Andavar
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdfsahilsajad201
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHSneha Padhiar
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfNainaShrivastava14
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Communityprachaibot
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsapna80328
 

Recently uploaded (20)

Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument method
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
Prach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism CommunityPrach: A Feature-Rich Platform Empowering the Autism Community
Prach: A Feature-Rich Platform Empowering the Autism Community
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveying
 

DATA FLOW DIAGRAMS Yamini devi.ppt

  • 2. SYSTEM ANALYSIS  STRUCTURED ANALYSIS  UNSTRUCTURED ANALYSIS
  • 3. TOOLS OF STRUCTURED ANALYSIS  DATA FLOW DIAGRAMS  DECISION TABLE  SYSTEM FLOW CHART  ENTITY RELATIONSHIP(ER) DIAGRAM
  • 4.
  • 5.
  • 6.
  • 7. Data Flow Diagram: "a network representation of a system. The system may be automated, manual, or mixed. The DFD portrays the system in terms of its component pieces, with all interfaces among the components indicated." - Tom DeMarco hence DFDs: focus on the movement of data between external entities and processes, and between processes and data stores
  • 9. Levels OF DFDs  CONTEXT DIAGRAM  0 – LEVEL DIAGRAM (NEXT LEVEL)  LEVEL 1 DIAGRAMS  LOGICAL DFDS  PHYSICAL DFDS
  • 10.
  • 11.
  • 12. LOGICAL DFDs  STRUCTURED ANALYSIS  Focuses on the business and how the business operates. It is not concerned with how the system will be constructed.
  • 13.
  • 14. PHYSICAL DFDs  The data flow diagrams which represent the model of the current system (manual or computerized), are known as physical DFDs.  Shows how the system will be implemented including the hardware, software, files and people involved in the system
  • 15. Physical Data Flow Diagrams
  • 16. Physical vs Logical DFDs  Physical  when any physical object or process is present  Logical  when no physical components are present  Physical = How? i.e. limited to the way things are done  Logical = What? i.e. concerned with what is done  Example – a data store called ‘Sales Notebook’ is a physical data store but ‘Sales File’ is logical.
  • 19. EXTERNAL ENTITY  It represent any entity that supplies data or receives information from system. For example, customer, sales department, employee etc., are external entities. CUSTOMER
  • 20. DATA FLOW  The data flow indicates the movement of data either from input to process or from process to output. Data flow is labeled to show what data is flowing. For example, customer details, sales report, etc., are data flows. New customer Information
  • 21. PROCESS  Processes are the actions performed on input data to produce the output data. They are given some meaningful names. For example, prepare bill, calculate sales, compute pay etc., are the processes. 2.1 Create customer Record
  • 22. DATA STORE  Data store indicates the data file or register where data is accumulated. For example, customer master file, employee register, sales transaction files, etc., are data stores. Customer Master file D3
  • 24.
  • 25.
  • 26. Creating Data Flow Diagrams Creating DFDs is a highly iterative process of gradual refinement. General steps: 1. Create a preliminary Context Diagram 2. Identify Use Cases, i.e. the ways in which users most commonly use the system 3. Create DFD fragments for each use case 4. Create a Level 0 diagram from fragments 5. Decompose to Level 1,2,… 6. Go to step 1 and revise as necessary 7. Validate DFDs with users.
  • 27. Constructing a Context Diagram  identify and list sources/sinks (external entities)  identify and list inputs to and outputs from sources/sinks (external entities)  create context diagram
  • 28.
  • 29. .  Level-O Diagram  A data flow diagram (DFD) that represents a system’s major processes, data flows and data stores at a high level of detail.  When the Context Diagram is expanded into DFD level-0, all the connections that flow into and out of process 0 needs to be retained.
  • 30. Level-0 DFD of Hoosier Burger’s food ordering system 8.30
  • 31. Lower-Level Diagrams  Functional Decomposition  Balancing
  • 32. Decomposition of DFDs  Functional decomposition  An iterative process of breaking a system description down into finer and finer detail  Uses a series of increasingly detailed DFDs to describe an IS  Act of going from one single system to many component processes  Repetitive procedure  Lowest level is called a primitive DFD  Level-N Diagrams  A DFD that is the result of n nested decompositions of a series of subprocesses from a process on a level-0 diagram
  • 33. Balancing DFDs  When decomposing a DFD, you must conserve inputs to and outputs from a process at the next level of decomposition  Ensures that the input and output data flows of the parent DFD are maintained on the child DFD  This is called balancing  Example: Hoosier Burgers  In Figure 1, notice that there is one input to the system, the customer order  Three outputs:  Customer receipt  Food order  Management reports
  • 34. Context diagram of Hoosier Burger’s Food ordering system
  • 35. Balancing DFDs Example (Continued)  Notice Figure 2. We have the same inputs and outputs  No new inputs or outputs have been introduced  We can say that the context diagram and level-0 DFD are balanced
  • 36. Figure 2 Level-0 DFD of Hoosier Burger’s food ordering system
  • 37. Balancing DFDs: An unbalanced example  Figure 3:  In context diagram, we have one input to the system, A and one output, B  Level-0 diagram has one additional data flow, C  These DFDs are not balanced
  • 38. Figure 3: An unbalanced set of data flow diagrams SOURCE SINK (a) Context diagram (b) Level-0 diagram SOURCE 1 SINK 0 SOURCE 2 1.0 2.0 A B A C B
  • 39. Creating Data Flow Diagrams Lemonade Stand Example
  • 40. Creating Data Flow Diagrams Steps: 1. Create a list of activities 2. Construct Context Level DFD (identifies sources and sink) 3. Construct Level 0 DFD (identifies manageable sub processes ) 4. Construct Level 1- n DFD (identifies actual data flows and data stores ) Example The operations of a simple lemonade stand will be used to demonstrate the creation of dataflow diagrams.
  • 41. Creating Data Flow Diagrams 1. Create a list of activities Example Think through the activities that take place at a lemonade stand. Customer Order Serve Product Collect Payment Produce Product Store Product
  • 42. Creating Data Flow Diagrams Example Also think of the additional activities needed to support the basic activities. Customer Order Serve Product Collect Payment Produce Product Store Product Order Raw Materials Pay for Raw Materials Pay for Labor 1. Create a list of activities
  • 43. Creating Data Flow Diagrams Example Group these activities in some logical fashion, possibly functional areas. Customer Order Serve Product Collect Payment Produce Product Store Product Order Raw Materials Pay for Raw Materials Pay for Labour 1. Create a list of activities
  • 44. Creating Data Flow Diagrams 0.0 Lemonade System EMPLOYEE CUSTOMER Pay Payment Order Context Level DFD Example Create a context level diagram identifying the sources and sinks (users). Customer Order Serve Product Collect Payment Produce Product Store Product Order Raw Materials Pay for Raw Materials Pay for Labor VENDOR Payment Purchase Order Production Schedule Received Goods Time Worked Sales Forecast 2. Construct Context Level DFD (identifies sources and sink) Product Served
  • 45. Creating Data Flow Diagrams Level 0 DFD Example Create a level 0 diagram identifying the logical subsystems that may exist. Customer Order Serve Product Collect Payment Produce Product Store Product Order Raw Materials Pay for Raw Materials Pay for Labor 3. Construct Level 0 DFD (identifies manageable sub processes ) 2.0 Production EMPLOYEE Production Schedule 1.0 Sale 3.0 Procure- ment Sales Forecast Product Ordered CUSTOMER Pay Payment Customer Order VENDOR Payment Purchase Order Order Decisions Received Goods Time Worked Inventory Product Served 4.0 Payroll
  • 46. Creating Data Flow Diagrams Level 1 DFD Example Create a level 1 decomposing the processes in level 0 and identifying data stores. 4. Construct Level 1- n DFD (identifies actual data flows and data stores ) 1.3 Produce Sales Forecast Sales Forecast Payment Customer Order Serve Product Collect Payment Produce Product Store Product Order Raw Materials Pay for Raw Materials Pay for Labor 1.1 Record Order Customer Order ORDER 1.2 Receive Payment PAYMENT Severed Order Request for Forecast CUSTOMER
  • 47. Creating Data Flow Diagrams Level 1 DFD Example Create a level 1 decomposing the processes in level 0 and identifying data stores. 4. Construct Level 1 (continued) Customer Order Serve Product Collect Payment Produce Product Store Product Order Raw Materials Pay for Raw Materials Pay for Labor 2.1 Serve Product Product Order ORDER 2.2 Produce Product INVENTORTY Quantity Severed Production Schedule RAW MATERIALS 2.3 Store Product Quantity Produced & Location Stored Quantity Used Production Data
  • 48. Creating Data Flow Diagrams Level 1 DFD Example Create a level 1 decomposing the processes in level 0 and identifying data stores. 4. Construct Level 1 (continued) Customer Order Serve Product Collect Payment Produce Product Store Product Order Raw Materials Pay for Raw Materials Pay for Labor 3.1 Produce Purchase Order Order Decision PURCHASE ORDER 3.2 Receive Items Received Goods RAW MATERIALS 3.3 Pay Vendor Quantity Received Quantity On-Hand RECEIVED ITEMS VENDOR Payment Approval Payment
  • 49. Creating Data Flow Diagrams Level 1 DFD Example Create a level 1 decomposing the processes in level 0 and identifying data stores. 4. Construct Level 1 (continued) Time Worked Customer Order Serve Product Collect Payment Produce Product Store Product Order Raw Materials Pay for Raw Materials Pay for Labor 4.1 Record Time Worked TIME CARDS 4.2 Calculate Payroll Payroll Request EMPLOYEE 4.3 Pay Employe e Employee ID PAYROLL PAYMENTS Payment Approval Payment Unpaid time cards