53
Process Modeling – DFD Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD ID EF

Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Embed Size (px)

Citation preview

Page 1: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Process Modeling – DFDProcess Modeling – DFD

Chao-Hsien Chu, Ph.D.School of Information Sciences and Technology

The Pennsylvania State University

DFDIDEF

Page 2: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Enterprise ModelingEnterprise Modeling

RequirementAnalysis

Normalization

DataModeling

ProcessModeling

ProcessAnalysis

ProcessImprovement

ProcessRedesign

DataManagement

OrganizationModeling

NetworkModeling

Page 3: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Building Blocks of ProcessBuilding Blocks of Process

Process

Activity Activity

Work Item Work Item

Data Item Data Item

Page 4: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

What is DFD?What is DFD?

• DFD, stands for data flow diagram, is a graphical technique that depicts information flow and the transforms that are applied as data moves from input to output.

• DFD is also known as data flow graph or a bubble chart.

• A DFD can be seen as a method of organizing data from its raw state.

Page 5: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Characteristics of DFDCharacteristics of DFD

• Graphic

• Partitioned

• Hierarchic

• Multidimensional

• Emphasize flow of data

• Viewpoint of data and process

Materials

Information

Cash

Page 6: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Facts About DFDsFacts About DFDs

• Not all models use control information in their DFD.

• Some models describe manual as well as computer activities in their DFD.

• DFD’s go from left to right, up and down or other directions.

• Notations (symbols) in DFDs differ heavily.

• A minimum or a lot of explaining text around the symbols in a DFD.

Page 7: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Symbols for DFDSymbols for DFD

id

Text

idData store

Processname

ExternalInteractor Text

External Entity:Source or destination of data

Process:Action on data

Data Store:Storage of data

Data Flow:Data Transfer

Yourdon-Constantine

Game-Sarson

Page 8: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF
Page 9: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data Flow Diagram ExampleData Flow Diagram Example

• An employment system• An applicant submits an application form, which is

reviewed by the personnel section and filed. A request for reference letter is sent to the references named by the applicant. After one-week a summary of reference reports received is prepared and a decision is made whether or not to interview. Unsuccessful applicants are sent a standard rejection letter. An interview is scheduled with likely applicants, and references are stored with the applicant details. Applicants are interviewed and a decision is made on who to hire. Unsuccessful interviewees are sent a commiseration letter, while the successful applicant is sent an employment contract

Page 10: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data Flow Diagram ExampleData Flow Diagram Example

An applicant submits an application form, which is reviewed by the personnel section and filed. A request for reference letter is sent to the references named by the applicant.

JobApplications

Applicant

Referees

ApplicationForm

Request for

reference

Receive & Review

Application

Page 11: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data Flow Diagram ExampleData Flow Diagram Example

After one-week a summary of reference reports received is prepared and a decision is made whether or not to interview.

Unsuccessful applicants are sent a standard rejection letter.

referencedata Rejection or

Interview Advice

CheckReferences Summarise

Referees

JobApplications

Applicant

Page 12: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

External EntityExternal Entity• External entity represents the sources and

destination of data created by the system.

• External entity represents the immediate interface of the system with the external world.

• When an external source of data is also a destination for data, a loop or occurrence number may be used.

• In case the destination or use of data created by the process are not known, the flow simply points outside the system. Similarly, data flows may originate from “nowhere”.

Page 13: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Process BoxesProcess Boxes

• Each processes box in a DFD describes an action on data.

• The Identifier. A number indicating the sequence of the process.

• The Action. A verb specifying the action on which it is performed on the data.

• The Actor or Place. A noun indicating who performs the action or where it is performed.

Page 14: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data Flow ArrowsData Flow Arrows

• Data flow arrows link all the process boxes and data stores in DFDs.

• Data flows should be labeled, except in case the data flows into and out of simple files.

• DFDs show only the flow of data, not materials.

• A DFD depicts information flow without explicit representation of procedural logic (e.g., conditions or loops).

Page 15: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data Store RectanglesData Store Rectangles

• Data stores can be manual files or computer files. The type of file is not indicated.

• Only in case the data store is altered the flow is not indicated. A simple access is not indicated.

• A data store is never the direct recipient of unprocessed data from external sources or from other data stores nor is data from a data store ever directly delivered to an external sources. There must be a process step in between.

Page 16: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

A data item stored in the data store is read by

a process

Examples of Data StoresExamples of Data Stores

Read

W rite

Read/Write

A data item is created or deleted or updated in the

data store bya process

Page 17: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Rules for Constructing DFDsRules for Constructing DFDs

Overall:1. Know the purpose of the DFD. It determines the level of

detail to be included in the diagram.2. Organize the DFD so that the main sequence of actions

reads left to right and top to down.3. Very complex or detailed DFDs should be leveled.

Processes:1. Identify all manual and computer processes.2. Label each process symbol with an active verb and the

data involved.3. A process is required for all data transformations and

transfers.4. Do not indicate hardware or where a process is manual or

computerized.

Page 18: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Rules for Constructing DFDsRules for Constructing DFDs

Data Flows:1. Identify all data flows for each process, except simple

record retrievals.2. Label data flows on each arrow.

Data Stores:1. Data not indicate file types for data stores.2. Draw data flows into data stores only if the data store

will be changed.External Entities:1. Indicate external sources and destination of data when

known.2. Number each occurrence of repeated external entities.3. Do not indicate actors or places as entity squares when

the process is internal to the system.

Page 19: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFD Not Allowed FlowsDFD Not Allowed Flows

Page 20: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFD Not Allowed FlowsDFD Not Allowed Flows

If part of our system

If not part of our flow ignore

Page 21: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data FlowsData Flows

• Only one direction of flow between processes

Page 22: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data FlowsData Flows

• Joins & forks allowed only if exactly the same data

Page 23: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data FlowsData Flows

• Cannot go directly back to the process it leaves

Page 24: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data FlowsData Flows

• Data which moves together should be shown in a single data flow

itemised calls

invoice

invoicepayment

itemised callsAnd invoice

Pay Invoice

TelephoneCompany

Pay Invoice

TelephoneCompany

invoicepayment

Page 25: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFD RulesDFD Rules

Incorrect Correct

Page 26: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFD RulesDFD Rules

Incorrect

Correct

Page 27: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFD RulesDFD Rules

Incorrect Correct

Page 28: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

NamingNaming

• Use process name as a qualifier

EditInvoice

Invoice

EditedInvoice Verify

InvoiceVerifiedInvoice

Page 29: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

NamingNaming

• To avoid clutter external agents can be duplicated indicated by a corner line

Page 30: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Modeling ProcedureModeling Procedure

• Determine requirements/purposes.

• Divide activities.

• Model separate activities

• Construct preliminary context diagram.

• Construct preliminary level 0 diagrams.

• Deepen into preliminary level n diagrams

Page 31: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Creating a Data Flow DiagramCreating a Data Flow Diagram

• The level 0 should depict the software/system as a single bubble

• Primary input and output should be carefully noted

• Refinement should begin by isolating candidate processes, data items and stores to be represented at the next level

Page 32: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Creating a Data Flow DiagramCreating a Data Flow Diagram

• All arrows and bubbles should be labelled with meaningful names

• Information flow continuity must be maintained from level to level

• One bubble at a time should be refined

Page 33: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Producing DFDsProducing DFDs

• Pretend you are looking at the system from above• Record where you go and what happens to you as

you sit on each data flow in turn, record each process as you as the data flow is being transformed– Start with an high-level summary– Build on this detail– Do not try and draw the final

product first time round• refine and redraw

– Check it

Page 34: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Hierarchical DFDsHierarchical DFDs

• DFDs are hierarchically structured

• The top-level is referred to as the context diagram (or fundamental system model or the level zero design)

• the purpose of the context diagram is to define external to the system interfaces and identify system boundaries

Page 35: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Hierarchical DFDsHierarchical DFDs• The system of interest is usually contained

in a single process bubble

• Subsequent DFD levels will show increasing system detail – label clearly all DFD symbols

• Stop when– each process is a single decision or operation– each data store has data for a single entity– when every data flow does not need to be split

to handle different flows

Page 36: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Decomposition ConventionsDecomposition Conventions

• Ensure no information is lost– balancing– hierarchical numbering– add data stores at lower levels, if they are

internal to the higher level process, not at context diagram

– external agents are introduced at level-0 never at owner levels

Page 37: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Level 0 DFDLevel 0 DFD

Origin #1

Destination 2

System

a

b

c

z

r

Destination 1

Origin #2

Page 38: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Level 1 DFDLevel 1 DFD

1.1

a

b

c

z

r

1.2

1.3

1.4

1.5

d

e

f

g h

i

Page 39: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Level 2 DFDLevel 2 DFD

c

f

2.1 2.2

2.3

Page 40: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Usages of DFDsUsages of DFDs

• Requirements Analysis. DFDs has been used to transform users requirements to processes, entities, and data stores.

• Process Modeling.

• Systems Implementation.

• Understanding

• Communication

• Improvement

Page 41: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF
Page 42: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Thank You?

Any Question?

Page 43: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF
Page 44: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Balancing

• The conservation of input and output flows through different levels

A

B

CA

B

C

D

E

Page 45: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data-flow models

• Show the processing steps as data flows through a system

• Intrinsic part of many analysis methods

• Simple and intuitive notation that customers can understand

• Show end-to-end processing of data

Page 46: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data-flow diagrams• may be used to show processing at different levels

of abstraction from fairly abstract to fairly detailed• May also be used for architectural description

showing data interchange between the sub-systems making up the system

• Not a good way to describe system interfaces

Page 47: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Data Flow Diagrams

• They show the overall data flow through a system and they do NOT show– control

– order

– time

– errors

• It is primarily a systems analysis tool used to draw the basic procedural components and the data that pass among them

Page 48: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFDs• Physical

– describes operations of existing system, however badly the existing system is performing.

• This is essential in the fact finding stage of the life cycle

• Logical– shows the essential processes and data interfaces,

without reference to design or implementation

• Can be Current and NEW• current physical or logical• new logical

Page 49: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFD Elements• Sources and sinks (or external entities or

terminators)– a producer or consumer of information that

resides outside the bounds of the system to be modelled

– can be a person, another system, a program, hardware,…

– usually a singular noun is used to name the source or sink

Page 50: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFD Elements• Processes (or functions or data

transformations)– a transformer of information that resides within

the bounds of the system to be modelled– it receives the data and changes it in some way– if not decomposed usually a verb and noun

together describe the activity– if decomposed then a verb is used to name the

process

Page 51: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFD Elements• Data flows (directional)

– represent the flow of data item of a collection of data items from one node to another

• a node can be a process, a source, or a data store

– can be input or output information– the arrowhead indicates the direction of data flow– all arrows should be labelled (a data flow into or out of

a data store may be nameless in which case it is assumed to carry the entire contents of one record in the store)

• usually with a singular noun

Page 52: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

DFD Elements

• Data stores– a repository of data that is to be stored for use

by one or more processes– usually named using a plural noun (the singular

describes the individual data items in the store)

Page 53: Process Modeling – DFD Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University DFD IDEF

Naming

• Too general• process names should define a specific action• data stores should store only a single structure

ReceiveData

Needed datainformation

Store