From cff079a8dc3eeaf4e88c0e89a828fe4244a1b3c8 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Wed, 9 Jan 2019 14:30:23 +0100 Subject: Fix context clearing on model upgrade Existing context is cleared when a model upgrade is carried out on an Apex PDP. The clear() method is called in error on the Apex engine during the upgrade. This change also has some small updates to the DecisionMaker example, which is used to test this feature. Issue-ID: POLICY-1395 Change-Id: I547a3a60712d1572d9daadf5eab4afcae2a5c321 Signed-off-by: liamfallon --- examples/examples-decisionmaker/pom.xml | 34 +++++ .../DecisionMaker/ApexConfigRESTServerNoModel.json | 60 +++++++++ .../decisionmaker/DecisionMakerRunner.java | 68 ++++++++++ examples/examples-onap-vcpe/pom.xml | 2 + .../service/engine/runtime/impl/EngineWorker.java | 150 +++++++++------------ 5 files changed, 230 insertions(+), 84 deletions(-) create mode 100644 examples/examples-decisionmaker/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTServerNoModel.json create mode 100644 examples/examples-decisionmaker/src/test/java/org/onap/policy/apex/examples/decisionmaker/DecisionMakerRunner.java diff --git a/examples/examples-decisionmaker/pom.xml b/examples/examples-decisionmaker/pom.xml index 1b25e20b5..64b7e6f5e 100644 --- a/examples/examples-decisionmaker/pom.xml +++ b/examples/examples-decisionmaker/pom.xml @@ -1,6 +1,7 @@