Update flow diagrams
[nonrtric/plt/rappmanager.git] / docs / uml / rApp-instance-flow.puml
1 @startuml
2 autonumber
3
4 actor "API User"
5 participant "rApp Manager"
6 collections "File System"
7 participant "ACM Runtime"
8 participant "A1PMS Participant"
9 participant "Kserve Participant"
10 participant "K8s Participant"
11 participant "DME Participant"
12 participant "SME"
13
14 autonumber
15 group Create rApp Instance
16 "API User"->"rApp Manager": Create rApp Instance
17 "rApp Manager"->"API User": Create rApp Instance response
18 end
19
20 autonumber
21 group Deploy rApp Instance
22 "API User"->"rApp Manager": Deploy rApp Instance
23 "rApp Manager"->"File System": Fetch rApp Package and Instance details
24     group ACM Deploy
25         "rApp Manager"->"ACM Runtime": Instantiate ACM Instance
26         "rApp Manager"<-"ACM Runtime": Instantiate ACM Instance response
27         "rApp Manager"->"ACM Runtime": Deploy ACM Instance
28         group Deploy A1 Part
29             "ACM Runtime"->"A1PMS Participant": Deploy ACM Instance
30             "ACM Runtime"<--"A1PMS Participant": Response
31         end
32         group Deploy Kserve Part
33             "ACM Runtime"->"Kserve Participant": Deploy ACM Instance
34             "ACM Runtime"<--"Kserve Participant": Response
35         end
36         group Deploy Kubernetes Part
37             "ACM Runtime"->"K8s Participant": Deploy ACM Instance
38             "ACM Runtime"<--"K8s Participant": Response
39         end
40         group Deploy DME Part
41             "ACM Runtime"->"DME Participant": Deploy ACM Instance
42             "ACM Runtime"<--"DME Participant": Response
43         end
44         "rApp Manager"->"ACM Runtime": ACM Deployment Status
45     end
46
47     group SME Deploy
48         "rApp Manager"->"SME": Create SME entities
49         "SME"->"SME": Create the entities as provided
50         "rApp Manager"<-"SME": Response of SME entities creation
51     end
52 "API User"<-"rApp Manager": Deploy rApp Instance Status
53 end
54
55 autonumber
56 group Undeploy rApp Instance
57 "API User"->"rApp Manager": Undeploy rApp Instance
58 "rApp Manager"->"rApp Manager": Fetch rApp Package and Instance details
59     group ACM Undeploy
60         "rApp Manager"->"ACM Runtime": Undeploy ACM Instance
61         group Undeploy A1 Part
62             "ACM Runtime"->"A1PMS Participant": Undeploy ACM Instance
63             "ACM Runtime"<--"A1PMS Participant": Response
64         end
65         group Undeploy Kserve Part
66             "ACM Runtime"->"Kserve Participant": Undeploy ACM Instance
67             "ACM Runtime"<--"Kserve Participant": Response
68         end
69         group Undeploy Kubernetes Part
70             "ACM Runtime"->"K8s Participant": Undeploy ACM Instance
71             "ACM Runtime"<--"K8s Participant": Response
72         end
73         group Undeploy DME Part
74             "ACM Runtime"->"DME Participant": Undeploy ACM Instance
75             "ACM Runtime"<--"DME Participant": Response
76         end
77         "rApp Manager"->"ACM Runtime": ACM Undeployment Status
78         "rApp Manager"->"ACM Runtime": Delete ACM Instance
79         "rApp Manager"<-"ACM Runtime": Delete ACM Instance response
80     end
81
82     group SME Undeploy
83         "rApp Manager"->"SME": Delete SME entities
84         "SME"->"SME": Delete the entities as provided
85         "rApp Manager"<-"SME": Response of SME entities Deletion
86     end
87 "API User"<-"rApp Manager": Undeploy rApp Instance Status
88 end
89
90 autonumber
91 group Delete rApp Instance
92 "API User"->"rApp Manager": Delete rApp Instance
93 "rApp Manager"->"API User": Delete rApp Instance response
94 end
95
96 @enduml