Skip to content

Added a activity UML diagram, illustrating the different paths the users can take in the task manager #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions UML/activity.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
@startuml
start
:Display menu with 7 options;
if (Option == 1: Add AI Task) then (Yes)
:Prompt user for task details (name, priority, estimated time);
:Create AI Task object;
:Add AI Task to Task Manager;
:Display success message: "AI Task added.";
:Go back to menu;
else (No)
if (Option == 2: Add HPC Task) then (Yes)
:Prompt user for task details (name, priority, estimated time);
:Create HPC Task object;
:Add HPC Task to Task Manager;
:Display success message: "HPC Task added.";
:Go back to menu;
else (No)
if (Option == 3: Add Programming Task) then (Yes)
:Prompt user for task details (name, priority, estimated time);
:Create Programming Task object;
:Add Programming Task to Task Manager;
:Display success message: "Programming Task added.";
:Go back to menu;
else (No)
if (Option == 4: Add DevOps Task) then (Yes)
:Prompt user for task details (name, priority, estimated time);
:Create DevOps Task object;
:Add DevOps Task to Task Manager;
:Display success message: "DevOps Task added.";
:Go back to menu;
else (No)
if (Option == 5: Display Tasks by Priority) then (Yes)
:Sort tasks by priority;
:Display high, medium, and low priority tasks;
:Go back to menu;
else (No)
if (Option == 6: Mark Task as Complete) then (Yes)
:Prompt user for task name;
:Search for task in Task Manager;
if (Task found?) then (Yes)
:Mark task as complete;
:Display success message: "Task marked as complete.";
else (No)
:Display error message: "Task not found.";
endif
:Go back to menu;
else (No)
if (Option == 7: Exit) then (Yes)
:Display goodbye message;
stop
else (No)
:Display error message: "Invalid option.";
:Go back to menu;
endif
endif
endif
endif
endif
endif
endif
@enduml