Adding new state and system diagrams/pages
[policy/parent.git] / docs / clamp / acm / plantuml / system-dialogues / PrimeAcTypeOnPpnts.puml
1 @startuml
2 participant REST
3 participant ACM_Runtime
4 participant Participant
5 database ACM_Database
6
7 alt Automation Composition Type has Deployed Instances
8   REST <- ACM_Runtime: Priming of Automation Composition Type Failed, instances deployed
9 else Automation Composition Type is in state COMMISSIONED or PRIMED
10  REST -> ACM_Runtime: Prime Automation Composition Type
11
12  ACM_Runtime -> ACM_Database: Read Automation Composition Type
13  ACM_Runtime -> ACM_Database: Read Participants
14  ACM_Runtime -> ACM_Runtime: Set suitable participant ID on each AC Element Type
15
16  alt Was a sutable participant ID found for each AC Element Type?
17   ACM_Runtime -> Participant: [ASYNC] Send Priming Request to all Participants\nwith Automation Composition Type Definition
18   ACM_Runtime -> ACM_Database: Set Automation Composition Type State to PRIMING
19
20   REST <- ACM_Runtime: Priming of Automation Composition Type Ordered
21  else
22    REST <- ACM_Runtime: Priming of Automation Composition Type Faield, no sutiable participant found
23  end
24 else
25  REST <- ACM_Runtime: Priming of Automation Composition Type Failed, invalid state
26 end
27
28 @enduml