Fix context clearing on model upgrade 01/75601/1 2.0.4 2.0.5 3.0.1-ONAP
authorliamfallon <liam.fallon@est.tech>
Wed, 9 Jan 2019 13:30:23 +0000 (14:30 +0100)
committerLiam Fallon <liam.fallon@est.tech>
Thu, 10 Jan 2019 06:48:07 +0000 (06:48 +0000)
commitf702224c07abd43d72ab0198cf760537d3d35d8a
treeab48142d86c0134f24ded3110926188371f1fbb0
parent0b83f6124f068583df43eb9b587b9d46b22e9843
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 <liam.fallon@est.tech>
(cherry picked from commit cff079a8dc3eeaf4e88c0e89a828fe4244a1b3c8)
examples/examples-decisionmaker/pom.xml
examples/examples-decisionmaker/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTServerNoModel.json [new file with mode: 0644]
examples/examples-decisionmaker/src/test/java/org/onap/policy/apex/examples/decisionmaker/DecisionMakerRunner.java [new file with mode: 0644]
examples/examples-onap-vcpe/pom.xml
services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/impl/EngineWorker.java