尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
Data Flow Diagrams
(DFD)
& Context diagrams
Data Flow Diagrams
(DFD)
& Context diagrams
Data Flow Diagrams
 A graphical tool, useful for communicating with
users, managers, and other personnel.
 Used to perform structured analysis to determine
logical requirements.
 Useful for analyzing existing as well as proposed
systems.
 Focus on the movement of data between external
entities and processes, and between processes and
data stores.
 A relatively simple technique to learn and use.
Why DFD ?
 Provides an overview of-
 What data a system processes
 What transformations are performed
 What data are stored
 What results are produced and where they flow
 Graphical nature makes it a good communication tool
between-
 User and analyst
 Analyst and System designer
DFD elements
Source/Sinks (External entity)
Processes
Data Stores
Data flows
5
Symbols Used:
Symbol
Gane & Sarson
Symbol
DeMarco &
Yourdan Symbol
External Entity
Process
Data store
Data flow
S.Sakthybaalan
6
Descriptions :
 External Entity - people or organisations that send data
into the system or receive data from the system.
 Process - models what happens to the data
i.e. transforms incoming data into outgoing data.
 Data Store - represents permanent data that is used by
the system.
 Data Flow - models the actual flow of the data between
the other elements.
S.Sakthybaalan
7
External Entity  Noun
Data Flow  Names of data
Process  verb phrase
Data Store  Noun
Symbol naming
S.Sakthybaalan
External Entities
 They either supply or receive data
• Source – Entity that supplies data to the
system.
• Sink – Entity that receives data from the
system.
 They do not process data
Processes
 Work or actions performed on data (inside the system)
 Straight line with incoming arrows are input data flows
 Straight lines with outgoing arrows are output data flows
 Labels are assigned to Data flow. These aid documentation
1.
STORES
Stores demand
note
Delivery Slip
Issue Slip
1.0
Produce
Grade
Report
Grade Detail Grade Report
Processes
 Can have more than one outgoing data flow
or more than one incoming data flow
1.0
Grade
Student
Work
Submitted Work
Graded Work
Student Grade
3.0
Calculated
Gross
Pay
Hours Worked
Pay Rate
Gross Pay
Processes
 Can connect to any other symbol (including another
process symbol)
 Contain the business logic, also called business
rules
 Referred to as a black box
1.0
Verify
Order
2.0
Assemble
Order
Order Accepted Order
Inventory
Change
Data Stores
 A Data Store is a repository of data
 Data can be written into the data store. This is
depicted by an incoming arrow
 Data can be read from a data store. This is depicted
by an outgoing arrow
Data StoresD1 Data StoresD1 Data StoresD1
Writing Reading
Data store
Data store
Data Flows
 Data in motion
 Marks movement of data through the system
- a pipeline to carry data.
 Connects the processes, external entities and
data stores.
Data Flow
Data Flow
 Generally unidirectional, If same data flows in
both directions, double-headed arrow can be
used.
 Can represent flow between process and data
store by two separate arrows
2.1
Post
Payment
Accounts
Receivable
D1
Payment Detail
Invoice Detail
Decomposition Of DFD
Levels Description Explanation
Level 0 Context diagram
Contains only one
process
Level 1 Overview diagram
Utilizes all four
elements
Level 2 Detailed diagram
A breakdown of a
level 2 process
There is no rule as to how many levels of DFD that can be used.
17
Rules for Level 0 Diagram :
 1 process represents the entire system.
 Data arrows show input and output.
 Data Stores NOT shown. They are within the system.
S.Sakthybaalan
18
Layers of DFD Abstraction for Course Registration System
A Context Diagram (Level 0)
 The major information flows between the entities
and the system.
 A Context Diagram addresses only one process.
19
20
Rules for Level 1 Diagram :
 Level 1 DFD, must balance with the context diagram it
describes.
 Input going into a process are different from outputs
leaving the process.
 Data stores are first shown at this level.
21
Rules for Level 2 Diagram :
 Level 2 DFD must balance with the Level 1 it describes.
 Input going into a process are different from outputs
leaving the process.
 Continue to show data stores.
22
Numbering
 On level 1 processes are numbered 1,2,3…
 On level 2 processes are numbered x.1, x.2, x.3… where
x is the number of the parent level 1 process.
 Number is used to uniquely identify process not to
represent any order of processing
 Data store numbers usually D1, D2, D3...
S.Sakthybaalan
Rules of Data Flow
 Data can flow from
 External entity to process
 Process to external entity
 Process to store and back
 Process to process
 Data cannot flow from
 External entity to external
entity
 External entity to store
 Store to external entity
 Store to store
24
Common errors in DFD
S.Sakthybaalan
25
 Miracle (Spontaneous
generation)
 Black Hole
 Gray Hole
1.0
Produce
Grade
Report
Grade Report
1.0
Produce
Grade
Report
Grade Detail
1.0
Produce
Grade
Report
Grade ReportStudent name
Three INCORRECT Data Flow
Good Style in Drawing DFD
 Use meaningful names for data flows, processes and
data stores.
 Use top down development starting from context
diagram and successively levelling DFD
 Only previously stored data can be read
 A process can only transfer input to output. It cannot
create new data
 Data stores cannot create new data
Creating DFDs
 Create a preliminary Context Diagram.
 Identify Use Cases, i.e. the ways in which users most
commonly use the system.
 Create DFD fragments for each use case.
 Create a Level 0 diagram from fragments.
 Decompose to Level 1,2,…
 Validate DFDs with users.
Creating the Context Diagram
 Draw one process representing
the entire system (process 0)
 Find all inputs and outputs that
come from or go to external
entities; draw as data flows.
 Draw in external entities as the
source or destination of the
data flows.
Creating Level 0 Diagram
 Combine the set of
DFD fragments into
one diagram.
 Generally move from
top to bottom, left to
right.
 Minimize crossed lines.
Creating Level 1 Diagram
 Each use case is turned into its own DFD.
 Take the steps listed on the use case and depict
each as a process on the level 1 DFD.
 Inputs and outputs listed on use case become data
flows on DFD.
 Include sources and destinations of data flows to
processes and stores within the DFD.
 May also include external entities for clarity.
When to stop decomposing
DFDs?
Ideally, a DFD has at least
three levels.
When the system becomes
primitive i.e. lowest level
is reached and further
decomposition is useless.
Validating DFD
 Check for syntax errors to
assure correct DFD structure.
 Check for semantics errors to
assure accuracy of DFD
relative to actual/desired
system.
University
Admission
System
0
Student
Student Information
Report
Staff
Admission Approval
or Rejection
Report Request
Context Diagram
DFD for University Admission System
Perform
Intake
Procedure
1
Student
Student
Information
Report
Admission Approval
or Rejection
Report Request
Approved
Application
Verified
Approved
Application
Data
Query
Data
Request for Student
Information Maintenance
Other Student Data
Data Item
Prompt
Staff
Data
Items
Generate
Reports
3
Maintain
Student
Information
2
Student
Name & ID
Student DataD1
Prior
Application
Data
Level 0
Receive
Admission
Application
1.1
Student
Student
Information
Application Approval
or Rejection
Verify
Admission
Application
1.2
Review
Admission
Application
1.3
Admission Application
Student DataD1
Verified
Admission
Application
Application
Request
Application
Data
Student Name
and ID
Prior
Application
Data
Approved Application
Level 1 Process 1, Perform Intake Procedure
Add New
Student
2.2
Edit Existing
Student
2.3
Delete
Existing
Student
2.4
Student DataD1
Cancel
Operation
2.5
Approved Application to Edit
ID of Student
to Delete
Determination to
Cancel Operation
Determine
Operation
2.1
Approved Application
Request for Student
Information Maintenance
Approved Application
to Add
Verified Approved
ApplicationVerified Changed
Student Data
Verified ID of
Student to Delete
Level 1 Process 2, Maintain Student
Information
Context Diagram
DFD for Lemonade Stand
0.0
Lemonade
System
EMPLOYEECUSTOMER
Pay
Payment
Order
VENDOR
Payment
Purchase Order
Production Schedule
Received Goods
Time Worked
Sales Forecast
Product Served
Level 0
2.0
Production
EMPLOYEE
Production
Schedule
1.0
Sale
3.0
Procure-
ment
Sales Forecast
Product Ordered
CUSTOMER
Pay
Payment
Customer Order
VENDOR
Payment
Purchase Order
Order
Decisions
Received Goods
Time Worked
Inventory
Product Served
4.0
Payroll
Level 1, Process 1
1.3
Produce
Sales
Forecast
Sales ForecastPayment
1.1
Record
Order
Customer Order
ORDER
1.2
Receive
Payment
PAYMENT
Severed Order
Request for Forecast
CUSTOMER
Level 1, Process 2 and Process 3
2.1
Serve
Product
Product Order
ORDER
2.2
Produce
Product
INVENTORTY
Quantity Severed
Production
Schedule
RAW
MATERIALS
2.3
Store
Product
Quantity Produced &
Location Stored
Quantity Used
Production Data
3.1
Produce
Purchase
Order
Order Decision
PURCHASE
ORDER
3.2
Receive
Items
Received
Goods
RAW
MATERIALS
3.3
Pay
Vendor
Quantity
Received
Quantity On-Hand
RECEIVED
ITEMS
VENDOR
Payment Approval
Payment
Level 1, Process 4
Time Worked
4.1
Record
Time
Worked
TIME CARDS
4.2
Calculate
Payroll
Payroll Request
EMPLOYEE
4.3
Pay
Employe
e
Employee ID
PAYROLL
PAYMENTS
Payment Approval
Payment
Unpaid time cards
ProcessDecomposition
4.1
Record
Time
Worked
4.2
Calculate
Payroll
4.3
Pay
Employe
e
3.1
Produce
Purchase
Order
3.2
Receive
Items
3.3
Pay
Vendor
2.1
Serve
Product
2.2
Produce
Product
2.3
Store
Product
1.1
Record
Order
1.2
Receive
Payment
2.0
Production
1.0
Sale
3.0
Procure-
ment
4.0
Payroll
0.0
Lemonade
System
Level 0 Level 1Context Level
Logical and Physical DFD
 DFDs considered so far are called logical DFDs
 A physical DFD is similar to a document flow diagram
 It specifies who does the operations specified by the
logical DFD
 Physical DFD may depict physical movements of the
goods
 Physical DFDs can be drawn during fact gathering
phase of a life cycle
Physical DFD for Cheque Encashment
Cash
Clerk
Verify A/C
Signature Update
Balance
Bad Cheque
Store chequesCustomer Accounts
Cheque
Cheque with
Token number
Cashier
Verify Token
Take Signature
Entry in Day Book
CUSTOMER
Token
Token
Logical DFD for Cheque Encashment
Cash
Retrieve
Customer
Record
Cheque
with token
Store cheques
Customer Accounts
Cheque
Cheque with
Token
Entry in Day
Book
CUSTOMER
Token Slip
Cheque Check
Balance,
Issue token
Store Token
no &
cheques
Search &
match token
Update
Daily cash
book
Token Slip
or Cheque
Questions
? ? ?
 In a DFD external entities are represented by a
a. Rectangle
b. Ellipse
c. Diamond shaped box
d. Circle
 External Entities may be a
a. Source of input data only
b. Source of input data or destination of results
c. Destination of results only
d. Repository of data
 A data store in a DFD represents
a. A sequential file
b. A disk store
c. A repository of data
d. A random access memory
 By an external entity we mean a
a. Unit outside the system being designed which can be controlled by an analyst
b. Unit outside the system whose behaviour is independent of the system being
designed
c. A unit external to the system being designed
d. A unit which is not part of DFD
 A data flow can
a. Only enter a data store
b. Only leave a data store
c. Enter or leave a data store
d. Either enter or leave a data store but not both
 A circle in a DFD represents
a. A data store
b. A an external entity
c. A process
d. An input unit
Thanks for
your
Cooperation

More Related Content

What's hot

Database recovery
Database recoveryDatabase recovery
Database recovery
Vritti Malhotra
 
DFD Slides
DFD SlidesDFD Slides
DFD Slides
Alfred Septio
 
Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
Pooja Dixit
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
Janki Shah
 
Distributed database
Distributed databaseDistributed database
Distributed database
ReachLocal Services India
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
Shubham Joon
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
Kumar
 
Data structure ppt
Data structure pptData structure ppt
Data structure ppt
Prof. Dr. K. Adisesha
 
OLAP operations
OLAP operationsOLAP operations
OLAP operations
kunj desai
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Siti Ismail
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
koolkampus
 
Transaction Properties in database | ACID Properties
Transaction Properties in database | ACID PropertiesTransaction Properties in database | ACID Properties
Transaction Properties in database | ACID Properties
nomanbarki
 
Data Flow Diagram or DFD
Data Flow Diagram  or DFDData Flow Diagram  or DFD
Data Flow Diagram or DFD
Mubassira Mahmuda Supty
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
Damian T. Gordon
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design concepts
srijavel
 
Data Flow Diagrams
Data Flow DiagramsData Flow Diagrams
Data Flow Diagrams
Sinhaa Yash
 
File organization 1
File organization 1File organization 1
File organization 1
Rupali Rana
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
Shakila Mahjabin
 
Introduction: Databases and Database Users
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Users
sontumax
 
Anomalies in database
Anomalies in databaseAnomalies in database

What's hot (20)

Database recovery
Database recoveryDatabase recovery
Database recovery
 
DFD Slides
DFD SlidesDFD Slides
DFD Slides
 
Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Data structure ppt
Data structure pptData structure ppt
Data structure ppt
 
OLAP operations
OLAP operationsOLAP operations
OLAP operations
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
Transaction Properties in database | ACID Properties
Transaction Properties in database | ACID PropertiesTransaction Properties in database | ACID Properties
Transaction Properties in database | ACID Properties
 
Data Flow Diagram or DFD
Data Flow Diagram  or DFDData Flow Diagram  or DFD
Data Flow Diagram or DFD
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design concepts
 
Data Flow Diagrams
Data Flow DiagramsData Flow Diagrams
Data Flow Diagrams
 
File organization 1
File organization 1File organization 1
File organization 1
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Introduction: Databases and Database Users
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Users
 
Anomalies in database
Anomalies in databaseAnomalies in database
Anomalies in database
 

Similar to Data Flow Diagrams

Dfd final
Dfd finalDfd final
Dfd final
Mukund Trivedi
 
Data flow diagram
Data flow diagramData flow diagram
Data flow diagram
Upendra Sengar
 
Dfd data flow diagram
Dfd   data flow diagramDfd   data flow diagram
Dfd data flow diagram
Puneet Arora
 
dtata flow digram
dtata flow digramdtata flow digram
dtata flow digram
amrelshaikh
 
DFD
DFDDFD
Dfd mechanics
Dfd mechanicsDfd mechanics
Dfd mechanics
rishisinghgaur
 
DFD_Context-_zero-level.ppt
DFD_Context-_zero-level.pptDFD_Context-_zero-level.ppt
DFD_Context-_zero-level.ppt
FarHana74914
 
DFD.ppt
DFD.pptDFD.ppt
DFD.ppt
sarahabbas40
 
Dfd mechanics
Dfd mechanicsDfd mechanics
Dfd mechanics
pushpender pandey
 
Dfd over flowcharts
Dfd over flowcharts Dfd over flowcharts
Dfd over flowcharts
Ashwathy Nair
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagram
Shreya Chatterjee
 
Data Flow Diagram_DFD
Data Flow Diagram_DFDData Flow Diagram_DFD
Data Flow Diagram_DFD
CoT
 
Process modeling
Process modelingProcess modeling
Process modeling
DEBENDRA ADHIKARI
 
DFD.pptx
DFD.pptxDFD.pptx
DFD.pptx
SHAHZAIBABBAS13
 
DFD.pptx
DFD.pptxDFD.pptx
DFD.pptx
sumitbppimt9523
 
dfdpptbyanshkashyap-230605115839-94e8623e.pdf
dfdpptbyanshkashyap-230605115839-94e8623e.pdfdfdpptbyanshkashyap-230605115839-94e8623e.pdf
dfdpptbyanshkashyap-230605115839-94e8623e.pdf
rohitunder9
 
Data Flow Diagram (DFD)
Data Flow Diagram (DFD)Data Flow Diagram (DFD)
Data Flow Diagram (DFD)
Ansh Kashyap
 
Design Flow Diagram for Information System
Design Flow Diagram for Information SystemDesign Flow Diagram for Information System
Design Flow Diagram for Information System
arifasyrafcp13
 
this is regarding agent technology you must use it
this is regarding agent technology you must use itthis is regarding agent technology you must use it
this is regarding agent technology you must use it
thejakaaloka1
 
DFD1.ppt
DFD1.pptDFD1.ppt
DFD1.ppt
KRISHNARAJ207
 

Similar to Data Flow Diagrams (20)

Dfd final
Dfd finalDfd final
Dfd final
 
Data flow diagram
Data flow diagramData flow diagram
Data flow diagram
 
Dfd data flow diagram
Dfd   data flow diagramDfd   data flow diagram
Dfd data flow diagram
 
dtata flow digram
dtata flow digramdtata flow digram
dtata flow digram
 
DFD
DFDDFD
DFD
 
Dfd mechanics
Dfd mechanicsDfd mechanics
Dfd mechanics
 
DFD_Context-_zero-level.ppt
DFD_Context-_zero-level.pptDFD_Context-_zero-level.ppt
DFD_Context-_zero-level.ppt
 
DFD.ppt
DFD.pptDFD.ppt
DFD.ppt
 
Dfd mechanics
Dfd mechanicsDfd mechanics
Dfd mechanics
 
Dfd over flowcharts
Dfd over flowcharts Dfd over flowcharts
Dfd over flowcharts
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagram
 
Data Flow Diagram_DFD
Data Flow Diagram_DFDData Flow Diagram_DFD
Data Flow Diagram_DFD
 
Process modeling
Process modelingProcess modeling
Process modeling
 
DFD.pptx
DFD.pptxDFD.pptx
DFD.pptx
 
DFD.pptx
DFD.pptxDFD.pptx
DFD.pptx
 
dfdpptbyanshkashyap-230605115839-94e8623e.pdf
dfdpptbyanshkashyap-230605115839-94e8623e.pdfdfdpptbyanshkashyap-230605115839-94e8623e.pdf
dfdpptbyanshkashyap-230605115839-94e8623e.pdf
 
Data Flow Diagram (DFD)
Data Flow Diagram (DFD)Data Flow Diagram (DFD)
Data Flow Diagram (DFD)
 
Design Flow Diagram for Information System
Design Flow Diagram for Information SystemDesign Flow Diagram for Information System
Design Flow Diagram for Information System
 
this is regarding agent technology you must use it
this is regarding agent technology you must use itthis is regarding agent technology you must use it
this is regarding agent technology you must use it
 
DFD1.ppt
DFD1.pptDFD1.ppt
DFD1.ppt
 

More from Reetesh Gupta

Algorithm Design and Analysis
Algorithm Design and AnalysisAlgorithm Design and Analysis
Algorithm Design and Analysis
Reetesh Gupta
 
Analysis of Algorithms-Heapsort
Analysis of Algorithms-HeapsortAnalysis of Algorithms-Heapsort
Analysis of Algorithms-Heapsort
Reetesh Gupta
 
Introduction to Software Project Management
Introduction to Software Project ManagementIntroduction to Software Project Management
Introduction to Software Project Management
Reetesh Gupta
 
Unit4 Proof of Correctness, Statistical Tools, Clean Room Process and Quality...
Unit4 Proof of Correctness, Statistical Tools, Clean Room Process and Quality...Unit4 Proof of Correctness, Statistical Tools, Clean Room Process and Quality...
Unit4 Proof of Correctness, Statistical Tools, Clean Room Process and Quality...
Reetesh Gupta
 
Unit4 Software Engineering Institute (SEI)’s Capability Maturity Model (CMM) ...
Unit4 Software Engineering Institute (SEI)’sCapability Maturity Model (CMM)...Unit4 Software Engineering Institute (SEI)’sCapability Maturity Model (CMM)...
Unit4 Software Engineering Institute (SEI)’s Capability Maturity Model (CMM) ...
Reetesh Gupta
 
Unit3 software review control software
Unit3 software review control softwareUnit3 software review control software
Unit3 software review control software
Reetesh Gupta
 
Unit2 scheduling wbs_network
Unit2 scheduling wbs_networkUnit2 scheduling wbs_network
Unit2 scheduling wbs_network
Reetesh Gupta
 
Unit2 scheduling wbs_network Management
Unit2 scheduling wbs_network Management Unit2 scheduling wbs_network Management
Unit2 scheduling wbs_network Management
Reetesh Gupta
 
project planning-estimation
project planning-estimationproject planning-estimation
project planning-estimation
Reetesh Gupta
 
Cloud computing
Cloud computingCloud computing
Cloud computing
Reetesh Gupta
 
Slides15
Slides15Slides15
Slides15
Reetesh Gupta
 
Cloud computing
Cloud computingCloud computing
Cloud computing
Reetesh Gupta
 
Cloud computing
Cloud computingCloud computing
Cloud computing
Reetesh Gupta
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
Reetesh Gupta
 
Ccna 2
Ccna 2Ccna 2
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
Reetesh Gupta
 

More from Reetesh Gupta (16)

Algorithm Design and Analysis
Algorithm Design and AnalysisAlgorithm Design and Analysis
Algorithm Design and Analysis
 
Analysis of Algorithms-Heapsort
Analysis of Algorithms-HeapsortAnalysis of Algorithms-Heapsort
Analysis of Algorithms-Heapsort
 
Introduction to Software Project Management
Introduction to Software Project ManagementIntroduction to Software Project Management
Introduction to Software Project Management
 
Unit4 Proof of Correctness, Statistical Tools, Clean Room Process and Quality...
Unit4 Proof of Correctness, Statistical Tools, Clean Room Process and Quality...Unit4 Proof of Correctness, Statistical Tools, Clean Room Process and Quality...
Unit4 Proof of Correctness, Statistical Tools, Clean Room Process and Quality...
 
Unit4 Software Engineering Institute (SEI)’s Capability Maturity Model (CMM) ...
Unit4 Software Engineering Institute (SEI)’sCapability Maturity Model (CMM)...Unit4 Software Engineering Institute (SEI)’sCapability Maturity Model (CMM)...
Unit4 Software Engineering Institute (SEI)’s Capability Maturity Model (CMM) ...
 
Unit3 software review control software
Unit3 software review control softwareUnit3 software review control software
Unit3 software review control software
 
Unit2 scheduling wbs_network
Unit2 scheduling wbs_networkUnit2 scheduling wbs_network
Unit2 scheduling wbs_network
 
Unit2 scheduling wbs_network Management
Unit2 scheduling wbs_network Management Unit2 scheduling wbs_network Management
Unit2 scheduling wbs_network Management
 
project planning-estimation
project planning-estimationproject planning-estimation
project planning-estimation
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Slides15
Slides15Slides15
Slides15
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
 
Ccna 2
Ccna 2Ccna 2
Ccna 2
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 

Recently uploaded

Opportunity scholarships and the schools that receive them
Opportunity scholarships and the schools that receive themOpportunity scholarships and the schools that receive them
Opportunity scholarships and the schools that receive them
EducationNC
 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
whatchangedhowreflec
 
How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...
Infosec
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
Kalna College
 
The Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptxThe Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptx
PriyaKumari928991
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
Kalna College
 
bryophytes.pptx bsc botany honours second semester
bryophytes.pptx bsc botany honours  second semesterbryophytes.pptx bsc botany honours  second semester
bryophytes.pptx bsc botany honours second semester
Sarojini38
 
Interprofessional Education Platform Introduction.pdf
Interprofessional Education Platform Introduction.pdfInterprofessional Education Platform Introduction.pdf
Interprofessional Education Platform Introduction.pdf
Ben Aldrich
 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Catherine Dela Cruz
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
MJDuyan
 
Post init hook in the odoo 17 ERP Module
Post init hook in the  odoo 17 ERP ModulePost init hook in the  odoo 17 ERP Module
Post init hook in the odoo 17 ERP Module
Celine George
 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Quiz Club IIT Kanpur
 
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
biruktesfaye27
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
PJ Caposey
 
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
Nguyen Thanh Tu Collection
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
ShwetaGawande8
 
Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024
khabri85
 

Recently uploaded (20)

Opportunity scholarships and the schools that receive them
Opportunity scholarships and the schools that receive themOpportunity scholarships and the schools that receive them
Opportunity scholarships and the schools that receive them
 
Erasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES CroatiaErasmus + DISSEMINATION ACTIVITIES Croatia
Erasmus + DISSEMINATION ACTIVITIES Croatia
 
How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
 
The Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptxThe Rise of the Digital Telecommunication Marketplace.pptx
The Rise of the Digital Telecommunication Marketplace.pptx
 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
 
bryophytes.pptx bsc botany honours second semester
bryophytes.pptx bsc botany honours  second semesterbryophytes.pptx bsc botany honours  second semester
bryophytes.pptx bsc botany honours second semester
 
Interprofessional Education Platform Introduction.pdf
Interprofessional Education Platform Introduction.pdfInterprofessional Education Platform Introduction.pdf
Interprofessional Education Platform Introduction.pdf
 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
 
Post init hook in the odoo 17 ERP Module
Post init hook in the  odoo 17 ERP ModulePost init hook in the  odoo 17 ERP Module
Post init hook in the odoo 17 ERP Module
 
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT KanpurDiversity Quiz Prelims by Quiz Club, IIT Kanpur
Diversity Quiz Prelims by Quiz Club, IIT Kanpur
 
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
 
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
BỘ BÀI TẬP TEST THEO UNIT - FORM 2025 - TIẾNG ANH 12 GLOBAL SUCCESS - KÌ 1 (B...
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
 
Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024Brand Guideline of Bashundhara A4 Paper - 2024
Brand Guideline of Bashundhara A4 Paper - 2024
 

Data Flow Diagrams

  • 1. Data Flow Diagrams (DFD) & Context diagrams Data Flow Diagrams (DFD) & Context diagrams
  • 2. Data Flow Diagrams  A graphical tool, useful for communicating with users, managers, and other personnel.  Used to perform structured analysis to determine logical requirements.  Useful for analyzing existing as well as proposed systems.  Focus on the movement of data between external entities and processes, and between processes and data stores.  A relatively simple technique to learn and use.
  • 3. Why DFD ?  Provides an overview of-  What data a system processes  What transformations are performed  What data are stored  What results are produced and where they flow  Graphical nature makes it a good communication tool between-  User and analyst  Analyst and System designer
  • 4. DFD elements Source/Sinks (External entity) Processes Data Stores Data flows
  • 5. 5 Symbols Used: Symbol Gane & Sarson Symbol DeMarco & Yourdan Symbol External Entity Process Data store Data flow S.Sakthybaalan
  • 6. 6 Descriptions :  External Entity - people or organisations that send data into the system or receive data from the system.  Process - models what happens to the data i.e. transforms incoming data into outgoing data.  Data Store - represents permanent data that is used by the system.  Data Flow - models the actual flow of the data between the other elements. S.Sakthybaalan
  • 7. 7 External Entity  Noun Data Flow  Names of data Process  verb phrase Data Store  Noun Symbol naming S.Sakthybaalan
  • 8. External Entities  They either supply or receive data • Source – Entity that supplies data to the system. • Sink – Entity that receives data from the system.  They do not process data
  • 9. Processes  Work or actions performed on data (inside the system)  Straight line with incoming arrows are input data flows  Straight lines with outgoing arrows are output data flows  Labels are assigned to Data flow. These aid documentation 1. STORES Stores demand note Delivery Slip Issue Slip 1.0 Produce Grade Report Grade Detail Grade Report
  • 10. Processes  Can have more than one outgoing data flow or more than one incoming data flow 1.0 Grade Student Work Submitted Work Graded Work Student Grade 3.0 Calculated Gross Pay Hours Worked Pay Rate Gross Pay
  • 11. Processes  Can connect to any other symbol (including another process symbol)  Contain the business logic, also called business rules  Referred to as a black box 1.0 Verify Order 2.0 Assemble Order Order Accepted Order Inventory Change
  • 12. Data Stores  A Data Store is a repository of data  Data can be written into the data store. This is depicted by an incoming arrow  Data can be read from a data store. This is depicted by an outgoing arrow Data StoresD1 Data StoresD1 Data StoresD1 Writing Reading Data store Data store
  • 13. Data Flows  Data in motion  Marks movement of data through the system - a pipeline to carry data.  Connects the processes, external entities and data stores. Data Flow
  • 14. Data Flow  Generally unidirectional, If same data flows in both directions, double-headed arrow can be used.  Can represent flow between process and data store by two separate arrows 2.1 Post Payment Accounts Receivable D1 Payment Detail Invoice Detail
  • 15. Decomposition Of DFD Levels Description Explanation Level 0 Context diagram Contains only one process Level 1 Overview diagram Utilizes all four elements Level 2 Detailed diagram A breakdown of a level 2 process There is no rule as to how many levels of DFD that can be used.
  • 16. 17 Rules for Level 0 Diagram :  1 process represents the entire system.  Data arrows show input and output.  Data Stores NOT shown. They are within the system. S.Sakthybaalan
  • 17. 18 Layers of DFD Abstraction for Course Registration System
  • 18. A Context Diagram (Level 0)  The major information flows between the entities and the system.  A Context Diagram addresses only one process. 19
  • 19. 20 Rules for Level 1 Diagram :  Level 1 DFD, must balance with the context diagram it describes.  Input going into a process are different from outputs leaving the process.  Data stores are first shown at this level.
  • 20. 21 Rules for Level 2 Diagram :  Level 2 DFD must balance with the Level 1 it describes.  Input going into a process are different from outputs leaving the process.  Continue to show data stores.
  • 21. 22 Numbering  On level 1 processes are numbered 1,2,3…  On level 2 processes are numbered x.1, x.2, x.3… where x is the number of the parent level 1 process.  Number is used to uniquely identify process not to represent any order of processing  Data store numbers usually D1, D2, D3... S.Sakthybaalan
  • 22. Rules of Data Flow  Data can flow from  External entity to process  Process to external entity  Process to store and back  Process to process  Data cannot flow from  External entity to external entity  External entity to store  Store to external entity  Store to store
  • 23. 24 Common errors in DFD S.Sakthybaalan
  • 24. 25  Miracle (Spontaneous generation)  Black Hole  Gray Hole 1.0 Produce Grade Report Grade Report 1.0 Produce Grade Report Grade Detail 1.0 Produce Grade Report Grade ReportStudent name Three INCORRECT Data Flow
  • 25. Good Style in Drawing DFD  Use meaningful names for data flows, processes and data stores.  Use top down development starting from context diagram and successively levelling DFD  Only previously stored data can be read  A process can only transfer input to output. It cannot create new data  Data stores cannot create new data
  • 26. Creating DFDs  Create a preliminary Context Diagram.  Identify Use Cases, i.e. the ways in which users most commonly use the system.  Create DFD fragments for each use case.  Create a Level 0 diagram from fragments.  Decompose to Level 1,2,…  Validate DFDs with users.
  • 27. Creating the Context Diagram  Draw one process representing the entire system (process 0)  Find all inputs and outputs that come from or go to external entities; draw as data flows.  Draw in external entities as the source or destination of the data flows.
  • 28. Creating Level 0 Diagram  Combine the set of DFD fragments into one diagram.  Generally move from top to bottom, left to right.  Minimize crossed lines.
  • 29. Creating Level 1 Diagram  Each use case is turned into its own DFD.  Take the steps listed on the use case and depict each as a process on the level 1 DFD.  Inputs and outputs listed on use case become data flows on DFD.  Include sources and destinations of data flows to processes and stores within the DFD.  May also include external entities for clarity.
  • 30. When to stop decomposing DFDs? Ideally, a DFD has at least three levels. When the system becomes primitive i.e. lowest level is reached and further decomposition is useless.
  • 31. Validating DFD  Check for syntax errors to assure correct DFD structure.  Check for semantics errors to assure accuracy of DFD relative to actual/desired system.
  • 32. University Admission System 0 Student Student Information Report Staff Admission Approval or Rejection Report Request Context Diagram DFD for University Admission System
  • 33. Perform Intake Procedure 1 Student Student Information Report Admission Approval or Rejection Report Request Approved Application Verified Approved Application Data Query Data Request for Student Information Maintenance Other Student Data Data Item Prompt Staff Data Items Generate Reports 3 Maintain Student Information 2 Student Name & ID Student DataD1 Prior Application Data Level 0
  • 34. Receive Admission Application 1.1 Student Student Information Application Approval or Rejection Verify Admission Application 1.2 Review Admission Application 1.3 Admission Application Student DataD1 Verified Admission Application Application Request Application Data Student Name and ID Prior Application Data Approved Application Level 1 Process 1, Perform Intake Procedure
  • 35. Add New Student 2.2 Edit Existing Student 2.3 Delete Existing Student 2.4 Student DataD1 Cancel Operation 2.5 Approved Application to Edit ID of Student to Delete Determination to Cancel Operation Determine Operation 2.1 Approved Application Request for Student Information Maintenance Approved Application to Add Verified Approved ApplicationVerified Changed Student Data Verified ID of Student to Delete Level 1 Process 2, Maintain Student Information
  • 36. Context Diagram DFD for Lemonade Stand 0.0 Lemonade System EMPLOYEECUSTOMER Pay Payment Order VENDOR Payment Purchase Order Production Schedule Received Goods Time Worked Sales Forecast Product Served
  • 37. Level 0 2.0 Production EMPLOYEE Production Schedule 1.0 Sale 3.0 Procure- ment Sales Forecast Product Ordered CUSTOMER Pay Payment Customer Order VENDOR Payment Purchase Order Order Decisions Received Goods Time Worked Inventory Product Served 4.0 Payroll
  • 38. Level 1, Process 1 1.3 Produce Sales Forecast Sales ForecastPayment 1.1 Record Order Customer Order ORDER 1.2 Receive Payment PAYMENT Severed Order Request for Forecast CUSTOMER
  • 39. Level 1, Process 2 and Process 3 2.1 Serve Product Product Order ORDER 2.2 Produce Product INVENTORTY Quantity Severed Production Schedule RAW MATERIALS 2.3 Store Product Quantity Produced & Location Stored Quantity Used Production Data 3.1 Produce Purchase Order Order Decision PURCHASE ORDER 3.2 Receive Items Received Goods RAW MATERIALS 3.3 Pay Vendor Quantity Received Quantity On-Hand RECEIVED ITEMS VENDOR Payment Approval Payment
  • 40. Level 1, Process 4 Time Worked 4.1 Record Time Worked TIME CARDS 4.2 Calculate Payroll Payroll Request EMPLOYEE 4.3 Pay Employe e Employee ID PAYROLL PAYMENTS Payment Approval Payment Unpaid time cards
  • 42. Logical and Physical DFD  DFDs considered so far are called logical DFDs  A physical DFD is similar to a document flow diagram  It specifies who does the operations specified by the logical DFD  Physical DFD may depict physical movements of the goods  Physical DFDs can be drawn during fact gathering phase of a life cycle
  • 43. Physical DFD for Cheque Encashment Cash Clerk Verify A/C Signature Update Balance Bad Cheque Store chequesCustomer Accounts Cheque Cheque with Token number Cashier Verify Token Take Signature Entry in Day Book CUSTOMER Token Token
  • 44. Logical DFD for Cheque Encashment Cash Retrieve Customer Record Cheque with token Store cheques Customer Accounts Cheque Cheque with Token Entry in Day Book CUSTOMER Token Slip Cheque Check Balance, Issue token Store Token no & cheques Search & match token Update Daily cash book Token Slip or Cheque
  • 46.  In a DFD external entities are represented by a a. Rectangle b. Ellipse c. Diamond shaped box d. Circle  External Entities may be a a. Source of input data only b. Source of input data or destination of results c. Destination of results only d. Repository of data  A data store in a DFD represents a. A sequential file b. A disk store c. A repository of data d. A random access memory
  • 47.  By an external entity we mean a a. Unit outside the system being designed which can be controlled by an analyst b. Unit outside the system whose behaviour is independent of the system being designed c. A unit external to the system being designed d. A unit which is not part of DFD  A data flow can a. Only enter a data store b. Only leave a data store c. Enter or leave a data store d. Either enter or leave a data store but not both  A circle in a DFD represents a. A data store b. A an external entity c. A process d. An input unit

Editor's Notes

  1. In DFDs, 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. By showing processes as black boxes, an analyst can create DFDs that show how the system functions, but avoid unnecessary detail and clutter. When the analyst wishes to show additional levels of detail, he or she can zoom in on a process symbol and create a more in-depth DFD that shows the process’s internal workings — which might reveal even more processes, data flows, and data stores. In this manner, the information system can be modeled as a series of increasingly detailed pictures.
  2. If a DFD is too detailed it will have too many data flows and will be large and difficult to understand Start from a broad overview. Expand to details – Idea similar to using procedures and linking these with a main program Each DFD must deal with one aspect of a big system
  3. Three data flow and process combinations that you must avoid: • Spontaneous generation. The APPLY INSURANCE PREMIUM process, for instance, produces output, but has no input data flow. Because it has no input, the process is called a spontaneous generation process. • Black hole. The CALCULATE GROSS PAY is called a black hole process, which is a process that has input, but produces no output. • Gray hole. A gray hole is a process that has at least one input and one output, but the input obviously is insufficient to generate the output shown. For example, a date of birth input is not sufficient to produce a final grade output in the CALCULATE GRADE process. Spontaneous generation, black holes, and gray holes are impossible logically in a DFD because a process must act on input, shown by an incoming data flow, and produce output, represented by an outgoing data flow.
  翻译: