From c85228f5b4071f0aee7412ba67a0cfa3031a2e90 Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Wed, 27 Sep 2023 10:37:28 +0100 Subject: Add migration support in ACM participants Issue-ID: POLICY-4825 Change-Id: Iebdd0b8c4890e9c022f68396f11f7ba8c80bef00 Signed-off-by: FrancescoFioraEst --- .../sim/main/handler/AutomationCompositionElementHandler.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'participant/participant-impl/participant-impl-simulator/src') diff --git a/participant/participant-impl/participant-impl-simulator/src/main/java/org/onap/policy/clamp/acm/participant/sim/main/handler/AutomationCompositionElementHandler.java b/participant/participant-impl/participant-impl-simulator/src/main/java/org/onap/policy/clamp/acm/participant/sim/main/handler/AutomationCompositionElementHandler.java index 329921f34..a1564b2f7 100755 --- a/participant/participant-impl/participant-impl-simulator/src/main/java/org/onap/policy/clamp/acm/participant/sim/main/handler/AutomationCompositionElementHandler.java +++ b/participant/participant-impl/participant-impl-simulator/src/main/java/org/onap/policy/clamp/acm/participant/sim/main/handler/AutomationCompositionElementHandler.java @@ -372,4 +372,11 @@ public class AutomationCompositionElementHandler implements AutomationCompositio intermediaryApi.sendAcDefinitionInfo(compositionId, compositionDefinitionElementId, outProperties); } + + @Override + public void migrate(UUID automationCompositionId, AcElementDeploy element, UUID compositionTargetId, + Map properties) throws PfModelException { + intermediaryApi.updateAutomationCompositionElementState(automationCompositionId, element.getId(), + DeployState.DEPLOYED, null, StateChangeResult.NO_ERROR, "Migrated"); + } } -- cgit 1.2.3-korg