2 participant ACM_Runtime
3 participant Participant
4 participant Participant_API
6 ACM_Runtime -> Participant: [ASYNC] Undeploy AC Element Instances for this AC Instance
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
22 ACM_Runtime <- Participant: [ASYNC] WARN: AC Element is already undeployed
25 note left of Participant
26 Ignore this AC Element instance as its for another participant