From f702224c07abd43d72ab0198cf760537d3d35d8a 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 (cherry picked from commit cff079a8dc3eeaf4e88c0e89a828fe4244a1b3c8) --- examples/examples-decisionmaker/pom.xml | 34 +++++++++++ .../DecisionMaker/ApexConfigRESTServerNoModel.json | 60 +++++++++++++++++++ .../decisionmaker/DecisionMakerRunner.java | 68 ++++++++++++++++++++++ examples/examples-onap-vcpe/pom.xml | 2 + 4 files changed, 164 insertions(+) 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 (limited to 'examples') diff --git a/examples/examples-decisionmaker/pom.xml b/examples/examples-decisionmaker/pom.xml index baa0c833b..ab392eadc 100644 --- a/examples/examples-decisionmaker/pom.xml +++ b/examples/examples-decisionmaker/pom.xml @@ -1,6 +1,7 @@