Adding new state and system diagrams/pages
[policy/parent.git] / docs / clamp / acm / plantuml / system-dialogues / UndeployInstanceElements.puml
1 @startuml
2 participant ACM_Runtime
3 participant Participant
4 participant Participant_API
5
6 ACM_Runtime -> Participant: [ASYNC] Undeploy 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 Does this AC Element Instance exist?
11    ACM_Runtime <- Participant: [ASYNC] WARN: AC Element does not exist
12   else Is this administrative state of this AC Element Instance LOCKED
13    Participant -> Participant_API: Undeploy AC Element Instance
14    activate Participant_API
15    Participant <- Participant_API: Undeploy AC Element Instance Response
16    deactivate Participant_API
17    ACM_Runtime <- Participant: [ASYNC] INFO: AC Element undeployed successfully
18    note left of Participant
19     Undeploy always returns success
20    end note
21   else
22     ACM_Runtime <- Participant: [ASYNC] WARN: AC Element is already undeployed
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