Add method to allow JSON conversion to execution context for logic 55/114755/1
authorliamfallon <liam.fallon@est.tech>
Wed, 11 Nov 2020 11:13:34 +0000 (11:13 +0000)
committerJim Hahn <jrh3@att.com>
Thu, 12 Nov 2020 14:46:33 +0000 (14:46 +0000)
commit84d0f41eba6884cc8e75e920e766abd785c06f2b
tree7ecb11941117bcf9ac122f4fea50d1b03838987a
parenta95972dea262712bddd8de354ab8b7fe25b5d853
Add method to allow JSON conversion to execution context for logic

The Rhino JSON.Stringify() method does not work well. This patch allows
the user to call schema specific or generic JSON conversion using the
schema handling in Apex or not as the developer chooses.

Added a single argument stringify2Json() method.

Issue-ID: POLICY-2463
Change-Id: I9ec1e0dea2f6cd153b73b2eace63d8806674884d
Signed-off-by: liamfallon <liam.fallon@est.tech>
(cherry picked from commit 90bc246ffec30f7d97474d772d8bad73715cdd45)
core/core-engine/src/main/java/org/onap/policy/apex/core/engine/executor/context/AbstractExecutionContext.java [new file with mode: 0644]
core/core-engine/src/main/java/org/onap/policy/apex/core/engine/executor/context/StateFinalizerExecutionContext.java
core/core-engine/src/main/java/org/onap/policy/apex/core/engine/executor/context/TaskExecutionContext.java
core/core-engine/src/main/java/org/onap/policy/apex/core/engine/executor/context/TaskSelectionExecutionContext.java
examples/examples-onap-vcpe/src/test/resources/logback-test.xml [new file with mode: 0644]