6 - Process Modelling
6 - Process Modelling
Key Definitions
•Process model -A formal way of representing
how a business system operates. Illustrates the
activities that are performed and how data moves
among them
•Data flow diagramming - A common technique
for creating process models
•Logical - process models describe processes
without suggesting how they are conducted
•Physical - process models provide information
that is needed to build the system
DATA FLOW DIAGRAMS
Using a DFD to Define Business Processes
Process
Data flow
Data store
External
entity
Reading a DFD
Relationship among Levels of DFDs
Context diagram
Level 0 diagram
Level 1 diagram
Level 2 diagram
Context Diagram
• First DFD in every business process
• Shows the context into which the business
process fits
• Shows the overall business process as just one
process (process 0)
• Shows all the external entities that receive
information from or contribute information to
the system
Level 0 Diagram
• Shows all the major processes that comprise the
overall system – the internal components of
process 0
• Shows how the major processes are interrelated
by data flows
• Shows external entities and the major processes
with which they interact
• Adds data stores
Level 1 Diagrams
• Generally, one level 1 diagram is created for
every major process on the level 0 diagram
• Shows all the internal processes that comprise a
single process on the level 0 diagram
• Shows how information moves from and to
each of these processes
• If a parent process is decomposed into, for
example, three child processes, these three child
processes wholly and completely make up the
parent process
Level 2 Diagrams
• Shows all processes that comprise a single
process on the level 1 diagram
• Shows how information moves from and to
each of these processes
• Level 2 diagrams may not be needed for all
level 1 processes
• Correctly numbering each process helps the
user understand where the process fits into
the overall system
Common Process Errors on DFDs
Illegal Data Flows
Process Descriptions
• Text-based process descriptions provide
more information about the process than the
DFD alone
• If the logic underlying the process is quite
complex, more detail may be needed in the
form of
– Structured English
– Decision trees
– Decision tables
CREATING DATA
FLOW DIAGRAMS
Steps in Building DFDs
• Build the context diagram
• Create DFD fragments for each use case
• Organize DFD fragments into level 0 diagram
• Decompose level 0 processes into level 1
diagrams as needed; decompose level 1
processes into level 2 diagrams as needed;
etc.
• Validate DFDs with user to ensure
completeness and correctness
USE CASES
• Use cases are a text-based method of
describing and documenting complex
processes. A use case is a set of activities that
produce some output result
• Describes how the system reacts to an event
that triggers the system
• Use cases add detail to the requirements
outlined in the requirement definition
• Systems analysts work with users to develop
use cases
• Systems analysts develop process and data
models later based on the use cases
Creating the Context Diagram
• Draw one process representing the entire
system (process 0)
• Find all inputs and outputs at the top of the
use cases 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
A Context Diagram Example
Creating DFD Fragments
• Each use case is converted into one DFD
fragment
• Number the process the same as the use
case number
• Change process name into verb phrase
• Design the processes from the viewpoint of
the organization running the system
Creating DFD Fragments
• Add data flows to show use of data stores as
sources and destinations of data
• Layouts typically place
– processes in the center
– inputs from the left
– outputs to the right
– stores beneath the processes
A DFD Fragment Example
Creating the Level 0 Diagram
• Combine the set of DFD fragments into one
diagram
• Generally move from top to bottom, left to
right
• Minimize crossed lines
• Iterate as needed
– DFDs are often drawn many times before
being finished, even with very experienced
systems analysts
A Level 0 DFD Example
Creating Level 1 Diagrams (and Below)