RAMALAKSHMI K
953622104080
Ex.No:6 Draw the relevant State Chart and Activity diagram for the Calendar Schedular
Application.
Date:
Aim:
To draw the relevant State Chart and Activity Diagram for the Calendar Schedular
Application.
State Diagram:
A state diagram is a type of UML behavioral diagram that represents the different states an
object or system can be in.
State Diagram shows how the system transitions from one state to another based on events
or conditions. The diagram includes initial, intermediate, and final states, along with the
actions that cause state changes.
State Diagram are used to model the dynamic behavior of a system or object over time.
State diagrams are helpful in designing and understanding workflow and system logic.
Basic components and notations of a State diagram
Control Flow
State Diagram Description for Calendar Scheduler Application (User/Admin):
The user/admin logs into the system using credentials.
If the user is a normal user, they can:
o View the calendar.
o Choose between Day View or Week View.
RAMALAKSHMI K
953622104080
o Add/Edit Events and Tasks.
o Receive Notifications.
If the user is an admin, they can:
o View all user tasks.
o Generate reports for tracking and analytics.
The system maintains a transition of states such as:
o Login → View Calendar → Add/Edit Event → Receive Notification
o or
o Login → View User Task → Generate Report.
Activity Diagram:
An Activity Diagram is used to illustrate the flow of control in a system and represents the
sequence of activities and decisions from the start to the end of a process.
The following activity diagram demonstrates how a User/Admin interacts with the Calendar
Scheduler System.
Basic compenents and notations of Activity Diagram
Control Flow
RAMALAKSHMI K
953622104080
Activity Diagram for Calendar Schedular Application:
1. The User/Admin begins by launching the application and logging in.
2. If the user is a User:
o They proceed to view the calendar.
o A decision is made to either view in Day View or Week View.
o The user can then:
Add Event
Add Task
Edit Event
Edit Task
Receive Notifications
3. If the user is an Admin:
o They can view user tasks.
o Then they can generate reports.
4. The activity ends after the user's/admin's tasks are complete.