Unit-3 Analysis
a. Determining System Requirements
b. System Process Requirements
c. System Data Requirements
PROCESS MODELING
• Process modeling uses Data Flow Diagrams (DFDs) to graphically map
how information is captured, transformed, and stored within a
system.
• It is a core part of requirements structuring, turning raw information
into organized blueprints that define both current and future system
functions.
• To provide a complete specification, analysts combine process models
with logic models (Decision Tables) and data models (ERDs).
• These complementary views ensure a thorough understanding of
system requirements and can even support the automatic generation
of software components.
The Primary Deliverables
• The core outcome of process modeling is a set of interrelated diagrams
that move from the "big picture" to the "fine details":
• Context Diagram: This defines the system scope. It is a single-process
diagram showing how the entire system interacts with external entities
(like customers or other departments).
• Detailed DFDs (Level-0, Level-n): These specify exactly how data is
transformed. They break the system into smaller sub-processes to provide
enough detail for developers to eventually build the software.
• Project Dictionary / CASE Repository: This is the "encyclopedia" of the
project. It contains formal definitions for every data flow, data store, and
process shown on your diagrams, ensuring everyone uses the same
terminology.
Data Flow Diagrams
• Defining DFD: Graphical representation of a system's data and how
the processes transform the data is known as DFD.
• Unlike, flowcharts, DFD's do not give detailed descriptions of modules
but graphically describe a system's data and how the data interact
with the system.
Data Flow Diagrams
• Structure of DFD allows starting from broad overview and expands it
to a hierarchy of detailed diagrams.
• DFD has often been used due to the following reasons:
→Logical information flow of the system.
→Determination of physical system construction requirements.
→Simplicity of notation.
→Establishment of manual and automated systems requirements.
Key Takeaways on Methodology
• What vs. How: DFDs focus on what the system does (the logic and
flow), not how it will be programmed. The physical decisions (like
choosing a specific database or coding language) happen later in the
design phase.
• Evolutionary Design: DFDs are not drawn once; they evolve. As you
learn more during requirements determination, your diagrams move
from general sketches to highly detailed technical maps.
• Alternative Tools: While DFDs are a gold standard for structured
analysis, modern Object-Oriented approaches (like UML) use Use
Case Diagrams to focus on user interactions rather than just data
flow.
Symbols used to represent data-flow diagram
Symbols used to represent data-flow diagram
Element
Symbol Description
External
Entity
Square box
(Source/Sink)
Purpose / Notes
Represents origins/destinations outside the system (e.g.,
"Customer", "Supplier"). Labeled with a noun. Placed at
diagram edges. No internal details modeled.
Process
Rectangle with rounded corners;
horizontal line near top divides ID
(top) from name (bottom)
Data Store
Open-sided rectangle (missing the Represents data at rest (e.g., "Customer File"). Labeled
right vertical side); small ID
with noun + ID (e.g., D1 Orders). Connected only to
box/line on the left
processes.
Data Flow
Straight arrow (with arrowhead)
Represents data transformation (e.g., "Validate Order").
Labeled with verb phrase + number (e.g., 1.0). Must have
input/output flows.
Represents data in motion (e.g., "Order Details"). Labeled
with noun phrase. Shows direction between valid
elements only.
Example
Level 1 DFD
Level 2 DFD
Try More Examples Like
1.
2.
3.
4.
5.
6.
Library Mgmt System
Hospital Mgmt System
Payroll Mgmt system
ATM system
Student Mgmt System
Ecommerce System etc
Logic Modeling
Logic modeling is a graphic representation of the shared relationships
among resources, activities, outputs, outcomes, and the impact of a
program.
Four Key Components:
• Needs: Problems and why it is important to address them.
• Inputs: Resources that contribute to addressing the need.
• Activities: The processes or actions that the inputs allow to happen.
• Outcomes: Usually expressed in terms of measures of success.
Modeling Logic with Decision Tables
• A decision table is a structured way to represent complex decision
logic.
• It shows what action should be taken for every possible combination
of conditions.
• Decision tables are useful when:
There are many conditions
Each condition has multiple possible values
Different combinations lead to different actions
Parts of a Decision Table
A decision table has three main parts:
1. Condition Stubs
• These list all the conditions that affect the decision and their
possible values.
2. Action Stubs
• These list all possible actions the system can take.
3. Rules
• Rules are the columns that link conditions to actions.
• Each rule represents one possible combination of conditions and
shows which actions are performed.
Conditions
R1
R2
R3
Withdrawal amount
T
<= balance
F
F
Credit Granted
—
T
F
Withdrawal granted T
T
F
Actions
Question
• A company wants to automate its payroll system. The system calculates
employee pay based on employee type and hours worked. The rules are as
follows:
• Salaried employees (S)
• They are paid a fixed monthly salary regardless of the number of hours worked.
• No overtime or absence report is required.
• Hourly employees (H)
• If they work less than 40 hours, the system calculates their hourly wage and
produces an absence report.
• If they work exactly 40 hours, the system calculates their hourly wage.
• If they work more than 40 hours, the system calculates their hourly wage and adds
pay for overtime hours.
Decision Table
Conditions / Rules
R1
R2
R3
R4
Employee Type
S
H
H
S
Hours Worked
–
< 40
= 40
> 40
Actions
Pay Base Salary
Calculate Hourly
Wage
✔
✔
✔
✔
Calculate Overtime
Produce Absence
Report
✔
✔
Problem Statement
• A library issues fines for overdue books. The rules are:
• If a student returns a book:
i. Within 7 days late → No fine
ii. 8–14 days late → $1 per day
iii. More than 14 days late → $2 per day
• If a faculty member returns a book:
i. Within 7 days late → No fine
ii. 8–14 days late → $0.5 per day
iii. More than 14 days late → $1 per day
• Design a decision table to show the logic for calculating fines.