Professional Documents
Culture Documents
Page 1 of 29
DFD, ERD are models prepared in Structured Analysis and Structured Design
(SA/SD) Approach of System Development.
WHAT IS DFD?
It is a graphic tool used to describe and analyze the movement of data through a
system (manual or automated) including the:
o Processes, stores of data and source and destination of data in the system.
DATA
FLOW
APPROACH
TO
HUMAN
REQUIREMENTS
DETERMINATION
SYSTEMS ANALYSTS
attempt to understand the information requirements of users,
conceptualize how data move through the organization,
the processes or transformation that the data undergo, and what the outputs
are.
Page 2 of 29
Page 3 of 29
Symbol
Meaning
Example
Entity
Customer
(End
user,
external
Data flow
Order info
Process
Data store
Add
Order
Order Master
Page 4 of 29
Page 5 of 29
shows movement of data from one point to another, with the head of the arrow
pointing toward the data's destination.
E.g. new order information data flowing from Customer to the Online
Shopping System.
Processes represent work being performed in the system and should be named
using one of the following formats.
Naming convention:
1. Context level DFD: Assign the name of the whole system when naming a highlevel process. An example is INVENTORY MGT. SYSTEM.
2. First level DFD: To name a major subsystem, use a name such as
COPIS system Manage Login, Manage Customer, Manage Order, Generate
Invoice, Manage Shipping, Generate MIS Report
Email Application Manage Login, View Email, Send Email, Manage
Address Book, Manage Emails in Folders
3. Detailed processes: Process name must be a verb.
The verb describes the type of activity, such as ADD ORDER, PRINT ORDER,
or UPDATE ORDER, GENERATE INVOICE, LIST INVOICES, VIEW
CUSTOMER REPORT, PRINT SALES REPORT
Page 6 of 29
A process must also be given a unique identifying number indicating its level in
the diagram.
DATA STORE (open-ended rectangle)
The data store may represent a manual store, such as a filing cabinet, or a computerized file or database.
Page 7 of 29
3. Draw the first level DFD (Level-1 DFD) showing all the subsystems of the
proposed system as processes.
4. Create a child diagram (DFD level 2) for each of the processes in first level
DFD.
CREATING THE CONTEXT DIAGRAM (DFD LEVEL 0)
The highest level view of a system. This only has one process which
represents the overall system and has no data stores as all the data is
stored within the process.
Context diagram specifies the systems boundary, scope and interaction with
external systems and all end-users.
External entities (end users: who are source of data and destination of data) and
the data flow to and from them are shown.
KITCHEN
0
Customer Order
Food
ordering
system
Receipt
Management
Reports
RESTAURANT
MANAGER
Food Order
Page 8 of 29
Data Flows from Admin to System: Exam Details, Exam Students info
Data Flows from System to Admin: Exam Result Report
Exercise 2: Draw the Context DFD for Library Mgt. System
Student, Faculty, Librarian
Page 9 of 29
Page 10 of 29
New customer
Order
Customer
Invoice
Order
System
Ship
Statement
Picking Slip
Order
Warehouse
Page 11 of 29
Order System
New
info
New customer
D Customer
1 Master
Add
Customer
Customer
Order
Cust Info
Process
Customer
Order
Pending
Order
Backorder
D Back
3 Order
Proc
Info
D Inventory
2 Master
3
Warehouse
Picking
Slip
Produced
Packing
slip
Warehouse
Order
Picked
4
Ship statement
Ship N/A
D Customer
1 Master
Bill N/A
Bill Info
Shipping
Prepare
Customer
Cust Bill
Customer
Bill
Produce
Page 12 of 29
D Customer
1 Master
Order
Need to
establish
Verify
Customer
Valid
2.2
Customer
Order
Notify
Verify
Item
D Inventory
2 Master
Update
2.4
Avail
Valid
Item
Update
Commit
2.3
Check
Available
Back
Order
D Back
3 Order
D Shipping
4 Taxes
Tax
2.5
Create
Order
Ord D Inventory
2 Master
Pending Order
Page 13 of 29
Page 14 of 29
Page 15 of 29
Page 16 of 29
LOGICAL DFD
More abstract view of system
PHYSICAL DFD
Less abstract (more detail) view of system
applying
for
video
store process
with
actual
devices
and
hybrid system.
Page 17 of 29
entry.
Data stores represent logical data Data stores contain physical files and
names (collections of data)
manual files.
VideoRentalTransaction File,
Page 18 of 29
DATA DICTIONARY
After successive levels of data flow diagrams are complete, systems analysts
use them to help catalog the data processes, flows and data stores.
Of particular importance are data items in data-oriented applications.
THE DATA DICTIONARY
It is a catalog metadata (storage area) of the elements (data flows,
data stores, processes) in a system.
Definitions of all elements in the system data flows, data
stores,processes are described in detail in a data dictionary.
DATA DICTIONARY = entities + data stores + data flow + processes
MAIN USE:
1) helps in centralized and consistent storage of data (with cross-referencing) used
in different places like ERD, DFD and screen design.
CASE tools enforce cross-referencing and consistency.
E.g CASE tools like WinA&D, Visible Analyst help in automated data dictionary
creation from ERD and DFD.
WHY IS A DATA DICTIONARY IMPORTANT? (OR WHAT ARE ITS
USES?)
Page 19 of 29
EXAMPLE:
To illustrate how data dictionary entries are created, we use an example for
Shopping Store (World's Trend Catalog Division).
This company sells clothing and other items by mail order or using a toll-free
phone order system (or faxing the mail order form), and via the Internet using
customized Web forms.
First, you need to capture and store the name, address, and telephone
number of the person placing the order.
Page 20 of 29
Then you need to address the details of the order: the item description, size,
color, price, quantity, and so on.
The customer's method of payment must also be determined.
Screen
Report
Form
Internal
Data structure traveling with the flow: Order Information
Volume/Time: 10/hour
Comments: Order may be received by mail, FAX, or by customer telephoning the
order directly.
DESCRIBING DATA STRUCTURES
Examples of data structure: Order (for adding customer order at Shopping
Store):
Customer Order = customer number + customer name + address + telephone +
catalog no + order date + (available order items) + merchandise total + (tax) +
shipping and handling + order total + method of payment + (credit card type) +
(credit card number) + (expiry date)
structural records = collection of data elements
Page 21 of 29
FIELD NAME
DATA TYPE
(SIZE)
ID
Integer
NAME
Varchar(30)
CONTACT_PERSON Varchar(30)
PHONE1
Varchar(12)
PHONE2
Varchar(12)
FAX
Varchar(12)
EMAIL
Varchar(50)
WEBSITE
Varchar(35)
ADDRESS1
Varchar(50)
ADDRESS2
Varchar(50)
CITY_ID
Integer
STATE_ID
Integer
COUNTRY_ID
Integer
CONSTRAINTS
DESCRIPTION
P.K.
Not Null, Unique
Not Null
F.K., Not Null
F.K., Not Null
F.K., Not Null
References City_Master
References State_Master
References
Country_Master
DESCRIBING
Page 22 of 29
PROCESS
SPECIFICATIONS
AND
STRUCTURED
DECISIONS
o Low level DFD processes such as ADD CUSTOMER and RENT VIDEO DVD
but you did not explain the logic necessary to execute these tasks.
o These specifications explain the decision-making logic and formulas that will
transform process input data into output.
o 3 ways to create PSPECS
o The methods available for documenting and analyzing the logic of decisions
include
1) Structured English, 2) Decision tables, and 3) Decision trees
o It is important to be able to recognize logic and structured decisions that occur
in a business
Page 23 of 29
Page 24 of 29
DECISION TABLES
A decision table is a matrix of rows and columns that shows CONDITIONS
AND ACTIONS. Decision tables have decision rules. They state what
procedure to follow when certain conditions exist.
WHEN TO USE: When there are large number of conditions and actions to be
taken (based on different permutation and combinations of conditions)
Decision Rules
Conditions
Condition Alternatives
Actions
Action Entries
RULES
Conditions and Actions
Under $50
X
X
X
Page 25 of 29
Decision Rules
1
Time
>10 days
Business
>10000
<5000
<5000
Volume
Between
>10000
5 & 10K
Between
5 & 10K
ACTION
3 % Disc
2 % Disc
No Disc
X
X
DECISION TREES
a) Decision trees are used when complex branching occurs in a structured
decision process and multiple decisions in a particular sequence.
b) Decision Tree is a diagram that presents conditions and actions
sequentially thus shows which condition to consider first , which
second and so on.
c) Decision trees are most often drawn on their side, with the root of the tree
on the left side of the paper; from there, the tree branches out to the right.
d) USE: trees are used mainly for identifying and organizing conditions and
actions in a completely structured decision process.
Page 26 of 29
Example:
Sales payment approval Logic
cheque
under $50
Credit card
Complete sale. No signature needed
cheque
>= $50
Credit card
Page 27 of 29
Page 28 of 29
DFD Example
Hospital Management System
Admin
User Info.,
Access Info.,
Floor,Ward,Room,Bed - Status Info.,
Patient Info.,
MIS Reports
Login Details,
Message Details
Doctor
Patients Info.,
Reply Message Info.
ADT Module of
Hospital
Management
System
Nurse
Operator
Page 29 of 29
Login Details
Login Login
Details Info.
Verification Status
Login Details
Operator
Verification
Status
Role Info.
Role Details
Verification Status
1.0
Authenticate
User
Login Details
Employee,
Doctor Details
Nurse
Verification
Status
Role Details
2.0
Manage Role
Role
Role Info.
Doctor
Doctor Info.
Employee,
Doctor Info.
Doctor
Login Details
3.0
Manage Staff
Doctor Details
Employee Details
Employee
Employee Info.
Ward Info.
Ward Details
Ward Info.
Floor
4.0
Manage Ward
Ward Details
Patient
Registration
Details
5.0
Register &
Discharge
Patient
Floor No.
Message
6.0
Manage
Bed-Allotment
Room
Bed Allocation
Status.
Bed No.
Approval Reply
Message Info.
Request for Reports
Reports
Message
Ward No.
Message Details
Message Info.
Approval Request
Patient
Patients Details
Patients Info.
Room No.
Ward
Ward Info.
Floor Info.
Patient Info.
Request
Approval
Message
Bed
Allocation
Bed
Approval
Details
7.0
Communicate
Users
8.0
Generate
Reports
Message