forked from Eng-MFQ/BBQReserverOfTeam3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity-diagrams.pum
141 lines (114 loc) · 3.11 KB
/
activity-diagrams.pum
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
@startuml ad-us001
title US001: Update reservation record
note left
**Precondition**
User has a reservation record and request update
**Assumption**
User wants to update something in his record
end note
(*) --> User request update for his record
--> User choose data to modify
--> System validates the data
if "New data is valid?" then
-->[Yes] Modify Record
--> Show message
--> (*)
else
-->[Something went wrong] Shows alternative time periods
--> Return error
--> (*)
endif
note left
**Postcondition**
Server informs the user is update successful or not
end note
@enduml
@startuml ad-us002
title US002: Create a new reservation
note left
**Precondition**
The user wants to reserve the time at the BBQ place
end note
(*) --> "User clicks 'Create new reservation' button"
--> User enters a time interval
--> Server checks if the time interval is unavailable
if "Time period is available" then
-->[Yes] Server approves the time interval
else
-->[No] Server proposes a time that is close to inputted one
--> User selects one of the proposed time intervals
--> Server approves the time interval
endif
--> User enters an optional comment
--> User approves his reservation request
--> Server saves the reservation to the schedule
--> (*)
note left
**Postcondition**
The schedule is updated by adding a new entry.
end note
@enduml
@startuml ad-us003
title US003: Delete a booking record
note left
**Precondition**
User has a booking record
end note
(*) --> User press modify button
--> User press delete button
--> System asks for confirmation
if "User confirms the deletion" then
-->[Yes] System delete the record
--> User receives confirmation message
--> (*)
else
-->[No] System return to the Modify screen
--> (*)
endif
note left
**Postcondition**
The reservation is deleted.
end note
@enduml
@startuml ad-us004
title US004: Read reservation record
note left
**Precondition**
Reservation exists
**Assumptions**
The user want to check his reservation
end note
(*) --> User enters the system and click it reservation
--> User see his reservation data and can edit it or read
--> (*)
note left
**Postcondition**
None
end note
@enduml
@startuml ad-us005
title US005: Checking a schedule
note left
**Precondition**
The user's location is in the system, the system shows to the user main menu
**Assumption**
The user wants to view the schedule for some time period (day, week, month)
end note
(*) --> The user selects a schedule check in the menu
--> The system prompts the user to select a time period
if "The user selects a time period" then
-->[Daily schedule] The system generates a schedule for the daily schedule
--> The system shows to the user schedule of time period
else
-->[Weekly schedule] The system generates a schedule for the weekly schedule
--> The system shows to the user schedule of time period
else
-->[Monthly schedule] The system generates a schedule for the monthly schedule
--> The system shows to the user schedule of time period
endif
--> (*)
note left
**Postcondition**
The system shows to the user schedule of chosen time period
end note
@enduml