DFD - R&H
DFD - R&H
Slide 2
Why Draw Data Flow
Diagrams ?
Clear Communication: DFDs provide a clear, visual
representation of how data flows through a system,
making complex systems easier to understand.
Text vs. DFDs:
• Relying solely on text can be inefficient and
overwhelming. Describing a system with an
exhaustive narrative can take up too much space,
making it difficult for the reader to see how parts fit
together.
• Imagine spending a significant amount of money on
a custom house based only on a written description
—this is the challenge with text-based system
descriptions.
Easier to Understand: DFDs are simpler and more
effective than lengthy narratives for representing
complex processes, ensuring clarity and easier
understanding
Slide 3
Types of Data Flow
Diagram
Data flow diagrams are categorized as either logical or physical.
Slide 5
Physical DFD Example -
Grocery Store
The physical DFD shows that a bar code-the UPC PRICE code found
on most grocery store items is used
In addition, the physical DFD mentions manual processes such as
scanning, explains that a temporary file is used to keep a subtotal of
items
The PAYMENT could be made by CASH, CHECK, or DEBIT CARD
Finally, it refers to the receipt by its name, CASH REGISTER
RECEIPT
Slide 6
Data Flow Diagram
Symbols
• Data flow diagram symbols are
standardized notations, like rectangles, circles,
arrows, and short-text labels. These symbols
represent a system’s data flow direction, inputs,
outputs, storage points, and sub-processes.
• common methods of notation are used in DFDs:
Yourdon & De Marco, Gene & Sarson
Slide 7
Data Flow Diagram
Symbols
Slide 8
Process
1.0
Grade Detail Grade Report
Produce
Grade
Report
D1 Accounts
Post Invoice Detail Receivable
Payment
A path for data to move from one part of the system to another.
Because every process changes data from one form into another, at
least one data-flow must enter and one data-flow must exit each
process symbol.
Slide 10
Data Store
D1 Students
Slide 12
DFD Elements
Slide 13
Rules of Drawing DFD
Slide 14
Illegal Data Flows
Slide 15
Frequently-Made Mistakes
In DFD
A second class of DFD mistakes arise when the outputs from one
processing step do not match its inputs and they can be classified as:
Slide 16
Context Diagram & DFD
Levels
Slide 17
Key Definition
• Numbering Levels in DFD
• In a DFD with many levels, it’s easy to lose track of which level
you are on.
• To address this, processes are numbered based on their level in
the hierarchy.
• The ‘level’ corresponds to the number of decimal places used to
define a process.
• How It Works
• Context Diagram: Process labeled “0”.
• Level 0: Processes labeled 1.0, 2.0, 3.0, etc.
• Level 1: Processes labeled 1.1, 1.2, 1.3, etc.
• Level 2: Processes labeled 1.11, 1.12, 1.13, etc
Slide 18
Key Definition
Slide 19
Decomposition Diagram
Slide 20
Balancing Diagram
Slide 21
Context Diagram
Slide 22
Level 0 Diagram
Slide 23
Level 1 Diagrams
Slide 24
Level 2 Diagrams
Slide 25
Data Flow Splits and
Joins
• A data flow split shows where a flow is broken into its
component parts for use in separate processes
• Data flow splits need not be mutually exclusive nor
use all the data from the parent flow
• As we move to lower levels we become more precise
about the data flows
• A data flow join shows where components are merged
to describe a more comprehensive flow
Slide 26
Creating Data Flow
Diagrams
Slide 27
Steps in Building DFDs
• Build the context diagram
• Create DFD fragments for each scenario
• Organize DFD fragments into level 0
• Decompose level 0 DFDs as needed
• Validate DFDs with user
Slide 28
DFD Fragment Tips
• All process names must be verb
phrases
• Maintain organization’s viewpoint in
naming processes
• Layouts often place
• processes in the center
• inputs from the left
• outputs to the right
• stores beneath the processes
Slide 29
A DFD Fragment
Example
Slide 30
A Second DFD Fragment
Example
Slide 31
Level 0 Tips
• Generally move from top to bottom,
left to right
• Minimize crossed lines
• Iterate as needed
• The DFD is often drawn many times
before it is finished, even with very
experienced systems analysts
Slide 32
Tips for Level 1 and Below
• Sources for inputs and outputs listed
at higher level
• List source and destination of data
flows to processes and stores within
each DFD
• Depth of DFD depends on overall
system complexity
• Two processes generally don’t need lower
level
• More than seven processes become overly
complex and difficult to read
Slide 33
Validating the DFD
• Syntax errors
• Assure correct DFD structure
• Semantics errors
• Assure accuracy of DFD relative to actual/desired
business processes
• User walkthroughs
• Role-play processes
• Examine lowest level DFDs
• Examine names carefully
Slide 34
Slide 35