Update Documentation for migration
[policy/parent.git] / docs / clamp / acm / plantuml / system-dialogues / MigrateAcInstance.puml
1 @startuml
2 participant Rest
3 participant "ACM Runtime"
4 participant "ACM Database"
5 participant Participants
6
7 group Create New Composition type for Migration
8 Rest -> "ACM Runtime" : Composition Definitions
9 "ACM Runtime" -> "ACM Database" : Saved Definition
10 Rest -> "ACM Runtime" : Prime Definition
11 "ACM Runtime" -> Participants:  [ASYNC] Prime Definition
12 end group
13
14 group Migration per Instance
15 /'Instance migration from source to target composition type. '/
16 Rest -> "ACM Runtime" : Migrate Instance\n(InstanceId, sourceCompId, targetCompId, instance properties)
17 note top
18 Instance migration from source to target
19 composition type.
20 end note
21 alt "instance Id and Composition Ids exist"
22   "ACM Runtime" -> "ACM Database" : Definition Validation
23   "ACM Runtime" -> "ACM Database" : instance and AC Element will be set\nin a transitional state (MIGRATING),\n new instance properties will be saved
24   "ACM Runtime" -> Participants : [ASYNC] Migration message from source to target composition
25   "ACM Runtime" -> Rest : Instance migration has been requested
26  else
27   "ACM Runtime" -> Rest : 400 Bad Reqest
28 end
29 end group
30 @enduml