Process Modeling Using DFD
Process Modeling Using DFD
9-11
Decomposition
diagram:
a tool used to
depict the
decomposition of
a system. Also
called hierarchy
chart.
9-12
Types of Logical Processes
Function – a set of related and ongoing activities of a
business.
– A function has no start or end.
9-13
Data Flows & Control Flows
Data flow – data that is input to or
output from a process.
– A data flow is data in motion Data flow name
– A data flow may also be used to
represent the creation, reading, deletion,
or updating of data in a file or database
(called a data store).
Composite data flow – a data flow
that consists of other data flows.
Control flow name
Control flow – a condition or
nondata event that triggers a
process.
– Used sparingly on DFDs.
9-14
Composite and Elementary
Data Flows
Composite
flow
Elementary
flows
9-20
Data Structure Constructs (concluded)
Data Structure Format by Example English Interpretation
(relevant portion is boldfaced (relevant portion is boldfaced)
Optional Attributes - The CLAIM= An instance of CLAIM consists of:
optional notation indicates that an POLICY NUMBER+ POLICY NUMBER and
attribute, or group of attributes in POLICYHOLDER NAME+ POLICYHOLDER NAME and
a sequence or selection date POLICYHOLDER ADDRESS+ POLICYHOLDER ADDRESS
structure may not be included in ( SPOUSE NAME+ and
all instances of a data flow. DATE OF BIRTH)+… optionally, SPOUSE NAME
Note: For the repetition data and
structure, a minimum of “zero” is DATE OF BIRTH and…
the same as making the entire
repeating group “optional.”
Reusable Attributes - For groups DATE= Then, the reusable structures can
of attributes that are contained in MONTH+ be included in other data flow
many data flows, it is desirable to DAY+ structures as follows:
create a separate data structure YEAR+ ORDER=ORDER
that can be reused in other data NUMBER…+DATE
structures. INVOICE=INVOICE
NUMBER…+DATE
PAYMENT=CUSTOMER
NUMBER…+DATE
9-21
Data Types and Domains
Data attributes should be defined by data
types and domains.
9-24
When to Draw Process Models
• Strategic systems planning
– Enterprise process models illustrate important
business functions.
• Business process redesign
– “As is” process models facilitate critical analysis.
– “To be” process models facilitate improvement.
• Systems analysis (our primary focus)
– Model existing system including its limitations
– Model target system’s logical requirements
– Model candidate technical solutions
– Model the target technical solution
9-25
Creating Data Flow Diagrams
Steps:
Produce Product
Store Product
INVENTORTY
Order Raw Materials Production Data
Pay for Raw Materials
2.3 Quantity Produced &
Store Location Stored
Pay for Labor Product
Creating Data Flow Diagrams
Example 4. Construct Level 1 (continued)
Create a level 1
decomposing the processes Level 1 DFD
in level 0 and identifying Order Decision
PURCHASE
data stores. 3.1 ORDER
Produce
Purchase
Customer Order Order Quantity On-Hand
Serve Product RAW
Quantity MATERIALS
Collect Payment Received Received
Goods
3.2
Produce Product Receive
Items
Store Product RECEIVED
ITEMS
Payment Approval
Order Raw Materials
VENDOR
Pay for Raw Materials 3.3
Pay
Vendor
Pay for Labor
Payment
Creating Data Flow Diagrams
Example 4. Construct Level 1 (continued)
Create a level 1
decomposing the processes Level 1 DFD
in level 0 and identifying Time Worked
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
9-40
Common Process Errors on DFDs
9-41
Data
Flows to
and from
Data
Stores
9-42
DFD Example: Bus Garage Repairs
• Buses come to a garage for repairs.
• A mechanic and helper perform the repair,
record the reason for the repair and record the
total cost of all parts used on a Shop Repair
Order.
• Information on labor, parts and repair outcome
is used for billing by the Accounting Department,
parts monitoring by the inventory management
computer system and a performance review by
the supervisor.
DFD Example: Bus Garage Repairs
(cont’d)
• External Entities: Bus, Mechanic, Helper,
Supervisor, Inventory Management System,
Accounting Department, etc.
• Key process (“the system”): performing repairs
and storing information related to repairs
• Processes:
– Record Bus ID and reason for repair
– Determine parts needed
– Perform repair
– Calculate parts extended and total cost
– Record labor hours, cost
DFD Example: Bus Garage Repairs
(cont’d)
• Data stores:
– Personnel file
– Repairs file
– Bus master list
– Parts list
• Data flows:
– Repair order
– Bus record
– Parts record
– Employee timecard
– Invoices
CSUB Burger’s Order Processing System
– External entities
• Kitchen
• Restaurant
• Customer
– Processes
• Customer order
• Receipt
• Food order
• Management report