Professional Documents
Culture Documents
and Design
Chapter 5-1
Requirement Structuring
Process
Learning Objectives
Understand the logical modeling of processes by
studying examples of data flow diagrams
(DFDs).
Draw data flow diagrams following specific rules
and guidelines that lead to accurate and well-
structured process models.
Decompose data flow diagrams into lower-level
diagrams.
Balance higher-level and lower-level data flow
diagrams.
2
Learning Objectives (Cont.)
Use data flow diagrams as a tool to
support the analysis of information
systems.
Discuss process modeling for electronic
commerce applications.
Use decision tables to represent the logic
of choice in conditional statements.
3
Phase 2: Analysis
Requirements Structuring
FIGURE 5-1
Systems development life cycle with the analysis phase highlighted
4
Process Modeling
Graphically represent the processes that
capture, manipulate, store, and distribute
data between a system and its
environment and among system
components.
Utilize information gathered during
requirements determination.
Model processes and data structures.
5
Data Flow Diagram
DFD is a graphical representation of the
"flow" of data through an information
system, modelling its process aspects.
It includes data inputs and outputs, data
stores, and the various sub-processes
the data moves through. DFDs are built
using standardized symbols and notation to
describe various entities and their
relationships.
6
Data Flow Diagram
It is the logical diagram about what the system
does.
DFD has a few levels;
Context data flow diagram (DFD) 0
7
Data Flow Diagram (DFD)
Uses only four symbols
FIGURE 5-2
Comparison of DeMarco
and Yourdon
and Gane and Sarson
DFD symbol sets
8
Basic Symbols
A double square for an external entity,
users of the system
An arrow for movement of data from one
point to another (data flow)
A rectangle with rounded corners for the
occurrence of a transforming process
(name of the system or process)
An open-ended rectangle for a data store
9
Definitions and Symbols (Cont.)
10
Definitions and Symbols (Cont.)
11
Process
Denotes a change in or transformation of
data
Represents work being performed in the
system
12
Data Store
A depository for data that allows examination,
addition, and retrieval of data
Named with a noun, describing the data
Data stores are usually given a unique reference
number, such as D1, D2, D3
Represents a:
Database
Computerized file
Filing cabinet
13
External Entities
Represent another department, a
business, a person, or a machine
A source or destination of data, outside
the boundaries of the system
Should be named with a noun
14
Data Flow
Shows movement of data from one point
to another
Described with a noun
Arrowhead indicates the flow direction
Represents data about a person, place, or
thing
15
Developing DFD
To start, create Context Diagram - the
highest level in a data flow diagram
Contains only one process, representing
the entire system
The process is given the number 0
All external entities, as well as major data
flows are shown
16
Example of Context Diagram
17
Developing Context Diagram
Context diagram is an overview of an
organizational system that shows:
the system boundaries.
external entities that interact with the system.
major information flows between the entities
and the system.
Note: only one process symbol, and no
data stores shown
18
Example: Food Ordering System
Identify the external entities & information
flows between entities and system. Then,
identify the name of the system (process).
Customer will place order to the system.
The order will be given to the Kitchen to
prepare.
The customer will receive a receipt for the
order
Restaurant Manager will print out
Management reports on daily basis.
19
Context Diagram
FIGURE 5-3
Context diagram of food-ordering system
20
Data Flow Diagram Rules
Food Ordering
System
23
Example This is a flowchart that calculate and
determine whether user can live alone.
1. Identify the data input and output
involved
2. Identify the user of the system
3. Identify the name of the system
4. Draw the context diagram
Solution
Hourly pay
0
user Hours per week
result
25
Example
A flowchart for withdrawing money from
ATM machine.
1. Identify the data in and out. start
Enter Choose
Action to choose Y N
amount withdrawal Right
N password
Y
Action to End
Y cash
Enough transaction
disburse continue or end end
Balance
N 26
Solution
Password to start
Customer’s password
O
Action to choose
customer Action chosen ATM Machine
Amount to withdraw System
Amount requested
Next action to choose
Next action chosen
27
Example
There are 4 parties involved (Student, Administration, Registrar, Faculty
Advisor).
Process involved in student registration;
Student submit registration
Administration will check whether submission is complete. If no,
student will be informed submission incomplete.
If yes, Registrar will check whether student fulfill the minimum
standard. If standard is not fulfill, Administration will prepare a
rejection letter.
If standard is fulfill, Advisor will check whether student is suitable
for the program. If student is suitable, Advisor will write Acceptance
Letter. If student is not suitable, Advisor will write Rejection letter.
The letter will be given to student at the end of the whole process.
28
Solution
Registration data Suitable student advisor
student to check
Notification of
incomplete
submission
Suitable student checked
letter 0
Minimum standard
Student
to check
Admission
Submission System
to check registrar
31
Example: Food Ordering System
Explode Context Diagram to DFD Level-0
Customer will place order to the system. The order will
be given to the Kitchen to prepare. The customer will
receive a receipt for the order.
The system will update goods sold into Goods Sold File
and will also update inventory data into Inventory File.
Once updated, goods sold becomes formatted goods
sold data and inventory data becomes formatted
Inventory data.
Restaurant Manager will print out Management reports
on daily basis. Data of daily goods sold amounts and
daily inventory depletion amount are collected from
data stores to be used in the report.
32
Explode this Context Diagram to
a DFD Level-0
FIGURE 5-3
Context diagram of food-ordering system
33
DFD Level-0
FIGURE 5-4
Level-0 DFD of food-ordering
system
34
Example
Create a DFD Level 0 that contains three processes, four
external entities and two data stores.
Customer can place an Order. The Order Food process
receives the Order, forwards it to the Kitchen, store it in
the Order data store, and store the updated Inventory
details in the Inventory data store. The process also deliver
a Bill to the Customer.
Manager can receive Reports through the Generate
Reports process, which takes Inventory details and Orders as
input from the Inventory and Order data store respectively.
Manager can also initiate the Order Inventory process by
providing Inventory order. The process forwards
the Inventory order to the Supplier and stores the
updated Inventory details in the Inventory data store.
35
Solution (DFD Level-0)
1.0
Order
Food
D D
1 2
2.0
Generate Report
3.0
Order Inventory
36
Data Flow Diagram Rules
Do not cross lines. Restrict the number of symbols in
DFD. In DFD level-0, you can only create a max of 9
processes. If you have more than 9, then your system
MIGHT be too complex.
A process must have at least 1 input and at least 1
output. Must not be any freestanding objects
Processes in DFD level-0 and lower, should be named
in VERB. Each process is numbered
Data stores in DFD level-0 and lower, should be
named in NOUN and numbered D#.
External entities should not be connected to one
another 37
Data Flow Diagramming Rules (Cont.)
TABLE 5-1 Rules Governing Data Flow Diagramming
38
Data Flow Diagramming Rules (Cont.)
TABLE 5-1 Rules Governing Data Flow Diagramming (cont.)
39
Errors in DFD
Forgetting to include a data flow or
pointing an arrow in the wrong direction
Connecting data stores and external
entities directly to each other
Incorrectly labeling processes or data flow
Including more than nine processes on a
data flow diagram
Omitting data flow
40
Errors in DFD
Forgetting to include a data flow or
pointing an arrow in the wrong direction
41
Errors in DFD
Connecting data stores and external
entities directly to each other
42
Errors in DFD
44
Explode this context diagram to
DFD Level-0
Registration data Suitable student advisor
student to check
Notification of
incomplete
submission
Suitable student checked
letter 0
Minimum standard
Student
to check
Admission
Submission System
to check registrar
Order data
Result
48
Invoice detail updated
Invoice details 1.0
Update invoice
Inventory added
2.0
Inventory D1 Inventory File
updated
Update inventory
Inventory
manager used 3.0 Bill
Inventory paid
Inventory available
Print report
Level to report
check Inventory level
4.0
5.0
result Compare min.level