0% found this document useful (0 votes)
14 views3 pages

Creating Use Case and ER Diagrams in Visio

it

Uploaded by

Brian Omare
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Creating Use Case and ER Diagrams in Visio

it

Uploaded by

Brian Omare
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Develop Use Case Diagrams


Step-by-Step Guide (Using Microsoft Visio):

1. Open Visio:
o Launch Microsoft Visio and select the “UML Use Case”
template from the available options.

2. Understand Use Case Diagram Basics:


o Actors: Represent external entities (users or systems)
interacting with your system.
o Use Cases: Depict actions or processes the system will perform.
o System Boundary: A box representing the system's scope.
o Relationships: Arrows or lines connecting actors and use cases
to show interactions.

3. Build the Diagram:


o Insert System Boundary: Drag and drop the System
Boundary shape from the Shapes pane onto the canvas.
o Add Actors: Use the Actor shape for users interacting with the
system (e.g., "Employee", "Manager").
o Add Use Cases: Use the Use Case shape to represent
functionalities (e.g., "Input Data", "Generate Report").
o Connect Components: Use Connectors to link actors to their
relevant use cases. Drag from the actor's arrow endpoint to the
use case.

4. Examples of Use Case Diagrams:


o Use Case 1: Employee inputs sales data.
o Use Case 2: Manager generates monthly report.
o Use Case 3: System synchronizes data across facilities.
o Use Case 4: Admin manages user roles and permissions.

2. Develop Entity-Relationship Diagram (ERD)


Step-by-Step Guide (Using Microsoft Visio):

1. Open Visio:
o Launch Microsoft Visio and select the “Database Model
Diagram” template.

2. Understand ERD Basics:


o Entities: Represent tables in the database (e.g., "Employees",
"Departments").
o Attributes: Represent columns in each table (e.g., EmployeeID,
Name).
o Relationships: Show how tables relate (e.g., "One-to-Many" or
"Many-to-Many").
o Keys:
 Primary Key (PK): Uniquely identifies each row in a table.
 Foreign Key (FK): Links a table to another table's PK.

3. Build the Diagram:


o Add Entities: Use the Entity shape for each table.
o Define Attributes: List attributes for each entity within the
rectangle.
o Add Keys: Bold or highlight primary keys; note foreign keys
appropriately.
o Connect Entities: Use Crow’s Foot Notation to indicate
relationships. Drag connectors between tables and specify
cardinality (e.g., "1..*").

4. Examples of Tables (ERD):


o Table 1: Employees (EmployeeID [PK], Name, Role,
DepartmentID [FK])
o Table 2: Departments (DepartmentID [PK], DepartmentName,
ManagerID [FK])
o Table 3: Roles (RoleID [PK], RoleName, Permissions)
o Table 4: Projects (ProjectID [PK], ProjectName, StartDate,
EndDate)
o Table 5: Assignments (AssignmentID [PK], EmployeeID [FK],
ProjectID [FK])

Creating Visual Representations

Here are textual descriptions of the diagrams that you can later create as images in Visio:

1. Use Case Diagram Example:


o Actors: "Employee" → connects to → "Input Data" use case.
o Actors: "Manager" → connects to → "Generate Report" use case.
o Actor: "Admin" → connects to → "Manage User Roles" use case.
o System boundary includes all use cases.

2. Entity-Relationship Diagram Example:


o Table: Employees connects to Departments via DepartmentID (1
Department has Many Employees).
o Table: Roles connects to Employees via RoleID (1 Role can be
assigned to Many Employees).
o Table: Projects connects to Assignments via ProjectID (1
Project can have Many Assignments).
o Table: Assignments connects to Employees via EmployeeID (1
Employee can have Many Assignments).

Next Steps

 Let me know if you'd like me to generate sample visuals or provide


specific instructions for another diagram!
 If you'd like me to generate static images for these diagrams, I can
create them and ensure they align with your project's details.

You might also like