Unit 2 Process and Conceptual Modeling
Unit 2 Process and Conceptual Modeling
It shows how data enters and leaves the system, what changes the information, and where data
is stored.
The purpose of data flow diagram is to show the “flow” and transformation of data through the
system. These diagrams are used as visualization tool to help the audience get a better idea of
what exactly is going on in the system.
Data can not flow between two data stores Data flow must be from data store to a process
or a process to an data store. Data flow can occur from one data store to many process.
Data can not flow directly from an entity to data store – Data Flow from entity must be
processed by a process before going to data store and vice versa.
A process must have at least one input data flow and one output data flow – Every process
must have input data flow to process the data and an output data flow for the processed
data.
A data store must have at least one input data flow and one output data flow – Every data
store must have input data flow to store the data and an output data flow for the retrieved
data.
All the process in the system must be linked to minimum one data store or any other
process.
BCA III – SAD Compiled By: GIRIJA 4
BCA III – SAD Compiled By: GIRIJA 5
Levels of DFDs
Data Flow Diagrams can be structured at various levels of abstraction. Each level offers a more
detailed representation of the system’s data flow and processes than the level above it. Here
are the different levels of DFDs:
0-Level DFD:
This diagram represents the entire system as a single process or "bubble."
This is the highest-level DFD, which provides an overview of the entire system. It shows
the major processes, data flows, and data stores in the system, without providing any
details about the internal workings of these processes.
It illustrates the external entities that interact with the system, such as users, other
systems, or external data sources.
The focus is on providing an overview of the system's boundaries and the primary
interactions between the system and its environment.
This level helps stakeholders understand the system's scope without getting into intricate
details.
1-Level DFD:
This level provides a more detailed view of the system by breaking down the major
processes identified in the level 0 DFD into sub-processes. Each sub-process is depicted
as a separate process on the level 1 DFD. The data flows and data stores associated with
each sub-process are also shown.
Major processes are identified along with their interrelationships, showcasing the main
activities within the system.
Data flows between processes and external entities are introduced, highlighting how
data moves through the system.
This level provides a fundamental understanding of the system's key functionalities and
how it interacts with external entities.
2-Level DFD:
This level provides an even more detailed view of the system by breaking down the sub-
processes identified in the level 1 DFD into further sub-processes. Each sub-process is
depicted as a separate process on the level 2 DFD. The data flows and data stores
associated with each sub-process are also shown.
Additional details are introduced, such as data stores, data transformations, and specific
data flows within each process.
This level offers a more granular view of the system's internal workings, making it
particularly useful for system designers and analysts.
It may focus on specific modules or components of the system, providing insights into
their functionalities.
Example: Context and top level DFD diagram for Customer Relationship Management
D. Conceptual Modeling
Conceptual modeling is the process of developing an abstract model or graphical representation
using real-world concepts or ideas. During conceptual modeling, various assumptions are made
regarding how the system functions. Conceptual models also illustrate the dominant processes
in a system and how they are linked. These processes may include factors known to drive change
in the system, or they may encompass the consequences of change in the factors themselves.
Aspect Explanation
– Entities: These represent objects or concepts within the modeled domain. Entities
have attributes that describe their properties.
– Relationships: These indicate connections or associations between entities,
providing insights into how entities interact.
Key Concepts
– Attributes: These define the characteristics or properties of entities, helping to
describe them in more detail.
– Constraints: Constraints specify rules or conditions that entities and relationships
must adhere to.
– Various modeling languages are used for Conceptual Modeling, such as Entity-
Relationship Diagrams (ERD) for database modeling, Unified Modeling Language
Modeling
(UML) for software design, and Business Process Model and Notation (BPMN) for
Languages
business process modeling. These languages provide standardized
symbols and notations for modeling.
Aspect Explanation
Below are some of the most commonly used conceptual modelling techniques:
Data flow modeling (DFM)
A basic technique where the elements of a system are graphically represented by data flow.
Instead of illustrating complex system details, DFM gives context to major system functions.
To progress through events, a function or active event must be executed. This technique is
commonly seen in resource planning, logistics, and process improvement.
Object Diagram:
Screenshot of instances and their relationships.
Depicts actual classifiers at a specific time.
Shows instances and relationships from class diagrams.
BCA III – SAD Compiled By: GIRIJA 13
Component Diagram:
Organizes physical components in a system.
Models implementation details.
Illustrates relationships between software elements.
BCA III – SAD Compiled By: GIRIJA 14
Deployment Diagram:
Represents system hardware and software.
Shows distribution of software artifacts.
Used for distributed or deployed systems.
Package Diagram:
Organizes packages and their dependencies.
Helps group UML diagrams meaningfully.
Primarily used for class and use case diagrams.
BCA III – SAD Compiled By: GIRIJA 15
Activity Diagrams:
Illustrates flow of control in a system.
Models sequential and concurrent activities.
Focuses on workflow and event causes.
BCA III – SAD Compiled By: GIRIJA 16
Sequence Diagram:
Shows object interactions in sequential order.
Describes how objects function over time.
Used for documenting system requirements.
BCA III – SAD Compiled By: GIRIJA 17
Communication Diagram:
Displays sequenced messages between objects.
Focuses on objects and relationships.
Represents similar info as Sequence diagrams.
Timing Diagram:
Special form of Sequence diagrams.
Depicts object behavior over a time frame.
Shows time and duration constraints.
BCA III – SAD Compiled By: GIRIJA 18
The Entity Relationship Diagram explains the relationship among the entities present in the
database. ER models are used to model real-world objects like a person, a car, or a company and
the relation between these real-world objects. In short, the ER Diagram is the structural format
of the database.
Why Use ER Diagrams?
ER diagrams are used to represent the E-R model in a database, which makes them easy to
be converted into relations (tables).
ER diagrams provide the purpose of real-world modeling of objects which makes them
intently useful.
ER diagrams require no technical knowledge and no hardware support.
These diagrams are very easy to understand and easy to create even for a naive user.
It gives a standard solution for visualizing the data logically.
Components of ER Diagram
ER Model consists of Entities, Attributes, and Relationships among Entities in a Database System.
Entity
An Entity may be an object with a physical existence – a particular person, car, house, or
employee – or it may be an object with a conceptual existence – a company, a job, or a university
course.
1. Strong Entity
A Strong Entity is a type of entity that has a key Attribute. Strong Entity does not depend on other
Entity in the Schema. It has a primary key, that helps in identifying it uniquely, and it is
represented by a rectangle. These are called Strong Entity Types.
2. Weak Entity
An Entity type has a key attribute that uniquely identifies each entity in the entity set. But some
entity type exists for which key attributes can’t be defined. These are called Weak Entity types.
Attributes
Attributes are the properties that define the entity type. For example, Roll_No, Name, DOB, Age,
Address, and Mobile_No are the attributes that define entity type Student. In ER diagram, the
attribute is represented by an oval.
Attribute
BCA III – SAD Compiled By: GIRIJA 22
1. Key Attribute
The attribute which uniquely identifies each entity in the entity set is called the key attribute.
For example, Roll_No will be unique for each student. In ER diagram, the key attribute is
represented by an oval with underlying lines.
Key Attribute
2. Composite Attribute
An attribute composed of many other attributes is called a composite attribute. For example,
the Address attribute of the student Entity type consists of Street, City, State, and Country. In ER
diagram, the composite attribute is represented by an oval comprising of ovals.
Composite Attribute
3. Multivalued Attribute
An attribute consisting of more than one value for a given entity. For example, Phone_No (can
be more than one for a given student). In ER diagram, a multivalued attribute is represented by
a double oval.
Multivalued Attribute
BCA III – SAD Compiled By: GIRIJA 23
4. Derived Attribute
An attribute that can be derived from other attributes of the entity type is known as a derived
attribute. e.g.; Age (can be derived from DOB). In ER diagram, the derived attribute is represented
by a dashed oval.
Derived Attribute
Relationship Type and Relationship Set
A Relationship Type represents the association between entity types. For example, ‘Enrolled in’
is a relationship type that exists between entity type Student and Course. In ER diagram, the
relationship type is represented by a diamond and connecting the entities with lines.
Entity-Relationship Set
Cardinality
The number of times an entity of an entity set participates in a relationship set is known as
cardinality. Cardinality can be of different types:
1. One-to-One: When each entity in each entity set can take part only once in the relationship,
the cardinality is one-to-one. Let us assume that a male can marry one female and a female can
marry one male. So the relationship will be one-to-one.
the total number of tables that can be used in this is 2.
2. One-to-Many: In one-to-many mapping as well where each entity can be related to more than
one relationship and the total number of tables that can be used in this is 2. Let us assume that
one surgeon deparment can accomodate many doctors. So the Cardinality will be 1 to M. It
means one deparment has many Doctors.
total number of tables that can used is 3.
Q1. Construct an E-R diagram for a car-insurance company whose customers own one or more cars each.
Each car has associated with it zero to any number of recorded accidents.
BCA III – SAD Compiled By: GIRIJA 26
Q2. Construct an E-R diagram for a hospital with a set of patients and a set of medical doctors. Associate
with each patient a log of the various tests and examinations conducted. Answer: See Figure 2.2
Q3. A university registrar’s office maintains data about the following entities:
Assignments:
1. Define Data Flow Diagrams (DFDs) and explain their purpose in system analysis and
design.
2. Identify and explain the different symbols used in DFDs and their respective roles in
illustrating data flow.
3. Describe the process of context-level DFD creation, including identifying external
entities, data flows, and the main system process.
4. Explain the purpose of level-0 and level-1 DFDs and outline the steps involved in
decomposing a context-level DFD into these levels.
5. Define conceptual modeling and explain its role in representing the data entities and
relationships within a system.
6. Describe the Entity-Relationship (ER) model and its key components: entities,
attributes, and relationships.
7. Differentiate between different types of relationships in an ER model (e.g., one-to-
one, one-to-many, many-to-many) and provide examples for each.
8. Explain the concept of cardinality and ordinality in ER modeling and their importance
in representing data relationships accurately.
9. Compare and contrast DFDs and ER models, highlighting their strengths and
limitations as tools for process and data analysis.