You are on page 1of 25

System Analysis and

Design
Lesson 6

Dileeka Alwis
NSBM - School of Computing

System Analysis & Design - Lesson 6 1


Data Flow Diagram (DFD)

• A pictorial model used to depict the flow of data through


the system and the processing performed by the system.

• It shows how data is captured, processed, stored and


distributed within a system.

System Analysis & Design - Lesson 6 2


Difference Between DFD & Flow
Chart
• Processes on DFDs can operate in parallel (at-the-same-
time)
- Processes on flowcharts execute one at a time

• DFDs show the flow of data through a system


- Flowcharts show the flow of control (sequence)

• Processes on DFD can have dramatically different timing


(daily, weekly, on demand)
- Processes on flowcharts are part of a single program with
consistent timing

System Analysis & Design - Lesson 6 3


Symbols in DFD
Process
represents a task that handles data within the
application. The task may process the data or
perform an action based on the data.

Data Flow
represents data movement within the application.
The direction of the data movement is
represented by the arrow.

System Analysis & Design - Lesson 6 4


External Entity
represent any entity outside the application
that interacts with the application via an entry
point.

only interested in how data flows in to or from


the system to them.

Data Store
represent locations where data is stored.
Data stores do not modify the data, they only
store data.

System Analysis & Design - Lesson 6 5


Guidelines for drawing DFD

Naming conventions:
Processes: Verbs
Data flows: Nouns
Data stores: Nouns
Entities: Nouns

System Analysis & Design - Lesson 6 6


Processes

• Place in the center of the diagram.


• Must be numbered.
• Numbering must be consistent across all levels of
DFDs.
• Better to limit to 7 processes per DFD.

System Analysis & Design - Lesson 6 7


Data Flows

• Arrow pointing to the direction of data flow.


• Must not be split.
• Loops are not allowed.

System Analysis & Design - Lesson 6 8


Date Store

• Must be labeled with ‘S number’ or ‘D number’.

• Consistent across all diagrams and levels.

• Can not create or destroy any data.


• What comes out of a data store must first go into it through
a process.
• If a data store repeats on the same DFD, then an additional
line is added to it.

System Analysis & Design - Lesson 6 9


External Entity

• For repeating entity a diagonal line is added to the


north-west corner of the rectangle

System Analysis & Design - Lesson 6 10


Illegal Data Flows

System Analysis & Design - Lesson 6 11


Illegal Data Flows


System Analysis & Design - Lesson 6 12


System Analysis & Design - Lesson 6 13


System Analysis & Design - Lesson 6 14
Steps to create a DFD
• Draw a rough picture of the current system showing the sequence of
events.
• Identify the boundary of the system.
• The boundary will help to identify the External Entities.
• Identify the Data Stores.
• Split the text into individual tasks.
• Split a task into smaller instructions if possible.
• Identify the Inputs to each instruction, and the source of those
inputs.
• Identify the Outputs from each instruction, and the destination of
the output.
System Analysis & Design - Lesson 6 15
Process Decomposition
The act of breaking a system into sub-components.

System Analysis & Design - Lesson 6 16


Decomposition
Diagrams

System Analysis & Design - Lesson 6 17


Levels of DFD

• Context Diagram
• Level 0 DFD
• Level 1 DFD

System Analysis & Design - Lesson 6 18


Context Diagram
• The highest level DFD which should draw first.
• Represents the entire system as a single process connected to external
entities by data flows.
• It is used to clarify the scope of the system.
• It does not contain data stores.

• Include a title that states what system is being modeled.

System Analysis & Design - Lesson 6 19


Context Diagram for Food Ordering
System

System Analysis & Design - Lesson 6 20


Food Ordering System

System Analysis & Design - Lesson 6 21


Level 0 DFD

• A lower level DFD - Second level from the top in the hierarchy.
• Shows how the major processes that comprise the overall
system are interrelated with external entities by data flows.
• Adds data stores.
• Data flows and external entities in level 0 diagram must match
exactly to those in the Context Diagram.

System Analysis & Design - Lesson 6 22


Level 0 DFD for Food Ordering System

System Analysis & Design - Lesson 6 23


Level 1 DFD

• A lower level DFD - Third level from the top in the hierarchy.
• One level 1 diagram is created for every major process on the
level 0 diagram.
• Shows all the internal processes that comprise a single process
on the level 0 diagram.

System Analysis & Design - Lesson 6 24


Level 1 DFD of Process 1

System Analysis & Design - Lesson 6 25

You might also like