Adding new state and system diagrams/pages
[policy/parent.git] / docs / clamp / acm / plantuml / system-dialogues / DeployAcInstanceElements.puml
1 @startuml
2 participant ACM_Runtime
3 participant Participant
4 participant Participant_API
5
6 ACM_Runtime -> Participant: [ASYNC] Deploy AC Element Instances for this AC Instance
7
8 loop over AC Element Instances in AC Instance
9  alt Does the primed Participant ID on this AC Element Instance\nmatch my Participant ID?
10   alt Is this AC Element Instance already deployed
11    ACM_Runtime <- Participant: [ASYNC] WARN: AC Element is already deployed
12   else
13    Participant -> Participant_API: Deploy AC Element Instance
14    activate Participant_API
15    Participant <- Participant_API: AC Element Instance Deploy Response
16    deactivate Participant_API
17    alt AC Element deployed successfully
18     Participant -> Participant: Set AC Element Instance administrative state to LOCKED
19     ACM_Runtime <- Participant: [ASYNC] INFO: AC Element has been deployed
20    else
21     ACM_Runtime <- Participant: [ASYNC] ERROR: AC Element was not deployed
22    end
23   end
24  else
25   note left of Participant
26    Ignore this AC Element instance as its for another participant
27   end note
28  end
29 end
30
31 @enduml