Inventory DFD
Inventory DFD
Process Modelling
Data Flow Diagrams
Process Modelling
1
Example DFD
order details
books
1. 2.
orders c ustomer name,
RECEIVE SHIP
c ustomer address
ORDER BOOKS
CUST OMERS
billing information
c ustomer name,
c ustomer address
books
INVOICES
Components of a DFD
2
1. Process
calculate
price
2
1. Process
calculate
price
1. Process
• name each process using a verb and a noun phrase
2. Data Flow
• a data flow represents data in motion, moving from one
place in the system to another
loan application
3
• name each data flow using a noun or noun phrase
eg. customer order
• the name of a data flow should describe the contents of the
data "packet"
• the name should include as much information as possible
about the data flow eg."customer payment" rather than just "payment"
valid customer
order
customer order 2
validate
customer
order invalid
customer order
3. Data Store
different notations
4
data flows to and from a data store can remain unlabelled
if all attributes in the store are moving,
i.e. if an entire data packet (or packets) is going into
or out of the data store
Suppliers
what a sink does with data it receives from the system and how a
source produces data which it inputs to the system are outside the
boundary of the system and are not shown on the data flow
diagram
5
Example DFD
Sales Order sales order purchase order
System Suppliers
goods returned
supplier delivery
goods unavailable Inventory
notice System
sales order
Customers
1
check
sales
order
Suppliers
Sales orders
2
produce purchase order
purchase
order
6
Guidelines for Drawing DFDs
Data store 1
1
process2
EE2
EE3
2
Process1
7
Levelling Data Flow Diagrams
Any "real" system is too large to represent as a single data
flow diagram
Levelling of DFDs
Context diagram
• Level 0 diagram
Level 1 diagrams
Level 2 diagrams
.
.
.
Level n diagrams
Levelling of DFDs
Context diagram
Level 0 diagram 1 2 3 4
Level 1 1.1 1.2 1.3 2.1 2.2 3.1 3.2 4.1 4.2 4.3
diagrams
8
Context Diagram
Context Diagram
• the entire system is represented as a single process
• no data stores are shown: they are inside the boundary of the system
EASY GO
HOTEL
goods returned
supplier delivery
goods unavailable Inventory
notice System
9
Level Zero Diagram
• the level zero data flow diagram is the diagram at the level
immediately below the context diagram
1.0 4.0
2.0
3.0
shipping slip
Accounts
checked supplier Department
Warehouse invoice
10
Level 1 and lower level diagrams
Level 1 processes are numbered 1.1, 1.2, 1.3, and 2.1, 2.2, 2.3 etc
that part is shown in more detail than on the Level zero diagram
Level 1 diagrams
2.4
2.3
2.1
2.5
2.2
Levelling DFDs
1
2
Context diagram 3
2.1
3.1
2.2
3.2
11
Example Level zero diagram
SUPPLIERS
CUSTOMERS
p.o.
Customer details number
Product p.o. invoice
details product product
product qty product delivered
holding INVENTORY order
qty
qty
1
Record product product holding 2
and order qty delivery
Invoice Maintain
Product qty
Sales
Inventory
customer SALES ORDERS product
invoice order qty
• numbering:
when a process is decomposed, its diagram is given the same
number as that process
• balancing of DFDs:
all data flows entering and leaving a process must appear on the
corresponding diagram which decomposes that process
• external agents:
are only included on the two diagrams which represent the entire
system, i.e. the context and level zero diagrams
12
Guidelines for Levelling DFDs
balancing data flows:
if data flows are decomposed at lower levels then the
contents of the data flows across levels must be balanced
1
1.1 1.2
1.3
13
Guidelines for Levelling DFDs
How many levels should be in a set of DFDs?
Applicant Line
Manager
Address
Applicant name Position Spec
Position
Payroll
Decision Position System
Applicant
Applicant Line
Position name Manager
Address Ackn’d Position Spec
1 Appn
Accept Decision
Acknow- Applic- 2
ledgement ation
Evaluate
Applicants
Applicant
Position
Unsuccessfuls file
Evaluation
Payroll
results Successful System
Applicant
14
Level 1- Diagram 1
Address
Applicant name
Level 1 - Diagram 2
Ackn’d
Appn Position Spec
Qualified
2.1
applicant
unqualified
Screen applicant Decision
Applicants
2.2 2.3
Reject
Schedule
Unsuitabl
Evaluation
es
Decision
Successful
Applicant
Unsuccessfuls file Evaluation
results
References
WHITTEN, J.L., BENTLEY, L.D. and DITTMAN, K.C. (2001) 5th ed., Systems Analysis
and Design Methods, Irwin/McGraw-HilI, New York, NY. Chapters 8
HOFFER, J.A., GEORGE, J.F. and VALACICH (2005) 4th ed., Modern Systems Analysis
and Design, Benjamin/Cummings, Massachusetts.
Chapter 7
15