Tuesday, October 15, 2019

Lesson 3: Data Flow Diagram (DFD)


What is Data Flow Diagram?

A Data Flow Diagram is intended to serve as a communication tool among

1. systems analysts
2. end users
3. data base designers
4. system programmers
5. other members of the project team

A data flow diagram (DFD) is a graphical tool that allows system analysts (and system users) to depict the flow of data in an information system.

The DFD is one of the methods that system analysts use to collect information necessary to determine information system requirements.

Data flow diagram (DFD) is a picture of the movement of data between external entities and the processes and data stores within a system

Example






Source/Sink (External Entity)

External entity that is origin or destination of data (outside the system)
Is the singular form of a department, outside organization, other IS, or person
Labels should be noun phrases

Source – Entity that supplies data to the system
Sink – Entity that receives data from the system

DFD Symbols

Entity Symbol
  • Symbol is a rectangle, which may be shaded to make it look three-dimensional
  • An entity name is the singular form of a department, outside organization, other information system, or person
  • Name of the entity appears inside the symbol
  • A DFD shows only the external entities that provide data to the system or receive output from the system
  • can be duplicated, one or more times, on the diagram to avoid line crossing.
  • determine the system boundary. They are external to the system being studied. They are often beyond the area of influence of the developer.
  • go on margins/edges of data flow diagram
  • Entities also called
  1. Terminators: because they are data origins or final destination
  2. Source: for entity that supplies data to the system
  3. Sink: for entity that receives data from the system
Rules for Entity
  1. External people, systems and data stores
  2. Reside outside the system, but interact with system
  3. Either a) receive info from system, b) trigger system into motion, or c) provide new information to system
  4. e.g. Customers, managers
  5. Not clerks or other staff who simply move data
  6. Must be connected to a process by a data flow
  7. Entity can be connected with a process only
Data store symbol
  1. Represent data that the system stores
  2. A DFD does not show the detailed content of data store
  3. The physical characteristics of a data store are unimportant because you are concerned only with a logical model
  4. Is a flat rectangle that is open on the right side and closed on the left side
  5. A data store name is a plural name consisting of a noun and adjectives, if needed
  6. can be duplicated, one or more times, to avoid line crossing.
  7. is detailed in the data dictionary
  8. Rules for Data store
  9. Internal to the system
  10. Data at rest
  11. Include in system if the system processes transform the data
  • Store, Add, Delete, Update
  1. Very data store on DFD should correspond to an entity on an ERD
  2. Data stores can come in many forms:
  • Hanging file folders
  • Computer-based files
  • Notebooks

  1. Must have at least one incoming and one outgoing data flo
  2. Is used in a DFD to represent data that the system stores
  3. Labels should be noun phrases
  4. A data store must be connected to process with a data flow
  5. A data store must have at least one incoming and one outgoing data flow
  6. One exception when data store has no input data flow because it contains fixed reference data that is not updated by the system
Data Flow Symbol

A data flow is a path for data to move from one part of the information system to anther
  1. Represents one or more data items
  2. The detailed content of the data flow does not appear in the DFD
  3. The symbol for a data flow is a line with a single or double arrowhead
  4. A data flow name consists of a singular noun and an adjective, if needed
  5. Is detailed in the data dictionary
  6. Is a path for data to move from one part of the IS to another
  7. Arrows depicting movement of data
  8. Can represent flow between process and data store by two separate arrows

Rules for Data Flow

Data in motion, moving from one place to another in the system
  • From external entity (source) to system
  • From system to external entity (sink)
  • From internal symbol to internal symbol, but always either start or end at a process
  • A join means that exactly the same data comes from any two or more different processes, data stores or sources/sinks to a common location
  • A data flow cannot go directly back to the same process it leaves
  • A data flow to a data store means update
  • A data flow from a data store means retrieve or use
  • A data flow has a noun phrase label
At least one data flow must enter and one data flow must exit each process symbol

Process Symbol
  1. Work or actions performed on data (inside the system)
  2. Labels should be verb phrases
  3. Receives input data and produces output
  4. Receives input data and produces output that has a different content, form, or both
  5. Contain the business logic which determines how a system handles data and produces useful information. Business logic, also called business rules, reflect the operational requirements of the business.
  6. Process name identifies a specific function and consists of verb, and an adjective, if necessary
  7. a process symbol can be referred to as a black box, because the inputs, outputs, and general functions of the process are known, but the underlying details and logic of the process are hidden 
Rules for Process
  1. Always internal to system
  2. Law of conservation of data:
  • Data stays at rest unless moved by a process.
  • Processes cannot consume or create data
  1. Must have at least 1 input data flow (to avoid miracles)
  2. Must have at least 1 output data flow (to avoid black holes)
  3. Should have sufficient inputs to create outputs (to avoid gray holes)
  • Can have more than one outgoing data flow or more than one incoming data flow
  • Can connect to any other symbol (including another process symbol)
  • Logical process models omit any processes that do nothing more than move or route data, thus leaving the data unchanged. Valid processes include those that:
  1. Perform computations (e.g., calculate grade point average)
  2. Make decisions (determine availability of ordered products)
  3. Sort, filter or otherwise summarize data (identify overdue invoices)
  4. Organize data into useful information (e.g., generate a report or answer a question)
  5. Trigger other processes (e.g., turn on the furnace or instruct a robot)
  6. Use stored data (create, read, update or delete a record)
Types of Data Flow Diagram

Context Diagram 

A data flow diagram (DFD) of the scope of an organizational system that shows the system boundaries, external entities that interact with the system and the major information flows between the entities and the system 


Level-O Diagram 

A data flow diagram (DFD) that represents a system’s major processes, data flows and data stores at a high level of detail


Creating Data Flow Diagrams

Creating DFDs is a highly iterative process of gradual refinement.

General steps:

1. Create a preliminary Context Diagram
2. Identify Use Cases, i.e. the ways in which users most commonly use the system
3. Create DFD fragments for each use case
4. Create a Level 0 diagram from fragments
5. Decompose to Level 1,2,…
6. Go to step 1 and revise as necessary
7. Validate DFDs with users.

DFD Rules—General
  1. Basic rules that apply to all DFDs
  2. Inputs to a process are always different than outputs
  3. Objects always have a unique name
  4. In order to keep the diagram uncluttered, you can repeat data stores and sources/sinks on a diagram

DFD Rules—Context Diagram
  1. One process, numbered 0.
  2. Sources and sinks (external entities) as squares
  3. Main data flows depicted
  4. No internal data stores are shown
  • They are inside the system
  • External data stores are shown as external entities
  • How do you tell the difference between an internal and external data store?

Top-level view of IS
Shows the system boundaries, external entities that interact with the system, and major information flows between entities and the system.

Example: Order system that a company uses to enter orders and apply payments against a customer’s balance


DFD Rules – Level 0
  1. Shows the system’s major processes, data flows, and data stores at a high level of abstraction
  2. When the Context Diagram is expanded into DFD level-0, all the connections that flow into and out of process 0 needs to be retained.

Lower Level Diagrams 

  1. Functional Decomposition 
  • An iterative process of breaking a system description down into finer and finer detail
  • Uses a series of increasingly detailed DFDs to describe an IS 
  • When decomposing a DFD, you must conserve inputs to and outputs from a process at the next level of decomposition. This is called balancing.
Functional decomposition 
  1. Act of going from one single system to many component processes 
  2. This is a repetitive procedure allowing us to provide more and more detail as necessary 
  3. The lowest level is called a primitive DFD 
Level-N DiagramsLevel-N Diagrams
A DFD that is the result of n nested decompositions of a series of subprocesses from a process on a level-0 diagram

DFD Rules—Balancing DFDs 
  1. Balancing
  • The conservation of inputs and outputs to a data flow process when that process is decomposed to a lower level
  • Ensures that the input and output data flows of the parent DFD are maintained on the child DFD
A Balance Example 
  • We have the same inputs and outputs 
  • No new inputs or outputs have been introduced 
  • We can say that the context diagram and level-0 DFD are balanced 
An unbalance Example 
  • In context diagram, we have one input to the system, A and one output, B 
  • Level-0 diagram has one additional data flow, C 
  • These DFDs are not balanced


We can split a data flow into separate data flows on a lower level diagram. Balancing leads to four additional advanced rules

Example Level 0


Example Level 1


Strategies for Developing DFDs 

  1. Top-down strategy 
  • Create the high-level diagrams (Context Diagram), then low-level diagrams (Level-0 diagram), and so on.
  1. Bottom-up strategy
  • Create the low-level diagrams, then higher-level diagrams 
Summary
  1. During data and process modeling, a systems analyst develops graphical models to show how the system transforms data into useful information 
  2. Data flow diagrams (DFDs) graphically show the movement and transformation of data in the information system
  3. DFDs use four symbols: the process symbol transforms data; the data flow symbol shows data movement; the data store symbol shows data at rest; and the external entity symbol represents someone or something connected to the information system 
  4. Various rules and techniques are used to name, number, arrange, and annotate the set of DFDs to make them consistent and understandable



Works Cited
  1. Rosenblatt, H. J. (2013). Systems Analysis and Design. Boston, MA 02210, USA: Cengage Learning.
  2. SERAI, P. S. (2017, April 1). Chapter summary data flow diagrams dfds graphically. Retrieved from https://www.coursehero.com: https://www.coursehero.com/file/p5tdf33/Chapter-Summary-Data-flow-diagrams-DFDs-graphically-show-the-movement-and/
  3. Shelly, G., & Rosenblatt, H. J. (2009). Systems Analysis and Design. Boston, MA 02210, USA: Cengage Learning.


No comments:

Post a Comment

A REVIEW ON CONNIE DABATE’S MURDER CASE: Fitbit One Wearable

T he Author   ROSITO D. ORQUESTA MSIT Student at Jose Rizal Memorial State University-Dapitan Campus OIC-ICT Dean, Eastern Mindanao College ...