26
Data Flow Modelling Introduction to DFDs

Data Flow Diagram

Embed Size (px)

Citation preview

Page 1: Data Flow Diagram

Data Flow Modelling

Introduction to DFDs

Page 2: Data Flow Diagram

What is a Data Flow Model ?

Page 3: Data Flow Diagram

What is a Data Flow Diagram ?

A means of documenting the flow of

data through a system.

It is a graphical technique which helps: Provide the analyst in the development with an

understanding of the system.

Convey the analyst’s ideas to others.

Page 4: Data Flow Diagram

Introduction to DFD’s

•A DFD is a diagrammatic representation of the

information flows within a system showing:

How the information enters and leaves the system;

What changes the information;

Where information is stored.

•Data Flow Diagrams are an important technique for

systems analysis and design.

Page 5: Data Flow Diagram

What does a DFD give us ? Boundary definition

Checking the completeness of analysis

Basis of system design

Page 6: Data Flow Diagram

Data Flow Diagram (DFD)

• Maps the route of data around a system

Data Source and Sink

Data Store

Flow Line

Process is easy to understand and communicate does not show procedures and control as a

flowchart does

Page 7: Data Flow Diagram

D1 OrdersD1 Orders

1 Accounts

Check Customer Details and Create Order

1 Accounts

Check Customer Details and Create Order

CustomerCustomer

Data Flow Modeling

Customer andOrder Details

Valid Order Details

Modelling the way that data flows within a system

Looks at data in terms of Processes (which transfer

data from one form to another)

Data Stores (which are places where data is held)

External Entities (objects from which data comes, or objects which receive data)

Data Flows (routes by which the data can flow)

Page 8: Data Flow Diagram

External Entities

An External Entity is whatever or whoever donates information to the system or receives information from it.

An external entity may be a user of the system, an external organization, a computer system, or any other source or recipient of information.

Page 9: Data Flow Diagram

A Process

A process transforms or manipulates data within the system. Processes are represented by rectangles on a Data Flow Diagram.

Each process box contains the name of the process, an identifier, and possibly a location.

Page 10: Data Flow Diagram

Process Boxes

The process name describes the process performed on the data received by the process.

Process identifiers are numerical. The location of the process is used to

denote either - The place where the process is performed Or the member of staff responsible for

performing the process.

Page 11: Data Flow Diagram

Process Box Components

1 Manager

Process NewCustomerName

Location

Identifier

Page 12: Data Flow Diagram

Data Stores

A data store is where information is held within the

system.

A data store is represented on a DFD by an open-

ended box.

D1 Student Details

Page 13: Data Flow Diagram

Data store Components

D1 Student DetailsIdentifier

Description of Data Store

Page 14: Data Flow Diagram

Data Flows

A package of information flowing between objects on the Data Flow Diagram.

Represented by a line and an arrow to denote the direction of the information flow.

Labeled with the name or details of the information represented by the data flow.

Page 15: Data Flow Diagram

Example - Data Flows

Customer

A

Process New Customer

1 Manager

Customer Name

Customer Details

Customer Name

D1

Page 16: Data Flow Diagram

Basic rules for a DFD

Data does not flow directly between processes

Data does not flow directly between data stores

Data cannot be transferred directly from store to sink or source to store

Page 17: Data Flow Diagram

External entity Data store

D1 Student Details

Customer

A

Page 18: Data Flow Diagram

Data store Data store

D1 Student Details

D3 Course Details

Page 19: Data Flow Diagram

Drawing Data Flow Diagrams Identify

main inputs & outputs processes data flows

Draw Data Flow Diagram associate data stores internal data flows

Page 20: Data Flow Diagram

Example

Process New Student

1 Academic

Student

AStudent Details

D1 Student Details

Student Details

Page 21: Data Flow Diagram

Checking Data Flow Diagrams ?

Every process must have at least one data flow coming from it and two data flow flowing into it.

Every external entity and data-store must have at least one data flow either coming from it, or flowing into it.

For every data flow either its source is a process or its sink is a process.

Page 22: Data Flow Diagram

A physical DFD represents HOW things are happening. It contains the problems of the current system, and is people or machine dependent. It tends to contain redundant data stores/ processing. It tends to mention names of departments, people, forms, devices used and where data is stored

A logical DFD is extracted from a physical DFD. It is a logical representation of the system, which indicates WHAT the system accomplishes. It is implementation-independent: it focuses on the flow of data between processes without regard to the specific devices, storage location or people in the system.

Types of DFDs

Page 23: Data Flow Diagram

Create the context diagram (Level 0), which shows the external interfaces with the outside world, i.e. the global view of a system.

How to get a DFD

Dispatch note

WarehouseCustomer Invoice

Cheque

Order form Picking notes

Sales & Accountancy

System

0

Page 24: Data Flow Diagram

DFD Level 1

How to get a DFD

Dispatch note

WarehouseCustomer

Invoice

Cheque

Order form Picking notesProcess Order

1 Sales Dept.

Prepare Invoice2 Accounts Dept.

Page 25: Data Flow Diagram

Ensure all data flows are given a name

“A DFD cannot be considered to be completed unless all data flows and functions have been given a meaningful name”

Add Data Stores where needed

How to get a DFD

Page 26: Data Flow Diagram

Example - Supermarket DFD A supermarket uses point of sale bar code

scanners at their checkout tills. The bar code on the product is scanned and is then checked to see if it is valid. If it is a valid bar code then the stock database is updated and an entry for that product is printed on the till receipt. If it is an invalid bar code then an alarm will sound on the checkout till and the operator will need to deal with the problem.

Draw the processes on the Supermarket Data Flow Diagram below.