vceit

VCE IT Lecture Notes by Mark Kelly

DFD - Data Flow Diagrams

Very similar to system flow charts which are not used as much any more

 

A data flow diagram (DFD) is a design tool to represent the flow of data through an information system.

A "context level" DFD can be used to show the interaction between a system and outside entities; it can also show the internal data flows within a system. This version is also called a context diagram. It often shows the information system as a single circular shape with no details of its inner workings: what it shows is its relationships with the external entities.

Above: an example of a context diagram for Flip Flop Baker, from the 2007 SD Exam

For a diagram to be called a DFD, it needs to show the inner workings of an information system. The different levels of a DFD indicate how detailed it is, e.g. a Level 0 DFD is a broad overview of a system, showing hardly any detail within the system. A level 2 DFD explodes more summarised processes and shows another level of complexity within them. A level 3 or 4 DFD shows even more components opened up to show their inner details.

With a dataflow diagram, developers can map how a system will operate, what the system will accomplish and how the system will be implemented. It's important to have a clear idea of where and how data is processed in a system to avoid double-handling and bottlenecks. A DFD also helps management organise and prioritise data handling procedures and staffing requirements.

A DFD lets a system analyst study how existing systems work, locate possible areas prone to failure, track faulty procedures and reorganise components to achieve better efficiency or effectiveness.

Components

A data flow diagram graphically represents:

  • processes - jobs that are done with the data. A process transforms incoming data flow into outgoing data flow.
  • data stores - files, databases, archives. They can be manual, digital or temporary.
  • external entities/terminators in a business or other system - other systems or people beyond the control of the current system. These are the places which provide the organisation with data, or have data sent to them by the organisation (e.g. customers, partners, government bodies). External entities are sources and destinations of the system's inputs and outputs.
  • connecting data flows - arrows show how data flows from one place to another. Flows that cross the system boundary are known as Input Output Descriptions. Label the arrows with the name of the data that moves through it.

(DFDs can also show resource flows, but it's better to avoid them in VCE IT - they can easily get confused with data flows.)

Here are the basic DFD shapes :

DFD shapes

 

DFD Conventions

  • Do not allow a single page of a DFD to get too complex - it should have no more than 10 components. If it has more than this, combine some components into a single self-contained unit and create a new DFD for that unit.
  • Each component and subcomponent should be numbered. e.g. a top level DFD has components 1 2 3 4 5. The subcomponent DFD of component 3 would have components 3.1, 3.2, 3.3, and 3.4; and the subsubcomponent DFD of component 3.2 would have components 3.2.1, 3.2.2, and 3.2.3. This enables a developer to plan in a top-down manner: starting with representing large concepts, and then repeatedly breaking these objects into their components.
  • All processes must have at least one data flow in and one data flow out.
  • All processes should modify the incoming data, producing new forms of outgoing data.
  • Each data store must be involved with at least one data flow.
  • Each external entity must be involved with at least one data flow.
  • A data flow must be attached to at least one process
  • Data flows cannot go directly from one external entity to another external entity: such flows need to go through at least one process.
  • Data flows cannot go directly from an external entity to a data store in the system: such flows need to go through at least one process.

A sample DFD from http://www.smartdraw.com

 

As you explore DFDs you will find two 'flavours' out there: the Yourdon and Coad style, and the Gane and Sarson
style.
They have slight differences in the way components are shaped and where their numbering goes, for example:

Gane and Sarson datastore notation
Yourdon and Coad datastore notation

 

 

A DFD EXAMPLE from the 2006 Information Systems Exam

(copyright of the VCAA - thanks to them for letting me use the material)

A company, No Blots, supplies ink cartridges for printers which are sold only through the internet. When customers place an order, the order is checked, a confirmation is sent back to the customer and the details of the orfer are sent to the warehouse. The diagram below shows the data flow diagram (DFD) for the No Blots online purchasing system. The diagram does not show the data sources and destinations.

a. In a DFD a circle represents a process. Briefly explain what is meant by a process. (1)

A process is some form of processing or data transformation which take data as input, does something to it, and provides outputs

b. In the DFD, what do the symbols labelled stock and orders represent? (1)

They are data stores, including electronic stores such as databases, and physical stores such as filing cabinets or stacks of paper.

c. Complete the context diagram below for the No Blots system. (3)

This is the completed diagram...

It seems that we need to provide an input to the warehouse from the online purchasing system (OPS). We would also need to add an external entity, the customer, and link the customer to the OPS. I'm only guessing that the warehouse must send some form of invoice or receipt or packing slip to the customer when the goods are shipped.

As a tip: I used Word's drawing tools (basic shapes, connectors) to draw the DFD. The connector arrows move around when you move connected shapes. Add text to shapes by right-clicking the shape and selecting "Add text". Add text to arrows the hard way with a text box (formatted to have no fill and no lines).

SAMPLE DFDs

http://www.smartdraw.com/examples/preview/index.aspx?example=Quiz_Software

An example from www.visualcase.com - you can download a 30 day free trial of their DFD software

"Student" box is an external entity.
Blue circles are data transformations (processing).
Arrows are data flows.
The "Student database" is a data store.

Thanks

Thanks to these sources for some excellent ideas for this page:

  • The VCAA 2006 IS Exam
  • Wikipedia.org
  • http://www.agilemodeling.com/artifacts/dataFlowDiagram.htm
  • http://www.smartdraw.com
  • http://visualcase.com/

Back to the IT Lecture Notes index

Back to the last page you visited

Created 12 Feb 07

Last changed: February 21, 2013 11:45 AM

VCE IT Lecture notes © Mark Kelly 2001-