Logical Convention and DFD Design Verb Use Print
Logical Convention and DFD Design Verb Use Print
The name of a notation is usually written within the symbol. The name of a notation is usually written within
the symbol. Choose brief verb phrases for processes and noun phrases for data flows. An
active verb (verify, compute, extract, create, retrieve, store, determine, etc.)
It is important that the name should say only what is necessary. Do not describe the representation of the
data, its recording medium, or its type; or how the transforms are implemented - say only what processing
is to be done.
Data Flows
Name the data + adjective(s)
Say what is known about it (e.g. valid account number)
Processes
The name is a command: verb + nouns (e.g. validate account number) or verb + object/object phrase
Do not use ‘and’, ‘or’, ‘then’, ‘if’, ‘repeat’, or any other words that specify control flow.
Data Stores
Show only net flow in/out/both (i.e. indicate whether it is read-only, write-only, or updated).
Example:
DEFINING DATA FLOW DIAGRAMS (DFDs) When it comes to conveying how information data flows
through systems (and how that data is transformed in the process), data flow diagrams (DFDs) are the
method of choice over technical descriptions for three principal reasons.
1
1. DFDs are easier to understand by technical and nontechnical audiences
2. DFDs can provide a high-level system overview, complete with boundaries and connections to other
systems
3. DFDs can provide a detailed representation of system components1
DFDs help system designers and others during initial analysis stages visualize a current system or one that
may be necessary to meet new requirements. Systems analysts prefer working with DFDs, particularly when
they require a clear understanding of the boundary between existing systems and postulated systems.
DFDs represent the following:
The hierarchical DFD typically consists of a top-level diagram (Level 0) underlain by cascading lower level
diagrams (Level 1, Level 2…) that represent different parts of the system.
Data Flow Diagrams Data flow diagrams have replaced flowcharts and pseudocode as the tool of choice
for showing program design. A DFD illustrates those functions that must be performed in a program as well
as the data that the functions will need. A DFD is illustrated in Figure 3.
Data Store
A data store is where a process stores data between processes for later retrieval by that same process or
another one. Files and tables are considered data stores. Data store names (plural) are simple but
meaningful, such as “customers,” “orders,” and “products.” Data stores are usually drawn as a rectangle
with the right-hand side missing and labeled by the name of the data storage area it represents, though
different notations do exist.
Data Flow
Data flow is the movement of data between the entity, the process, and the data store. Data flow portrays
the interface between the components of the DFD. The flow of data in a DFD is named to reflect the nature
of the data used (these names should also be unique within a specific DFD). Data flow is represented by an
arrow, where the arrow is annotated with the data name. These DFD components are illustrated in Figure
4.
Adjective
Noun
A word or phrase naming an attribute, added to or grammatically related to a noun to modify or describe
it. The simplest definition of an adjective is that it is a word that describes or clarifies a noun. Adjectives
describe nouns by giving some information about an object’s size, shape, age, color, origin or material.
4
5
6
7
Systems Analysis
1. What is process modeling?
2. How to use data flow diagram (DFD) and data dictionary for process modeling?
3. What is logic modeling?
4. How to use structured English, decision tables, and decision trees for logic modeling?
5. What is a systems proposal and its role in systems analysis?
Process modeling
To represent the functions/processes which capture, manipulate, store, and distribute data between a
system and its environment and between components within a system, i.e., what are involved in converting
data into information?
1. Data flow -- data moves from one place of the system to another
2. Data store -- data at rest
3. Process -- work/actions performed on data
4. External entity -- origin/destination of the data
8
Steps in developing DFDs (Figure 9.2)
1. List business activities to identify processes, external entities, data flows, and data stores
2. Create a context diagram
3. Create the next level diagram
4. Create child diagrams
5. Check for errors
6. Develop a physical DFD
9
Step 4: Level-1 diagram
10
Step 5: Check for error (Figures 9.5 and 9.6)
DFD rules
11
12
Data dictionary
A documentation and reference of the metadata: data on
1. Data flow (Figure 10.3)
2. Data structure (Figure 10.5)
3. Data elements (Figure 10.7)
4. Data stores (Figure 10.12)
To promote understanding of the data of the system by collecting, coordinating, and confirming what a
specific data term means to different people in the organization.
13
Data flow description example:
14
Logic modeling
To represent the internal structure and functionality of the processes represented on DFDs, i.e., how do
data be converted to information?
Structured English
o relies on action verbs and noun phrases without adjectives or adverbs to specify 3 typical logic in
structured programming: sequence, selection, and repetition
o sequence: sequential order of the statements
o selection: IF_THEN_ELSE; SELECT_CASE
o repetition: DO_UNTIL; DO_WHILE
Decision tables
All possible choices and conditions the choices depend on are represented in tabular form: condition,
actions, and rules
Conditions and Actions Rules
Conditions Condition alternatives
Actions Action Entries
15
Rules
Conditions and Actions 1 2 3 4
Under $50 Y Y N N
Pays by check with 2 forms of ID Y N Y N
Uses credit card N Y N Y
Ring up sales X
Decline sales X
Call supervisor for approval X
Call bank for credit authorization X
16
Decision trees (Figure 11.22)
A decision or choice situation is depicted as a connected series of nodes (decision points) and branches
(decision alternatives)
17
Cap & gown ordering system example
18