Data Flow Diagrams
Data Flow Diagrams
Recap
• DFD
– Where
– Why
• Elements
• Labelling
• Notation
• Balancing
Elements / Labeling
Notation
Contents
• DFD Examples
Data Flow Diagram
1
club
Payment Number &
reminder categories of
members
Annual
Member general
meeting
A context diagram or top level DFD
(Level 0)
Level 1 DFD
• A level 1 DFD can then be drawn showing a process to handle each
incoming data flow and a process to generate.
Treasurer
Name & Treasure
Payment
Member details
r
1 Amount
Name & 2
Payment
Due
Send
reminders
Member Record
payment
Number &
categories of
members
Member
at AGM
Level 1 DFD
Example 2: Gift-Online
Gifts Online provides online purchasing facilities so guests who have
been invited to an occasion can select gifts from lists that have been
prepared by the host(s) of the occasions. This will include ordering,
provision of purchasing facilities, provision of secure e-commerce
transactional facilities through to wrapping and delivery. After guest
has entered their username and password, the user can select the
name of the person(s) for whom the occasion is being held from a
keyword search facility. The system provides the user with the gifts
that the host would like guests to look at. The user can view and
select one or more gifts by looking at the Price, category, and details.
After the user has placed the gift(s) in the shopping trolley the user
confirms the order. At this point a Secure Payment Gateway
connection is established and the user is required to enter credit card
details. After finally submitting the order, the coms inventory and
payments databases are updated and the user is sent an email with
order confirmation and delivery details.
Credit card Transaction
details Detail
Gift Secure
Payment
Guest Online Gateway
Transaction Confirmation
Confirmation Detail
http://www.csub.edu
Creating Data Flow Diagrams
Example 1. Create a list of activities
Produce Product
Store Product
INVENTORTY
Order Raw Materials Production Data
Pay for Raw Materials
2.3 Quantity Produced &
Store Location Stored
Pay for Labor Product
Creating Data Flow Diagrams
Example 4. Construct Level 1 (continued)
Create a level 1
decomposing the processes Level 1 DFD
in level 0 and identifying Order Decision
PURCHASE
data stores. 3.1 ORDER
Produce
Purchase
Order Quantity On-Hand
Customer Order
RAW
Serve Product Quantity MATERIALS
Collect Payment Received Received
Goods
3.2
Receive
Produce Product Items
RECEIVED
Store Product ITEMS
Payment Approval
Order Raw Materials VENDOR
3.3
Pay for Raw Materials Pay
Vendor
Payment Approval
Order Raw Materials
4.3
Pay for Raw Materials Pay
Employe
e PAYMENTS
Pay for Labor
Payment
Process Decomposition
1.1 1.2
1.0
Record Receive
Sale
Order Payment
0.0
Lemonade
System
3.1
3.0 3.2 3.3
Produce
Procure- Receive Pay
Purchase
ment Items Vendor
Order
4.1 4.3
4.2
4.0 Record Pay
Calculate
Payroll Time Employe
Payroll
Worked e