Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

20
Process Modelling Dataflow modelling: Context and Data Flow Diagrams

Transcript of Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Page 1: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Process Modelling

Dataflow modelling: Context and Data Flow Diagrams

Page 2: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Objectives

Richard Hancock - 20102

Understand the logical modeling of processes by studying examples of data flow diagrams (DFDs)

Draw data flow diagrams following specific rules and guidelines that lead to accurate and well-structured process models

Decompose data flow diagrams into lower-level diagrams Balance higher-level and lower-level data flow diagrams Use data flow diagrams as a tool to support the analysis of

information systems

Page 3: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

What Is Process Modelling?

Richard Hancock - 20103

Graphically represent the processes that capture, manipulate, store, and distribute data between a system and its environment and among system components

Utilise information gathered during requirements determination

Processes and data structures are modeled

Page 4: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Deliverables and Outcome

Richard Hancock - 20104

Context data flow diagram (DFD) Scope of system

1. DFDs of current physical system Adequate detail only Process labels identify technology (people or systems) used to

process the data Data flows and data stores identify actual name of the physical

media2. DFDs of current logical system

Enables analysts to understand current system Physical aspects of system are removed as much as possible Current system is reduced to data and processes that transform

them

Page 5: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Deliverables and Outcomes

Richard Hancock - 20105

3. DFDs of new logical system Technology independent Show data flows, structure, and functional requirements of

new system Includes additional functions Obsolete functions are removed Inefficient data flows are re-organised

DFDs of new physical system Thorough description of each DFD component Represents the physical implementation of the new system

Page 6: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Definitions and Symbols

Richard Hancock - 20106

Process: work or actions performed on data (inside the system)

Data store: data at rest (inside the system)

Source/sink: external entity that is origin or destination of data (outside the system)

Data flow: arrows depicting movement of data

Page 7: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Developing DFDs

Richard Hancock - 20107

Context diagram is an overview of an organisational system that show the system boundaries external entities that interact with the system major information flows between the entities and the system

Note: only one process symbol, and no data stores shown

Page 8: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Developing DFDs

Richard Hancock - 20108

Level-0 diagram is a data flow diagram that represents a system’s major processes, data flows, and data stores at a high level of detail Processes are labeled 1.0,

2.0, etc. These will be decomposed into more primitive (lower-level) DFDs

Page 9: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

DFD Rules

Richard Hancock - 20109

1. The inputs to a process are different from the outputs of that process

Processes purpose is to transform inputs into outputs

2. Objects on a DFD have unique names Every process has a unique name

Page 10: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Decomposition of DFDs

Richard Hancock - 201010

Functional decomposition is an iterative process of breaking a system description down into finer and finer detail Creates a set of charts in which one process on a given chart is

explained in greater detail on another chart Continues until no sub-process can logically be broken down

any further Primitive DFD is the lowest level of a DFD Level-1 diagram results from decomposition of Level-0

diagram Level-n diagram is a DFD diagram that is the result of a n

nested decompositions from a process on a level-0 diagram

Page 11: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Level 1 DFD

Richard Hancock - 201011

Level-1 DFD shows the sub-processes of one of the processes in the Level-0 DFD

This is a Level-1 DFD for Process 4.0.

Processes are labeled 4.1, 4.2, etc. These can be further decomposed in more primitive (lower-level) DFDs if necessary

Page 12: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Level–n DFD

Richard Hancock - 201012

Level-n DFD shows the sub-processes of one of the processes in the Level n-1 DFD

This is a Level-2 DFD for Process 4.3.

Processes are labeled 4.3.1, 4.3.2, etc. If this is the lowest level of the hierarchy, it is called a primitive DFD

Page 13: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Balancing DFDs

Richard Hancock - 201013

Conservation Principle: conserve inputs and outputs to a process at the next level of decomposition

Balancing: conservation of inputs and outputs to a data flow diagram process when that process is decomposed to a lower level Number of inputs to lower level DFD equals number of

inputs to associated process of higher-level DFD Number of outputs to lower level DFD equals number of

outputs to associated process of higher-level DFD

Page 14: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Balancing DFDs

Richard Hancock - 201014

This is unbalanced because the process of the context diagram has only one input but the Level-0 diagram has two inputs.

Page 15: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Balancing DFDs

Richard Hancock - 201015

Data flow splitting is when a composite data flow at a higher level is split and different parts go to different processes in the lower level DFD

The DFD remains balanced because the same data is involved, but split into two parts

Page 16: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Stopping Decomposition

Richard Hancock - 201016

Decision has to be made when to stop decomposition1. When each process has been reduced to a single decision,

calculation or database operation2. When each data store represents data about a single entity3. When the system user does not care to see any more detail4. When every data flow does not need to be split further to

show that data are handled in various ways5. When you believe that you have shown each business form or

transaction, online display and report as a single data flow6. When you believe that there is a separate process for each

choice on all lowest-level menu options

Page 17: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Checklist

Richard Hancock - 201017

An entity must be labelled using a singular noun A process must use a verb A process must have an input and an output A process name must be unique A data flow must be labelled using a noun A data store must have an input and an output dataflow The data flows from the parent diagram MUST appear on

the child diagram EXACTLY You must use the right symbols when developing each

type of diagram, irrespective of using SELECT or not

Page 18: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Summary

Richard Hancock - 201018

Graphically represent the processes that capture, manipulate, store, and distribute data between a system and its environment and among system components

Start off with a context diagram and then n-number of DFDs The four types of DFDs are

Current logical Current physical New logical New physical

The inputs and outputs of DFDs at lower levels should be balanced with those at higher levels

A decision has to be made when to stop DFD decomposition

Page 19: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Resources

Richard Hancock - 201019

System Context Diagrams Data Flow Diagrams QSEE Superlite – A software tool for modelling

information systems RISE – Information Modelling Data Flow Diagram – Online Tutorial Data Flow Modelling - Explained

Page 20: Process Modelling Dataflow modelling: Context and Data Flow Diagrams.

Exercise

Richard Hancock - 201020

You have been asked to analyse the processes involved in creating a new membership and loaning a book at your local library

1. Using pen and paper draw the context diagram and level 1 data flow diagram that describe the inputs, processes and outputs of the library

2. Once you have completed your diagrams on paper, use QSEE Superlite to develop the diagrams

3. Be sure to check your diagrams in QSEE for errors