Add method to allow JSON conversion to execution context for logic 84/114784/5
authorliamfallon <liam.fallon@est.tech>
Wed, 11 Nov 2020 11:13:34 +0000 (11:13 +0000)
committerliamfallon <liam.fallon@est.tech>
Wed, 11 Nov 2020 14:43:13 +0000 (14:43 +0000)
commit90bc246ffec30f7d97474d772d8bad73715cdd45
treed2bac99b05d55dcb9a55c01bb40cb32d1a07a458
parentf76d02a321664e458ebe5bb8a825492e6fd0d986
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>
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]