Professional Documents
Culture Documents
DFD
DFD
DFD
the data stores (files) supporting the system's operation the information flows within the system the system boundary
6
DFD Characteristics
Graphics
Data Flow Diagramming Mechanics Not procedural Do not try to represent conditional processing or loops. Simply shows the flow of data Provides a mechanism for information flow modeling and functional modeling Often better than English narrative
11
Data Flow Diagramming Mechanics (contd.) Four Basic elements or symbols are used External Entity (Supply data to or use data from the system) Data flow ( Data movement model the passage of data in the system) Process (What the system should do?) Data store (Repositories of data) Two different standard sets can be used DeMarco and Yourdon Gane and Sarson
12
Data Flow
Get Price
D Customer File 7
13
Data Flow
5 Get Price
Unit price
6 Record price
Customer File
14
External Entity
External Entity
data Cust its name implies it is external to the system and hence o P1 outside the system boundary Cust P1 because they are external, many characteristics are not of interest to us Cust each entity to be labeled with an appropriate name using noun the same entity can be used more than once on a given data flow diagram to avoid crossing data flow lines could be a department, a business, a person, a machine, or another system, etc.
15
Data Flow depicts data that are in motion and moving as a unit
Representsplace to another in the system. thing from one data about a person, place, or and should described with the same process it cannot go directly back to a noun leaves Direction
discouraged
Data Flow
information always flows to or from a process and Do not use may be verbal, written, or electronic
A data flow to a data store means update For A data flow from a data store means retrieve or use A data flow has only one direction of flow between only one direction
symbols
16
Process
Process
17
that they are transformed or manipulated, stored or distributed must be given a unique identifying number indicating its level within the diagram must be described with a verb must have a unique name several data flows may go into or come out of each process
*
Data Store
Data Store depicts data at rest
(i.e. holding place for information within the system may represent a manual store filing cabinet notebook computerized file or database may be long term files, such as sales ledgers may be short tern accumulations (temporary), for example batches of documents that are waiting to be processed must be described with a noun
18
Resource flow
shows flow of physical material from its source to its destination referred to as physical physical flows are usually restricted to early, high level diagrams and are used when a description of the physical flow of materials is considered to be important to help the analysis
*
20
Decomposition of DFDs
Functional decomposition
Act of going from one single system to many component processes Repetitive procedure Lowest level is called a primitive DFD
Level-N Diagrams
A DFD that is the result of n nested decompositions of a series of sub-processes from a process on a level-0 diagram
21
B F F4 A A V F1 W F3
F2
X F4 Z Z1 F5
F6 Z2 Z3 F7 B
F4 1 F4 2
X1
F4 3 F4 4
X2
F4 5 Y2
Y
22
Y1
has only one process the System shows the summary of the whole system environment system boundaries shows scope of an organizational system the general system where the organizations business process fits
23
shows major information flows between the entities and the system shows the interactions with external environments has no internal operation details hides the system complexity Exception: A data store can has no data stores be shown on context, In case if the system is using a data store of another system (in the internal to the [it can be shown as an external entity system external environment)
24
as well] *
Context Diagram
Input A
Input - A
Entity 1
System Name
Output - C
Entity 3
Input B
Entity 2
Input - B
Context Diagram
Input A
Input B
26
Claim with Insurance Because they will make decisions independently of Symptoms, treatment costs Company Patient info, the system on the basis of information both outside and type Insurance info, the system and within it. They initiate a transaction Payments Payment or Patient and change information within the system based on rejected claim Patient Information this outside knowledge System Bills, Medical info, Receipt Patient info
Context Diagram
Updated Why would the referring doctors in the Patient info context diagram be an external entity?
27
Level 0 Diagram
Show all the major processes that comprise the overall system, data flows and data stores at a high level of detail. These processes are numbered, 1,2,3, etc. These processes are often packages of related processing and often are treated as separate systems (sometimes called subsystems) Adds data stores - a collection of data that is stored in some way. Is described with a noun. Data stores are the DFDs representation of the ERD
28
Level 0 Diagram
Entity Input A 1 1 General Process AAA Data Flow 2 Output C B General Process Data BBB Flow C Record E D2 Data Store 2 Entity 3
Record A
Record E
4 General Process DDD
Data Flow C
29
30
Level 1 Diagram
Show all the processes that comprise a single process on the level 0 diagram. These processes are numbered with the parent processs number, followed by a . and a sequential number: 1.1, 1.2, 1.3 Shows how information moves from and to each of these processes Shows in more detail the content of higher level process Level 1 diagrams may not be needed for all level 0 processes
31
Level 2 Diagram
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
32
33
Elementary Process
34
Balancing DFDs
When decomposing a DFD, you must conserve inputs to and outputs from a process at the next level of decomposition. All information shown in previous level DFD is accurately represented in its next level In other words, number of external input/ output data flows for any diagram must be the same in the next level
35
Balancing DFDs
Source 0 Process Context diagram
A
A
1.0
Sink
Source One
C
Process
1
Source Two
Formatted A
2.0
Formatted C B
Process 2
Sink
Balancing DFDs
One input to the system The customer order
Same input No new inputs or outputs have been introduced We can say that the context diagram and level-0 DFD are balanced
Three outputs
Customer receipt Food order Management reports
24
37
28
WHY?
(we have no control over them)
39
Common Errors
All processes must have both input and output data Data direction arrows for data flows labelling Cluttered diagrams - aim for 3-9 processes Omitting data flows Inputs and outputs for each parent process must correspond exactly to those on child diagrams (except for minor flows such as error messages) Putting technical process details on a logical DFD
40
Common Errors
A, B ,C, X
Compute X
Compute X
A. B, Y
Common Errors
Attendance M Register
Attendance Data
Validate Attendance
Atd. Data
Attendance Data
Attendance ENTRY
Validate Attendance
*
44
Common Errors
Level n-1
Level n
Current Physical
Process label includes an identification of the technology (people or systems) used to process the data Data flows and data stores are labeled with the actual name of the physical media on which data flow or in which data are stored
47
Current Logical
Physical aspects of system are removed as much as possible Current system is reduced to data and processes that transform them
48
New Logical
Technology independent Includes additional functions Obsolete functions are removed Inefficient data flows are reorganized Shows data flows, structures, and functional requirements of the new system
49
New Physical
Represents the physical implementation of the new system
50
Payment
Receipt 4
3
Items and Prices Compute Total Cost of Order
Amount to be Paid
52
Customer
D1
D1
Customer
Check, Cash. or Debit Crad
Items to Purchase
UPC Code
Cash Receipt
2
Look Up Code and Price in File
Amount to be Paid
53
Two approaches :
Start with DATA FLOWS
54
Step 2:
Analyze the logical grouping of the data flows
Step 3:
Define the processes and data stores needed to transform the data 56 flows and retain the data
B A
C
C D
57
Comparison