DFD Assignment
DFD Assignment
Key Definitions
Process model
A formal way of representing how a business
operates
Illustrates the activities that are performed
and how data moves among them
Data flow diagramming
A popular technique for creating process
models
DFD Elements
Process
An activity or function performed for a specific
business reason
Manual or computerized
Data flow
A single piece of data or a logical collection of
data
Always starts or ends at a process
DFD Elements
Data Store
A collection of data that is stored in some way
Data flowing out is retrieved from the data store
Data flowing in updates or is added to the data store
External entity
A person, organization, or system that is external to
the system but interacts with it.
Naming and Drawing DFD Elements
Process
Data flow
Data store
External
entity
Depicting Business Processes
with DFDs
Business processes are too complex to be
shown on a single DFD
Decomposition is the process of
representing the system in a hierarchy of
DFD diagrams
Child diagrams show a portion of the parent
diagram in greater detail
Key Definition
Balancing involves insuring that
information presented at one level of a
DFD is accurately represented in the next
level DFD.
Context Diagram(Level 0)
First DFD in every business process
Shows the context into which the business
process fits
Shows the overall business process as just one
process (process 0)
Shows all the external entities that receive
information from or contribute information to the
system
Level 1 Diagram
Shows all the major processes that comprise the
overall system the internal components of
Level 0
Shows how the major processes are interrelated
by data flows
Shows external entities and the major processes
with which they interact
Adds data stores
Level 2 Diagrams
Generally, one level 2 diagram is created for every major
process on the level 1 diagram
Shows all the internal processes that comprise a single
process on the level 1 diagram
Shows how information moves from and to each of these
processes
If a parent process is decomposed into, for example,
three child processes, these three child processes wholly
and completely make up the parent process
Data Flow Splits and Joins
A data flow split shows where a flow is broken into its
component parts for use in separate processes
Data flow splits need not be mutually exclusive nor use
all the data from the parent flow
As we move to lower levels we become more precise
about the data flows
A data flow join shows where components are merged to
describe a more comprehensive flow
Alternative Data Flows
Where a process can produce different data flows given
different conditions
We show both data flows and use the process
description to explain why they are alternatives
Tip -- alternative data flows often accompany processes
with IF statements
Data Flow Diagrams
DFDs are one of the main methods
available for analyzing data-oriented
systems.
DFDs emphasize the logic underlying the
system.
The systems analysts can put together a
graphical representation of data
movement through the organization.
Advantages of the Data Flow
Diagram Approach
Four advantages over narrative
explanations of data movement:
Freedom from committing to the technical
implementation too early.
Understanding of the interrelationships of
systems and subsystems.
Communicating current system knowledge to
users.
Analysis of the proposed system.
Basic Symbols
Four basic symbols are:
A double square for an external entity--a
source or destination of data.
An arrow for movement of data from one point
to another.
A rectangle with rounded corners for the
occurrence of transforming process.
An open-ended rectangle for a data store.
Basic Symbols
External Entities
Represent people or organizations outside
of the system being studied
Shows the initial source and final recipient
of data and information
Should be named with a noun, describing
that entity
Customer
External Entities (Continued)
External entities may be:
A person, such as CUSTOMER or STUDENT.
A company or organization, such as BANK or
SUPPLIER.
Another department within the company, such
as ORDER FULFILLMENT.
Another system or subsystem, such as the
INVENTORY CONTROL SYSTEM.
Processes
Represent either: 1 2
Customer
Add New
A whole system Customer
Inquiry
Subsystem
A subsystem
Work being done, an activity
Names should be in the form verb-
adjective-noun
The exception is a process that represents an
entire system or subsystem.
Data Stores
Name with a noun, describing the data
Data stores are usually given a unique
reference number, such as D1, D2, D3.
Include any data stored, such as:
A computer file or database.
A transaction file .
A set of tables .
Customer
A manual file of records. D 1 Master
New Customer
Data Flow
Customer Record
Data flow shows the data about a person, place,
or thing that moves through the system.
Names should be a noun that describes the data
moving through the system.
Arrowhead indicates the flow direction.
Use double headed-arrows only when a process
is reading data and updating the data on the
same table or file.
Developing Data Flow Diagrams
Use the following guidelines:
Create the context level diagram, including all
external entities and the major data flow to or from
them.
Create Diagram 1 by analyzing the major activities
within the context process.
Include the external entities and major data stores.
Create a child diagram for each complex process on
Diagram 1.
Creating Data Flow Diagrams
Detailed data flow diagrams may be
developed by:
Making a list of business activities.
Analyzing what happens to an input data flow
from an external entity.
Analyzing what is necessary to create an
output data flow to an external entity.
Creating Data Flow Diagrams
32
DFD: Course Registration System
Context Diagram for Course Registration System
Registration
Process
Class schedule
Class list
Registrar
33
DFD: Course Registration System
Level 1 DFD
Students
Schedules Registrar
Class Lists
Students Faculty
Level 2 DFD
Courses &
Other info. Student Records Course Prereqs
1.1 Obtain
List of 1.2 Check
Student
Preferences Eligibility
Preferences
Eligible Students
35
An Example -
A Context Diagram for a Fast-Food IS