Adding new state and system diagrams/pages
[policy/parent.git] / docs / clamp / acm / plantuml / system-dialogues / UnlockInstanceElements.puml
1 @startuml
2 participant ACM_Runtime
3 participant Participant
4 participant Participant_API
5
6 ACM_Runtime -> Participant: [ASYNC] Unlock 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 administrative state not LOCKED
11    ACM_Runtime <- Participant: [ASYNC] WARN: AC Element is not LOCKED
12   else
13    Participant -> Participant_API: Unlock AC Element Instance
14    activate Participant_API
15    Participant <- Participant_API: Unlock AC Element Instance Response
16    deactivate Participant_API
17    alt AC Element unlocked successfully
18     Participant -> Participant: Set AC Element Instance administrative state to UNLOCKED
19     ACM_Runtime <- Participant: [ASYNC] INFO: AC Element has been unlocked
20    else
21     ACM_Runtime <- Participant: [ASYNC] ERROR: AC Element was not unlocked
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