Professional Documents
Culture Documents
Naeem Aslam
Naeem Aslam
The Notation
Process
What are different processes or
work to be done in the system.
Transforms of data.
External Agent
External systems which are
outside the boundary of this
system. These are represented
using the squares
Naeem Aslam
P ro c e s s
E x te rn a l
Agent
The Notation-I
Data Store
Where data is being stored for later retrieval.
Provides input to the process
Outputs of the processes may be going into these
data stores.
Data Flow
Where the data is flowing.
Represents the movement of the data in a data
flow diagram.
Naeem Aslam
D a ta S to re
Flow Chart
DFD does not captures control flow Flow charts are usually used to
information, it just shows the flow of describe flow of control in a system.
the data in a system
DFD not shows the internal details.
Naeem Aslam
M o n th ly A c c t
s tm t
D e p o s it
f u n d s in t o a n
A ccount
O th e r
in c o m e
S o u rc e s
Bank
A c c o u n ts
E m p lo y e r
A ccount
T r a n s a c tio n s
Pay
a
B ill
W ith d r a w
fu n d s fro m a n
A ccount
Bank
C r e d ito r
Naeem Aslam
Processes
1.
Reconcile account balance
2.
Deposit funds into an account
3.
Pay a bill
4.
Withdraw funds from an account
External agents
1.
Bank
2.
Creditor
3.
Employer
4.
Other income sources
Data stores
1.
Monthly Account statement
2.
Bank accounts
3.
Account transactions
Naeem Aslam
Naeem Aslam
Naeem Aslam
10
Typical Processes
The following processes which are typically modeled using
data flow diagrams :
Processes that take inputs and perform certain computations.
For example, Calculate Commission is a process that takes a
few inputs like transaction amount, transaction type, etc and
calculates the commission on the deal.
Processes which are involved in some sort of decisionmaking. For example, in a point of sales application a
process may be invoked that determines the availability of a
product by evaluating existing stocks in the inventory.
Naeem Aslam
11
Naeem Aslam
12
13
Naeem Aslam
14
Naeem Aslam
15
Naeem Aslam
16
At this level, systems internal details are not exposed, as we want to see
system behavior as a black box.
Naeem Aslam
17
18
Level Two
In level two of data flow model, instead of refining the
previous levels further, we take one process from the level
one diagram and expands it in a level two diagram.
Hence, a level one diagram that depict the whole system,
may be expanded to more then one level two diagrams each
of which describes exactly one process in detail which were
listed in level one diagram as simply an oval (process or
transform).
This process may continue to any level of details as the
analyst can conveniently captures.
Naeem Aslam
19
It should be noted here that the number of external agents and their
inputs to the system and the outputs that the system would return to them,
should remain the same throughout different levels of a data flow model.
It should be considered a mistake if context level diagram contains three
external agents, which are providing two inputs each, and getting one
output in return but at level one, we add one more external agent or input
or the outputs.
This would make level one model inconsistent with the context level
diagram. This is true for any level of data flow model.
For instance, at level two the number of external agents, inputs and
outputs shown in (all of level two) diagrams should match exactly with
the external agents, inputs and outputs shown in level one diagram.
Therefore, disseminating information at an appropriate level of
abstraction with the additional check of inter-level consistency makes
data flow modeling a very powerful domain-modeling tool.
Naeem Aslam
20
Context Diagram
Naeem Aslam
21
Naeem Aslam
22
M em ber
A c c o u n ts
N ew A ccount
s ta tu s
Naeem Aslam
B a n k S ta te m e n t
E m p lo y e e
A d d re s s
E m p lo y e e s
F re e z e
M em ber
A ccount
E m p lo y e e
M e m b e r s h ip
A p p lic a tio n
E m p lo y e e
S ta tu s
F ro z e n
A ccount
N o tific a tio n
C re a te a
new m em ber
A ccount
A c c o u n ts
R e c e iv a b le
D e p a rtm e n t
23
Communicating
B1
B1
Naeem Aslam
External
B2
A p r o c e s s is
n e e d e d to
e x c h a n g e d a ta
b e tw e e n
e x te rn a l a g e n ts
B2
24
External
Agent
updating
information in a Data Store
D a ta
S to re
B1
B1
Naeem Aslam
A p r o c e s s is
n e e d e d to
u p d a te a
d a ta s to re
D a ta
S to re
25
External
Agent
accessing
information from a Data Store
Data
Store
B1
B1
Naeem Aslam
A process is
needed to
use a data
store
Data
Store
26
D a ta
S to re
D a ta
S to re
Naeem Aslam
A p r o c e s s is
n e e d e d to
c o p y d a ta fro m
o n r d a ta s to re
to a n o th e r
D a ta
S to re
27