Add shared context example 20/136020/3
authorwaynedunican <wayne.dunican@est.tech>
Fri, 15 Sep 2023 07:54:49 +0000 (08:54 +0100)
committerwaynedunican <wayne.dunican@est.tech>
Tue, 26 Sep 2023 07:43:11 +0000 (08:43 +0100)
commit724867ef4376e61f2374293883b475da0913c9b6
treeaa3c6dca8d07ec45384cb914643f6012c929d580
parenta3a032d5b902c3e125dccd2bc2b41f22861decc1
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 <wayne.dunican@est.tech>
16 files changed:
examples/examples-decisionmaker-sharedcontext/pom.xml [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTServerNoModel.json [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/examples/config/DecisionMaker/ApexConfigRESTServerNoModel_Decision.json [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/examples/html/DecisionMaker/MakeDecision_Server.html [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/examples/html/DecisionMaker/MakeDecision_Server_Decsion.html [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/logic/AnswerInitTask.js [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/logic/DitheringAnswerTask.js [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/logic/MakeDecisionStateTSL.js [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/logic/OptimisticAnswerTask.js [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/logic/PessimisticAnswerTask.js [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/logic/RandomAnswerTask.js [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/logic/RoundRobinAnswerTask.js [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/policy/DecisionMakerPolicyModel.apex [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/policy/DecisionMakerPolicyModel_Decision.apex [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/tosca/ToscaTemplate.json [new file with mode: 0644]
examples/examples-decisionmaker-sharedcontext/src/main/resources/tosca/ToscaTemplateTwo.json [new file with mode: 0644]