Week 5-DFD
Week 5-DFD
Context Diagram
decomposes into
Level 0 diagram
5
DFD Elements
Process
o An activity or function performed for a
specific business reason
o Can be manual or computerized
o Includes the following:
• A number
• A name (verb phrase)
• A description
• At least one output data flow
• At least one input data flow
6
DFD Process, con’t.
o Logical process models omit/except any
Elements processes that simply move or route data and
leave the data unchanged
(cont.) o You do include logical processes that:
• Perform computations (e.g., calculate grade point average)
• Make decisions (e.g., determine availability of ordered
products)
• Sort, filter or otherwise summarize data (e.g., identify
overdue invoices)
• Organize data into useful information (e.g., generate a report
or answer a question)
• Trigger other processes (e.g., turn on the furnace or instruct a
robot)
• Use stored data (create, read, update or delete a record)
7
DFD Elements (cont.)
Data flow
o A single piece of data or a logical collection of
data
o Data flow names describe the content of the
data flow but not how it is implemented
o Always starts or ends at a process
o Includes the following:
• A name (noun)
• Description
• One or more connections to a process
8
DFD Elements (cont.)
Data flow, con’t.
o A data flow is data in motion (data in
transit).
• an input of data to a process, or the output of data
(or information) from a process.
• the creation, deletion, or update of data in a file or
database (called a data store on the DFD).
• A data flow is depicted as a solid-line with arrow.
9
DFD Elements (cont.)
Data Store
o Most information systems capture data for
later use
o A data store is a collection of data that is
stored in some way
o Include the following:
• A number
• A name (noun)
• Description
• One or more input data flows (somewhere in process
model)
• One or more output data flows (somewhere in
process model) 10
DFD Elements (cont.)
Data Store, con’t.
o If data flows are data in motion, think of
data stores as data at rest
o Data stores should describe “things”
about which the business wants to store
data
o Data flows leaving the data store are data
retrievals
o Data flows entering the data store are
updates or new data added
11
DFD Elements (cont.)
External entity
o A person, organization, or system that is
external to the system
o Has interactions with the system (adds data
to system or receives data from system)
o Include the following:
• A name (noun)
• Description
12
Reading
a Data
Flow
Diagra
m
13
EXERCISE 1
Identify the errors from the given diagram.
18
Balancing & Consistency
Ensures that information presented at one level of a DFD is accurately
represented in the next level DFD
Background: XYZ Books is an online bookstore that allows customers to browse, search
for, and purchase books. The system is responsible for managing customer orders,
inventory, and payments. XYZ Books interacts with various external entities and
systems.