DFD 2
DFD 2
(continued):
• The items that the trading house does not deal with:
• are not processed any further
supply etc.)
Generate-i
order ndent
response
Customer Purchase-Depa
rtment
Level 1 DFD
Customer-history Item-file
query
statistics
Accept-o
inventory
Customer-file rder
0.1 Handle-q
uery
0.3
order Process-o
Accepted-orders rder
Vendor-list 0.2
Handle-in
dent-requ Sales-statistics
Indent-request est
0.4 Material-issue-slip
Indents pending-order + bill
Example: Data Dictionary
•function model
Observation
•As a DFD is refined into greater levels of detail:
•the analyst performs an implicit functional
decomposition.
• the conditions under which different functions are invoked are not represented.
• Many beginners try to represent this aspect by drawing an arrow between the
corresponding bubbles.
Example-1
• Check the input value:
• If the input value is less than -1000 or greater than +1000
generate an error message
• otherwise search for the number
Gener
Chec ate
Error message
k
number numb
er
number Searc
h
[found,not-found]
Guidelines For Constructing DFDs
Good-book-n Search-boo
ame k
Get-book-n
ame Book-details
Print-err-
message Error-messag
Book-name e
Guidelines For Constructing DFDs
• All functions of the system must be captured in the DFD model:
• no function specified in the SRS document should be overlooked.
• Does not convey anything regarding what happens when book is not found
• or what happens if there are books by different authors with the same book title.
Shortcomings of the DFD Model
• Control information is not represented:
• For instance, order in which inputs are consumed and outputs
are produced is not specified.
Customer-history Item-file
Accept-o inventory
Customer-file rder
order
Process-o
Accepted-orders rder
Shortcomings of the DFD Model
•A DFD does not specify synchronization aspects:
• For instance, the DFD in TAS example does not specify:
• whether process-order may wait until the accept-order produces data
Handle-in
dent-requ Sales-statistics
Indent-request est
Indents
pending-order
Shortcomings of the DFD Model
• The way decomposition is carried out to arrive at the successive levels of a DFD is
subjective.
• The ultimate level to which decomposition is carried out is subjective:
• depends on the choice and judgement of the analyst.