Professional Documents
Culture Documents
DFD
By
Dr.Pooja Jain
Process Documentation
• Preparing and using process documentation is a important skill for an
accountant.
• Data flow diagrams portray a business process activities, stores of
data, and flows of data among those elements.
• System flowcharts present a comprehensive picture of the
management, operations, information systems, and process controls
embodied in business processes.
1
08-02-2022
2
08-02-2022
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
3
08-02-2022
DFD elements
External Entities
External
A Rectangle represents Entities
an external entity
They either supplyor
receive data • Source – Entity that
They do not processdata supplies data to the
system.
• Sink – Entity that
receives data from the
system.
4
08-02-2022
Data Flows
Data in motion
Marks movement of data through the system - a pipeline to carry
data.
Data Flow
Connects the processes, external
• entities and data stores.
Generally unidirectional, If same
data flows in both directions,
double-headed arrow can be
used.
Delivery Slip
5
08-02-2022
Data Stores
D1 Data Stores D1 Data Stores D1 Data Stores
Writing Reading
12
6
08-02-2022
Notations of DFD
DE MARCO & YOURDON NOTATIONS
External Entity
Data Flow
Process
Data Store
13
Notations of DFD
GANE & SARSON NOTATIONS (more universal)
External Entity
Data Flow
Process
Data Store
14
7
08-02-2022
Rules of DataFlow
Data can flow from Data cannot flow from
16
8
08-02-2022
17
M N
M N
18
9
08-02-2022
19
CUSTOMER
D3 Accounts Receivable
20
10
08-02-2022
21
22
11
08-02-2022
Info A Info A
23
24
12
08-02-2022
25
26
13
08-02-2022
27
28
14
08-02-2022
29
15
08-02-2022
Why LevelDFD
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
Decomposition of DFDs
A system is too complex to be shown on a single DFD.
Decomposition is the iterative process of exploding
data flow diagrams to create moredetail.
Level 0 data flow diagrams may be exploded into
successive low levels of detail. The next level of detail
would be a level 1 data flow diagram.
The DFDs become linked together in
a hierarchy, which would fully
document the system.
16
08-02-2022
M D1 Level-0 Diagram
1 2
P
3
N Level-1 Diagram
33
Levels of DFD
Context diagram
Level-n diagram
- Detail of one process from next
highest level
17
08-02-2022
Levelling Rules
If a process p is expanded, the process at the next level
are labelled as p.1, p.2 etc.
All data flow entering or leaving p must also enter or
leave it’s expanded version
Expanded DFD may have data stores
No external entity can appear in expandedDFD
Keep the number of processes at each level less than 7
Balancing DFDs
Information presented at one
level of a DFD is accurately
represented in the next level
DFD.
Ensures that the input and
output data flows of the
parent DFD are maintained
on the child DFD.
18
08-02-2022
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.
19
08-02-2022
20
08-02-2022
When to stopdecomposing
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.
21
08-02-2022
Validating DFD
Student Report
Information 0 Request
22
08-02-2022
Level 0
Student Report
Informati Request
Student
on Name &
1 3 Data
ID Item
Admission Perform Genera Prompt
Student Approval or Staff
Intake te Dat
Rejection Procedu Dat Report a
re a s Item
Prior Quer s Repo
Approve Applicati y Dat rt
d on Data a
Applicati D1 Student
on Data
Verified
Approve
2 d
Applicati
Maintain on
Student Other Student
Informati Data
on Request for
Student Information
Maintenance
Student
Informati
on Admission
1.1 1.2
Application
Student Receive Verify
Admissio Student Admissio
n Name n
Applicati and ID Applicati
on on
Verified
Prior Admissio
Applicati D1 Student n
on Data Data Applicati
Applicati on
Applicati on
on Data
Reques 1.3
Application
t
Approval or Approved
Rejection Review
Application
Admissio
n
Applicati
on
23
08-02-2022
Approved 2.2
Application
to Add Add
New
Studen Verified
t Verified Approved
2.3 Changed Application
Student
Approved Approved Application Edit Data
Application 2.1 to Edit Existing
Request for Determi ID of Student D1 Student Data
Student Information ne Student
Maintenance 2.4
Operati to Delete
on Delet Verified ID
e of Student to
Existin Delete
g 2.5
Stude
Determination
nt Cancel
to Cancel Operati
Operation on
Sales Forecast
Order 0.0
CUSTOME Lemona Production EMPLOYE
R
Product de Schedule E
Served System Pay
Payment
Received Time Worked
Goods
Payment
Purchase
Order
VENDOR
24
08-02-2022
Level 0
1.0
Sal
Customer e Sales
Order Forecast
Product
Ordered Payment
2.0 Producti
CUSTOME EMPLOY
Producti on
R Product EE
on Schedul
Served
Received Invento e
Goods ry
3.0
VENDOR Procur Order
Purchase e- Decisio
Order ment ns
Payment Pa Time
y Worked
4.0
Payro
ll
Level 1, Process1
CUSTOM
ER
Customer
Order Request for
ORDE
R Forecast
1.1
Recor
d 1.3
Order Produc
Severed e
Payme Order Sales
Sales
Foreca
nt Forecast
st
1.2
Receiv PAYME
e NT
Payme
nt
25
08-02-2022
Order
Product PURCHA
Decision 3.1 SE
Order Produc
ORDE ORDER
R e
2.1 Purcha Quantity On-Hand
Serve Quantity se RAW
Produ Quanti
Severed Order MATERIA
ct
RAW
Receiv Receiv
ty LS
Producti ed ed
MATERIA
on LS Goods 3.2
Schedul 2.2 Recei
e Produc Quantity ve
Items RECEIV
e Used ED
Produc Payment ITEMS
t INVENTOR
Production TY Approval
Data VENDO
3.3 R
2.3 Quantity Pay
Store Vend
Produced & or
Produ
Location Stored
ct
Payme
nt
Level 1, Process4
Time
Worked
4.1 TIME
Recor CARDS
d
Time Employee ID
Worke
EMPLOY
d
EE
Payroll
Request
4.2 Unpaid time
Calcula
te
cards
Payroll PAYRO
LL
Payment
Approval
4.3
Pay
Emplo
ye e PAYMEN
TS
Payme
nt
26
08-02-2022
1.1 1.2
1.0
Process Decomposition
Recor Receiv
Sal
d e
e
Order Payme
nt
4.1 4.3
4.2
4.0 Recor Pay
Calcula
Payro d Emplo
te
ll Time ye e
Payroll
Worke
d
27
08-02-2022
Toke
n
Clerk
Chequ Cashier
Verify A/C
CUSTOM Verify Token
e Signature Cheque Take
ER Update
with Token Signature
Toke Balance
number
n
Bad
Cheque
Customer Store Entry in Day
Accounts cheques Book
Update
CUSTOME Search
Daily
R & match
boo
cash
Token token Chequ
k
Slip e with
token
Entry in
Cas Day
Book
h
28
08-02-2022
29
08-02-2022
EXAMPLE
30
08-02-2022
31
08-02-2022
32
08-02-2022
Produce Product
Store Product
33
08-02-2022
34
08-02-2022
INVENTORTY
Order Raw Materials Production Data
Pay for Raw Materials
2.3 Quantity Produced &
Store Location Stored
Pay for Labor Product
35
08-02-2022
Payment Approval
Order Raw Materials
4.3
Pay for Raw Materials Pay
Employe
e PAYMENTS
Pay for Labor
Payment
Process Decomposition
1.1 1.2
1.0
Record Receive
Sale
Order Payment
0.0
Lemonade
System 3.1
3.0 3.2 3.3
Produce
Procure- Receive Pay
Purchase
ment Items Vendor
Order
4.1 4.3
4.2
4.0 Record Pay
Calculate
Payroll Time Employe
Payroll
Worked e
36
08-02-2022
37
08-02-2022
Mechanical Fixed
problem mechanical
to be repaired problems
Repair Supervisor
Helper Labor Bus summary
Repair
Process List of
System parts used Inventory
Labor Management
Labor, System
parts cost
details
Mechanic
Accounting
38
08-02-2022
• External entities
• Kitchen
• Restaurant
• Customer
• Processes
• Customer order
• Receipt
• Food order
• Management report
39