Data Flow Diagram
Data Flow Diagram
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
Key Definitions
Logical process models describe processes without suggesting how they are conducted Physical process models include process implementation information
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.
Process
Data flow
Data store External entity
Key Definition
Balancing involves insuring that information presented at one level of a DFD is accurately represented in the next level DFD.
Context Diagram
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 0 Diagram
Shows all the major processes that comprise the overall system the internal components of process 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 1 Diagrams
Generally, one level 1 diagram is created for every major process on the level 0 diagram Shows all the internal processes that comprise a single process on the level 0 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
Level 2 Diagrams
Shows all processes that comprise a single process on the level 1 diagram Shows how information moves from and to each of these processes Level 2 diagrams may not be needed for all level 1 processes Correctly numbering each process helps the user understand where the process fits into the overall 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
Processes
Represent either:
A whole system A subsystem Work being done, an activity
1 Add New Customer
2 Customer Inquiry 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 . A manual file of records. D1
Customer Master
Data Flow
New Customer
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.
Diagram 0
Diagram 0 is the explosion of the context level diagram. It should include up to 7 or 9 processes.
Any more will result in a cluttered diagram.
Processes are numbered with an integer. The major data stores and all external entities are included on Diagram 0.
Child Diagrams
Each process on diagram zero may be exploded to create a child diagram. Each process on a lower-level diagram may be exploded to create another child diagram. These diagrams found below Diagram 0 are given the same number as the parent process.
Process 3 would explode to Diagram 3.
5.2.7
Minor data flow, such as an error line, may be included on a child diagram.