From 724867ef4376e61f2374293883b475da0913c9b6 Mon Sep 17 00:00:00 2001 From: waynedunican Date: Fri, 15 Sep 2023 08:54:49 +0100 Subject: Add shared context example - Add a new example which splits the DecisionMaker policy into two policies - One which sets answers and one which makes the decision - Both policies share the AnswerAlbum context - Added documentation to support this Issue-ID: POLICY-4765 Change-Id: I12bcef9f32b5efae2574cc5e6ebb988a17ac96a9 Signed-off-by: waynedunican --- .../examples-decisionmaker-sharedcontext/pom.xml | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 examples/examples-decisionmaker-sharedcontext/pom.xml (limited to 'examples/examples-decisionmaker-sharedcontext/pom.xml') diff --git a/examples/examples-decisionmaker-sharedcontext/pom.xml b/examples/examples-decisionmaker-sharedcontext/pom.xml new file mode 100644 index 000000000..acbfeff3d --- /dev/null +++ b/examples/examples-decisionmaker-sharedcontext/pom.xml @@ -0,0 +1,121 @@ + + + 4.0.0 + + org.onap.policy.apex-pdp.examples + examples + 3.0.1-SNAPSHOT + + + examples-decisionmaker-sharedcontext + ${project.artifactId} + Specific code for the APEX Decision Maker Example + + + DecisionMakerPolicyModel + DecisionMakerPolicyModel_Decision + ${project.basedir}/src + + + + + org.onap.policy.apex-pdp.auth + cli-editor + ${project.version} + + + org.onap.policy.apex-pdp.services + services-engine + ${project.version} + test + + + org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema + plugins-context-schema-avro + ${project.version} + + + org.onap.policy.apex-pdp.plugins.plugins-executor + plugins-executor-javascript + ${project.version} + + + org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier + plugins-event-carrier-restserver + ${project.version} + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + -Xss1m + + + + + org.codehaus.mojo + exec-maven-plugin + + + generate-decisionmaker-sharedcontext-policy + compile + + java + + + org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain + compile + + --command-file=${project.basedir}/src/main/resources/policy/${policymodel.decisionmaker.name}.apex + --output-tosca-file=${project.build.directory}/classes/${policymodel.decisionmaker.name}.json + --log-file=${project.build.directory}/${policymodel.decisionmaker.name}_policygeneration.log + --apex-config-file=${project.basedir}/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTServerNoModel.json + --tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplate.json + + + + + generate-decisionmakertwo-sharedcontext-policy + compile + + java + + + org.onap.policy.apex.auth.clieditor.tosca.ApexCliToscaEditorMain + compile + + --command-file=${project.basedir}/src/main/resources/policy/${policymodel.decisionmakertwo.name}.apex + --output-tosca-file=${project.build.directory}/classes/${policymodel.decisionmakertwo.name}.json + --log-file=${project.build.directory}/${policymodel.decisionmakertwo.name}_policygeneration.log + --apex-config-file=${project.basedir}/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTServerNoModel_Decision.json + --tosca-template-file=${project.basedir}/src/main/resources/tosca/ToscaTemplateTwo.json + + + + + + + + -- cgit 1.2.3-korg