ISS2201_W05_Data_Flow_Diagram
ISS2201_W05_Data_Flow_Diagram
2
MODEL: LOGICAL AND PHYSICAL
▰ Analysis phase , SA create model that define in great detail what is required
using logical model
▰ Logical models remove biases that are the result of the way the system is
currently implemented, or the way that any one person thinks the system might
be implemented.
▰ Logical models reduce the risk of missing business requirements because we
are too preoccupied with technical results.
▰ Logical models allow us to communicate with end-users in nontechnical or
less technical languages.
▰ In general is devided into :
▻ Structured Model
▻ Object Oriented Model 4
STRUCTURED VS OO MODELLING
5
WHAT IS STRUCTURED ANALYSIS MODEL?
7
OVERVIEW
▰ Data flow diagram (DFD) – a process model used to depict the flow of
data through a system and the work or processing performed by the
system.
▰ Data Flow Diagrams are usually produced using a CASE (Computer Aided
Software Engineering) tool.
▰ Using a CASE tool for construction of the DFDs has many advantages:
▻ Not Allow a non-standard use of notation for all the items in the
diagrams.
▻ Applies some rules so that designing the diagrams prevents the
users from making connections between the different items that
should not be allowed 8
DEVELOPMENT AND PURPOSE OF DFD (1)
11
EXTERNAL ENTITIES
▰ Example:
1. Enter customer details
2. Register new students
3. Validate sales orders
15
DATA FLOWS
17
DATA FLOWS TO AND FROM DATA STORES
18
RULES FOR DATA FLOWS
19
THE SYSTEM IS ITSELF A PROCESS
20
PROCESS DECOMPOSITION
21
DECOMPOSITION DIAGRAMS
Decomposition
diagram – a tool used
to depict the
decomposition of a
system. Also called
hierarchy chart.
22
COMMON PROCESS ERRORS ON DFDs
23
KEY POINTS THAT APPLY TO ALL DFDs
▰ All the data flows are labelled and describe the information that is being carried.
▰ It tends to make the diagram easier to read if the processes are kept to the middle, the
external entities to the left and the data stores appear on the right hand side of the diagram.
▰ Each process should have an output. If there is no output then there is no point in having that
process. A corollary of this is that there must be at least one input to a process as it cannot
produce data but can only convert it form one form to another.
▰ Data stores should have at least one data flow reading from them and one data flow writing to
them. If the data is never accessed there is a question as to whether it should be stored. In
addition, there must be some way of accumulating data in the data store in the first place so it
is unlikely there will be no writing to the data store.
▰ Data may flow from
▻ External entity to process and vice-versa
▻ Process to process
▻ Process to data store and vice-versa
▰ No logical order is implied by the choice of id for the process. 24
DEVELOPING DFD
▰ Context data flow diagram - a process model used to document the scope
for a system. Also called the environmental model.
27
PROCESS DECOMPOSITION DIAGRAM
29
CREATING CHILD DIAGRAM (1)
▰ All data flow in or out of the parent process must be shown flowing in
or out of the child diagram
▰ Processes on the child diagram are numbered using the parent
process number, a decimal point, and a unique number for each child
process (e.g., if process 3 would be exploded to level 2 then its
number become 3.1 to … 3.n)
▰ Child diagram may include data stores not shown on the parent
process
▰ Processes may or may not be exploded, depending on level of
complexity 31
CHECK LIST
There are many errors that may occur when drawing data flow diagrams. Here is a check list to help you
avoid some of the major difficulties.
1. External entities must be people or systems that send information to or accept information form
the system to be engineered.
2. Data flows must always be labelled with the data they contain. Do not put verbs in the data flow
description as this implies a process.
3. Parent and child diagrams should be consistent. Each child diagram should have the same input
and output data flow as the parent process. Do not show a data flow coming from or to an
external entity on a level 1 DFD that isn’t shown on the context diagram (and vice versa).
4. Check the direction of data flows to and from data stores.
5. Make sure each process has at least one input and one output.
6. Each data store should have at least one input and one output on the DFDs somewhere.
7. Each process name should start with a verb.
8. Where a process has only two data flows (one input and one output) then check it. Usually a data
flow has been omitted. 32
PROCESS MODELLING AND DFDs
35
CASE STUDY
37