-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiagram.puml
76 lines (70 loc) · 1.75 KB
/
diagram.puml
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
@startuml TaskFlow
start
:Client;
if (¿Is the client registered?) then (No)
:Register;
if (¿Duplicate Data?) then (Yes)
:Show error 409;
stop
else (No)
:Save user data in the database;
:Return to Login Section;
stop
endif
else (yes)
:Login;
if (¿Validate credentials?) then (No)
:Show error;
:Error 401 Unauthorized ;
:Error 404 User not found;
stop
else (Yes)
:Access to profile;
endif
if (Roles)then (Yes)
if (Admin)
if (Total Access)
:CRUD user;
:Give Access Level;
:CRUD project;
:CRUD task;
endif
else if (Creator)
:List of User;
:CRUD project;
:Give Access Level;
:CRUD task;
else if (Basic)
:Create Project;
if (¿Get Level Access?) then (Yes)
if (OWNER ) then (50)
:Create Project;
:Get Project by id;
:Update Project;
:CRUD task;
else if (MAINTAINER) then(40)
:Create Project;
:Update Project;
:CRUD task;
else if (DEVELOPER) then(30)
:CRUD task;
endif
else (no)
:Error 401 Unauthorized ;
stop
endif
endif
:Progress Task;
if (CREATED)
:Task Created;
else if (IN_PROGRESS)
:Task In Progress;
else if (FINISH)
:Task Finished;
endif
else (No)
:Error 401;
stop
endif
stop
@enduml