Chapter 5. Process Modeling
Chapter 5. Process Modeling
Cycle
5-1
Chapter 5 Outline
5-3
(cont’d)
5-4
DATA FLOW DIAGRAMS (DFDs)
5-5
Elements of Data Flow Diagrams
5-6
(cont’d)
5-7
Using DFDs to Define Business Processes
5-8
(cont’d)
Decomposition
5-9
Context Diagram
5-10
Level 0 Diagram
The level 0 diagram (or level 0 DFD) shows all the major high-
level processes of the system and how they are interrelated.
The Level 0 diagram shows all the processes at the first level
the numbering, the data stores, external entities, and data
flows among them.
A key concept: Balancing
- Ensuring that all information presented in a DFD at one
level is accurately represented in the next-level DFD.
A process model has one and only one level 0 DFD.
5-11
Level 1 Diagrams
5-12
(cont’d)
5-13
Level 2 Diagrams
5-14
Alternative Data Flows
5-15
Process Descriptions
5-16
CREATING DATA FLOW DIAGRAMS
DFDs start with the information in the use cases and the
requirements definition.
Generally, the set of DFDs integrates the individual use cases.
The project team takes the use cases and rewrites them as
DFDs, following the DFD formal rules about symbols and syntax.
CASE tools are used to draw process models.
5-17
(cont’d)
5-18
(cont’d)
5-20
(cont’d)
5-21
Creating DFD Fragments
5-22
(cont’d)
Example of Fragment
5-23
(cont’d)
5-24
(cont’d)
5-25
(cont’d)
5-26
Creating the Level 0 Diagram
5-28
Creating Level 1 Data Flow Diagrams (and
Below)
Level 1 DFD – lower-level DFDs for each process in the
level 0 DFD.
Each one of the use cases is turned into its own DFD
Each major step in the use case becomes a process on
the level 1 DFD, with the inputs and outputs becoming
the input and output data flows.
Level 1 DFDs include the sources and destinations of
data flows for data stores and data flows to processes.
Including external entities in level 1 and lower DFDs can
simplify the readability of DFDs. 5-29
(cont’d)
5-30
(cont’d)
5-31
(cont’d)
5-32
(cont’d)
5-33
(cont’d)
5-34
Validating the DFD
5-35
Validating the DFD (cont’d)
5-36
(cont’d)
Syntax errors are easier to find and fix than are semantics
errors because there are clear rules that can be used to identify
them.
Most CASE tools have syntax checkers that will detect syntax
errors.
5-37
(cont’d)
Common
Syntax
Errors
5-38
(cont’d)
Data Flow Diagram Syntax – four symbols are used on data flow
diagrams (processes, data flows, data stores, and external entities).
Creating Data Flow Diagrams
- The DFDs are created from use cases.
- Every set of DFDs starts with a context diagram.
- DFDs segments are created for each use case, and are then
organized into a level 0 DFD.
- Level 1 DFDs are developed on the basis of the steps within each
use case.
- The set of DFDs are validated to make sure that they are complete
and correct and contain no syntax or semantics errors.
5-40