Process Modeling DFD
Process Modeling DFD
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 1 of 37
System Models
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 2 of 37
What is Process Modeling?
• Process modeling is a technique for organizing and
documenting the structure and flow of data through a
system’s processes.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 3 of 37
Data Flow Diagram
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 4 of 37
DATA FLOW DIAGRAMS
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 5 of 37
DATA FLOW DIAGRAMS
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 6 of 37
DATA FLOW DIAGRAMS
• Data sources and destinations (External entities)
– Appear as squares
– Represent organizations, individuals, or organizational units that
send or receive data used or produced by the system
• An item can be both a source and a destination
• Used to define system boundaries
• Named with a noun
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 7 of 37
DATA FLOW DIAGRAMS
• Data flows
– Appear as arrows, named with nouns
– Represent the flow of data between sources and
destinations, processes, and data stores
– A data flow can be used to represent the creation,
reading, deletion, or updating of data in a file or
database (data store).
– At least one end of every data flow should either
come from or go to a process.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 8 of 37
DATA FLOW DIAGRAMS
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 9 of 37
DATA FLOW DIAGRAMS
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 10 of 37
DATA FLOW DIAGRAMS
• Processes
– Appear as circles
– Represent the transformation of data
– Must be numbered and labeled with a single action
verb and an object
– Avoid the use of the word “and” in the process name
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 11 of 37
DATA FLOW DIAGRAMS
• The processes are shown in red.
• Every process must have at least
one data inflow and at least one
Accounts
data outflow.
Receivable
Deposit
Bank
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 12 of 37
DATA FLOW DIAGRAMS
• Data stores
– Appear as two horizontal lines, named with a noun
– Represent a temporary or permanent data repository
– Flow out of a data store = retrieval
– Flow into a data store = inserting or updating
– Data stores on a DFD are related to entities on an ERD
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 13 of 37
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 14 of 37
DATA FLOW DIAGRAMS
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 16 of 37
DATA FLOW DIAGRAMS
Govt.
t
Depart- en Agencies
ym
ments Tim pa
ec t&
ard por
s x re
Ta
0
Payroll Employee checks
Employees
Processing
o rm
System Pa y
e f roll
e che
pl oy orm ck
e m e f
ew a ng Pa
N ch
yee
yr
o Bank
Human plo ll
re
Em po
Resources rt
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 18 of 37
DATA FLOW DIAGRAMS
Depart-
ments Employees
Employee
New employee Time checks
Human form cards
Resources
1.0
Update 2.0
Employee Pay Payroll
empl.
Change Employ- check
Payroll Bank
form ees
file
Payroll
Disburse-
3.0 ment data 5.0
Employee/
This diagram Prepare
Payroll file
Update
reports Gen.
shows the Ledger
next level of Payroll tax
disb. voucher
detail for the Payroll
report
context 4.0 General
Ledger
diagram in Pay
Tax report
Manage- taxes
Figure 3-5. ment
& payment
Govt.
Agencies
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 19 of 37
DATA FLOW DIAGRAMS
Depart-
ments Employees
Employee
New employee Time paychecks
Human form cards
Resources
1.0
Update 2.0
Employee Pay Payroll
empl.
Change check
form
Payroll Employ- Bank
file ees
Suppose we Payroll
exploded Process 3.0
Disburse-
ment data 5.0
2.0 (pay Prepare Employee/
Update
employees) in the reports Payroll file
Gen.
next level. The Ledger
Payroll tax
sub-processes disb. voucher
Payroll
would be report
General
numbered 2.1, 2.2, 4.0
Pay Ledger
2.3, etc. Tax report
Manage- taxes
& payment
ment Govt.
Agencies
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 20 of 37
DATA FLOW DIAGRAMS
• A Level 1 diagram is a projection of a Level 0
process.
• A Level 1 diagram shows all the processes that
comprise a single process on the level 0
diagram.
• It shows how information moves from and to
each of these processes.
• Level 1 diagrams may not be needed for all
Level 0 processes.
• On Level 1 diagrams we do not repeat external
entities. Data stores may not be repeated either.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 21 of 37
CONTEXT
DIAGRAM
KITCHEN
CUSTOMER
0
Customer Order
Food Food Order
Receipt Ordering
System
Management
Report
RESTAURANT
MANAGER
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 22 of 37
LEVEL 0 DIAGRAM
KITCHEN
CUSTOMER
1.0
Customer Order
Transform Food Order
Receipt Customer
Food Order
3.0
2.0
Update
Update
Goods Inventory Inventory
Goods Sold
Sold Data Data
Formatted
Formatted Goods Inventory Data
Sold Data
INVENTORY
GOODS SOLD D2
D1
Daily Inventory
Daily Goods 4.0 Depletion Amounts
Sold Amounts
Produce
Management RESTAURANT
Report Management MANAGER
Report
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 23 of 37
DFD Balance
KITCHEN
CUSTOMER
1.4
1.2 Generate
Generate Good Sold
Increments Goods Sold Data
Customer
Receipt
Receipt
NOTE HOW WE HAVE THE SAME INPUTS
AND OUTPUTS AS THE ORIGINAL PROCESS
SHOWN IN THE LEVEL 0 DIAGRAM
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 25 of 37
Another Level 1 Diagram
Daily Goods 4.0 Daily Inventory
ORGINAL Sold Amounts Depletion Amounts
LEVEL 0 Produce
PROCESS Management
Report Management
Report
Daily Inventory
LEVEL 1 PROCESSES
Depletion Amounts
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 26 of 37
DATA FLOW DIAGRAMS
• Let’s step through some guidelines on how to
create a DFD.
• RULE 1: Understand the system. Observe the
flow of information and interview people involved
to gain that understanding.
• RULE 2: Ignore control processes and control
actions (e.g., error corrections). Only very
critical error paths should be included.
• RULE 3: Determine the system boundaries—
where it starts and stops. If you’re not sure
about a process, include it for the time being.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 27 of 37
DATA FLOW DIAGRAMS
• RULE 4: Draw the context diagram first, and
then draw successively greater levels of detail.
• RULE 5: Identify and label all data flows.
• RULE 6: Data flows that always flow together
should be grouped together. Those that do not
flow together should be shown on separate
lines.
• RULE 7: Show a process (circle) wherever a
data flow is converted from one form to another.
Likewise, every process should have at least
one incoming data flow and at least one
outgoing data flow.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 28 of 37
DATA FLOW DIAGRAMS
• RULE 8: Processes that are logically related or
occur simultaneously can be grouped in one
process.
• RULE 9: Number each process sequentially. A
process labeled 5.0 would be exploded at the
next level into processes numbered 5.1, 5.2, etc.
A process labeled 5.2 would be exploded into
5.2.1, 5.2.2, etc.
• RULE 10: Process names should include action
verbs, such as update, prepare, etc.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 29 of 37
DATA FLOW DIAGRAMS
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 30 of 37
DATA FLOW DIAGRAMS
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 31 of 37
DATA FLOW DIAGRAMS
• The first paragraph of the narrative for the payroll
process reads as follows:
– When employees are hired, they complete a new employee
form. When a change to an employee’s payroll status occurs,
such as a raise or a change in the number of exemptions,
human resources completes an employee change form. A copy
of these forms is sent to payroll. These forms are used to create
or update the records in the employee/payroll file and are then
stored in the file. Employee records are stored alphabetically.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 32 of 37
DATA FLOW DIAGRAMS
Depart-
ments Employees
Employee
New employee Time paychecks
Human form cards
Resources
1.0
Update 2.0
Employee Pay Payroll
empl.
Change Employ- check
Payroll Bank
form ees
file
Payroll
Disburse-
3.0 ment data 5.0
Prepare Employee/
Update
reports Payroll file
Gen.
Ledger
Payroll tax
Payroll disb. voucher
report
4.0 General
Pay Ledger
taxes Tax report
Manage- & payment
ment Govt.
Agencies
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 33 of 37
DATA FLOW DIAGRAMS
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart 34 of 37