aboutsummaryrefslogtreecommitdiffstats
path: root/docs/clamp/acm/plantuml/system-dialogues/PrimeAcTypeOnPpnts.puml
blob: c7a8a5e965c2e325d8d7535c6e61007094bed9f8 (plain)
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
@startuml
participant REST
participant "ACM Runtime"
database "ACM Database"
participant Participant

alt Automation Composition Type has Deployed Instances
  REST <- "ACM Runtime": Priming of Automation Composition Type Failed, \ninstances deployed
else Automation Composition Type is in state COMMISSIONED or PRIMED
 REST -> "ACM Runtime": Prime Automation Composition Type

 "ACM Runtime" -> "ACM Database": Read Automation Composition Type
 "ACM Runtime" -> "ACM Database": Read Participants
 "ACM Runtime" -> "ACM Runtime": Set suitable participant ID on each AC Element Type

 alt Was a sutable participant ID found for each AC Element Type?
  "ACM Runtime" -> Participant: [ASYNC] Send Priming Request to all Participants\nwith Automation Composition Type Definition
  "ACM Runtime" -> "ACM Database": Set Automation Composition Type State to PRIMING

  REST <- "ACM Runtime": Priming of Automation Composition Type Ordered
 else
   REST <- "ACM Runtime": Priming of Automation Composition Type Faield, \nno sutiable participant found
 end
else
 REST <- "ACM Runtime": Priming of Automation Composition Type Failed, \ninvalid state
end

@enduml