Skip to content

Commit

Permalink
Update activity diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
CYX22222003 committed Nov 6, 2024
1 parent 474e877 commit 9d0794a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docs/diagrams/CommitActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ skin rose
skinparam ActivityFontSize 15
skinparam ArrowFontSize 12
start
:User executes command;
:User inputs and
executes command;

'Since the beta syntax does not support placing the condition outside the
'diamond we place it as the true branch instead.

if () then ([command modifies CampusConnect])
:Purge undone states in the
"future" stack;
:Save current CampusConnect
to "history" stack;
: Parse command;
if () then ([command will modify CampusConnect])
:Purge undone states;
:Save current CampusConnect;
:Excutes Command;
if () then ([command execution fails])
: Undo old version of
: Recover to old version of
CampusConnect;
else ([else])
endif
else ([else])
:Excutes Command;
endif
stop
@enduml

0 comments on commit 9d0794a

Please sign in to comment.