From ccf72b37d15930a8ede20ec4391b776cc60bf3c5 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Thu, 7 Nov 2019 21:33:12 +0000 Subject: Fix vCPE example apex-pdp policy The changes in policy-models for appclcm had knock-on impacts on the apex-pdp example policies. This patch fixes the vCPE policy to comply with the new APPCLCM POJOs. Issue-ID: POLICY-2043 Change-Id: Ieebc2cf97a05efde560a2f5a819924ff63dfd695 Signed-off-by: liamfallon --- .../engine/runtime/impl/EngineServiceImpl.java | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'services/services-engine/src/main/java/org/onap') diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/impl/EngineServiceImpl.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/impl/EngineServiceImpl.java index 152425711..8247fd5f3 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/impl/EngineServiceImpl.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/impl/EngineServiceImpl.java @@ -229,20 +229,6 @@ public final class EngineServiceImpl implements EngineService, EngineServiceEven return engineWorkerMap.entrySet().iterator().next().getValue().getApexModelKey(); } - /** - * {@inheritDoc}. - */ - @Override - public void updateModel(final AxArtifactKey incomingEngineServiceKey, final String apexModelString, - final boolean forceFlag) throws ApexException { - AxPolicyModel apexPolicyModel = createModel(incomingEngineServiceKey, apexModelString); - - // Update the model - updateModel(incomingEngineServiceKey, apexPolicyModel, forceFlag); - - LOGGER.exit(); - } - /** * Method to create model. * @@ -281,6 +267,20 @@ public final class EngineServiceImpl implements EngineService, EngineServiceEven return apexPolicyModel; } + /** + * {@inheritDoc}. + */ + @Override + public void updateModel(final AxArtifactKey incomingEngineServiceKey, final String apexModelString, + final boolean forceFlag) throws ApexException { + AxPolicyModel apexPolicyModel = createModel(incomingEngineServiceKey, apexModelString); + + // Update the model + updateModel(incomingEngineServiceKey, apexPolicyModel, forceFlag); + + LOGGER.exit(); + } + /** * {@inheritDoc}. */ -- cgit 1.2.3-korg