From 53d8916cc60d97e2ce7ae345f8cc25f5602567da Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 6 Nov 2018 12:02:46 +0000 Subject: Refactor unit test data There were many copies of test policies and examples strewn through the Apex unit tests. This change cleans up the unit tests so that a single version of all example policies is used in all tests. Also added a new relative file root command line parameter to Apex to allow the root of relative paths in configuration files to be set. Apologies for the size of this review but unfortunately all of this must be done in one shot. Issue-ID: POLICY-1252 Change-Id: Ibbb18fbf18e3897a1c61301d0a65e62bc643a0e9 Signed-off-by: liamfallon --- .../apex/auth/clicodegen/CliCodegenTest.java | 2 +- .../test/resources/models/SamplePolicyModel.json | 6684 ----------------- .../src/test/resources/models/TestPolicyModel.json | 6684 +++++++++++++++++ .../apex/client/editor/rest/RestInterfaceTest.java | 6 +- .../resources/models/SamplePolicyModelMVEL.json | 6369 ---------------- .../apex/core/deployment/BatchDeployerTest.java | 10 +- .../core/deployment/DummyDeploymentClient.java | 2 +- .../core/deployment/EngineServiceFacadeTest.java | 6 +- .../models/SamplePolicyModelJAVASCRIPT.json | 6684 ----------------- .../src/test/resources/models/SmallModel.json | 416 ++ .../SampleDomain/SamplePolicyModelJAVASCRIPT.json | 6684 ----------------- .../model/utilities/typeutils/ClassBuilder.java | 2 +- .../examples/config/JMS/JMS2JMSJsonEvent.json | 59 - .../examples/config/JMS/JMS2JMSObjectEvent.json | 58 - .../config/SampleDomain/File2FileJsonEvent.json | 43 - .../SampleDomain/File2FileJsonEventAsyncMIMO.json | 87 - .../SampleDomain/File2FileJsonEventAsyncMISO.json | 65 - .../SampleDomain/File2FileJsonEventAsyncSIMO.json | 65 - .../SampleDomain/File2FileJsonEventAsyncSISO.json | 43 - .../SampleDomain/File2FileJsonEventSyncMIMO.json | 105 - .../SampleDomain/File2FileJsonEventSyncSISO.json | 49 - .../config/SampleDomain/File2FileXmlEvent.json | 45 - .../SampleDomain/File2RESTJsonEventPost.json | 44 - .../config/SampleDomain/File2RESTJsonEventPut.json | 45 - .../config/SampleDomain/File2StderrJsonEvent.json | 43 - .../config/SampleDomain/File2StdoutJsonEvent.json | 43 - .../File2StdoutJsonEventJavascript.json | 43 - .../SampleDomain/File2StdoutJsonEventMVEL.json | 43 - .../config/SampleDomain/File2StdoutXmlEvent.json | 45 - .../config/SampleDomain/Kafka2FileJsonEvent.json | 55 - .../config/SampleDomain/Kafka2KafkaJsonEvent.json | 63 - .../config/SampleDomain/Kafka2KafkaXmlEvent.json | 65 - .../SampleDomain/Kafka2RESTJsonEventJava.json | 56 - .../config/SampleDomain/REST2FileJsonEvent.json | 44 - .../config/SampleDomain/REST2RESTJsonEvent.json | 45 - .../SampleDomain/REST2RESTONAPJsonEvent.json | 45 - .../config/SampleDomain/RESTServerJsonEvent.json | 50 - .../RESTServerStandaloneJsonEvent.json | 50 - .../RESTServerStandaloneJsonEventMultiIn.json | 79 - .../SampleDomain/RESTServerTomcatJsonEvent.json | 45 - .../RESTServerTomcatJsonEventMultiIn.json | 69 - .../SampleDomain/Stdin2RESTJsonEventJava.json | 44 - .../SampleDomain/Stdin2StdoutJsonEventJRuby.json | 43 - .../SampleDomain/Stdin2StdoutJsonEventJava.json | 43 - .../Stdin2StdoutJsonEventJavascript.json | 43 - .../SampleDomain/Stdin2StdoutJsonEventJython.json | 43 - .../SampleDomain/Stdin2StdoutJsonEventMVEL.json | 43 - .../config/SampleDomain/Stdin2StdoutXmlEvent.json | 45 - .../config/SampleDomain/Ws2WsClientJsonEvent.json | 47 - .../config/SampleDomain/Ws2WsClientXMLEvent.json | 49 - .../config/SampleDomain/Ws2WsServerJsonEvent.json | 47 - .../config/SampleDomain/Ws2WsServerXMLEvent.json | 49 - .../examples/models/JMS/JMSSamplePolicyModel.json | 456 -- .../models/SampleDomain/SamplePolicyModelMVEL.json | 7036 ------------------ .../plugins-event-carrier-restrequestor/pom.xml | 2 +- .../adapt/restrequestor/TestRestRequestor.java | 21 +- .../restrequestor/TestRestRequestorEndpoint.java | 16 +- .../src/test/resources/events/EventsIn.json | 450 +- .../src/test/resources/events/EventsInMulti.json | 18 +- .../resources/policymodels/RequestorModel.json | 608 ++ .../policymodels/SamplePolicyModelMVEL.json | 6348 ---------------- .../prodcons/File2RESTRequest2FileDelete.json | 146 +- .../prodcons/File2RESTRequest2FileGet.json | 146 +- .../File2RESTRequest2FileGetConsumerAlone.json | 138 +- .../prodcons/File2RESTRequest2FileGetMulti.json | 254 +- .../File2RESTRequest2FileGetProducerAlone.json | 104 +- .../prodcons/File2RESTRequest2FilePost.json | 146 +- .../prodcons/File2RESTRequest2FilePut.json | 146 +- .../FileCarrierTechnologyParameters.java | 94 +- .../engine/main/ApexCommandLineArguments.java | 98 +- .../service/engine/runtime/impl/EngineWorker.java | 2 +- .../engineservice/EngineServiceParameters.java | 37 +- .../service/engine/event/JsonEventGenerator.java | 280 +- .../service/engine/event/TestJsonEventHandler.java | 137 +- .../engine/main/TestApexCommandLineArguments.java | 111 +- .../engine/parameters/ExecutorParameterTests.java | 104 +- .../service/engine/parameters/ParameterTests.java | 34 +- .../engine/parameters/ProducerConsumerTests.java | 9 +- .../engine/runtime/impl/EngineServiceImplTest.java | 17 +- .../engine/runtime/impl/EngineWorkerTest.java | 23 +- .../parameters/badParamsModelNotFile.json | 64 + .../resources/parameters/factoryGoodParams.json | 10 +- .../src/test/resources/parameters/goodParams.json | 10 +- .../resources/parameters/goodParamsRelative.json | 64 + .../parameters/prodConsBadCTParClass.json | 6 +- .../parameters/prodConsBadEPParClass.json | 6 +- .../resources/parameters/prodConsBadFileName.json | 4 +- .../parameters/prodConsMismatchCTParClass.json | 6 +- .../parameters/prodConsMismatchEPParClass.json | 6 +- .../test/resources/parameters/prodConsNoCT.json | 6 +- .../resources/parameters/prodConsNoCTParClass.json | 6 +- .../test/resources/parameters/prodConsNoEP.json | 6 +- .../resources/parameters/prodConsNoEPParClass.json | 6 +- .../resources/parameters/prodConsOKFileName.json | 6 +- .../parameters/prodConsWrongTypeCTParClass.json | 6 +- .../parameters/prodConsWrongTypeEPParClass.json | 6 +- .../serviceContextBadClassDistParams.json | 2 +- .../serviceContextBadClassLockParams.json | 4 +- .../parameters/serviceContextBadClassParams.json | 2 +- .../serviceContextBadClassPersistParams.json | 4 +- .../parameters/serviceContextBadParams.json | 2 +- .../serviceContextBadPluginClassParams.json | 2 +- .../serviceContextBadPluginNameParams.json | 2 +- .../parameters/serviceContextNoParams.json | 2 +- .../parameters/serviceContextOKDefaultParams.json | 6 +- .../parameters/serviceContextOKDistParams.json | 6 +- .../parameters/serviceContextOKFlushParams.json | 6 +- .../parameters/serviceContextOKFullParams.json | 6 +- .../parameters/serviceExecutorBadParams.json | 4 +- .../serviceExecutorBadPluginNameParams.json | 4 +- .../serviceExecutorBadPluginValueBlankParams.json | 4 +- .../serviceExecutorBadPluginValueObjectParams.json | 4 +- .../serviceExecutorBadPluginValueParams.json | 4 +- .../parameters/serviceExecutorEmptyParams.json | 4 +- .../serviceExecutorNoExecutorParams.json | 2 +- .../parameters/serviceExecutorNoParams.json | 4 +- .../parameters/syncBadParamsBadPeers.json | 10 +- .../parameters/syncBadParamsBadTimeout.json | 10 +- .../parameters/syncBadParamsInvalidTimeout.json | 10 +- .../parameters/syncBadParamsNoSyncWithPeer.json | 10 +- .../parameters/syncBadParamsNotSyncWithPeer.json | 10 +- .../parameters/syncBadParamsUnpairedTimeout.json | 10 +- .../test/resources/parameters/syncGoodParams.json | 10 +- .../parameters/syncGoodParamsBothTimeout.json | 10 +- .../parameters/syncGoodParamsConsumerTimeout.json | 10 +- .../parameters/syncGoodParamsProducerTimeout.json | 10 +- .../resources/parameters/syncMismatchedPeers.json | 10 +- .../parameters/syncMismatchedTimeout.json | 10 +- .../parameters/syncUnusedConsumerPeers.json | 10 +- .../parameters/syncUnusedProducerPeers.json | 10 +- .../resources/policymodels/MyFirstPolicyModel.json | 974 --- .../policymodels/SamplePolicyModelJAVASCRIPT.json | 6684 ----------------- .../policymodels/SamplePolicyModelMVEL.json | 7036 ------------------ .../test/resources/policymodels/SmallModel.json | 416 ++ .../policymodels/SmallModelDifferent.json | 416 ++ .../common/model/EvalDomainModelFactory.java | 4 +- .../common/model/java/DefaultTaskLogic.java | 10 +- .../common/model/java/EvalTaskLogic.java | 5 +- .../common/testclasses/PingTestClass.java | 147 + .../common/testclasses/package-info.java | 26 + .../examples/config/JMS/JMS2JMSJsonEvent.json | 59 + .../examples/config/JMS/JMS2JMSObjectEvent.json | 58 + .../SampleDomain/File2FileFilteredInJsonEvent.json | 44 + .../File2FileFilteredInOutJsonEvent.json | 69 + .../File2FileFilteredOutJsonEvent.json | 56 + .../config/SampleDomain/File2FileJsonEvent.json | 43 + .../SampleDomain/File2FileJsonEventAsyncMIMO.json | 87 + .../SampleDomain/File2FileJsonEventAsyncMISO.json | 65 + .../SampleDomain/File2FileJsonEventAsyncSIMO.json | 65 + .../SampleDomain/File2FileJsonEventAsyncSISO.json | 43 + .../SampleDomain/File2FileJsonEventSyncMIMO.json | 105 + .../SampleDomain/File2FileJsonEventSyncSISO.json | 49 + .../config/SampleDomain/File2FileXmlEvent.json | 45 + .../SampleDomain/File2RESTJsonEventPost.json | 44 + .../config/SampleDomain/File2RESTJsonEventPut.json | 45 + .../config/SampleDomain/File2StderrJsonEvent.json | 43 + .../config/SampleDomain/File2StdoutJsonEvent.json | 43 + .../File2StdoutJsonEventJavascript.json | 43 + .../SampleDomain/File2StdoutJsonEventMVEL.json | 43 + .../config/SampleDomain/File2StdoutXmlEvent.json | 45 + .../config/SampleDomain/Kafka2FileJsonEvent.json | 55 + .../config/SampleDomain/Kafka2KafkaJsonEvent.json | 63 + .../config/SampleDomain/Kafka2KafkaXmlEvent.json | 65 + .../SampleDomain/Kafka2RESTJsonEventJava.json | 56 + .../config/SampleDomain/REST2FileJsonEvent.json | 44 + .../config/SampleDomain/REST2RESTJsonEvent.json | 45 + .../SampleDomain/REST2RESTONAPJsonEvent.json | 45 + .../config/SampleDomain/RESTServerJsonEvent.json | 50 + .../SampleDomain/RESTServerJsonEventMultiIn.json | 79 + .../RESTServerStandaloneJsonEvent.json | 50 + .../RESTServerStandaloneJsonEventMultiIn.json | 79 + .../SampleDomain/RESTServerTomcatJsonEvent.json | 45 + .../RESTServerTomcatJsonEventMultiIn.json | 69 + .../SampleDomain/Stdin2RESTJsonEventJava.json | 44 + .../SampleDomain/Stdin2StdoutJsonEventJRuby.json | 43 + .../SampleDomain/Stdin2StdoutJsonEventJava.json | 43 + .../Stdin2StdoutJsonEventJavascript.json | 43 + .../SampleDomain/Stdin2StdoutJsonEventJython.json | 43 + .../SampleDomain/Stdin2StdoutJsonEventMVEL.json | 43 + .../config/SampleDomain/Stdin2StdoutXmlEvent.json | 45 + .../config/SampleDomain/Ws2WsClientJsonEvent.json | 47 + .../config/SampleDomain/Ws2WsClientXMLEvent.json | 49 + .../config/SampleDomain/Ws2WsServerJsonEvent.json | 47 + .../config/SampleDomain/Ws2WsServerXMLEvent.json | 49 + .../examples/events/SampleDomain/EventsIn.xmlfile | 202 +- .../examples/models/JMS/JMSTestModel.json | 456 ++ .../model/javascript/DefaultTaskLogic.javascript | 4 +- .../model/javascript/EvalTaskLogic.javascript | 4 +- .../common/model/jruby/DefaultTaskLogic.jruby | 3 +- .../common/model/jruby/EvalTaskLogic.jruby | 3 +- .../common/model/jython/DefaultTaskLogic.jython | 4 +- .../common/model/jython/EvalTaskLogic.jython | 5 +- .../common/model/mvel/DefaultTaskLogic.mvel | 4 +- .../common/model/mvel/EvalTaskLogic.mvel | 5 +- .../common/testclasses/TestPingClassTest.java | 130 + .../integration/integration-uservice-test/pom.xml | 37 +- .../uservice/adapt/file/TestFile2File.java | 36 +- .../uservice/adapt/file/TestFile2FileFiltered.java | 66 +- .../uservice/adapt/file/TestFile2FileIgnore.java | 24 +- .../uservice/adapt/jms/JmsEventProducer.java | 5 +- .../uservice/adapt/jms/JmsEventSubscriber.java | 14 +- .../uservice/adapt/jms/TestJms2Jms.java | 16 +- .../integration/uservice/adapt/jms/TestPing.java | 147 - .../uservice/adapt/kafka/TestKafka2Kafka.java | 52 +- .../uservice/adapt/restclient/TestFile2Rest.java | 50 +- .../uservice/adapt/restclient/TestRest2File.java | 13 +- .../uservice/adapt/restserver/TestRestServer.java | 171 +- .../adapt/restserver/TestRestServerVpnContext.java | 136 - .../uservice/adapt/websocket/TestWs2WsClient.java | 13 +- .../uservice/adapt/websocket/TestWs2WsServer.java | 13 +- .../uservice/context/EventAlbumContextTest.java | 13 +- .../uservice/engdep/EngDepMessagingTest.java | 16 +- .../src/test/resources/events/EventsIn.json | 1100 --- .../src/test/resources/events/EventsIn.xmlfile | 2422 ------ .../test/resources/policymodels/JMSTestModel.json | 456 -- .../policymodels/SamplePolicyModelMVEL.json | 7036 ------------------ .../SamplePolicyModelMVELDivideByZero.json | 7372 ------------------ .../resources/policymodels/VPNPolicyModelAvro.json | 4557 ------------ .../resources/policymodels/VPNPolicyModelJava.json | 4557 ------------ .../prodcons/Context_AvroEventAlbum_file2file.json | 2 +- .../prodcons/Context_JavaEventAlbum_file2file.json | 2 +- .../prodcons/File2FileFilteredInJsonEvent.json | 44 - .../prodcons/File2FileFilteredInOutJsonEvent.json | 69 - .../prodcons/File2FileFilteredOutJsonEvent.json | 56 - .../resources/prodcons/File2FileJsonEvent.json | 43 - .../test/resources/prodcons/File2FileXmlEvent.json | 45 - .../prodcons/File2RESTJsonEventBadHTTPMethod.json | 8 +- .../prodcons/File2RESTJsonEventBadURL.json | 8 +- .../prodcons/File2RESTJsonEventNoURL.json | 8 +- .../resources/prodcons/File2RESTJsonEventPost.json | 44 - .../File2RESTJsonEventPostBadResponse.json | 8 +- .../resources/prodcons/File2RESTJsonEventPut.json | 45 - .../test/resources/prodcons/JMS2JMSJsonEvent.json | 59 - .../resources/prodcons/JMS2JMSObjectEvent.json | 58 - .../resources/prodcons/Kafka2KafkaJsonEvent.json | 63 - .../resources/prodcons/Kafka2KafkaXmlEvent.json | 65 - .../prodcons/LBPolicy_ExecModel_file2kafka.json | 6 +- .../prodcons/REST2FileJsonEmptyEvents.json | 6 +- .../resources/prodcons/REST2FileJsonEvent.json | 44 - .../prodcons/REST2FileJsonEventBadHTTPMethod.json | 6 +- .../prodcons/REST2FileJsonEventBadResponse.json | 6 +- .../prodcons/REST2FileJsonEventBadURL.json | 6 +- .../prodcons/REST2FileJsonEventNoURL.json | 6 +- .../resources/prodcons/RESTServerJsonEvent.json | 50 - .../RESTServerJsonEventConsumerNotSync.json | 8 +- ...ESTServerJsonEventConsumerStandaloneNoHost.json | 10 +- ...ESTServerJsonEventConsumerStandaloneNoPort.json | 10 +- .../prodcons/RESTServerJsonEventContextAvro.json | 58 - .../prodcons/RESTServerJsonEventContextJava.json | 58 - .../prodcons/RESTServerJsonEventDivideByZero.json | 50 - .../prodcons/RESTServerJsonEventMultiIn.json | 79 - .../prodcons/RESTServerJsonEventProducerHost.json | 10 +- .../RESTServerJsonEventProducerNotSync.json | 6 +- .../prodcons/RESTServerJsonEventProducerPort.json | 10 +- .../RESTServerJsonEventProducerStandalone.json | 10 +- .../resources/prodcons/Ws2WsClientJsonEvent.json | 47 - .../resources/prodcons/Ws2WsClientXMLEvent.json | 49 - .../resources/prodcons/Ws2WsServerJsonEvent.json | 47 - .../resources/prodcons/Ws2WsServerXMLEvent.json | 49 - tools/model-generator/pom.xml | 73 +- .../tools/model/generator/SchemaUtilsTest.java | 3 +- .../model/generator/model2cli/Model2CliTest.java | 18 +- .../src/test/resources/models/AADMPolicyModel.json | 7798 -------------------- .../models/AnomalyDetectionPolicyModel.json | 1349 ---- .../resources/models/AutoLearnPolicyModel.json | 1719 ----- .../src/test/resources/models/AvroModel.json | 3009 -------- .../resources/models/JMSSamplePolicyModel.json | 456 -- .../test/resources/models/MyFirstPolicyModel.json | 1213 --- .../models/SamplePolicyModelJAVASCRIPT.json | 6684 ----------------- 269 files changed, 13801 insertions(+), 110023 deletions(-) delete mode 100644 auth/cli-codegen/src/test/resources/models/SamplePolicyModel.json create mode 100644 auth/cli-codegen/src/test/resources/models/TestPolicyModel.json delete mode 100644 client/client-editor/src/test/resources/models/SamplePolicyModelMVEL.json delete mode 100644 core/core-deployment/src/test/resources/models/SamplePolicyModelJAVASCRIPT.json create mode 100644 core/core-deployment/src/test/resources/models/SmallModel.json delete mode 100644 examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSObjectEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileXmlEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPost.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPut.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StderrJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutXmlEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2FileJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2FileJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientXMLEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerJsonEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerXMLEvent.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/models/JMS/JMSSamplePolicyModel.json delete mode 100644 packages/apex-pdp-package-full/src/main/package/examples/models/SampleDomain/SamplePolicyModelMVEL.json create mode 100644 plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/RequestorModel.json delete mode 100644 plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/SamplePolicyModelMVEL.json create mode 100644 services/services-engine/src/test/resources/parameters/badParamsModelNotFile.json create mode 100644 services/services-engine/src/test/resources/parameters/goodParamsRelative.json delete mode 100644 services/services-engine/src/test/resources/policymodels/MyFirstPolicyModel.json delete mode 100644 services/services-engine/src/test/resources/policymodels/SamplePolicyModelJAVASCRIPT.json delete mode 100644 services/services-engine/src/test/resources/policymodels/SamplePolicyModelMVEL.json create mode 100644 services/services-engine/src/test/resources/policymodels/SmallModel.json create mode 100644 services/services-engine/src/test/resources/policymodels/SmallModelDifferent.json create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/testclasses/PingTestClass.java create mode 100644 testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/testclasses/package-info.java create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSObjectEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInOutJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredOutJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileXmlEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPost.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPut.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StderrJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutXmlEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2FileJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2FileJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEventMultiIn.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientXMLEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerJsonEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerXMLEvent.json create mode 100644 testsuites/integration/integration-common/src/main/resources/examples/models/JMS/JMSTestModel.json create mode 100644 testsuites/integration/integration-common/src/test/java/org/onap/policy/apex/testsuites/integration/common/testclasses/TestPingClassTest.java delete mode 100644 testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestPing.java delete mode 100644 testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restserver/TestRestServerVpnContext.java delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/events/EventsIn.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/events/EventsIn.xmlfile delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/policymodels/JMSTestModel.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/policymodels/SamplePolicyModelMVEL.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/policymodels/SamplePolicyModelMVELDivideByZero.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelAvro.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredInJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredInOutJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredOutJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileXmlEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPost.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPut.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/JMS2JMSJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/JMS2JMSObjectEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Kafka2KafkaJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Kafka2KafkaXmlEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventContextAvro.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventContextJava.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventDivideByZero.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventMultiIn.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsClientJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsClientXMLEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsServerJsonEvent.json delete mode 100644 testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsServerXMLEvent.json delete mode 100644 tools/model-generator/src/test/resources/models/AADMPolicyModel.json delete mode 100644 tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json delete mode 100644 tools/model-generator/src/test/resources/models/AutoLearnPolicyModel.json delete mode 100644 tools/model-generator/src/test/resources/models/AvroModel.json delete mode 100644 tools/model-generator/src/test/resources/models/JMSSamplePolicyModel.json delete mode 100644 tools/model-generator/src/test/resources/models/MyFirstPolicyModel.json delete mode 100644 tools/model-generator/src/test/resources/models/SamplePolicyModelJAVASCRIPT.json diff --git a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java index 968891d06..13f0bc0e6 100644 --- a/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java +++ b/auth/cli-codegen/src/test/java/org/onap/policy/apex/auth/clicodegen/CliCodegenTest.java @@ -80,7 +80,7 @@ public class CliCodegenTest { AxPolicyModel apexPolicyModel = null; try { apexPolicyModel = modelReader - .read(new FileInputStream(new File("src/test/resources/models/SamplePolicyModel.json"))); + .read(new FileInputStream(new File("src/test/resources/models/TestPolicyModel.json"))); } catch (ApexModelException | FileNotFoundException e) { fail("test should not throw an exception"); } diff --git a/auth/cli-codegen/src/test/resources/models/SamplePolicyModel.json b/auth/cli-codegen/src/test/resources/models/SamplePolicyModel.json deleted file mode 100644 index 2dc4bcd3f..000000000 --- a/auth/cli-codegen/src/test/resources/models/SamplePolicyModel.json +++ /dev/null @@ -1,6684 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "UUID" : "ca36bfd8-6042-3633-8c85-89c66507c3bf", - "description" : "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "UUID" : "465a81cc-885f-3a4d-bc4e-1508da92b236", - "description" : "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "UUID" : "36b2d570-fff7-3a4b-bab2-6bf492f5129a", - "description" : "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "UUID" : "ff6160a7-fb5e-379c-a6d2-2cd28053eacf", - "description" : "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "UUID" : "5899e216-2abf-3781-abc4-2c257b92721e", - "description" : "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "UUID" : "7c2692a7-4587-3d09-abf9-d96b339a316f", - "description" : "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "UUID" : "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7", - "description" : "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "UUID" : "edbfa868-2ab2-30fd-8078-4c7f67ca6122", - "description" : "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "UUID" : "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4", - "description" : "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "UUID" : "c2550912-10d9-3000-8826-377288cd6cb1", - "description" : "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "UUID" : "f6d75b71-c8a7-3337-a121-88d68c389f5a", - "description" : "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "UUID" : "0215644c-4531-375c-8335-d558b4de8c03", - "description" : "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "976a79e7-5c80-3c03-9503-da3f41fec395", - "description" : "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7", - "description" : "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "UUID" : "1ff2f905-685c-3caf-95bc-0bbc90345888", - "description" : "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "UUID" : "f54c3b2b-be76-31c4-adfc-87c494c06808", - "description" : "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "UUID" : "3410e939-30ca-32c4-a2d8-c30b6fee6eec", - "description" : "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "e27564c4-3cbf-3db2-9bf3-83ae80a2f907", - "description" : "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "UUID" : "d0b2b585-f344-33b8-af9e-250e7f4cfbce", - "description" : "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0", - "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "UUID" : "bc8ee312-81ce-3c4a-92d5-4a73b8077148", - "description" : "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "UUID" : "0589ff20-adcc-3ce5-95fe-8d7978ed54ed", - "description" : "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "UUID" : "095b126d-ca8b-32c9-ad52-d744e817a79c", - "description" : "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "UUID" : "3d786b4c-d9ee-3367-ab71-c67271a4ea2f", - "description" : "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "UUID" : "9231753e-20c5-3436-982f-9100340cc570", - "description" : "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "UUID" : "502383d3-483f-3a56-a426-2f0406674c8d", - "description" : "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "UUID" : "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf", - "description" : "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "UUID" : "ad3a89f5-e369-3c66-b22c-669f7b3653b8", - "description" : "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "UUID" : "56815939-1164-3867-9ed1-0a27ff8aafb3", - "description" : "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "UUID" : "0db0c566-ecd7-3e27-9865-4b82c893abdb", - "description" : "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "UUID" : "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0", - "description" : "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "UUID" : "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a", - "description" : "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "UUID" : "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66", - "description" : "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "UUID" : "051bcfd5-cf73-3c89-8ee7-ea6e005ec059", - "description" : "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "UUID" : "3754fe19-98f2-34a1-9f45-db31052208d8", - "description" : "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "UUID" : "8c200709-a180-3c8b-916f-275ff49ce194", - "description" : "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "UUID" : "a1a879c6-4510-33b0-bbd0-ad6256189a37", - "description" : "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "UUID" : "a7fab96b-ce1c-37ce-bbb2-556b6db524a5", - "description" : "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "UUID" : "0a652886-c88d-3f8c-8994-ae9161e7c963", - "description" : "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "UUID" : "8efba9fa-371e-33df-a7d6-88b0284e7fd0", - "description" : "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "UUID" : "3740077c-a2b3-356b-81dc-5ded2118a951", - "description" : "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "UUID" : "b5c7df95-9af5-322f-9ea8-eb440a2bf926", - "description" : "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "UUID" : "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b", - "description" : "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "UUID" : "093cda11-eaeb-3a46-a5b6-d5e30c00935b", - "description" : "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "UUID" : "569a758d-ba40-37c0-aebb-7ad138df25ac", - "description" : "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "UUID" : "252818d9-b61f-3962-a905-8865fb00fb04", - "description" : "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "UUID" : "fe1a5f7c-c083-377b-a797-752b01fc6c73", - "description" : "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "UUID" : "aa87d007-d07e-3f67-8c6d-0ebc3d85479d", - "description" : "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "UUID" : "126e7a3a-11b6-3f88-9397-c21d8819f859", - "description" : "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "UUID" : "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc", - "description" : "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "UUID" : "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6", - "description" : "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "UUID" : "32a2f355-77f3-3b25-ace6-7a9c5763a5ad", - "description" : "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "UUID" : "3f95472c-973e-30e2-95f1-bf00cbef909a", - "description" : "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "UUID" : "610dbbd4-9149-3b3c-9af4-819056f0e169", - "description" : "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "UUID" : "07fa8f68-55f1-3fd0-81c1-749a379753a7", - "description" : "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "UUID" : "d9c93cd1-539e-35c5-aaec-bb711ceb1251", - "description" : "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "UUID" : "683fe492-7eae-3ac7-9924-bb7850208d05", - "description" : "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "UUID" : "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0", - "description" : "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "UUID" : "97b73937-c344-33c0-924c-4d26b6449564", - "description" : "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "EXTERNAL", - "isWritable" : false, - "itemSchema" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "GLOBAL", - "isWritable" : true, - "itemSchema" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Byte" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/auth/cli-codegen/src/test/resources/models/TestPolicyModel.json b/auth/cli-codegen/src/test/resources/models/TestPolicyModel.json new file mode 100644 index 000000000..2dc4bcd3f --- /dev/null +++ b/auth/cli-codegen/src/test/resources/models/TestPolicyModel.json @@ -0,0 +1,6684 @@ +{ + "apexPolicyModel" : { + "key" : { + "name" : "SamplePolicyModelJAVASCRIPT", + "version" : "0.0.1" + }, + "keyInformation" : { + "key" : { + "name" : "KeyInformation", + "version" : "0.0.1" + }, + "keyInfoMap" : { + "entry" : [ { + "key" : { + "name" : "Context", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Context", + "version" : "0.0.1" + }, + "UUID" : "ca36bfd8-6042-3633-8c85-89c66507c3bf", + "description" : "Generated description for concept referred to by key \"Context:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "UUID" : "465a81cc-885f-3a4d-bc4e-1508da92b236", + "description" : "Generated description for concept referred to by key \"Event0000:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "UUID" : "36b2d570-fff7-3a4b-bab2-6bf492f5129a", + "description" : "Generated description for concept referred to by key \"Event0001:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "UUID" : "ff6160a7-fb5e-379c-a6d2-2cd28053eacf", + "description" : "Generated description for concept referred to by key \"Event0002:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "UUID" : "5899e216-2abf-3781-abc4-2c257b92721e", + "description" : "Generated description for concept referred to by key \"Event0003:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "UUID" : "7c2692a7-4587-3d09-abf9-d96b339a316f", + "description" : "Generated description for concept referred to by key \"Event0004:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "UUID" : "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7", + "description" : "Generated description for concept referred to by key \"Event0100:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "UUID" : "edbfa868-2ab2-30fd-8078-4c7f67ca6122", + "description" : "Generated description for concept referred to by key \"Event0101:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "UUID" : "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4", + "description" : "Generated description for concept referred to by key \"Event0102:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "UUID" : "c2550912-10d9-3000-8826-377288cd6cb1", + "description" : "Generated description for concept referred to by key \"Event0103:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "UUID" : "f6d75b71-c8a7-3337-a121-88d68c389f5a", + "description" : "Generated description for concept referred to by key \"Event0104:0.0.1\"" + } + }, { + "key" : { + "name" : "Events", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Events", + "version" : "0.0.1" + }, + "UUID" : "0215644c-4531-375c-8335-d558b4de8c03", + "description" : "Generated description for concept referred to by key \"Events:0.0.1\"" + } + }, { + "key" : { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "976a79e7-5c80-3c03-9503-da3f41fec395", + "description" : "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" + } + }, { + "key" : { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7", + "description" : "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" + } + }, { + "key" : { + "name" : "KeyInformation", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "KeyInformation", + "version" : "0.0.1" + }, + "UUID" : "1ff2f905-685c-3caf-95bc-0bbc90345888", + "description" : "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" + } + }, { + "key" : { + "name" : "Policies", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policies", + "version" : "0.0.1" + }, + "UUID" : "f54c3b2b-be76-31c4-adfc-87c494c06808", + "description" : "Generated description for concept referred to by key \"Policies:0.0.1\"" + } + }, { + "key" : { + "name" : "Policy0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy0", + "version" : "0.0.1" + }, + "UUID" : "3410e939-30ca-32c4-a2d8-c30b6fee6eec", + "description" : "Generated description for concept referred to by key \"Policy0:0.0.1\"" + } + }, { + "key" : { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "e27564c4-3cbf-3db2-9bf3-83ae80a2f907", + "description" : "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" + } + }, { + "key" : { + "name" : "Policy1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy1", + "version" : "0.0.1" + }, + "UUID" : "d0b2b585-f344-33b8-af9e-250e7f4cfbce", + "description" : "Generated description for concept referred to by key \"Policy1:0.0.1\"" + } + }, { + "key" : { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0", + "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" + } + }, { + "key" : { + "name" : "SamplePolicyModelJAVASCRIPT", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SamplePolicyModelJAVASCRIPT", + "version" : "0.0.1" + }, + "UUID" : "bc8ee312-81ce-3c4a-92d5-4a73b8077148", + "description" : "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "UUID" : "0589ff20-adcc-3ce5-95fe-8d7978ed54ed", + "description" : "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "UUID" : "095b126d-ca8b-32c9-ad52-d744e817a79c", + "description" : "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "UUID" : "3d786b4c-d9ee-3367-ab71-c67271a4ea2f", + "description" : "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "UUID" : "9231753e-20c5-3436-982f-9100340cc570", + "description" : "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "UUID" : "502383d3-483f-3a56-a426-2f0406674c8d", + "description" : "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "UUID" : "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf", + "description" : "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "UUID" : "ad3a89f5-e369-3c66-b22c-669f7b3653b8", + "description" : "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "UUID" : "56815939-1164-3867-9ed1-0a27ff8aafb3", + "description" : "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "UUID" : "0db0c566-ecd7-3e27-9865-4b82c893abdb", + "description" : "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "UUID" : "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0", + "description" : "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "UUID" : "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a", + "description" : "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "UUID" : "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66", + "description" : "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "UUID" : "051bcfd5-cf73-3c89-8ee7-ea6e005ec059", + "description" : "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "UUID" : "3754fe19-98f2-34a1-9f45-db31052208d8", + "description" : "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "UUID" : "8c200709-a180-3c8b-916f-275ff49ce194", + "description" : "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "UUID" : "a1a879c6-4510-33b0-bbd0-ad6256189a37", + "description" : "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" + } + }, { + "key" : { + "name" : "Tasks", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Tasks", + "version" : "0.0.1" + }, + "UUID" : "a7fab96b-ce1c-37ce-bbb2-556b6db524a5", + "description" : "Generated description for concept referred to by key \"Tasks:0.0.1\"" + } + }, { + "key" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "UUID" : "0a652886-c88d-3f8c-8994-ae9161e7c963", + "description" : "Generated description for concept referred to by key \"TestCase:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem000", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem000", + "version" : "0.0.1" + }, + "UUID" : "8efba9fa-371e-33df-a7d6-88b0284e7fd0", + "description" : "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem001", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem001", + "version" : "0.0.1" + }, + "UUID" : "3740077c-a2b3-356b-81dc-5ded2118a951", + "description" : "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem002", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem002", + "version" : "0.0.1" + }, + "UUID" : "b5c7df95-9af5-322f-9ea8-eb440a2bf926", + "description" : "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem003", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem003", + "version" : "0.0.1" + }, + "UUID" : "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b", + "description" : "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem004", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem004", + "version" : "0.0.1" + }, + "UUID" : "093cda11-eaeb-3a46-a5b6-d5e30c00935b", + "description" : "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem005", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem005", + "version" : "0.0.1" + }, + "UUID" : "569a758d-ba40-37c0-aebb-7ad138df25ac", + "description" : "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem006", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem006", + "version" : "0.0.1" + }, + "UUID" : "252818d9-b61f-3962-a905-8865fb00fb04", + "description" : "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem007", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem007", + "version" : "0.0.1" + }, + "UUID" : "fe1a5f7c-c083-377b-a797-752b01fc6c73", + "description" : "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem008", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem008", + "version" : "0.0.1" + }, + "UUID" : "aa87d007-d07e-3f67-8c6d-0ebc3d85479d", + "description" : "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem009", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem009", + "version" : "0.0.1" + }, + "UUID" : "126e7a3a-11b6-3f88-9397-c21d8819f859", + "description" : "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem00A", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00A", + "version" : "0.0.1" + }, + "UUID" : "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc", + "description" : "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem00B", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00B", + "version" : "0.0.1" + }, + "UUID" : "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6", + "description" : "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem00C", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00C", + "version" : "0.0.1" + }, + "UUID" : "32a2f355-77f3-3b25-ace6-7a9c5763a5ad", + "description" : "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" + } + }, { + "key" : { + "name" : "TestDatatypes", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestDatatypes", + "version" : "0.0.1" + }, + "UUID" : "3f95472c-973e-30e2-95f1-bf00cbef909a", + "description" : "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" + } + }, { + "key" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + }, + "UUID" : "610dbbd4-9149-3b3c-9af4-819056f0e169", + "description" : "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" + } + }, { + "key" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + }, + "UUID" : "07fa8f68-55f1-3fd0-81c1-749a379753a7", + "description" : "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" + } + }, { + "key" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + }, + "UUID" : "d9c93cd1-539e-35c5-aaec-bb711ceb1251", + "description" : "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" + } + }, { + "key" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "UUID" : "683fe492-7eae-3ac7-9924-bb7850208d05", + "description" : "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" + } + }, { + "key" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "UUID" : "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0", + "description" : "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" + } + }, { + "key" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "UUID" : "97b73937-c344-33c0-924c-4d26b6449564", + "description" : "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" + } + } ] + } + }, + "policies" : { + "key" : { + "name" : "Policies", + "version" : "0.0.1" + }, + "policyMap" : { + "entry" : [ { + "key" : { + "name" : "Policy0", + "version" : "0.0.1" + }, + "value" : { + "policyKey" : { + "name" : "Policy0", + "version" : "0.0.1" + }, + "template" : "MEDA", + "state" : { + "entry" : [ { + "key" : "Act", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Act" + }, + "trigger" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Act_NULL", + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + }, + "outgoingEvent" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "NULL", + "parentKeyVersion" : "0.0.0", + "parentLocalName" : "NULL", + "localName" : "NULL" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act0_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act1_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act2_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act3_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + } ] + } + } + }, { + "key" : "Decide", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Decide" + }, + "trigger" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Decide_Act", + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + }, + "outgoingEvent" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Act" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide0_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide1_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide2_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide3_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + } ] + } + } + }, { + "key" : "Establish", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Establish" + }, + "trigger" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Establish_Decide", + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + }, + "outgoingEvent" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Decide" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish0_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish1_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish2_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish3_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + } ] + } + } + }, { + "key" : "Match", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Match" + }, + "trigger" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Match_Establish", + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + }, + "outgoingEvent" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Establish" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match0_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match1_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match2_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match3_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + } ] + } + } + } ] + }, + "firstState" : "Match" + } + }, { + "key" : { + "name" : "Policy1", + "version" : "0.0.1" + }, + "value" : { + "policyKey" : { + "name" : "Policy1", + "version" : "0.0.1" + }, + "template" : "MEDA", + "state" : { + "entry" : [ { + "key" : "Act", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Act" + }, + "trigger" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Act_NULL", + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + }, + "outgoingEvent" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "NULL", + "parentKeyVersion" : "0.0.0", + "parentLocalName" : "NULL", + "localName" : "NULL" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act0_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act1_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act2_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act3_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + } ] + } + } + }, { + "key" : "Decide", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Decide" + }, + "trigger" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Decide_Act", + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + }, + "outgoingEvent" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Act" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide0_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide1_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide2_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide3_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + } ] + } + } + }, { + "key" : "Establish", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Establish" + }, + "trigger" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Establish_Decide", + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + }, + "outgoingEvent" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Decide" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish0_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish1_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish2_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish3_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + } ] + } + } + }, { + "key" : "Match", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Match" + }, + "trigger" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Match_Establish", + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + }, + "outgoingEvent" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Establish" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match0_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match1_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match2_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match3_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + } ] + } + } + } ] + }, + "firstState" : "Match" + } + } ] + } + }, + "tasks" : { + "key" : { + "name" : "Tasks", + "version" : "0.0.1" + }, + "taskMap" : { + "entry" : [ { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Act0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Act0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + }, { + "key" : "Parameter2", + "value" : { + "key" : { + "parentKeyName" : "Task_Act0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter2" + }, + "defaultValue" : "DefaultValue2" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Act1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Act1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Act2", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Act3", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + }, { + "key" : "Parameter2", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter2" + }, + "defaultValue" : "DefaultValue2" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide2", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide3", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + }, { + "key" : "Parameter2", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter2" + }, + "defaultValue" : "DefaultValue2" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish2", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish3", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Match0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Match0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + }, { + "key" : "Parameter2", + "value" : { + "key" : { + "parentKeyName" : "Task_Match0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter2" + }, + "defaultValue" : "DefaultValue2" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Match1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Match1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Match2", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Match3", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + } ] + } + }, + "events" : { + "key" : { + "name" : "Events", + "version" : "0.0.1" + }, + "eventMap" : { + "entry" : [ { + "key" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Outside", + "target" : "Match", + "parameter" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Match", + "target" : "Establish", + "parameter" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Establish", + "target" : "Decide", + "parameter" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Decide", + "target" : "Act", + "parameter" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Act", + "target" : "Outside", + "parameter" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Outside", + "target" : "Match", + "parameter" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Match", + "target" : "Establish", + "parameter" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Establish", + "target" : "Decide", + "parameter" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Decide", + "target" : "Act", + "parameter" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Act", + "target" : "Outside", + "parameter" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + } ] + } + }, + "albums" : { + "key" : { + "name" : "Context", + "version" : "0.0.1" + }, + "albums" : { + "entry" : [ { + "key" : { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, + "scope" : "EXTERNAL", + "isWritable" : false, + "itemSchema" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + } + } + }, { + "key" : { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, + "scope" : "GLOBAL", + "isWritable" : true, + "itemSchema" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + } + } + }, { + "key" : { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, + "scope" : "APPLICATION", + "isWritable" : true, + "itemSchema" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + } + } + }, { + "key" : { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + }, + "scope" : "APPLICATION", + "isWritable" : true, + "itemSchema" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + } + } + } ] + } + }, + "schemas" : { + "key" : { + "name" : "TestDatatypes", + "version" : "0.0.1" + }, + "schemas" : { + "entry" : [ { + "key" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Byte" + } + }, { + "key" : { + "name" : "TestContextItem000", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem000", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem000" + } + }, { + "key" : { + "name" : "TestContextItem001", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem001", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem001" + } + }, { + "key" : { + "name" : "TestContextItem002", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem002", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem002" + } + }, { + "key" : { + "name" : "TestContextItem003", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem003", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem003" + } + }, { + "key" : { + "name" : "TestContextItem004", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem004", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem004" + } + }, { + "key" : { + "name" : "TestContextItem005", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem005", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem005" + } + }, { + "key" : { + "name" : "TestContextItem006", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem006", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem006" + } + }, { + "key" : { + "name" : "TestContextItem007", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem007", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem007" + } + }, { + "key" : { + "name" : "TestContextItem008", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem008", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem008" + } + }, { + "key" : { + "name" : "TestContextItem009", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem009", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem009" + } + }, { + "key" : { + "name" : "TestContextItem00A", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00A", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00A" + } + }, { + "key" : { + "name" : "TestContextItem00B", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00B", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00B" + } + }, { + "key" : { + "name" : "TestContextItem00C", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00C", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00C" + } + }, { + "key" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" + } + }, { + "key" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" + } + }, { + "key" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" + } + }, { + "key" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.String" + } + }, { + "key" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Double" + } + }, { + "key" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Long" + } + } ] + } + } + } +} \ No newline at end of file diff --git a/client/client-editor/src/test/java/org/onap/policy/apex/client/editor/rest/RestInterfaceTest.java b/client/client-editor/src/test/java/org/onap/policy/apex/client/editor/rest/RestInterfaceTest.java index 7af4b37c3..260a898df 100644 --- a/client/client-editor/src/test/java/org/onap/policy/apex/client/editor/rest/RestInterfaceTest.java +++ b/client/client-editor/src/test/java/org/onap/policy/apex/client/editor/rest/RestInterfaceTest.java @@ -54,7 +54,7 @@ import org.onap.policy.common.utils.resources.ResourceUtils; public class RestInterfaceTest { // CHECKSTYLE:OFF: MagicNumber - private static final String TESTMODELFILE = "models/SamplePolicyModelMVEL.json"; + private static final String TESTMODELFILE = "models/PolicyModel.json"; private static final String TESTPORTNUM = "18989"; private static final long MAX_WAIT = 15000; // 15 sec private static final InputStream SYSIN = System.in; @@ -181,7 +181,7 @@ public class RestInterfaceTest { uploadPolicy(sessionId, localmodelString); final ApexApiResult responseMsg = target.path("editor/" + sessionId + "/Policy/Get") - .queryParam("name", "Policy0").queryParam("version", "0.0.1").request().get(ApexApiResult.class); + .queryParam("name", "policy").queryParam("version", "0.0.1").request().get(ApexApiResult.class); assertTrue(responseMsg.isOk()); // The string in responseMsg.Messages[0] is a JSON representation of a AxPolicy object. Lets parse it @@ -191,7 +191,7 @@ public class RestInterfaceTest { // AxPolicy returnedpolicy = RestUtils.getConceptFromJSON(returnedPolicyAsString, AxPolicy.class); // Extract the local copy of that policy from the local Apex Policy Model - final AxPolicy localpolicy = localmodel.getPolicies().get("Policy0", "0.0.1"); + final AxPolicy localpolicy = localmodel.getPolicies().get("policy", "0.0.1"); // Write that local copy of the AxPolicy object to a Json String, ten parse it again final ApexModelStringWriter apexModelWriter = new ApexModelStringWriter<>(false); diff --git a/client/client-editor/src/test/resources/models/SamplePolicyModelMVEL.json b/client/client-editor/src/test/resources/models/SamplePolicyModelMVEL.json deleted file mode 100644 index a0ab6d6dd..000000000 --- a/client/client-editor/src/test/resources/models/SamplePolicyModelMVEL.json +++ /dev/null @@ -1,6369 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "SamplePolicyModelMVEL", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "UUID" : "4f98dea9-de86-4cc3-9927-f9cd30809b0c", - "description" : "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "UUID" : "57c1cd75-55a0-4716-9e38-81165b77cdd2", - "description" : "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "UUID" : "1dde5bc6-aafd-4bb5-8d85-60da3ee258b4", - "description" : "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "UUID" : "cc9a985b-afe7-45f9-8734-efc914b35438", - "description" : "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "UUID" : "efcccec8-5da4-46f4-9933-121f892d234c", - "description" : "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "UUID" : "fa9ded48-f906-409e-93c5-ee55ee45b331", - "description" : "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "UUID" : "0bee1dd2-09d8-4848-bb0f-c826837b1215", - "description" : "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "UUID" : "7812ac69-7fe7-447e-97d1-a4f903d58670", - "description" : "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "UUID" : "0dfd19a1-1177-4a7a-9166-441b0b96ec71", - "description" : "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "UUID" : "54c66823-0eb1-40fd-8041-6f3788d3163b", - "description" : "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "UUID" : "b68dc6c2-436e-41f8-92df-6f14322b2d02", - "description" : "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "UUID" : "b94096a5-b994-4786-87b9-33ae1d8ff3ec", - "description" : "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "6227e0f8-f351-4bcd-a8f2-f2ce0adde0c7", - "description" : "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "27c4d24b-bec0-4904-8eec-36c2d37f93c1", - "description" : "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "UUID" : "7c0f9f8a-22e9-454f-9d99-0d48abb31c84", - "description" : "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "MyEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyEvent", - "version" : "0.0.1" - }, - "UUID" : "5186c439-7f48-4097-8246-f8e9e5774ce2", - "description" : "Generated description for a concept called \"MyEvent\" with version \"0.0.1\" and UUID \"5186c439-7f48-4097-8246-f8e9e5774ce2\"" - } - }, { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "UUID" : "6de2d1fd-4e69-487e-bd44-7508ca60c887", - "description" : "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "UUID" : "18d8fea6-b32a-4d5b-b775-f5d41c540089", - "description" : "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "cbc9b85a-8588-449b-9bac-8b459692a5bd", - "description" : "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "UUID" : "5dc44d18-bfa2-460d-bd92-114250f1986a", - "description" : "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "8e241143-7bfa-4475-bca8-1e7ba5fa9901", - "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "SamplePolicyModelMVEL", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SamplePolicyModelMVEL", - "version" : "0.0.1" - }, - "UUID" : "20df0615-4364-40c2-bd25-990a17fd6e37", - "description" : "Generated description for concept referred to by key \"SamplePolicyModelMVEL:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "UUID" : "d8b9a5bd-9185-4191-8223-183acf68e6c2", - "description" : "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "UUID" : "16bcf3fa-de67-4ad6-b909-56bab3585e3c", - "description" : "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "UUID" : "e09e4910-4feb-4833-9096-d3c00efdf5f1", - "description" : "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "UUID" : "5c3b0705-5789-438d-93c0-9cb45fbd4e35", - "description" : "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "UUID" : "adba4a16-b529-4dbd-8609-d428c0b77524", - "description" : "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "UUID" : "3126b891-f520-4a62-ac64-bf23ada256b4", - "description" : "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "UUID" : "8e0e528f-e1cb-4d40-b5ee-187a39a339af", - "description" : "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "UUID" : "c6330c83-1b6c-47f8-8c3b-01d44c13297e", - "description" : "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "UUID" : "5e5dc5e2-7002-4344-94ba-3a92f4e9cd4a", - "description" : "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "UUID" : "44948ff0-dd44-4949-86ba-57eb37ab6940", - "description" : "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "UUID" : "a8348c59-a59f-4577-9a63-e463ed78a386", - "description" : "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "UUID" : "55952589-0c73-4785-ab80-3cc01ce3c5c5", - "description" : "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "UUID" : "877ae90c-9054-45b9-9854-04b052233bce", - "description" : "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "UUID" : "43de7dd5-1c78-457a-a2d4-861d88365e32", - "description" : "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "UUID" : "201a7923-aaa8-41f0-9248-039ed73ad90a", - "description" : "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "UUID" : "712e9bf6-b62c-4028-9ffa-1eccd2b40a92", - "description" : "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "UUID" : "db489db2-b91f-46b4-b353-232bfc07cfed", - "description" : "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "UUID" : "99a579f1-d903-4edb-9b7f-1ab6b6902bbf", - "description" : "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "UUID" : "87240d21-8241-4d63-bdca-b059efbc12be", - "description" : "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "UUID" : "cf2f947b-d844-4015-8d09-60c1bfe1d1b9", - "description" : "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "UUID" : "9da82bb8-5444-4e19-9ed6-be98db315885", - "description" : "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "UUID" : "1e492a3f-f677-4a4e-be2e-dc37d468561e", - "description" : "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "UUID" : "69ce656a-14c7-4c85-96d3-ced7613335d2", - "description" : "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "UUID" : "fd8d2834-ddff-41e8-a519-17a5d68ac58a", - "description" : "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "UUID" : "43b16640-5c95-4818-b57c-c9e526fbea4b", - "description" : "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "UUID" : "c9dab805-f205-42e8-81cf-c104ab236be0", - "description" : "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "UUID" : "179c8adb-ddd6-43ab-9011-1369bdc96160", - "description" : "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "UUID" : "5110278d-c6b7-4086-a4fb-b4b0d860a3e1", - "description" : "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "UUID" : "6d289f0f-8b78-46ee-9562-9a24926cb3e9", - "description" : "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "UUID" : "9ad1f442-ce0a-4906-ae0a-03f96956dec4", - "description" : "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "UUID" : "41ab1873-cd05-4941-9529-faf7bf38cb73", - "description" : "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "UUID" : "8cb499dc-503e-4bce-8563-3b35a20b2dc4", - "description" : "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "UUID" : "8bddc8cc-035d-4681-beba-bbb59bf3388f", - "description" : "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "UUID" : "14aaae24-ddd0-47ff-a603-665f422583ab", - "description" : "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "UUID" : "ee0fe52a-99ea-4ad7-84f9-235d09ad6ffc", - "description" : "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "UUID" : "a99806a3-46a7-48b0-9c44-524eb827e30d", - "description" : "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "UUID" : "bc21b814-84e5-42a0-9965-3732fb3acbf9", - "description" : "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "UUID" : "afa5ad6d-c09d-4843-90df-6d3d1995e6ce", - "description" : "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(ko);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(ko);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ { - "key" : "Act_LOGIC", - "value" : { - "key" : "", - "logicFlavour" : "MVEL", - "logic" : "\nTHis is a test finaliser logic!!!!\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(ko);\nreturn true;\nTHis is a test finaliser logic!!!!" - } - } ] - }, - "defaultTask" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(ko);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(ko);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(ko);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(ko);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(ko);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(ko);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.domains.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "EXTERNAL", - "isWritable" : false, - "itemSchema" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "GLOBAL", - "isWritable" : true, - "itemSchema" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Byte" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} - diff --git a/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/BatchDeployerTest.java b/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/BatchDeployerTest.java index fb2d2467b..e0610df0d 100644 --- a/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/BatchDeployerTest.java +++ b/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/BatchDeployerTest.java @@ -98,14 +98,14 @@ public class BatchDeployerTest { } try { - deployer.deployModel("src/test/resources/models/SamplePolicyModelJAVASCRIPT.json", false, false); + deployer.deployModel("src/test/resources/models/SmallModel.json", false, false); } catch (ApexException ade) { - assertEquals("could not deploy apex model from src/test/resources/models/SamplePolicyModelJAVASCRIPT.json", + assertEquals("could not deploy apex model from src/test/resources/models/SmallModel.json", ade.getMessage()); } try { - deployer.deployModel("src/test/resources/models/SamplePolicyModelJAVASCRIPT.json", false, false); + deployer.deployModel("src/test/resources/models/SmallModel.json", false, false); } catch (ApexException ade) { fail("test should not throw an exception"); } @@ -137,7 +137,7 @@ public class BatchDeployerTest { final ApexModelReader modelReader = new ApexModelReader<>(AxPolicyModel.class); modelReader.setValidateFlag(false); final AxPolicyModel apexPolicyModel = modelReader.read( - new FileInputStream(new File("src/test/resources/models/SamplePolicyModelJAVASCRIPT.json"))); + new FileInputStream(new File("src/test/resources/models/SmallModel.json"))); try { deployer.deployModel(apexPolicyModel, false, false); @@ -188,7 +188,7 @@ public class BatchDeployerTest { final ApexModelReader modelReader = new ApexModelReader<>(AxPolicyModel.class); modelReader.setValidateFlag(false); final AxPolicyModel apexPolicyModel = modelReader.read( - new FileInputStream(new File("src/test/resources/models/SamplePolicyModelJAVASCRIPT.json"))); + new FileInputStream(new File("src/test/resources/models/SmallModel.json"))); try { deployer.deployModel(apexPolicyModel, false, false); diff --git a/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/DummyDeploymentClient.java b/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/DummyDeploymentClient.java index d37bf3435..d01a51f91 100644 --- a/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/DummyDeploymentClient.java +++ b/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/DummyDeploymentClient.java @@ -162,7 +162,7 @@ public class DummyDeploymentClient extends DeploymentClient implements Runnable if (successFlag) { try { response.setMessageData(TextFileUtils - .getTextFileAsString("src/test/resources/models/SamplePolicyModelJAVASCRIPT.json")); + .getTextFileAsString("src/test/resources/models/SmallModel.json")); } catch (IOException e) { e.printStackTrace(); } diff --git a/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/EngineServiceFacadeTest.java b/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/EngineServiceFacadeTest.java index 414bd4144..a676031cb 100644 --- a/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/EngineServiceFacadeTest.java +++ b/core/core-deployment/src/test/java/org/onap/policy/apex/core/deployment/EngineServiceFacadeTest.java @@ -94,15 +94,15 @@ public class EngineServiceFacadeTest { } try { - facade.deployModel("src/test/resources/models/SamplePolicyModelJAVASCRIPT.json", false, false); + facade.deployModel("src/test/resources/models/SmallModel.json", false, false); fail("test should throw an exception here"); } catch (final Exception ade) { - assertEquals("could not deploy apex model from src/test/resources/models/SamplePolicyModelJAVASCRIPT.json", + assertEquals("could not deploy apex model from src/test/resources/models/SmallModel.json", ade.getMessage()); } try { - facade.deployModel("src/test/resources/models/SamplePolicyModelJAVASCRIPT.json", false, false); + facade.deployModel("src/test/resources/models/SmallModel.json", false, false); } catch (final Exception ade) { fail("test should not throw an exception here"); } diff --git a/core/core-deployment/src/test/resources/models/SamplePolicyModelJAVASCRIPT.json b/core/core-deployment/src/test/resources/models/SamplePolicyModelJAVASCRIPT.json deleted file mode 100644 index 2dc4bcd3f..000000000 --- a/core/core-deployment/src/test/resources/models/SamplePolicyModelJAVASCRIPT.json +++ /dev/null @@ -1,6684 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "UUID" : "ca36bfd8-6042-3633-8c85-89c66507c3bf", - "description" : "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "UUID" : "465a81cc-885f-3a4d-bc4e-1508da92b236", - "description" : "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "UUID" : "36b2d570-fff7-3a4b-bab2-6bf492f5129a", - "description" : "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "UUID" : "ff6160a7-fb5e-379c-a6d2-2cd28053eacf", - "description" : "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "UUID" : "5899e216-2abf-3781-abc4-2c257b92721e", - "description" : "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "UUID" : "7c2692a7-4587-3d09-abf9-d96b339a316f", - "description" : "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "UUID" : "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7", - "description" : "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "UUID" : "edbfa868-2ab2-30fd-8078-4c7f67ca6122", - "description" : "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "UUID" : "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4", - "description" : "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "UUID" : "c2550912-10d9-3000-8826-377288cd6cb1", - "description" : "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "UUID" : "f6d75b71-c8a7-3337-a121-88d68c389f5a", - "description" : "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "UUID" : "0215644c-4531-375c-8335-d558b4de8c03", - "description" : "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "976a79e7-5c80-3c03-9503-da3f41fec395", - "description" : "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7", - "description" : "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "UUID" : "1ff2f905-685c-3caf-95bc-0bbc90345888", - "description" : "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "UUID" : "f54c3b2b-be76-31c4-adfc-87c494c06808", - "description" : "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "UUID" : "3410e939-30ca-32c4-a2d8-c30b6fee6eec", - "description" : "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "e27564c4-3cbf-3db2-9bf3-83ae80a2f907", - "description" : "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "UUID" : "d0b2b585-f344-33b8-af9e-250e7f4cfbce", - "description" : "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0", - "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "UUID" : "bc8ee312-81ce-3c4a-92d5-4a73b8077148", - "description" : "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "UUID" : "0589ff20-adcc-3ce5-95fe-8d7978ed54ed", - "description" : "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "UUID" : "095b126d-ca8b-32c9-ad52-d744e817a79c", - "description" : "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "UUID" : "3d786b4c-d9ee-3367-ab71-c67271a4ea2f", - "description" : "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "UUID" : "9231753e-20c5-3436-982f-9100340cc570", - "description" : "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "UUID" : "502383d3-483f-3a56-a426-2f0406674c8d", - "description" : "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "UUID" : "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf", - "description" : "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "UUID" : "ad3a89f5-e369-3c66-b22c-669f7b3653b8", - "description" : "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "UUID" : "56815939-1164-3867-9ed1-0a27ff8aafb3", - "description" : "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "UUID" : "0db0c566-ecd7-3e27-9865-4b82c893abdb", - "description" : "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "UUID" : "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0", - "description" : "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "UUID" : "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a", - "description" : "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "UUID" : "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66", - "description" : "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "UUID" : "051bcfd5-cf73-3c89-8ee7-ea6e005ec059", - "description" : "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "UUID" : "3754fe19-98f2-34a1-9f45-db31052208d8", - "description" : "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "UUID" : "8c200709-a180-3c8b-916f-275ff49ce194", - "description" : "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "UUID" : "a1a879c6-4510-33b0-bbd0-ad6256189a37", - "description" : "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "UUID" : "a7fab96b-ce1c-37ce-bbb2-556b6db524a5", - "description" : "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "UUID" : "0a652886-c88d-3f8c-8994-ae9161e7c963", - "description" : "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "UUID" : "8efba9fa-371e-33df-a7d6-88b0284e7fd0", - "description" : "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "UUID" : "3740077c-a2b3-356b-81dc-5ded2118a951", - "description" : "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "UUID" : "b5c7df95-9af5-322f-9ea8-eb440a2bf926", - "description" : "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "UUID" : "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b", - "description" : "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "UUID" : "093cda11-eaeb-3a46-a5b6-d5e30c00935b", - "description" : "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "UUID" : "569a758d-ba40-37c0-aebb-7ad138df25ac", - "description" : "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "UUID" : "252818d9-b61f-3962-a905-8865fb00fb04", - "description" : "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "UUID" : "fe1a5f7c-c083-377b-a797-752b01fc6c73", - "description" : "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "UUID" : "aa87d007-d07e-3f67-8c6d-0ebc3d85479d", - "description" : "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "UUID" : "126e7a3a-11b6-3f88-9397-c21d8819f859", - "description" : "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "UUID" : "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc", - "description" : "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "UUID" : "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6", - "description" : "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "UUID" : "32a2f355-77f3-3b25-ace6-7a9c5763a5ad", - "description" : "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "UUID" : "3f95472c-973e-30e2-95f1-bf00cbef909a", - "description" : "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "UUID" : "610dbbd4-9149-3b3c-9af4-819056f0e169", - "description" : "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "UUID" : "07fa8f68-55f1-3fd0-81c1-749a379753a7", - "description" : "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "UUID" : "d9c93cd1-539e-35c5-aaec-bb711ceb1251", - "description" : "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "UUID" : "683fe492-7eae-3ac7-9924-bb7850208d05", - "description" : "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "UUID" : "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0", - "description" : "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "UUID" : "97b73937-c344-33c0-924c-4d26b6449564", - "description" : "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "EXTERNAL", - "isWritable" : false, - "itemSchema" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "GLOBAL", - "isWritable" : true, - "itemSchema" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Byte" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/core/core-deployment/src/test/resources/models/SmallModel.json b/core/core-deployment/src/test/resources/models/SmallModel.json new file mode 100644 index 000000000..5c0628809 --- /dev/null +++ b/core/core-deployment/src/test/resources/models/SmallModel.json @@ -0,0 +1,416 @@ +{ + "apexPolicyModel" : { + "key" : { + "name" : "SmallModel", + "version" : "0.0.1" + }, + "keyInformation" : { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "keyInfoMap" : { + "entry" : [ { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "fec1b353-b35f-4384-b7d9-69622059c248", + "description" : "Generated description for a concept called \"BasicContextAlbum\" with version \"0.0.1\" and UUID \"fec1b353-b35f-4384-b7d9-69622059c248\"" + } + }, { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "UUID" : "cc8d3c1a-e975-459a-bcd2-69f423eaa1f3", + "description" : "Generated description for a concept called \"BasicEvent\" with version \"0.0.1\" and UUID \"cc8d3c1a-e975-459a-bcd2-69f423eaa1f3\"" + } + }, { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "UUID" : "d0c5d8ee-5fe7-4978-89ce-4a3e69cad043", + "description" : "Generated description for a concept called \"BasicPolicy\" with version \"0.0.1\" and UUID \"d0c5d8ee-5fe7-4978-89ce-4a3e69cad043\"" + } + }, { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "UUID" : "c5651414-fc1c-493b-878d-75f0ce685c36", + "description" : "Generated description for a concept called \"BasicTask\" with version \"0.0.1\" and UUID \"c5651414-fc1c-493b-878d-75f0ce685c36\"" + } + }, { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "UUID" : "790ff718-8dc0-44e0-89d8-1b3bbe238310", + "description" : "Generated description for a concept called \"IntType\" with version \"0.0.1\" and UUID \"790ff718-8dc0-44e0-89d8-1b3bbe238310\"" + } + }, { + "key" : { + "name" : "SmallModel", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel", + "version" : "0.0.1" + }, + "UUID" : "a1bd1f4e-713b-456b-b1a8-bb48beee28e8", + "description" : "Generated description for a concept called \"SmallModel\" with version \"0.0.1\" and UUID \"a1bd1f4e-713b-456b-b1a8-bb48beee28e8\"" + } + }, { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "UUID" : "72bed9af-ab7d-3379-b9f7-b5eca5c9ef22", + "description" : "Generated description for concept referred to by key \"SmallModel_Albums:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "UUID" : "796dc6b0-627d-34ae-a5e2-1bc4b4b486b8", + "description" : "Generated description for concept referred to by key \"SmallModel_Events:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "UUID" : "b4876774-6907-3d27-a2b8-f05737c5ee4a", + "description" : "Generated description for concept referred to by key \"SmallModel_KeyInfo:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "UUID" : "5bcf946b-67be-3190-a906-f954896f999f", + "description" : "Generated description for concept referred to by key \"SmallModel_Policies:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "UUID" : "c25bf5c3-7f1e-3667-b8a9-971ba21517bc", + "description" : "Generated description for concept referred to by key \"SmallModel_Schemas:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "UUID" : "43b015ca-2ed1-3a35-b103-e8a5aa68f1ef", + "description" : "Generated description for concept referred to by key \"SmallModel_Tasks:0.0.1\"" + } + } ] + } + }, + "policies" : { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "policyMap" : { + "entry" : [ { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "value" : { + "policyKey" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "template" : "FREEFORM", + "state" : { + "entry" : [ { + "key" : "OnlyState", + "value" : { + "stateKey" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "OnlyState" + }, + "trigger" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "OnlyOutput", + "value" : { + "key" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "OnlyState", + "localName" : "OnlyOutput" + }, + "outgoingEvent" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "NULL", + "parentKeyVersion" : "0.0.0", + "parentLocalName" : "NULL", + "localName" : "NULL" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "NULL", + "logicFlavour" : "UNDEFINED", + "logic" : "" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "OnlyState", + "localName" : "BasicTask" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "OnlyState", + "localName" : "OnlyOutput" + } + } + } ] + } + } + } ] + }, + "firstState" : "OnlyState" + } + } ] + } + }, + "tasks" : { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "taskMap" : { + "entry" : [ { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ ] + }, + "contextAlbumReference" : [ { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"BasicContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + } ] + } + }, + "events" : { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "eventMap" : { + "entry" : [ { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.events", + "source" : "source", + "target" : "target", + "parameter" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + } ] + } + }, + "albums" : { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "albums" : { + "entry" : [ { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "scope" : "GLOBAL", + "isWritable" : true, + "itemSchema" : { + "name" : "IntType", + "version" : "0.0.1" + } + } + } ] + } + }, + "schemas" : { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "schemas" : { + "entry" : [ { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Integer" + } + } ] + } + } + } +} diff --git a/examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json b/examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json deleted file mode 100644 index 04876e182..000000000 --- a/examples/examples-servlet/src/main/resources/webapp/WEB-INF/classes/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json +++ /dev/null @@ -1,6684 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "UUID" : "ca36bfd8-6042-3633-8c85-89c66507c3bf", - "description" : "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "UUID" : "465a81cc-885f-3a4d-bc4e-1508da92b236", - "description" : "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "UUID" : "36b2d570-fff7-3a4b-bab2-6bf492f5129a", - "description" : "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "UUID" : "ff6160a7-fb5e-379c-a6d2-2cd28053eacf", - "description" : "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "UUID" : "5899e216-2abf-3781-abc4-2c257b92721e", - "description" : "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "UUID" : "7c2692a7-4587-3d09-abf9-d96b339a316f", - "description" : "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "UUID" : "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7", - "description" : "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "UUID" : "edbfa868-2ab2-30fd-8078-4c7f67ca6122", - "description" : "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "UUID" : "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4", - "description" : "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "UUID" : "c2550912-10d9-3000-8826-377288cd6cb1", - "description" : "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "UUID" : "f6d75b71-c8a7-3337-a121-88d68c389f5a", - "description" : "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "UUID" : "0215644c-4531-375c-8335-d558b4de8c03", - "description" : "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "976a79e7-5c80-3c03-9503-da3f41fec395", - "description" : "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7", - "description" : "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "UUID" : "1ff2f905-685c-3caf-95bc-0bbc90345888", - "description" : "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "UUID" : "f54c3b2b-be76-31c4-adfc-87c494c06808", - "description" : "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "UUID" : "3410e939-30ca-32c4-a2d8-c30b6fee6eec", - "description" : "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "e27564c4-3cbf-3db2-9bf3-83ae80a2f907", - "description" : "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "UUID" : "d0b2b585-f344-33b8-af9e-250e7f4cfbce", - "description" : "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0", - "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "UUID" : "bc8ee312-81ce-3c4a-92d5-4a73b8077148", - "description" : "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "UUID" : "0589ff20-adcc-3ce5-95fe-8d7978ed54ed", - "description" : "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "UUID" : "095b126d-ca8b-32c9-ad52-d744e817a79c", - "description" : "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "UUID" : "3d786b4c-d9ee-3367-ab71-c67271a4ea2f", - "description" : "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "UUID" : "9231753e-20c5-3436-982f-9100340cc570", - "description" : "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "UUID" : "502383d3-483f-3a56-a426-2f0406674c8d", - "description" : "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "UUID" : "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf", - "description" : "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "UUID" : "ad3a89f5-e369-3c66-b22c-669f7b3653b8", - "description" : "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "UUID" : "56815939-1164-3867-9ed1-0a27ff8aafb3", - "description" : "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "UUID" : "0db0c566-ecd7-3e27-9865-4b82c893abdb", - "description" : "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "UUID" : "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0", - "description" : "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "UUID" : "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a", - "description" : "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "UUID" : "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66", - "description" : "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "UUID" : "051bcfd5-cf73-3c89-8ee7-ea6e005ec059", - "description" : "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "UUID" : "3754fe19-98f2-34a1-9f45-db31052208d8", - "description" : "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "UUID" : "8c200709-a180-3c8b-916f-275ff49ce194", - "description" : "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "UUID" : "a1a879c6-4510-33b0-bbd0-ad6256189a37", - "description" : "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "UUID" : "a7fab96b-ce1c-37ce-bbb2-556b6db524a5", - "description" : "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "UUID" : "0a652886-c88d-3f8c-8994-ae9161e7c963", - "description" : "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "UUID" : "8efba9fa-371e-33df-a7d6-88b0284e7fd0", - "description" : "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "UUID" : "3740077c-a2b3-356b-81dc-5ded2118a951", - "description" : "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "UUID" : "b5c7df95-9af5-322f-9ea8-eb440a2bf926", - "description" : "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "UUID" : "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b", - "description" : "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "UUID" : "093cda11-eaeb-3a46-a5b6-d5e30c00935b", - "description" : "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "UUID" : "569a758d-ba40-37c0-aebb-7ad138df25ac", - "description" : "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "UUID" : "252818d9-b61f-3962-a905-8865fb00fb04", - "description" : "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "UUID" : "fe1a5f7c-c083-377b-a797-752b01fc6c73", - "description" : "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "UUID" : "aa87d007-d07e-3f67-8c6d-0ebc3d85479d", - "description" : "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "UUID" : "126e7a3a-11b6-3f88-9397-c21d8819f859", - "description" : "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "UUID" : "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc", - "description" : "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "UUID" : "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6", - "description" : "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "UUID" : "32a2f355-77f3-3b25-ace6-7a9c5763a5ad", - "description" : "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "UUID" : "3f95472c-973e-30e2-95f1-bf00cbef909a", - "description" : "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "UUID" : "610dbbd4-9149-3b3c-9af4-819056f0e169", - "description" : "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "UUID" : "07fa8f68-55f1-3fd0-81c1-749a379753a7", - "description" : "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "UUID" : "d9c93cd1-539e-35c5-aaec-bb711ceb1251", - "description" : "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "UUID" : "683fe492-7eae-3ac7-9924-bb7850208d05", - "description" : "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "UUID" : "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0", - "description" : "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "UUID" : "97b73937-c344-33c0-924c-4d26b6449564", - "description" : "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "EXTERNAL", - "isWritable" : false, - "itemSchema" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "GLOBAL", - "isWritable" : true, - "itemSchema" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Byte" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextBooleanItem" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextByteItem" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextIntItem" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextLongItem" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextFloatItem" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextDoubleItem" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextStringItem" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextLongObjectItem" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextDateItem" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextDateTzItem" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextDateLocaleItem" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextTreeSetItem" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextTreeMapItem" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java index 2e6e96d0b..1bdf39317 100644 --- a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java +++ b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java @@ -69,7 +69,7 @@ public class ClassBuilder { try { return new ClassBuilder(Class.forName("java.lang." + className)); } catch (Exception classFindException) { - LOGGER.warn("class nout found", classFindException); + LOGGER.warn("class not found", classFindException); throw new IllegalArgumentException("Class '" + className + "' not found. Also looked for a class called 'java.lang." + className + "'", e); } diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSJsonEvent.json deleted file mode 100644 index 7a2a0c4ea..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSJsonEvent.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12553, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "JMS", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", - "parameters": { - "initialContextFactory": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestInitialContextFactory", - "connectionFactory": "ConnectionFactory", - "providerUrl": "remote://localhost:5445", - "securityPrincipal": "guest", - "securityCredentials": "IAmAGuest", - "producerTopic": "jms/topic/apexOut", - "objectMessageSending": "false" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JMSTEXT", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsTextEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "JMS", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", - "parameters": { - "initialContextFactory": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestInitialContextFactory", - "connectionFactory": "ConnectionFactory", - "providerUrl": "remote://localhost:5445", - "securityPrincipal": "guest", - "securityCredentials": "IAmAGuest", - "consumerTopic": "jms/topic/apexIn" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JMSTEXT", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsTextEventProtocolParameters" - } - } - } -} - diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSObjectEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSObjectEvent.json deleted file mode 100644 index 9554ad062..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/JMS/JMS2JMSObjectEvent.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12553, - "policyModelFileName": "examples/models/JMS/JMSSamplePolicyModel.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "JMS", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", - "parameters": { - "initialContextFactory": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestInitialContextFactory", - "connectionFactory": "ConnectionFactory", - "providerUrl": "remote://localhost:5445", - "securityPrincipal": "guest", - "securityCredentials": "IAmAGuest", - "producerTopic": "jms/topic/apexOut" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JMSOBJECT", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsObjectEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "JMS", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", - "parameters": { - "initialContextFactory": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestInitialContextFactory", - "connectionFactory": "ConnectionFactory", - "providerUrl": "remote://localhost:5445", - "securityPrincipal": "guest", - "securityCredentials": "IAmAGuest", - "consumerTopic": "jms/topic/apexIn" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JMSOBJECT", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsObjectEventProtocolParameters" - } - } - } -} - diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEvent.json deleted file mode 100644 index bfd399263..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEvent.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json deleted file mode 100644 index b8fe2f9ed..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "aConsumer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsInMulti0.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "aConsumer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsInMulti1.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "aConsumer2": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsInMulti2.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventOutputParameters": { - "aProducer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutMulti0.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "aProducer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutMulti1.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "aProducer2": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutMulti2.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json deleted file mode 100644 index b02c5ee71..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "aConsumer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsInMulti0.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "aConsumer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsInMulti1.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "aConsumer2": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsInMulti2.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutSingle.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json deleted file mode 100644 index 79ec1557c..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventOutputParameters": { - "aProducer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutMulti0.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "aProducer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutMulti1.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "aProducer2": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutMulti2.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json deleted file mode 100644 index 3308d08e5..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutSingle.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json deleted file mode 100644 index fea2f5319..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "aConsumer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsInMulti0.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "aProducer0", - "synchronousTimeout": 1000 - }, - "aConsumer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsInMulti1.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "aProducer1", - "synchronousTimeout": 1000 - }, - "aConsumer2": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsInMulti2.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "aProducer2", - "synchronousTimeout": 1000 - } - }, - "eventOutputParameters": { - "aProducer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutMulti0.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "aConsumer0", - "synchronousTimeout": 1000 - }, - "aProducer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutMulti1.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "aConsumer1", - "synchronousTimeout": 1000 - }, - "aProducer2": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutMulti2.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "aConsumer2", - "synchronousTimeout": 1000 - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json deleted file mode 100644 index 7aac345cb..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "SyncProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOutSingle.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "SyncConsumer", - "synchronousTimeout": 1000 - } - }, - "eventInputParameters": { - "SyncConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "SyncProducer", - "synchronousTimeout": 1000 - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileXmlEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileXmlEvent.json deleted file mode 100644 index e985b10d4..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2FileXmlEvent.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12546, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOut.xmlfile" - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.xmlfile" - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPost.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPost.json deleted file mode 100644 index 54955eb54..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPost.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPut.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPut.json deleted file mode 100644 index 70d8deded..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2RESTJsonEventPut.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestFile2Rest/apex/event/PutEvent", - "httpMethod": "PUT" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StderrJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StderrJsonEvent.json deleted file mode 100644 index 429e9564f..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StderrJsonEvent.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardError": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEvent.json deleted file mode 100644 index 06af5e66c..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEvent.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json deleted file mode 100644 index 06af5e66c..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json deleted file mode 100644 index 1415ee607..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutXmlEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutXmlEvent.json deleted file mode 100644 index 6d9bad4fd..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/File2StdoutXmlEvent.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsIn.xmlfile" - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2FileJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2FileJsonEvent.json deleted file mode 100644 index e72a6474a..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2FileJsonEvent.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:49092", - "groupId": "apex-group-id", - "enableAutoCommit": true, - "autoCommitTime": 1000, - "sessionTimeout": 30000, - "consumerPollTime": 100, - "consumerTopicList": [ - "apex-in-0", - "apex-in-1" - ], - "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", - "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json deleted file mode 100644 index 6b13db7d4..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12547, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:39902", - "acks": "all", - "retries": 0, - "batchSize": 16384, - "lingerTime": 1, - "bufferMemory": 33554432, - "producerTopic": "apex-out-json", - "keySerializer": "org.apache.kafka.common.serialization.StringSerializer", - "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:39902", - "groupId": "apex-group-id", - "enableAutoCommit": true, - "autoCommitTime": 1000, - "sessionTimeout": 30000, - "consumerPollTime": 100, - "consumerTopicList": [ - "apex-in-json" - ], - "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", - "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json deleted file mode 100644 index abb61802c..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 3, - "deploymentPort": 12548, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:39902", - "acks": "all", - "retries": 0, - "batchSize": 16384, - "lingerTime": 1, - "bufferMemory": 33554432, - "producerTopic": "apex-out-xml", - "keySerializer": "org.apache.kafka.common.serialization.StringSerializer", - "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:39902", - "groupId": "apex-group-id", - "enableAutoCommit": true, - "autoCommitTime": 1000, - "sessionTimeout": 30000, - "consumerPollTime": 100, - "consumerTopicList": [ - "apex-in-xml" - ], - "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", - "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json deleted file mode 100644 index 32defff92..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVA.json", - "engineParameters": { - "executorParameters": { - "JAVA": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "TheKafkaConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:49092", - "groupId": "apex-group-id", - "enableAutoCommit": true, - "autoCommitTime": 1000, - "sessionTimeout": 30000, - "consumerPollTime": 100, - "consumerTopicList": [ - "apex-in-0", - "apex-in-1" - ], - "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", - "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2FileJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2FileJsonEvent.json deleted file mode 100644 index f83541340..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2FileJsonEvent.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRest2File/apex/event/GetEvent" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "examples/events/SampleDomain/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTJsonEvent.json deleted file mode 100644 index fca96852a..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTJsonEvent.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRest2REST/apex/event/GetEvent" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRest2REST/apex/event/PostEvent" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json deleted file mode 100644 index e8a23e4f5..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://192.168.219.142:3904/events/apexDMaaP/apexCG/apexC?timeout=10000" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://192.168.219.142:3904/events/apexDMaaPOut" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerJsonEvent.json deleted file mode 100644 index 71fe00b24..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerJsonEvent.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "0.0.0.0", - "port": 23324 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json deleted file mode 100644 index 2d9276ea7..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "localhost", - "port": 23324 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json deleted file mode 100644 index 874b60357..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "localhost", - "port": 23324 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - }, - "SecondConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "localhost", - "port": 23325 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "SecondProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - }, - "SecondProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "SecondConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json deleted file mode 100644 index 1ab7d4651..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json deleted file mode 100644 index d0c75c6bb..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - }, - "SecondConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "SecondProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - }, - "SecondProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "SecondConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json deleted file mode 100644 index 18447dfe1..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVA.json", - "engineParameters": { - "executorParameters": { - "JAVA": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "TheFileConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json deleted file mode 100644 index bae4f4130..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJRUBY.json", - "engineParameters": { - "executorParameters": { - "JRUBY": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.jruby.JrubyExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json deleted file mode 100644 index 3167fff37..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVA.json", - "engineParameters": { - "executorParameters": { - "JAVA": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json deleted file mode 100644 index c9ab0c065..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json deleted file mode 100644 index d547c6805..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJYTHON.json", - "engineParameters": { - "executorParameters": { - "JYTHON": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.jython.JythonExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json deleted file mode 100644 index cb3ace171..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json deleted file mode 100644 index f87adffd8..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12345, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "standardIo": true - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientJsonEvent.json deleted file mode 100644 index 2b0805736..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientJsonEvent.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12552, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "host": "localhost", - "port": 42453 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "host": "localhost", - "port": 42451 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientXMLEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientXMLEvent.json deleted file mode 100644 index f6ad417a7..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsClientXMLEvent.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12553, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "host": "localhost", - "port": 42453 - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "host": "localhost", - "port": 42451 - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerJsonEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerJsonEvent.json deleted file mode 100644 index 2e0fef80f..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerJsonEvent.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12554, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebsocketCarrierTechnologyParameters", - "parameters": { - "wsClient": false, - "port": 42452 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "wsClient": false, - "port": 42450 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerXMLEvent.json b/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerXMLEvent.json deleted file mode 100644 index 89de61d52..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/config/SampleDomain/Ws2WsServerXMLEvent.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12555, - "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebsocketCarrierTechnologyParameters", - "parameters": { - "wsClient": false, - "port": 42452 - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "wsClient": false, - "port": 42450 - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/models/JMS/JMSSamplePolicyModel.json b/packages/apex-pdp-package-full/src/main/package/examples/models/JMS/JMSSamplePolicyModel.json deleted file mode 100644 index d85630456..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/models/JMS/JMSSamplePolicyModel.json +++ /dev/null @@ -1,456 +0,0 @@ -{ - "apexPolicyModel": { - "key": { - "name": "JMSTestModel", - "version": "0.0.1" - }, - "keyInformation": { - "key": { - "name": "JMSTestModel_KeyInfo", - "version": "0.0.1" - }, - "keyInfoMap": { - "entry": [ - { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "UUID": "b59815ef-fc5b-4e44-9f6e-2f6212bb7296", - "description": "Generated description for a concept called \"JMSCopyInOutTask\" with version \"null\" and UUID \"b59815ef-fc5b-4e44-9f6e-2f6212bb7296\"" - } - }, - { - "key": { - "name": "JMSTestModel", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel", - "version": "0.0.1" - }, - "UUID": "a731a845-f984-46a9-adf4-c6c7ca0baa0d", - "description": "Generated description for a concept called \"JMSTestModel\" with version \"null\" and UUID \"a731a845-f984-46a9-adf4-c6c7ca0baa0d\"" - } - }, - { - "key": { - "name": "JMSTestModel_Albums", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Albums", - "version": "0.0.1" - }, - "UUID": "b580c2e2-067e-452c-8410-d69344fa718c", - "description": "Generated description for concept referred to by key \"JMSTestModel_Albums:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Events", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Events", - "version": "0.0.1" - }, - "UUID": "463f3fa6-2be3-4ded-a015-1f045ee8991e", - "description": "Generated description for concept referred to by key \"JMSTestModel_Events:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_KeyInfo", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_KeyInfo", - "version": "0.0.1" - }, - "UUID": "b14d97fb-f215-4b70-9cd6-cbfb3ed085ee", - "description": "Generated description for concept referred to by key \"JMSTestModel_KeyInfo:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Policies", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Policies", - "version": "0.0.1" - }, - "UUID": "9ae9047f-e0d8-42c4-b3a6-e32954ace3b6", - "description": "Generated description for concept referred to by key \"JMSTestModel_Policies:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Schemas", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Schemas", - "version": "0.0.1" - }, - "UUID": "adc30c29-d4b9-4408-9213-6d86b051d59c", - "description": "Generated description for concept referred to by key \"JMSTestModel_Schemas:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Tasks", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Tasks", - "version": "0.0.1" - }, - "UUID": "c3545f15-710c-4339-9a4e-e0eacffac52e", - "description": "Generated description for concept referred to by key \"JMSTestModel_Tasks:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "UUID": "fdda6a40-6767-45b0-8703-3b5b3bafaf19", - "description": "Generated description for a concept called \"JMSTestPolicy\" with version \"null\" and UUID \"fdda6a40-6767-45b0-8703-3b5b3bafaf19\"" - } - }, - { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "UUID": "6cdd11f3-5fe8-4510-81b9-af3be303ebae", - "description": "Generated description for a concept called \"TestPingIncomingEvent\" with version \"null\" and UUID \"6cdd11f3-5fe8-4510-81b9-af3be303ebae\"" - } - }, - { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "UUID": "dc04de01-2284-4461-9fe2-da58a2122a73", - "description": "Generated description for a concept called \"TestPingOutgoingEvent\" with version \"0.0.1\" and UUID \"dc04de01-2284-4461-9fe2-da58a2122a73\"" - } - }, - { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "UUID": "bdc2f70a-de52-4127-8012-b9593657da3c", - "description": "Generated description for a concept called \"TestPingType\" with version \"null\" and UUID \"bdc2f70a-de52-4127-8012-b9593657da3c\"" - } - } - ] - } - }, - "policies": { - "key": { - "name": "JMSTestModel_Policies", - "version": "0.0.1" - }, - "policyMap": { - "entry": [ - { - "key": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "template": "FREEFORM", - "state": { - "entry": [ - { - "key": "TestJMSState", - "value": { - "stateKey": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "TestJMSState" - }, - "trigger": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "InOutOutputMapping", - "value": { - "key": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "TestJMSState", - "localName": "InOutOutputMapping" - }, - "outgoingEvent": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "TestJMSState", - "localName": "InOutTask" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "TestJMSState", - "localName": "InOutOutputMapping" - } - } - } - ] - } - } - } - ] - }, - "firstState": "TestJMSState" - } - } - ] - } - }, - "tasks": { - "key": { - "name": "JMSTestModel_Tasks", - "version": "0.0.1" - }, - "taskMap": { - "entry": [ - { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "JAVASCRIPT", - "logic": "var outFieldType = Java.type(\"org.onap.policy.apex.apps.uservice.test.adapt.jms.TestPing\");\nvar outValue = new outFieldType();\n\nvar inValue = executor.inFields.get(\"TestPing\");\n\nexecutor.logger.info(inValue);\n\noutValue.setPingTime(inValue.getPingTime());\noutValue.setPongTime(new Date().getTime());\noutValue.setName(inValue.getName() + \"_out\");\n\noutValue.setDescription(\ninValue.getDescription() +\n\". So Romeo would, were he not Romeo call'd,\" +\n\" retain that dear perfection which he owes, without that title.\");\n\nexecutor.logger.info(outValue);\nexecutor.outFields.put(\"TestPing\", outValue)\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);" - } - } - } - ] - } - }, - "events": { - "key": { - "name": "JMSTestModel_Events", - "version": "0.0.1" - }, - "eventMap": { - "entry": [ - { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.apps.uservice.test.adapt.jms", - "source": "JMS", - "target": "Apex", - "parameter": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.apps.uservice.test.adapt.jms", - "source": "Apex", - "target": "JMS", - "parameter": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - } - ] - } - }, - "albums": { - "key": { - "name": "JMSTestModel_Albums", - "version": "0.0.1" - }, - "albums": { - "entry": [] - } - }, - "schemas": { - "key": { - "name": "JMSTestModel_Schemas", - "version": "0.0.1" - }, - "schemas": { - "entry": [ - { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestPing" - } - } - ] - } - } - } -} diff --git a/packages/apex-pdp-package-full/src/main/package/examples/models/SampleDomain/SamplePolicyModelMVEL.json b/packages/apex-pdp-package-full/src/main/package/examples/models/SampleDomain/SamplePolicyModelMVEL.json deleted file mode 100644 index 982444f36..000000000 --- a/packages/apex-pdp-package-full/src/main/package/examples/models/SampleDomain/SamplePolicyModelMVEL.json +++ /dev/null @@ -1,7036 +0,0 @@ -{ - "apexPolicyModel": { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "keyInformation": { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "keyInfoMap": { - "entry": [ - { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "UUID": "2708db15-3117-4ef5-ae06-44ad4bc72756", - "description": "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, - { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "UUID": "20f7f2d0-36e1-4134-93d9-8978e0ebb916", - "description": "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, - { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "UUID": "bfa262fc-f59d-4b05-af44-a5b5c218b314", - "description": "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, - { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "UUID": "84eeac88-5031-4487-b67a-5a3ae13c1a89", - "description": "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, - { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "UUID": "7a46a411-1715-48d8-9e70-9b5d14bbbed4", - "description": "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, - { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "UUID": "da0ba1b4-f654-4e99-97b5-595de84cb3dc", - "description": "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, - { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "UUID": "1267b311-60e2-48a7-8d0e-23c4ea21d863", - "description": "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, - { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "UUID": "84013070-ff2e-4295-acbd-4128f0509040", - "description": "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, - { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "UUID": "6fb7761e-b86f-47fc-8e19-6a116600764e", - "description": "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, - { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "UUID": "141cc707-009c-4e3b-a0f8-c346f074f590", - "description": "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, - { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "UUID": "98f4d09f-ff73-4385-8876-df6d04b552cc", - "description": "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, - { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "UUID": "889f6414-bc4d-4f29-b7af-175e63d23ac5", - "description": "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, - { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "UUID": "64e4911c-5aed-467f-be19-277fb6170857", - "description": "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "UUID": "cb6a1892-8c3c-44df-b8a7-0e5a333ff9eb", - "description": "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "UUID": "f3126983-e26c-491f-8738-c57784ca4026", - "description": "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, - { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "UUID": "b20a18d5-c419-4e90-8519-9c8f8b3ce2ab", - "description": "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, - { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "UUID": "28943e99-871b-482b-953f-cfa7138da02c", - "description": "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, - { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "UUID": "2b1b738b-70f6-4b45-9d3c-a7e889b49993", - "description": "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "UUID": "798ee6ea-f349-41bb-a281-7e4c22184e8c", - "description": "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, - { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "UUID": "eb9568d5-d95f-4713-9622-d95ef4cf81c3", - "description": "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "UUID": "10979d21-947f-4920-83ae-63b827e8e80f", - "description": "Generated description for concept referred to by key \"SamplePolicyModelMVEL:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "UUID": "cb65d7fe-8d86-463c-aa16-0f4e6138d705", - "description": "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "UUID": "ea2b4e7a-1a79-440c-9cf0-6fddaad64c0c", - "description": "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "UUID": "269e1d08-9ab4-48b8-8854-b65deb9d41b1", - "description": "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "UUID": "f9c4a91d-92aa-49ce-9b65-ab2378f6b048", - "description": "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "UUID": "7fde2446-ce2a-4bc2-a675-96496c387c88", - "description": "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "UUID": "bc185db6-f18f-4fdd-b5b4-37d14b57f463", - "description": "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "UUID": "2c1e2ede-d67c-4845-90ac-a4d53311bfbb", - "description": "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "UUID": "1d1645a2-2852-4296-9f22-8f31ebe5386a", - "description": "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "UUID": "f3739d83-a029-4ad8-a0b9-e5a028b369b2", - "description": "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "UUID": "5351a5a5-4134-44fd-9a6f-fd37dbfc8aa7", - "description": "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "UUID": "4206bb68-e710-4a01-aade-3e34771da63b", - "description": "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "UUID": "cbaab234-b586-4f63-986e-ed0b317b6c66", - "description": "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "UUID": "24dbc71b-8773-4393-9c36-a5f4991e0f55", - "description": "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "UUID": "42ecd25d-e8cb-48e4-890a-b0616528cf10", - "description": "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "UUID": "7e691294-a816-42f8-b124-9b5eac70b116", - "description": "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "UUID": "bc7cad3c-85a5-40b4-9eda-51ac2387af05", - "description": "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, - { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "UUID": "4386403d-b23c-4c3e-bc14-5d581f9de2f5", - "description": "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, - { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "UUID": "901a80ab-dd46-4697-b818-f669b9f9bce9", - "description": "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "UUID": "cfd19e5d-ab54-4e54-b4e5-1c5eaa832622", - "description": "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "UUID": "42c27d27-878d-4e9d-a139-e60c98f1c747", - "description": "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "UUID": "83919fa0-ed4d-4981-908f-79913734a0f5", - "description": "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "UUID": "194882b0-d987-4200-b82a-2c015605279b", - "description": "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "UUID": "948d345b-39c3-4436-8036-ac9e5c561977", - "description": "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "UUID": "fdad8cb5-4375-4bbf-9ffc-1e5ed8f4bae6", - "description": "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "UUID": "5243c0ba-5c50-4835-a885-6cd988252bb7", - "description": "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "UUID": "29f0b15f-f7c3-46e5-98d7-59a34a677968", - "description": "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "UUID": "aac96de5-9f3c-452c-855f-e556cc807351", - "description": "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "UUID": "7fdc1cc3-08c7-42a4-92a9-39e172fe2f1f", - "description": "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "UUID": "cf60cca6-a2e8-4371-b0e5-85ecaae44acc", - "description": "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "UUID": "1671f996-e14e-407d-a503-f4de09f0785b", - "description": "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "UUID": "814c4c28-9027-4516-9598-adc75fafa92a", - "description": "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, - { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "UUID": "33e81d08-a62b-40ce-b7ff-50734427ebf9", - "description": "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, - { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "UUID": "5cd74351-8e27-4dee-a379-86124db50383", - "description": "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "UUID": "e8c9a056-5e95-4e14-bc96-0c0d13a34b18", - "description": "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "UUID": "92489659-02f3-4cb2-b25f-a6234ad71d36", - "description": "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "UUID": "1c3b9345-32c2-4f7e-94ce-be36d0775e9e", - "description": "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, - { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "UUID": "9e719a99-1d73-4d40-b097-c9622b9ea2b4", - "description": "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, - { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "UUID": "3bcc8ef1-4cc5-4b7f-9dc4-83046d4a2a5d", - "description": "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } - ] - } - }, - "policies": { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "policyMap": { - "entry": [ - { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "Policy0", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "Event0003", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "Event0004", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act0_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act1_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act2_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act3_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "Event0002", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "Event0003", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "Event0001", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "Event0002", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "Event0000", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "Event0001", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match0_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match1_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match2_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match3_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - }, - { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "Policy1", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "Event0103", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "Event0104", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act0_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act1_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act2_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act3_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "Event0102", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "Event0103", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "Event0101", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "Event0102", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "Event0100", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "Event0101", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match0_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match1_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match2_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match3_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - } - ] - } - }, - "tasks": { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "taskMap": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Act1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Decide1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Establish1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Match1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - } - ] - } - }, - "events": { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "eventMap": { - "entry": [ - { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Outside", - "target": "Match", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Match", - "target": "Establish", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Establish", - "target": "Decide", - "parameter": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Decide", - "target": "Act", - "parameter": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Act", - "target": "Outside", - "parameter": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Outside", - "target": "Match", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Match", - "target": "Establish", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Establish", - "target": "Decide", - "parameter": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Decide", - "target": "Act", - "parameter": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Act", - "target": "Outside", - "parameter": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - } - ] - } - }, - "albums": { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "albums": { - "entry": [ - { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "scope": "EXTERNAL", - "isWritable": false, - "itemSchema": { - "name": "TestExternalContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "scope": "APPLICATION", - "isWritable": true, - "itemSchema": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "scope": "APPLICATION", - "isWritable": true, - "itemSchema": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - } - } - } - ] - } - }, - "schemas": { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "schemas": { - "entry": [ - { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Byte" - } - }, - { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, - { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, - { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, - { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, - { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, - { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, - { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, - { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, - { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, - { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, - { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, - { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, - { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, - { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, - { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, - { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, - { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Double" - } - }, - { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Long" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/pom.xml b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/pom.xml index 981839a5d..9d5b28276 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/pom.xml +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/pom.xml @@ -48,7 +48,7 @@ org.onap.policy.apex-pdp.plugins.plugins-executor - plugins-executor-mvel + plugins-executor-javascript ${project.version} test diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestor.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestor.java index 051647339..1ace80906 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestor.java +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestor.java @@ -113,15 +113,20 @@ public class TestRestRequestor { { "src/test/resources/prodcons/File2RESTRequest2FileGet.json" }; final ApexMain apexMain = new ApexMain(args); + Response response = null; + // Wait for the required amount of events to be received or for 10 seconds Double getsSoFar = 0.0; for (int i = 0; i < 40; i++) { ThreadUtilities.sleep(100); - final Response response = client.target("http://localhost:32801/TestRESTRequestor/apex/event/Stats") + response = client.target("http://localhost:32801/TestRESTRequestor/apex/event/Stats") .request("application/json").get(); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); + if (Response.Status.OK.getStatusCode() != response.getStatus()) { + break; + } + final String responseString = response.readEntity(String.class); @SuppressWarnings("unchecked") @@ -136,6 +141,8 @@ public class TestRestRequestor { apexMain.shutdown(); client.close(); + assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); + assertEquals(Double.valueOf(50.0), getsSoFar); } @@ -156,13 +163,18 @@ public class TestRestRequestor { // Wait for the required amount of events to be received or for 10 seconds Double putsSoFar = 0.0; + + Response response = null; for (int i = 0; i < 40; i++) { ThreadUtilities.sleep(100); - final Response response = client.target("http://localhost:32801/TestRESTRequestor/apex/event/Stats") + response = client.target("http://localhost:32801/TestRESTRequestor/apex/event/Stats") .request("application/json").get(); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); + if (Response.Status.OK.getStatusCode() != response.getStatus()) { + break; + } + final String responseString = response.readEntity(String.class); @SuppressWarnings("unchecked") @@ -177,6 +189,7 @@ public class TestRestRequestor { apexMain.shutdown(); client.close(); + assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); assertEquals(Double.valueOf(50.0), putsSoFar); } diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestorEndpoint.java b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestorEndpoint.java index 0de34eb9b..860127a7b 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestorEndpoint.java +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/java/org/onap/policy/apex/apps/uservice/test/adapt/restrequestor/TestRestRequestorEndpoint.java @@ -47,11 +47,9 @@ public class TestRestRequestorEndpoint { private static int getMessagesReceived = 0; private static int deleteMessagesReceived = 0; - private static String EVENT_STRING = "{\n" + "\"nameSpace\": \"org.onap.policy.apex.sample.events\",\n" - + "\"name\": \"Event0100\",\n" + "\"version\": \"0.0.1\",\n" + "\"source\": \"REST_" + getMessagesReceived - + "\",\n" + "\"target\": \"apex\",\n" + "\"TestSlogan\": \"Test slogan for External Event0\",\n" - + "\"TestMatchCase\": 2,\n" + "\"TestTimestamp\": " + System.currentTimeMillis() + ",\n" - + "\"TestTemperature\": 9080.866\n" + "}"; + private static String EVENT_STRING = "{\n" + "\"nameSpace\": \"org.onap.policy.apex.events\",\n" + + "\"name\": \"ResponseEvent\",\n" + "\"version\": \"0.0.1\",\n" + "\"source\": \"REST_" + + getMessagesReceived + "\",\n" + "\"target\": \"apex\",\n" + "\"intPar\": 9080\n" + "}"; /** * Reset counters. @@ -76,10 +74,10 @@ public class TestRestRequestorEndpoint { statMessagesReceived++; } return Response.status(200) - .entity("{\"GET\": " + getMessagesReceived + ",\"STAT\": " + statMessagesReceived + ",\"POST\": " - + postMessagesReceived + ",\"PUT\": " + putMessagesReceived + ",\"DELETE\": " - + deleteMessagesReceived + "}") - .build(); + .entity("{\"GET\": " + getMessagesReceived + ",\"STAT\": " + statMessagesReceived + + ",\"POST\": " + postMessagesReceived + ",\"PUT\": " + putMessagesReceived + + ",\"DELETE\": " + deleteMessagesReceived + "}") + .build(); } /** diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsIn.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsIn.json index 037c5ca43..48780ba51 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsIn.json +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsIn.json @@ -1,550 +1,400 @@ { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 12345 } diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsInMulti.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsInMulti.json index 49325ddea..32aba1f63 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsInMulti.json +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/events/EventsInMulti.json @@ -1,22 +1,16 @@ { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 3 } { - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", + "nameSpace": "org.onap.policy.apex.events", + "name": "BasicEvent", "version": "0.0.1", "source": "test", "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 + "intPar": 6 } \ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/RequestorModel.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/RequestorModel.json new file mode 100644 index 000000000..b6fdc617b --- /dev/null +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/RequestorModel.json @@ -0,0 +1,608 @@ +{ + "apexPolicyModel" : { + "key" : { + "name" : "SmallModel", + "version" : "0.0.1" + }, + "keyInformation" : { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "keyInfoMap" : { + "entry" : [ { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "fec1b353-b35f-4384-b7d9-69622059c248", + "description" : "Generated description for a concept called \"BasicContextAlbum\" with version \"0.0.1\" and UUID \"fec1b353-b35f-4384-b7d9-69622059c248\"" + } + }, { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "UUID" : "cc8d3c1a-e975-459a-bcd2-69f423eaa1f3", + "description" : "Generated description for a concept called \"BasicEvent\" with version \"0.0.1\" and UUID \"cc8d3c1a-e975-459a-bcd2-69f423eaa1f3\"" + } + }, { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "UUID" : "d0c5d8ee-5fe7-4978-89ce-4a3e69cad043", + "description" : "Generated description for a concept called \"BasicPolicy\" with version \"0.0.1\" and UUID \"d0c5d8ee-5fe7-4978-89ce-4a3e69cad043\"" + } + }, { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "UUID" : "c5651414-fc1c-493b-878d-75f0ce685c36", + "description" : "Generated description for a concept called \"BasicTask\" with version \"0.0.1\" and UUID \"c5651414-fc1c-493b-878d-75f0ce685c36\"" + } + }, { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "UUID" : "790ff718-8dc0-44e0-89d8-1b3bbe238310", + "description" : "Generated description for a concept called \"IntType\" with version \"0.0.1\" and UUID \"790ff718-8dc0-44e0-89d8-1b3bbe238310\"" + } + }, { + "key" : { + "name" : "RequestEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "RequestEvent", + "version" : "0.0.1" + }, + "UUID" : "99875c27-6120-4101-9e73-50ac810e322c", + "description" : "Generated description for a concept called \"RequestEvent\" with version \"0.0.1\" and UUID \"99875c27-6120-4101-9e73-50ac810e322c\"" + } + }, { + "key" : { + "name" : "RequestPolicy", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "RequestPolicy", + "version" : "0.0.1" + }, + "UUID" : "0667d905-981e-4249-b572-bc22821c7d29", + "description" : "Generated description for a concept called \"RequestPolicy\" with version \"0.0.1\" and UUID \"0667d905-981e-4249-b572-bc22821c7d29\"" + } + }, { + "key" : { + "name" : "ResponseEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "ResponseEvent", + "version" : "0.0.1" + }, + "UUID" : "a5022000-fdd7-491c-af9f-5a36e87c997c", + "description" : "Generated description for a concept called \"ResponseEvent\" with version \"0.0.1\" and UUID \"a5022000-fdd7-491c-af9f-5a36e87c997c\"" + } + }, { + "key" : { + "name" : "ResponsePolicy", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "ResponsePolicy", + "version" : "0.0.1" + }, + "UUID" : "e72757c4-d81d-4337-b7ce-5f022f55818d", + "description" : "Generated description for a concept called \"ResponsePolicy\" with version \"0.0.1\" and UUID \"e72757c4-d81d-4337-b7ce-5f022f55818d\"" + } + }, { + "key" : { + "name" : "SmallModel", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel", + "version" : "0.0.1" + }, + "UUID" : "a1bd1f4e-713b-456b-b1a8-bb48beee28e8", + "description" : "Generated description for a concept called \"SmallModel\" with version \"0.0.1\" and UUID \"a1bd1f4e-713b-456b-b1a8-bb48beee28e8\"" + } + }, { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "UUID" : "72bed9af-ab7d-3379-b9f7-b5eca5c9ef22", + "description" : "Generated description for concept referred to by key \"SmallModel_Albums:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "UUID" : "796dc6b0-627d-34ae-a5e2-1bc4b4b486b8", + "description" : "Generated description for concept referred to by key \"SmallModel_Events:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "UUID" : "b4876774-6907-3d27-a2b8-f05737c5ee4a", + "description" : "Generated description for concept referred to by key \"SmallModel_KeyInfo:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "UUID" : "5bcf946b-67be-3190-a906-f954896f999f", + "description" : "Generated description for concept referred to by key \"SmallModel_Policies:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "UUID" : "c25bf5c3-7f1e-3667-b8a9-971ba21517bc", + "description" : "Generated description for concept referred to by key \"SmallModel_Schemas:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "UUID" : "43b015ca-2ed1-3a35-b103-e8a5aa68f1ef", + "description" : "Generated description for concept referred to by key \"SmallModel_Tasks:0.0.1\"" + } + } ] + } + }, + "policies" : { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "policyMap" : { + "entry" : [ { + "key" : { + "name" : "RequestPolicy", + "version" : "0.0.1" + }, + "value" : { + "policyKey" : { + "name" : "RequestPolicy", + "version" : "0.0.1" + }, + "template" : "FREEFORM", + "state" : { + "entry" : [ { + "key" : "RequestState", + "value" : { + "stateKey" : { + "parentKeyName" : "RequestPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "RequestState" + }, + "trigger" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "RequestOutput", + "value" : { + "key" : { + "parentKeyName" : "RequestPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "RequestState", + "localName" : "RequestOutput" + }, + "outgoingEvent" : { + "name" : "RequestEvent", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "NULL", + "parentKeyVersion" : "0.0.0", + "parentLocalName" : "NULL", + "localName" : "NULL" + } + } + } ] + }, + "contextAlbumReference" : [ ], + "taskSelectionLogic" : { + "key" : "NULL", + "logicFlavour" : "UNDEFINED", + "logic" : "" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "RequestPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "RequestState", + "localName" : "RequestTask" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "RequestPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "RequestState", + "localName" : "RequestOutput" + } + } + } ] + } + } + } ] + }, + "firstState" : "RequestState" + } + }, { + "key" : { + "name" : "ResponsePolicy", + "version" : "0.0.1" + }, + "value" : { + "policyKey" : { + "name" : "ResponsePolicy", + "version" : "0.0.1" + }, + "template" : "FREEFORM", + "state" : { + "entry" : [ { + "key" : "ResponseState", + "value" : { + "stateKey" : { + "parentKeyName" : "ResponsePolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "ResponseState" + }, + "trigger" : { + "name" : "ResponseEvent", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "ResponseOutput", + "value" : { + "key" : { + "parentKeyName" : "ResponsePolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "ResponseState", + "localName" : "ResponseOutput" + }, + "outgoingEvent" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "NULL", + "parentKeyVersion" : "0.0.0", + "parentLocalName" : "NULL", + "localName" : "NULL" + } + } + } ] + }, + "contextAlbumReference" : [ ], + "taskSelectionLogic" : { + "key" : "NULL", + "logicFlavour" : "UNDEFINED", + "logic" : "" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "ResponsePolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "ResponseState", + "localName" : "ResponseTask" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "ResponsePolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "ResponseState", + "localName" : "ResponseOutput" + } + } + } ] + } + } + } ] + }, + "firstState" : "ResponseState" + } + } ] + } + }, + "tasks" : { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "taskMap" : { + "entry" : [ { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ ] + }, + "contextAlbumReference" : [ { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"BasicContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + } ] + } + }, + "events" : { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "eventMap" : { + "entry" : [ { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.events", + "source" : "source", + "target" : "target", + "parameter" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "RequestEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "RequestEvent", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.events", + "source" : "apex", + "target" : "server", + "parameter" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "ResponseEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "ResponseEvent", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.events", + "source" : "server", + "target" : "apex", + "parameter" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + } ] + } + }, + "albums" : { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "albums" : { + "entry" : [ { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "scope" : "GLOBAL", + "isWritable" : true, + "itemSchema" : { + "name" : "IntType", + "version" : "0.0.1" + } + } + } ] + } + }, + "schemas" : { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "schemas" : { + "entry" : [ { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Integer" + } + } ] + } + } + } +} diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/SamplePolicyModelMVEL.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/SamplePolicyModelMVEL.json deleted file mode 100644 index c87b265d9..000000000 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/policymodels/SamplePolicyModelMVEL.json +++ /dev/null @@ -1,6348 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "SamplePolicyModelMVEL", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "UUID" : "2708db15-3117-4ef5-ae06-44ad4bc72756", - "description" : "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "UUID" : "20f7f2d0-36e1-4134-93d9-8978e0ebb916", - "description" : "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "UUID" : "bfa262fc-f59d-4b05-af44-a5b5c218b314", - "description" : "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "UUID" : "84eeac88-5031-4487-b67a-5a3ae13c1a89", - "description" : "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "UUID" : "7a46a411-1715-48d8-9e70-9b5d14bbbed4", - "description" : "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "UUID" : "da0ba1b4-f654-4e99-97b5-595de84cb3dc", - "description" : "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "UUID" : "1267b311-60e2-48a7-8d0e-23c4ea21d863", - "description" : "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "UUID" : "84013070-ff2e-4295-acbd-4128f0509040", - "description" : "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "UUID" : "6fb7761e-b86f-47fc-8e19-6a116600764e", - "description" : "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "UUID" : "141cc707-009c-4e3b-a0f8-c346f074f590", - "description" : "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "UUID" : "98f4d09f-ff73-4385-8876-df6d04b552cc", - "description" : "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "UUID" : "889f6414-bc4d-4f29-b7af-175e63d23ac5", - "description" : "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "64e4911c-5aed-467f-be19-277fb6170857", - "description" : "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "cb6a1892-8c3c-44df-b8a7-0e5a333ff9eb", - "description" : "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "UUID" : "f3126983-e26c-491f-8738-c57784ca4026", - "description" : "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "UUID" : "b20a18d5-c419-4e90-8519-9c8f8b3ce2ab", - "description" : "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "UUID" : "28943e99-871b-482b-953f-cfa7138da02c", - "description" : "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "2b1b738b-70f6-4b45-9d3c-a7e889b49993", - "description" : "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "UUID" : "798ee6ea-f349-41bb-a281-7e4c22184e8c", - "description" : "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "eb9568d5-d95f-4713-9622-d95ef4cf81c3", - "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "SamplePolicyModelMVEL", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SamplePolicyModelMVEL", - "version" : "0.0.1" - }, - "UUID" : "10979d21-947f-4920-83ae-63b827e8e80f", - "description" : "Generated description for concept referred to by key \"SamplePolicyModelMVEL:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "UUID" : "cb65d7fe-8d86-463c-aa16-0f4e6138d705", - "description" : "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "UUID" : "ea2b4e7a-1a79-440c-9cf0-6fddaad64c0c", - "description" : "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "UUID" : "269e1d08-9ab4-48b8-8854-b65deb9d41b1", - "description" : "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "UUID" : "f9c4a91d-92aa-49ce-9b65-ab2378f6b048", - "description" : "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "UUID" : "7fde2446-ce2a-4bc2-a675-96496c387c88", - "description" : "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "UUID" : "bc185db6-f18f-4fdd-b5b4-37d14b57f463", - "description" : "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "UUID" : "2c1e2ede-d67c-4845-90ac-a4d53311bfbb", - "description" : "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "UUID" : "1d1645a2-2852-4296-9f22-8f31ebe5386a", - "description" : "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "UUID" : "f3739d83-a029-4ad8-a0b9-e5a028b369b2", - "description" : "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "UUID" : "5351a5a5-4134-44fd-9a6f-fd37dbfc8aa7", - "description" : "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "UUID" : "4206bb68-e710-4a01-aade-3e34771da63b", - "description" : "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "UUID" : "cbaab234-b586-4f63-986e-ed0b317b6c66", - "description" : "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "UUID" : "24dbc71b-8773-4393-9c36-a5f4991e0f55", - "description" : "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "UUID" : "42ecd25d-e8cb-48e4-890a-b0616528cf10", - "description" : "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "UUID" : "7e691294-a816-42f8-b124-9b5eac70b116", - "description" : "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "UUID" : "bc7cad3c-85a5-40b4-9eda-51ac2387af05", - "description" : "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "UUID" : "4386403d-b23c-4c3e-bc14-5d581f9de2f5", - "description" : "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "UUID" : "901a80ab-dd46-4697-b818-f669b9f9bce9", - "description" : "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "UUID" : "cfd19e5d-ab54-4e54-b4e5-1c5eaa832622", - "description" : "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "UUID" : "42c27d27-878d-4e9d-a139-e60c98f1c747", - "description" : "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "UUID" : "83919fa0-ed4d-4981-908f-79913734a0f5", - "description" : "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "UUID" : "194882b0-d987-4200-b82a-2c015605279b", - "description" : "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "UUID" : "948d345b-39c3-4436-8036-ac9e5c561977", - "description" : "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "UUID" : "fdad8cb5-4375-4bbf-9ffc-1e5ed8f4bae6", - "description" : "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "UUID" : "5243c0ba-5c50-4835-a885-6cd988252bb7", - "description" : "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "UUID" : "29f0b15f-f7c3-46e5-98d7-59a34a677968", - "description" : "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "UUID" : "aac96de5-9f3c-452c-855f-e556cc807351", - "description" : "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "UUID" : "7fdc1cc3-08c7-42a4-92a9-39e172fe2f1f", - "description" : "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "UUID" : "cf60cca6-a2e8-4371-b0e5-85ecaae44acc", - "description" : "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "UUID" : "1671f996-e14e-407d-a503-f4de09f0785b", - "description" : "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "UUID" : "814c4c28-9027-4516-9598-adc75fafa92a", - "description" : "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "UUID" : "33e81d08-a62b-40ce-b7ff-50734427ebf9", - "description" : "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "UUID" : "5cd74351-8e27-4dee-a379-86124db50383", - "description" : "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "UUID" : "e8c9a056-5e95-4e14-bc96-0c0d13a34b18", - "description" : "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "UUID" : "92489659-02f3-4cb2-b25f-a6234ad71d36", - "description" : "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "UUID" : "1c3b9345-32c2-4f7e-94ce-be36d0775e9e", - "description" : "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "UUID" : "9e719a99-1d73-4d40-b097-c9622b9ea2b4", - "description" : "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "UUID" : "3bcc8ef1-4cc5-4b7f-9dc4-83046d4a2a5d", - "description" : "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "MVEL", - "logic" : "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - } - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - } - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - } - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "EXTERNAL", - "isWritable" : false, - "itemSchema" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "GLOBAL", - "isWritable" : true, - "itemSchema" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Byte" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json index 46da3970a..77079c63e 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileDelete.json @@ -1,75 +1,75 @@ { - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FileConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "RestRequestorConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRESTRequestor/apex/event/DeleteEvent", - "httpMethod": "DELETE", - "restRequestTimeout": 2000 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0100", - "requestorMode": true, - "requestorPeer": "RestRequestorProducer", - "requestorTimeout": 500 - } - }, - "eventOutputParameters": { - "RestRequestorProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0004", - "requestorMode": true, - "requestorPeer": "RestRequestorConsumer", - "requestorTimeout": 500 - }, - "FileProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0104" - } - } + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FileConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "RestRequestorConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRESTRequestor/apex/event/DeleteEvent", + "httpMethod": "DELETE", + "restRequestTimeout": 2000 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "ResponseEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorProducer", + "requestorTimeout": 2000 + } + }, + "eventOutputParameters": { + "RestRequestorProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "RequestEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorConsumer", + "requestorTimeout": 2000 + }, + "FileProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsOut.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "BasicEvent" + } + } } diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json index 3c1d314fe..09cf0f051 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGet.json @@ -1,75 +1,75 @@ { - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FileConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "RestRequestorConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent", - "httpMethod": "GET", - "restRequestTimeout": 2000 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0100", - "requestorMode": true, - "requestorPeer": "RestRequestorProducer", - "requestorTimeout": 500 - } - }, - "eventOutputParameters": { - "RestRequestorProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0004", - "requestorMode": true, - "requestorPeer": "RestRequestorConsumer", - "requestorTimeout": 500 - }, - "FileProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0104" - } - } + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FileConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "RestRequestorConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent", + "httpMethod": "GET", + "restRequestTimeout": 2000 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "ResponseEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorProducer", + "requestorTimeout": 2000 + } + }, + "eventOutputParameters": { + "RestRequestorProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "RequestEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorConsumer", + "requestorTimeout": 2000 + }, + "FileProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsOut.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "BasicEvent" + } + } } diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json index 9ebe89df5..f9c916d4b 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetConsumerAlone.json @@ -1,71 +1,71 @@ { - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FileConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "RestRequestorConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent", - "httpMethod": "GET", - "restRequestTimeout": 2000 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0100", - "requestorMode": true, - "requestorPeer": "RestRequestorProducer", - "requestorTimeout": 500 - } - }, - "eventOutputParameters": { - "RestRequestorProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "FileProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0104" - } - } + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FileConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "RestRequestorConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent", + "httpMethod": "GET", + "restRequestTimeout": 2000 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "ResponseEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorProducer", + "requestorTimeout": 2000 + } + }, + "eventOutputParameters": { + "RestRequestorProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "FileProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsOut.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "BasicEvent" + } + } } diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json index 424d2b454..b7b9a44d9 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetMulti.json @@ -1,129 +1,129 @@ { - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FileConsumer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsInMulti.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "RestRequestorConsumer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent", - "httpMethod": "GET", - "restRequestTimeout": 2000 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0100", - "requestorMode": true, - "requestorPeer": "RestRequestorProducer0", - "requestorTimeout": 500 - }, - "FileConsumer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsInMulti.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "RestRequestorConsumer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent", - "httpMethod": "GET", - "restRequestTimeout": 2000 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0100", - "requestorMode": true, - "requestorPeer": "RestRequestorProducer1", - "requestorTimeout": 500 - } - }, - "eventOutputParameters": { - "RestRequestorProducer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0004", - "requestorMode": true, - "requestorPeer": "RestRequestorConsumer0", - "requestorTimeout": 500 - }, - "FileProducer0": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOutMulti0.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0104" - }, - "RestRequestorProducer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0004", - "requestorMode": true, - "requestorPeer": "RestRequestorConsumer1", - "requestorTimeout": 500 - }, - "FileProducer1": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOutMulti1.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0104" - } - } + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FileConsumer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsInMulti.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "RestRequestorConsumer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent", + "httpMethod": "GET", + "restRequestTimeout": 2000 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "ResponseEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorProducer0", + "requestorTimeout": 2000 + }, + "FileConsumer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsInMulti.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "RestRequestorConsumer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRESTRequestor/apex/event/GetEvent", + "httpMethod": "GET", + "restRequestTimeout": 2000 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "ResponseEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorProducer1", + "requestorTimeout": 2000 + } + }, + "eventOutputParameters": { + "RestRequestorProducer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "RequestEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorConsumer0", + "requestorTimeout": 2000 + }, + "FileProducer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsOutMulti0.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "BasicEvent" + }, + "RestRequestorProducer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "RequestEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorConsumer1", + "requestorTimeout": 2000 + }, + "FileProducer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsOutMulti1.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "BasicEvent" + } + } } diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json index 4fcbf59d9..b50b8bd20 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FileGetProducerAlone.json @@ -1,54 +1,54 @@ { - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FileConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventOutputParameters": { - "RestRequestorProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0004" - }, - "FileProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0104" - } - } + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FileConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventOutputParameters": { + "RestRequestorProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "Event0004" + }, + "FileProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsOut.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "Event0104" + } + } } diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json index fe5af67ee..8d6d4ca4a 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePost.json @@ -1,75 +1,75 @@ { - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FileConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "RestRequestorConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRESTRequestor/apex/event/PostEvent", - "httpMethod": "POST", - "restRequestTimeout": 2000 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0100", - "requestorMode": true, - "requestorPeer": "RestRequestorProducer", - "requestorTimeout": 500 - } - }, - "eventOutputParameters": { - "RestRequestorProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0004", - "requestorMode": true, - "requestorPeer": "RestRequestorConsumer", - "requestorTimeout": 500 - }, - "FileProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0104" - } - } + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FileConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "RestRequestorConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRESTRequestor/apex/event/PostEvent", + "httpMethod": "POST", + "restRequestTimeout": 2000 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "ResponseEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorProducer", + "requestorTimeout": 2000 + } + }, + "eventOutputParameters": { + "RestRequestorProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "RequestEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorConsumer", + "requestorTimeout": 2000 + }, + "FileProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsOut.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "BasicEvent" + } + } } diff --git a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json index e78446447..ac418e623 100644 --- a/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json +++ b/plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-restrequestor/src/test/resources/prodcons/File2RESTRequest2FilePut.json @@ -1,75 +1,75 @@ { - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FileConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - }, - "RestRequestorConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRESTRequestor/apex/event/PutEvent", - "httpMethod": "PUT", - "restRequestTimeout": 2000 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0100", - "requestorMode": true, - "requestorPeer": "RestRequestorProducer", - "requestorTimeout": 500 - } - }, - "eventOutputParameters": { - "RestRequestorProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTREQUESTOR", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0004", - "requestorMode": true, - "requestorPeer": "RestRequestorConsumer", - "requestorTimeout": 500 - }, - "FileProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "Event0104" - } - } + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "src/test/resources/policymodels/RequestorModel.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FileConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "RestRequestorConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRESTRequestor/apex/event/PutEvent", + "httpMethod": "PUT", + "restRequestTimeout": 2000 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "ResponseEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorProducer", + "requestorTimeout": 2000 + } + }, + "eventOutputParameters": { + "RestRequestorProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTREQUESTOR", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "RequestEvent", + "requestorMode": true, + "requestorPeer": "RestRequestorConsumer", + "requestorTimeout": 2000 + }, + "FileProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "src/test/resources/events/EventsOut.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "BasicEvent" + } + } } diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/FileCarrierTechnologyParameters.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/FileCarrierTechnologyParameters.java index cbfe18016..73438cc7e 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/FileCarrierTechnologyParameters.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/FileCarrierTechnologyParameters.java @@ -20,12 +20,14 @@ package org.onap.policy.apex.service.engine.event.impl.filecarrierplugin; +import java.io.File; + import org.onap.policy.apex.service.engine.event.impl.filecarrierplugin.consumer.ApexFileEventConsumer; import org.onap.policy.apex.service.engine.event.impl.filecarrierplugin.producer.ApexFileEventProducer; import org.onap.policy.apex.service.parameters.carriertechnology.CarrierTechnologyParameters; import org.onap.policy.common.parameters.GroupValidationResult; import org.onap.policy.common.parameters.ValidationStatus; -import org.onap.policy.common.utils.resources.ResourceUtils; +import org.onap.policy.common.utils.validation.ParameterValidationUtils; /** * This class holds the parameters that allows transport of events into and out of Apex using files and standard input @@ -52,6 +54,9 @@ public class FileCarrierTechnologyParameters extends CarrierTechnologyParameters /** The consumer plugin class for the FILE carrier technology. */ public static final String FILE_EVENT_CONSUMER_PLUGIN_CLASS = ApexFileEventConsumer.class.getCanonicalName(); + // Recurring strings + private static final String FILE_NAME_TOKEN = "fileName"; + private String fileName; private boolean standardIo = false; private boolean standardError = false; @@ -78,7 +83,7 @@ public class FileCarrierTechnologyParameters extends CarrierTechnologyParameters * @return the file name from which to read or to which to write events */ public String getFileName() { - return ResourceUtils.getFilePath4Resource(fileName); + return fileName; } /** @@ -193,9 +198,8 @@ public class FileCarrierTechnologyParameters extends CarrierTechnologyParameters public GroupValidationResult validate() { final GroupValidationResult result = super.validate(); - if (!standardIo && !standardError && (fileName == null || fileName.trim().length() == 0)) { - result.setResult("fileName", ValidationStatus.INVALID, "fileName not specified or is blank or null, " - + "it must be specified as a valid file location"); + if (!standardIo && !standardError) { + validateFileName(result); } if (standardIo || standardError) { @@ -209,4 +213,84 @@ public class FileCarrierTechnologyParameters extends CarrierTechnologyParameters return result; } + + + /** + * Validate the file name parameter. + * + * @param result the variable in which to store the result of the validation + */ + private void validateFileName(final GroupValidationResult result) { + if (!ParameterValidationUtils.validateStringParameter(fileName)) { + result.setResult(FILE_NAME_TOKEN, ValidationStatus.INVALID, + "\"" + fileName + "\" invalid, must be specified as a non-empty string"); + return; + } + + String absoluteFileName = null; + + // Resolve the file name if it is a relative file name + File theFile = new File(fileName); + if (theFile.isAbsolute()) { + absoluteFileName = fileName; + } else { + absoluteFileName = System.getProperty("APEX_RELATIVE_FILE_ROOT") + File.separator + fileName; + theFile = new File(absoluteFileName); + } + + // Check if the file exists, the file should be a regular file and should be readable + if (theFile.exists()) { + validateExistingFile(result, absoluteFileName, theFile); + } + // The path to the file should exist and should be writable + else { + validateNewFileParent(result, absoluteFileName, theFile); + } + } + + /** + * Validate an existing file is OK. + * + * @param result the result of the validation + * @param absoluteFileName the absolute file name of the file + * @param theFile the file that exists + */ + private void validateExistingFile(final GroupValidationResult result, String absoluteFileName, File theFile) { + // Check that the file is a regular file + if (!theFile.isFile()) { + result.setResult(FILE_NAME_TOKEN, ValidationStatus.INVALID, "is not a plain file"); + } + else { + fileName = absoluteFileName; + + if (!theFile.canRead()) { + result.setResult(FILE_NAME_TOKEN, ValidationStatus.INVALID, "is not readable"); + } + } + } + + /** + * Validate the parent of a new file is OK. + * + * @param result the result of the validation + * @param absoluteFileName the absolute file name of the file + * @param theFile the file that exists + */ + private void validateNewFileParent(final GroupValidationResult result, String absoluteFileName, File theFile) { + // Check that the parent of the file is a directory + if (!theFile.getParentFile().exists()) { + result.setResult(FILE_NAME_TOKEN, ValidationStatus.INVALID, "parent of file does not exist"); + } + // Check that the parent of the file is a directory + else if (!theFile.getParentFile().isDirectory()) { + result.setResult(FILE_NAME_TOKEN, ValidationStatus.INVALID, "parent of file is not directory"); + } + else { + fileName = absoluteFileName; + + if (!theFile.getParentFile().canRead()) { + result.setResult(FILE_NAME_TOKEN, ValidationStatus.INVALID, "is not readable"); + } + } + } } diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArguments.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArguments.java index ff0eef7f0..733327580 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArguments.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArguments.java @@ -35,6 +35,7 @@ import org.apache.commons.cli.ParseException; import org.onap.policy.apex.model.basicmodel.concepts.ApexException; import org.onap.policy.apex.model.basicmodel.concepts.ApexRuntimeException; import org.onap.policy.common.utils.resources.ResourceUtils; +import org.onap.policy.common.utils.validation.ParameterValidationUtils; /** * This class reads and handles command line parameters for the Apex main program. @@ -42,6 +43,9 @@ import org.onap.policy.common.utils.resources.ResourceUtils; * @author Liam Fallon (liam.fallon@ericsson.com) */ public class ApexCommandLineArguments { + // A system property holding the root directory for relative paths in the configuration file + public static final String RELATIVE_FILE_ROOT = "APEX_RELATIVE_FILE_ROOT"; + // Recurring string constants private static final String FILE_PREAMBLE = " file \""; private static final int HELP_LINE_LENGTH = 120; @@ -52,6 +56,7 @@ public class ApexCommandLineArguments { // The command line options private String modelFilePath = null; private String configurationFilePath = null; + private String relativeFileRoot = null; /** * Construct the options for the CLI editor. @@ -66,20 +71,30 @@ public class ApexCommandLineArguments { .type(Boolean.class) .build()); options.addOption(Option.builder("v") - .longOpt("version") - .desc("outputs the version of Apex") - .required(false) - .type(Boolean.class) - .build()); + .longOpt("version") + .desc("outputs the version of Apex") + .required(false) + .type(Boolean.class) + .build()); options.addOption(Option.builder("c") - .longOpt("config-file") - .desc("the full path to the configuration file to use, the configuration file must be a Json file " - + "containing the Apex configuration parameters") - .hasArg() - .argName("CONFIG_FILE") - .required(false) - .type(String.class) - .build()); + .longOpt("config-file") + .desc("the full path to the configuration file to use, " + + "the configuration file must be a Json file " + + "containing the Apex configuration parameters") + .hasArg() + .argName("CONFIG_FILE") + .required(false) + .type(String.class) + .build()); + options.addOption(Option.builder("rfr") + .longOpt("relative-file-root") + .desc("the root file path for relative file paths specified in the Apex configuration file, " + + "defaults to the current directory from where Apex is executed") + .hasArg() + .argName(RELATIVE_FILE_ROOT) + .required(false) + .type(String.class) + .build()); options.addOption(Option.builder("m").longOpt("model-file") .desc("the full path to the model file to use, if set it overrides the model file set in the " + "configuration file").hasArg().argName("MODEL_FILE") @@ -147,6 +162,12 @@ public class ApexCommandLineArguments { setConfigurationFilePath(commandLine.getOptionValue('c')); } + if (commandLine.hasOption("rfr")) { + setRelativeFileRoot(commandLine.getOptionValue("rfr")); + } else { + setRelativeFileRoot(null); + } + if (commandLine.hasOption('m')) { setModelFilePath(commandLine.getOptionValue('m')); } @@ -165,6 +186,8 @@ public class ApexCommandLineArguments { if (checkSetModelFilePath()) { validateReadableFile("Apex model", modelFilePath); } + + validateRelativeFileRoot(); } /** @@ -228,6 +251,15 @@ public class ApexCommandLineArguments { return configurationFilePath; } + /** + * Gets the root file path for relative file paths in the configuration file. + * + * @return the root file path + */ + public String getRelativeFileRoot() { + return relativeFileRoot; + } + /** * Gets the full expanded configuration file path. * @@ -247,6 +279,29 @@ public class ApexCommandLineArguments { } + /** + * Sets the root file path for relative file paths in the configuration file. + * + * @param relativeFileRoot the configuration file path + */ + public void setRelativeFileRoot(final String relativeFileRoot) { + String relativeFileRootValue = relativeFileRoot; + + if (!ParameterValidationUtils.validateStringParameter(relativeFileRoot)) { + relativeFileRootValue = System.getProperty(RELATIVE_FILE_ROOT); + } + + if (!ParameterValidationUtils.validateStringParameter(relativeFileRootValue)) { + relativeFileRootValue = System.getProperty("user.dir"); + } + else if (!(new File(relativeFileRootValue).isAbsolute())) { + relativeFileRootValue = System.getProperty("user.dir") + File.separator + relativeFileRootValue; + } + + this.relativeFileRoot = relativeFileRootValue; + System.setProperty(RELATIVE_FILE_ROOT, relativeFileRootValue); + } + /** * Check set configuration file path. * @@ -285,4 +340,21 @@ public class ApexCommandLineArguments { throw new ApexException(fileTag + FILE_PREAMBLE + fileName + "\" is ureadable"); } } + + /** + * Validate the relative file root. + */ + private void validateRelativeFileRoot() throws ApexException { + File relativeFileRootPath = new File(relativeFileRoot); + if (!relativeFileRootPath.isDirectory()) { + throw new ApexException( + "relative file root \"" + relativeFileRoot + "\" does not exist or is not a directory"); + } + + if (!relativeFileRootPath.canWrite()) { + throw new ApexException( + "relative file root \"" + relativeFileRoot + "\" does not exist or is not a directory"); + } + } + } diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/impl/EngineWorker.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/impl/EngineWorker.java index a7d179959..a5de624d1 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/impl/EngineWorker.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/runtime/impl/EngineWorker.java @@ -659,7 +659,7 @@ final class EngineWorker implements EngineService { // Take events from the event processing queue of the worker and pass them to the engine // for processing boolean stopFlag = false; - while (!processorThread.isInterrupted() && ! stopFlag) { + while (processorThread != null && !processorThread.isInterrupted() && ! stopFlag) { ApexEvent event = null; try { event = eventProcessingQueue.take(); diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/engineservice/EngineServiceParameters.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/engineservice/EngineServiceParameters.java index 7cd75a300..35c8237c6 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/engineservice/EngineServiceParameters.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/engineservice/EngineServiceParameters.java @@ -21,7 +21,6 @@ package org.onap.policy.apex.service.parameters.engineservice; import java.io.File; -import java.net.URL; import org.onap.policy.apex.core.engine.EngineParameters; import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey; @@ -30,7 +29,6 @@ import org.onap.policy.apex.service.parameters.ApexParameterConstants; import org.onap.policy.common.parameters.GroupValidationResult; import org.onap.policy.common.parameters.ParameterGroup; import org.onap.policy.common.parameters.ValidationStatus; -import org.onap.policy.common.utils.resources.ResourceUtils; // @formatter:off /** @@ -218,7 +216,7 @@ public class EngineServiceParameters implements ParameterGroup { * @return the file name of the policy engine for deployment on the engine service */ public String getPolicyModelFileName() { - return ResourceUtils.getFilePath4Resource(policyModelFileName); + return policyModelFileName; } /** @@ -344,15 +342,32 @@ public class EngineServiceParameters implements ParameterGroup { return; } - // The file name can refer to a resource on the local file system or on the class - // path - final URL fileUrl = ResourceUtils.getUrl4Resource(policyModelFileName); - if (fileUrl == null) { - result.setResult(POLICY_MODEL_FILE_NAME, ValidationStatus.INVALID, "not found or is not a plain file"); + String absolutePolicyFileName = null; + + // Resolve the file name if it is a relative file name + File policyModelFile = new File(policyModelFileName); + if (policyModelFile.isAbsolute()) { + absolutePolicyFileName = policyModelFileName; + } else { + absolutePolicyFileName = System.getProperty("APEX_RELATIVE_FILE_ROOT") + File.separator + + policyModelFileName; + policyModelFile = new File(absolutePolicyFileName); + } + + // Check that the file exists + if (!policyModelFile.exists()) { + result.setResult(POLICY_MODEL_FILE_NAME, ValidationStatus.INVALID, "not found"); + } + // Check that the file is a regular file + else if (!policyModelFile.isFile()) { + result.setResult(POLICY_MODEL_FILE_NAME, ValidationStatus.INVALID, "is not a plain file"); } else { - final File policyModelFile = new File(fileUrl.getPath()); - if (!policyModelFile.isFile()) { - result.setResult(POLICY_MODEL_FILE_NAME, ValidationStatus.INVALID, "not found or is not a plain file"); + // OK, we found the file and it's OK, so reset the file name + policyModelFileName = absolutePolicyFileName; + + // Check that the file is readable + if (!policyModelFile.canRead()) { + result.setResult(POLICY_MODEL_FILE_NAME, ValidationStatus.INVALID, "is not readable"); } } } diff --git a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/event/JsonEventGenerator.java b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/event/JsonEventGenerator.java index 1ba901090..c2dbd48d6 100644 --- a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/event/JsonEventGenerator.java +++ b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/event/JsonEventGenerator.java @@ -20,60 +20,27 @@ package org.onap.policy.apex.service.engine.event; -import java.util.Random; - /** * This class generates JSON event used for the test cases. * * @author Liam Fallon (liam.fallon@ericsson.com) */ public class JsonEventGenerator { - private static int nextEventNo = 0; - - /** - * Json events. - * - * @param eventCount the event count - * @return the string - */ - public static String jsonEvents(final int eventCount) { - final StringBuilder builder = new StringBuilder(); - - for (int i = 0; i < eventCount; i++) { - if (i > 0) { - builder.append("\n"); - } - builder.append(jsonEvent()); - } - - return builder.toString(); - } - /** * Json event. * * @return the string */ public static String jsonEvent() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"" + eventName + "\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12345\n"); builder.append("}"); return builder.toString(); @@ -85,25 +52,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventNoName() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"namez\": \"" + eventName + "\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"namez\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12346\n"); builder.append("}"); return builder.toString(); @@ -115,24 +72,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventBadName() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); builder.append(" \"name\": \"%%%%\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12347\n"); builder.append("}"); return builder.toString(); @@ -144,23 +92,14 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventNoExName() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); builder.append(" \"name\": \"I_DONT_EXIST\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12348\n"); builder.append("}"); return builder.toString(); @@ -172,25 +111,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventNoVersion() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"" + eventName + "\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"versiion\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12349\n"); builder.append("}"); return builder.toString(); @@ -202,25 +131,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventBadVersion() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"" + eventName + "\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"#####\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12350\n"); builder.append("}"); return builder.toString(); @@ -232,24 +151,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventNoExVersion() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"Event0000\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"1.2.3\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12351\n"); builder.append("}"); return builder.toString(); @@ -261,25 +171,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventNoNamespace() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpacee\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"" + eventName + "\",\n"); + builder.append(" \"nameSpacee\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12352\n"); builder.append("}"); return builder.toString(); @@ -291,25 +191,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventBadNamespace() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); builder.append(" \"nameSpace\": \"hello.&&&&\",\n"); - builder.append(" \"name\": \"" + eventName + "\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12353\n"); builder.append("}"); return builder.toString(); @@ -321,24 +211,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventNoExNamespace() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); builder.append(" \"nameSpace\": \"pie.in.the.sky\",\n"); - builder.append(" \"name\": \"Event0000\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12354\n"); builder.append("}"); return builder.toString(); @@ -350,25 +231,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventNoSource() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"" + eventName + "\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"sourcee\": \"test\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12355\n"); builder.append("}"); return builder.toString(); @@ -380,25 +251,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventBadSource() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"" + eventName + "\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"%!@**@!\",\n"); builder.append(" \"target\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12356\n"); builder.append("}"); return builder.toString(); @@ -410,25 +271,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventNoTarget() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"" + eventName + "\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"targett\": \"apex\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12357\n"); builder.append("}"); return builder.toString(); @@ -440,25 +291,15 @@ public class JsonEventGenerator { * @return the string */ public static String jsonEventBadTarget() { - final Random rand = new Random(); - final StringBuilder builder = new StringBuilder(); - int nextEventNo = rand.nextInt(2); - final String eventName = (nextEventNo == 0 ? "Event0000" : "Event0100"); - final int nextMatchCase = rand.nextInt(4); - final float nextTestTemperature = rand.nextFloat() * 10000; - builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"" + eventName + "\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"KNIO(*S)A(S)D\",\n"); - builder.append(" \"TestSlogan\": \"Test slogan for External Event" + (nextEventNo++) + "\",\n"); - builder.append(" \"TestMatchCase\": " + nextMatchCase + ",\n"); - builder.append(" \"TestTimestamp\": " + System.currentTimeMillis() + ",\n"); - builder.append(" \"TestTemperature\": " + nextTestTemperature + "\n"); + builder.append(" \"intPar\": 12358\n"); builder.append("}"); return builder.toString(); @@ -473,8 +314,8 @@ public class JsonEventGenerator { final StringBuilder builder = new StringBuilder(); builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"Event0000\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"apex\"\n"); @@ -492,49 +333,14 @@ public class JsonEventGenerator { final StringBuilder builder = new StringBuilder(); builder.append("{\n"); - builder.append(" \"nameSpace\": \"org.onap.policy.apex.sample.events\",\n"); - builder.append(" \"name\": \"Event0000\",\n"); + builder.append(" \"nameSpace\": \"org.onap.policy.apex.events\",\n"); + builder.append(" \"name\": \"BasicEvent\",\n"); builder.append(" \"version\": \"0.0.1\",\n"); builder.append(" \"source\": \"test\",\n"); builder.append(" \"target\": \"Apex\",\n"); - builder.append(" \"TestSlogan\": null,\n"); - builder.append(" \"TestMatchCase\": -1,\n"); - builder.append(" \"TestTimestamp\": -1,\n"); - builder.append(" \"TestTemperature\": -1.0\n"); + builder.append(" \"intPar\": -1\n"); builder.append("}"); return builder.toString(); } - - /** - * The main method. - * - * @param args the arguments - */ - public static void main(final String[] args) { - if (args.length != 1) { - System.err.println("usage EventGenerator #events"); - return; - } - - int eventCount = 0; - try { - eventCount = Integer.parseInt(args[0]); - } catch (final Exception e) { - System.err.println("usage EventGenerator #events"); - e.printStackTrace(); - return; - } - - System.out.println(jsonEvents(eventCount)); - } - - /** - * Gets the next event no. - * - * @return the next event no - */ - public static int getNextEventNo() { - return nextEventNo; - } } diff --git a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/event/TestJsonEventHandler.java b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/event/TestJsonEventHandler.java index 6e462a3e1..fa399e8c0 100644 --- a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/event/TestJsonEventHandler.java +++ b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/event/TestJsonEventHandler.java @@ -22,12 +22,12 @@ package org.onap.policy.apex.service.engine.event; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.ByteArrayInputStream; import java.io.IOException; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -68,7 +68,7 @@ public class TestJsonEventHandler { @BeforeClass public static void setupEventModel() throws IOException, ApexModelException { final String policyModelString = TextFileUtils - .getTextFileAsString("src/test/resources/policymodels/SamplePolicyModelMVEL.json"); + .getTextFileAsString("src/test/resources/policymodels/SmallModel.json"); final ApexModelReader modelReader = new ApexModelReader(AxPolicyModel.class); final AxPolicyModel apexPolicyModel = modelReader.read(new ByteArrayInputStream(policyModelString.getBytes())); @@ -118,15 +118,15 @@ public class TestJsonEventHandler { logger.debug(apexEvent.toString()); - assertTrue(apexEvent.getName().equals("Event0000") || apexEvent.getName().equals("Event0100")); - assertTrue(apexEvent.getVersion().equals("0.0.1")); - assertTrue(apexEvent.getNameSpace().equals("org.onap.policy.apex.sample.events")); - assertTrue(apexEvent.getSource().equals("test")); - assertTrue(apexEvent.getTarget().equals("apex")); - assertTrue(apexEvent.get("TestSlogan").toString().startsWith("Test slogan for External Event")); + assertEquals("BasicEvent", apexEvent.getName()); + assertEquals("0.0.1", apexEvent.getVersion()); + assertEquals("org.onap.policy.apex.events", apexEvent.getNameSpace()); + assertEquals("test", apexEvent.getSource()); + assertEquals("apex", apexEvent.getTarget()); + assertEquals(12345, apexEvent.get("intPar")); final Object testMatchCaseSelected = apexEvent.get("TestMatchCaseSelected"); - assertTrue(testMatchCaseSelected == null); + assertNull(testMatchCaseSelected); } } catch (final Exception e) { e.printStackTrace(); @@ -162,8 +162,8 @@ public class TestJsonEventHandler { jsonEventConverter.toApexEvent(null, apexEventJsonStringIn); fail("Test should throw an exception here"); } catch (final ApexEventException e) { - assertTrue(e.getMessage().startsWith( - "Failed to unmarshal JSON event: field \"name\" with value \"%%%%\" is invalid")); + assertEquals("Failed to unmarshal JSON event: field \"name\" with value \"%%%%\" is invalid", + e.getMessage().substring(0, 73)); } try { @@ -184,8 +184,8 @@ public class TestJsonEventHandler { jsonEventConverter.toApexEvent(null, apexEventJsonStringIn); fail("Test should throw an exception here"); } catch (final ApexEventException e) { - assertTrue(e.getMessage().startsWith( - "Failed to unmarshal JSON event: field \"version\" with value \"#####\" is invalid")); + assertEquals("Failed to unmarshal JSON event: field \"version\" with value \"#####\" is invalid", + e.getMessage().substring(0, 77)); } try { @@ -193,22 +193,23 @@ public class TestJsonEventHandler { jsonEventConverter.toApexEvent(null, apexEventJsonStringIn); fail("Test should throw an exception here"); } catch (final ApexEventException e) { - assertTrue(e.getMessage() - .startsWith("Failed to unmarshal JSON event: an event definition for an event named " - + "\"Event0000\" with version \"1.2.3\" not found in Apex model")); + assertEquals("Failed to unmarshal JSON event: an event definition for an event named " + + "\"BasicEvent\" with version \"1.2.3\" not found in Apex model", + e.getMessage().substring(0, 128)); } apexEventJsonStringIn = JsonEventGenerator.jsonEventNoNamespace(); event = jsonEventConverter.toApexEvent(null, apexEventJsonStringIn).get(0); - assertEquals("org.onap.policy.apex.sample.events", event.getNameSpace()); + assertEquals("org.onap.policy.apex.events", event.getNameSpace()); try { apexEventJsonStringIn = JsonEventGenerator.jsonEventBadNamespace(); jsonEventConverter.toApexEvent(null, apexEventJsonStringIn); fail("Test should throw an exception here"); } catch (final ApexEventException e) { - assertTrue(e.getMessage().startsWith("Failed to unmarshal JSON event: field \"nameSpace\" " - + "with value \"hello.&&&&\" is invalid")); + assertEquals("Failed to unmarshal JSON event: " + + "field \"nameSpace\" with value \"hello.&&&&\" is invalid", + e.getMessage().substring(0, 84)); } try { @@ -216,37 +217,36 @@ public class TestJsonEventHandler { jsonEventConverter.toApexEvent(null, apexEventJsonStringIn); fail("Test should throw an exception here"); } catch (final ApexEventException e) { - assertTrue(e.getMessage() - .startsWith("Failed to unmarshal JSON event: namespace \"pie.in.the.sky\" " - + "on event \"Event0000\" does not" - + " match namespace \"org.onap.policy.apex.sample.events\" " - + "for that event in the Apex model")); + assertEquals("Failed to unmarshal JSON event: namespace \"pie.in.the.sky\" " + + "on event \"BasicEvent\" does not" + + " match namespace \"org.onap.policy.apex.events\" " + + "for that event in the Apex model", e.getMessage().substring(0, 168)); } apexEventJsonStringIn = JsonEventGenerator.jsonEventNoSource(); event = jsonEventConverter.toApexEvent(null, apexEventJsonStringIn).get(0); - assertEquals("Outside", event.getSource()); + assertEquals("source", event.getSource()); try { apexEventJsonStringIn = JsonEventGenerator.jsonEventBadSource(); jsonEventConverter.toApexEvent(null, apexEventJsonStringIn); fail("Test should throw an exception here"); } catch (final ApexEventException e) { - assertTrue(e.getMessage().startsWith( - "Failed to unmarshal JSON event: field \"source\" with value \"%!@**@!\" is invalid")); + assertEquals("Failed to unmarshal JSON event: field \"source\" with value \"%!@**@!\" is invalid", + e.getMessage().substring(0, 78)); } apexEventJsonStringIn = JsonEventGenerator.jsonEventNoTarget(); event = jsonEventConverter.toApexEvent(null, apexEventJsonStringIn).get(0); - assertEquals("Match", event.getTarget()); + assertEquals("target", event.getTarget()); try { apexEventJsonStringIn = JsonEventGenerator.jsonEventBadTarget(); jsonEventConverter.toApexEvent(null, apexEventJsonStringIn); fail("Test should throw an exception here"); } catch (final ApexEventException e) { - assertTrue(e.getMessage().startsWith("Failed to unmarshal JSON event: field \"target\" " - + "with value \"KNIO(*S)A(S)D\" is invalid")); + assertEquals("Failed to unmarshal JSON event: field \"target\" with value \"KNIO(*S)A(S)D\" is invalid", + e.getMessage().substring(0, 84)); } try { @@ -254,30 +254,24 @@ public class TestJsonEventHandler { jsonEventConverter.toApexEvent(null, apexEventJsonStringIn); fail("Test should throw an exception here"); } catch (final ApexEventException e) { - assertTrue(e.getMessage().startsWith("Failed to unmarshal JSON event: error parsing Event0000:0.0.1 " - + "event from Json. Field \"TestMatchCase\" is missing, but is mandatory.")); + assertEquals("Failed to unmarshal JSON event: error parsing BasicEvent:0.0.1 " + + "event from Json. Field \"intPar\" is missing, but is mandatory.", + e.getMessage().substring(0, 124)); } apexEventJsonStringIn = JsonEventGenerator.jsonEventNullFields(); event = jsonEventConverter.toApexEvent(null, apexEventJsonStringIn).get(0); assertEquals(null, event.get("TestSlogan")); - assertEquals((byte) -1, event.get("TestMatchCase")); - assertEquals((long) -1, event.get("TestTimestamp")); - assertEquals(-1.0, event.get("TestTemperature")); + assertEquals(-1, event.get("intPar")); // Set the missing fields as optional in the model - final AxEvent eventDefinition = ModelService.getModel(AxEvents.class).get("Event0000"); - eventDefinition.getParameterMap().get("TestSlogan").setOptional(true); - eventDefinition.getParameterMap().get("TestMatchCase").setOptional(true); - eventDefinition.getParameterMap().get("TestTimestamp").setOptional(true); - eventDefinition.getParameterMap().get("TestTemperature").setOptional(true); + final AxEvent eventDefinition = ModelService.getModel(AxEvents.class).get("BasicEvent"); + eventDefinition.getParameterMap().get("intPar").setOptional(true); apexEventJsonStringIn = JsonEventGenerator.jsonEventMissingFields(); event = jsonEventConverter.toApexEvent(null, apexEventJsonStringIn).get(0); assertEquals(null, event.get("TestSlogan")); - assertEquals(null, event.get("TestMatchCase")); - assertEquals(null, event.get("TestTimestamp")); - assertEquals(null, event.get("TestTemperature")); + assertEquals(null, event.get("intPar")); } catch (final Exception e) { e.printStackTrace(); throw new ApexException("Exception reading Apex event JSON file", e); @@ -296,62 +290,23 @@ public class TestJsonEventHandler { jsonEventConverter.init(new JsonEventProtocolParameters()); assertNotNull(jsonEventConverter); - final Date event0000StartTime = new Date(); - final Map event0000DataMap = new HashMap(); - event0000DataMap.put("TestSlogan", "This is a test slogan"); - event0000DataMap.put("TestMatchCase", 12345); - event0000DataMap.put("TestTimestamp", event0000StartTime.getTime()); - event0000DataMap.put("TestTemperature", 34.5445667); + final Map basicEventMap = new HashMap(); + basicEventMap.put("intPar", 12345); - final ApexEvent apexEvent0000 = new ApexEvent("Event0000", "0.0.1", "org.onap.policy.apex.sample.events", - "test", "apex"); - apexEvent0000.putAll(event0000DataMap); + final ApexEvent basicEvent = new ApexEvent("BasicEvent", "0.0.1", "org.onap.policy.apex.events", "test", + "apex"); + basicEvent.putAll(basicEventMap); - final String apexEvent0000JsonString = (String) jsonEventConverter.fromApexEvent(apexEvent0000); + final String apexEvent0000JsonString = (String) jsonEventConverter.fromApexEvent(basicEvent); logger.debug(apexEvent0000JsonString); - assertTrue(apexEvent0000JsonString.contains("\"name\": \"Event0000\"")); + assertTrue(apexEvent0000JsonString.contains("\"name\": \"BasicEvent\"")); assertTrue(apexEvent0000JsonString.contains("\"version\": \"0.0.1\"")); - assertTrue(apexEvent0000JsonString.contains("\"nameSpace\": \"org.onap.policy.apex.sample.events\"")); + assertTrue(apexEvent0000JsonString.contains("\"nameSpace\": \"org.onap.policy.apex.events\"")); assertTrue(apexEvent0000JsonString.contains("\"source\": \"test\"")); assertTrue(apexEvent0000JsonString.contains("\"target\": \"apex\"")); - assertTrue(apexEvent0000JsonString.contains("\"TestSlogan\": \"This is a test slogan\"")); - assertTrue(apexEvent0000JsonString.contains("\"TestMatchCase\": 12345")); - assertTrue(apexEvent0000JsonString.contains("\"TestTimestamp\": " + event0000StartTime.getTime())); - assertTrue(apexEvent0000JsonString.contains("\"TestTemperature\": 34.5445667")); - - final Date event0004StartTime = new Date(1434363272000L); - final Map event0004DataMap = new HashMap(); - event0004DataMap.put("TestSlogan", "Test slogan for External Event"); - event0004DataMap.put("TestMatchCase", new Integer(2)); - event0004DataMap.put("TestTimestamp", new Long(event0004StartTime.getTime())); - event0004DataMap.put("TestTemperature", new Double(1064.43)); - event0004DataMap.put("TestMatchCaseSelected", new Integer(2)); - event0004DataMap.put("TestMatchStateTime", new Long(1434370506078L)); - event0004DataMap.put("TestEstablishCaseSelected", new Integer(0)); - event0004DataMap.put("TestEstablishStateTime", new Long(1434370506085L)); - event0004DataMap.put("TestDecideCaseSelected", new Integer(3)); - event0004DataMap.put("TestDecideStateTime", new Long(1434370506092L)); - event0004DataMap.put("TestActCaseSelected", new Integer(2)); - event0004DataMap.put("TestActStateTime", new Long(1434370506095L)); - - final ApexEvent apexEvent0004 = new ApexEvent("Event0004", "0.0.1", "org.onap.policy.apex.sample.events", - "test", "apex"); - apexEvent0004.putAll(event0004DataMap); - - final String apexEvent0004JsonString = (String) jsonEventConverter.fromApexEvent(apexEvent0004); - - logger.debug(apexEvent0004JsonString); - - assertTrue(apexEvent0004JsonString.contains("\"name\": \"Event0004\"")); - assertTrue(apexEvent0004JsonString.contains("\"version\": \"0.0.1\"")); - assertTrue(apexEvent0004JsonString.contains("\"nameSpace\": \"org.onap.policy.apex.sample.events\"")); - assertTrue(apexEvent0004JsonString.contains("\"source\": \"test\"")); - assertTrue(apexEvent0004JsonString.contains("\"target\": \"apex\"")); - assertTrue(apexEvent0004JsonString.contains("\"TestSlogan\": \"Test slogan for External Event\"")); - assertTrue(apexEvent0004JsonString.contains("1434370506078")); - assertTrue(apexEvent0004JsonString.contains("1064.43")); + assertTrue(apexEvent0000JsonString.contains("\"intPar\": 12345")); } catch (final Exception e) { e.printStackTrace(); throw new ApexException("Exception reading Apex event JSON file", e); diff --git a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/main/TestApexCommandLineArguments.java b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/main/TestApexCommandLineArguments.java index 2b8bd6771..c26e4fcb7 100644 --- a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/main/TestApexCommandLineArguments.java +++ b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/main/TestApexCommandLineArguments.java @@ -24,20 +24,27 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; +import org.junit.After; import org.junit.Test; import org.onap.policy.apex.model.basicmodel.concepts.ApexException; /** * Test Apex Command Line Arguments. + * * @author Liam Fallon (liam.fallon@ericsson.com) */ public class TestApexCommandLineArguments { + @After + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } @Test public void testCommandLineArguments() { final ApexCommandLineArguments apexArguments = new ApexCommandLineArguments(); - final String[] args00 = {""}; + final String[] args00 = + { "" }; try { apexArguments.parse(args00); apexArguments.validate(); @@ -46,7 +53,8 @@ public class TestApexCommandLineArguments { assertEquals("Apex configuration file was not specified as an argument", e.getMessage()); } - final String[] args01 = {"-h"}; + final String[] args01 = + { "-h" }; try { final String result = apexArguments.parse(args01); assertTrue(result.startsWith("usage: org.onap.policy.apex.service.engine.main.ApexMain [options...]")); @@ -55,7 +63,8 @@ public class TestApexCommandLineArguments { fail("Test should not throw an exception"); } - final String[] args02 = {"-v"}; + final String[] args02 = + { "-v" }; try { final String result = apexArguments.parse(args02); assertTrue(result.startsWith("Apex Adaptive Policy Engine")); @@ -64,7 +73,8 @@ public class TestApexCommandLineArguments { fail("Test should not throw an exception"); } - final String[] args03 = {"-v", "-h"}; + final String[] args03 = + { "-v", "-h" }; try { final String result = apexArguments.parse(args03); assertTrue(result.startsWith("usage: org.onap.policy.apex.service.engine.main.ApexMain [options...]")); @@ -73,7 +83,8 @@ public class TestApexCommandLineArguments { fail("Test should not throw an exception"); } - final String[] args04 = {"-h", "-v"}; + final String[] args04 = + { "-h", "-v" }; try { final String result = apexArguments.parse(args04); assertTrue(result.startsWith("usage: org.onap.policy.apex.service.engine.main.ApexMain [options...]")); @@ -82,14 +93,16 @@ public class TestApexCommandLineArguments { fail("Test should not throw an exception"); } - final String[] args05 = {"-a"}; + final String[] args05 = + { "-a" }; try { apexArguments.parse(args05); } catch (final ApexException e) { assertEquals("invalid command line arguments specified : Unrecognized option: -a", e.getMessage()); } - final String[] args06 = {"-c", "hello", "-m", "goodbye", "-h", "-v"}; + final String[] args06 = + { "-c", "hello", "-m", "goodbye", "-h", "-v" }; try { final String result = apexArguments.parse(args06); assertTrue(result.startsWith("usage: org.onap.policy.apex.service.engine.main.ApexMain [options...]")); @@ -97,13 +110,14 @@ public class TestApexCommandLineArguments { assertEquals("invalid command line arguments specified : Unrecognized option: -a", e.getMessage()); } - final String[] args07 = {"-c", "hello", "-m", "goodbye", "-h", "aaa"}; + final String[] args07 = + { "-c", "hello", "-m", "goodbye", "-h", "aaa" }; try { final String result = apexArguments.parse(args07); assertTrue(result.startsWith("usage: org.onap.policy.apex.service.engine.main.ApexMain [options...]")); } catch (final ApexException e) { assertEquals("too many command line arguments specified : [-c, hello, -m, goodbye, -h, aaa]", - e.getMessage()); + e.getMessage()); } } @@ -111,7 +125,8 @@ public class TestApexCommandLineArguments { public void testCommandLineFileParameters() { final ApexCommandLineArguments apexArguments = new ApexCommandLineArguments(); - final String[] args00 = {"-c", "zooby"}; + final String[] args00 = + { "-c", "zooby" }; try { apexArguments.parse(args00); apexArguments.validate(); @@ -120,7 +135,8 @@ public class TestApexCommandLineArguments { assertEquals("Apex configuration file \"zooby\" does not exist", e.getMessage()); } - final String[] args01 = {"-c"}; + final String[] args01 = + { "-c" }; try { apexArguments.parse(args01); apexArguments.validate(); @@ -129,7 +145,8 @@ public class TestApexCommandLineArguments { assertEquals("invalid command line arguments specified : Missing argument for option: c", e.getMessage()); } - final String[] args02 = {"-c", "src/test/resources/parameters/goodParams.json"}; + final String[] args02 = + { "-c", "src/test/resources/parameters/goodParams.json" }; try { apexArguments.parse(args02); apexArguments.validate(); @@ -138,7 +155,8 @@ public class TestApexCommandLineArguments { fail("Test should not throw an exception"); } - final String[] args03 = {"-c", "src/test/resources/parameters/goodParams.json", "-m", "zooby"}; + final String[] args03 = + { "-c", "src/test/resources/parameters/goodParams.json", "-m", "zooby" }; try { apexArguments.parse(args03); apexArguments.validate(); @@ -147,7 +165,8 @@ public class TestApexCommandLineArguments { assertEquals("Apex model file \"zooby\" does not exist", e.getMessage()); } - final String[] args04 = {"-m"}; + final String[] args04 = + { "-m" }; try { apexArguments.parse(args04); apexArguments.validate(); @@ -156,7 +175,8 @@ public class TestApexCommandLineArguments { assertEquals("invalid command line arguments specified : Missing argument for option: m", e.getMessage()); } - final String[] args05 = {"-c", "src/test/resources/parameters/goodParams.json", "-m"}; + final String[] args05 = + { "-c", "src/test/resources/parameters/goodParams.json", "-m" }; try { apexArguments.parse(args05); apexArguments.validate(); @@ -165,8 +185,9 @@ public class TestApexCommandLineArguments { assertEquals("invalid command line arguments specified : Missing argument for option: m", e.getMessage()); } - final String[] args06 = {"-c", "src/test/resources/parameters/goodParams.json", "-m", - "src/test/resources/main/DummyModelFile.json"}; + final String[] args06 = + { "-c", "src/test/resources/parameters/goodParams.json", "-m", + "src/test/resources/main/DummyModelFile.json" }; try { apexArguments.parse(args06); apexArguments.validate(); @@ -175,7 +196,8 @@ public class TestApexCommandLineArguments { fail("Test should not throw an exception"); } - final String[] args07 = {"-c", "parameters/goodParams.json", "-m", "main/DummyModelFile.json"}; + final String[] args07 = + { "-c", "parameters/goodParams.json", "-m", "main/DummyModelFile.json" }; try { apexArguments.parse(args07); apexArguments.validate(); @@ -184,4 +206,57 @@ public class TestApexCommandLineArguments { fail("Test should not throw an exception"); } } + + @Test + public void testCommandLineRelativeRootParameters() { + final ApexCommandLineArguments apexArguments = new ApexCommandLineArguments(); + + final String[] args00 = + { "-c", "src/test/resources/parameters/goodParams.json", "-rfr", "zooby" }; + try { + apexArguments.parse(args00); + apexArguments.validate(); + fail("Test should throw an exception here"); + } catch (final ApexException e) { + assertTrue(e.getMessage().contains("zooby\" does not exist or is not a directory")); + } + + final String[] args01 = + { "-rfr" }; + try { + apexArguments.parse(args01); + apexArguments.validate(); + fail("Test should throw an exception here"); + } catch (final ApexException e) { + assertEquals("invalid command line arguments specified : Missing argument for option: rfr", e.getMessage()); + } + + final String[] args02 = + { "-c", "src/test/resources/parameters/goodParams.json", "-rfr", "pom.xml" }; + try { + apexArguments.parse(args02); + apexArguments.validate(); + fail("Test should throw an exception here"); + } catch (final ApexException e) { + assertTrue(e.getMessage().contains("pom.xml\" does not exist or is not a directory")); + } + + final String[] args03 = + { "-c", "src/test/resources/parameters/goodParams.json", "-rfr", "target" }; + try { + apexArguments.parse(args03); + apexArguments.validate(); + } catch (final ApexException e) { + fail("Test should not throw an exception here"); + } + + final String[] args04 = + { "-c", "src/test/resources/parameters/goodParamsRelative.json", "-rfr", "src/test/resources" }; + try { + apexArguments.parse(args04); + apexArguments.validate(); + } catch (final ApexException e) { + fail("Test should not throw an exception here"); + } + } } diff --git a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ExecutorParameterTests.java b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ExecutorParameterTests.java index 5e42ede1a..e77767d44 100644 --- a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ExecutorParameterTests.java +++ b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ExecutorParameterTests.java @@ -21,8 +21,10 @@ package org.onap.policy.apex.service.engine.parameters; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; +import org.junit.After; import org.junit.Test; import org.onap.policy.apex.service.engine.main.ApexCommandLineArguments; import org.onap.policy.apex.service.parameters.ApexParameterHandler; @@ -35,16 +37,21 @@ import org.onap.policy.common.parameters.ParameterException; * @author Liam Fallon (liam.fallon@ericsson.com) */ public class ExecutorParameterTests { + @After + public void resetRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } @Test public void noParamsTest() { - final String[] args = {"-c", "src/test/resources/parameters/serviceExecutorNoParams.json"}; + final String[] args = + { "-c", "src/test/resources/parameters/serviceExecutorNoParams.json" }; final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); try { final ApexParameters parameters = new ApexParameterHandler().getParameters(arguments); - assertEquals(0, - parameters.getEngineServiceParameters().getEngineParameters().getExecutorParameterMap().size()); + assertEquals(0, parameters.getEngineServiceParameters().getEngineParameters().getExecutorParameterMap() + .size()); } catch (final ParameterException e) { fail("This test should not throw any exception: " + e.getMessage()); } @@ -52,24 +59,25 @@ public class ExecutorParameterTests { @Test public void badParamsTest() { - final String[] args = {"-c", "src/test/resources/parameters/serviceExecutorBadParams.json"}; + final String[] args = + { "-c", "src/test/resources/parameters/serviceExecutorBadParams.json" }; final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); try { new ApexParameterHandler().getParameters(arguments); fail("This test should throw an exception"); } catch (final ParameterException e) { - assertEquals( - "error reading parameters from \"src/test/resources/parameters/serviceExecutorBadParams.json\"\n" + assertEquals("error reading parameters from " + + "\"src/test/resources/parameters/serviceExecutorBadParams.json\"\n" + "(ParameterRuntimeException):value of \"executorParameters:ZOOBY\" entry is not " - + "a parameter JSON object", - e.getMessage()); + + "a parameter JSON object", e.getMessage()); } } @Test public void noExecutorParamsTest() { - final String[] args = {"-c", "src/test/resources/parameters/serviceExecutorNoExecutorParams.json"}; + final String[] args = + { "-c", "src/test/resources/parameters/serviceExecutorNoExecutorParams.json" }; final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); try { @@ -77,15 +85,16 @@ public class ExecutorParameterTests { fail("This test should throw an exception"); } catch (final ParameterException e) { assertEquals("error reading parameters from " - + "\"src/test/resources/parameters/serviceExecutorNoExecutorParams.json\"\n" - + "(ParameterRuntimeException):no \"executorParameters\" entry found in parameters," - + " at least one executor parameter entry must be specified", e.getMessage()); + + "\"src/test/resources/parameters/serviceExecutorNoExecutorParams.json\"\n" + + "(ParameterRuntimeException):no \"executorParameters\" entry found in parameters," + + " at least one executor parameter entry must be specified", e.getMessage()); } } @Test public void emptyParamsTest() { - final String[] args = {"-c", "src/test/resources/parameters/serviceExecutorEmptyParams.json"}; + final String[] args = + { "-c", "src/test/resources/parameters/serviceExecutorEmptyParams.json" }; final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); try { @@ -93,15 +102,16 @@ public class ExecutorParameterTests { fail("This test should throw an exception"); } catch (final ParameterException e) { assertEquals("error reading parameters from " - + "\"src/test/resources/parameters/serviceExecutorEmptyParams.json\"\n" - + "(ParameterRuntimeException):could not find field \"parameterClassName\" " - + "in \"executorParameters:ZOOBY\" entry", e.getMessage()); + + "\"src/test/resources/parameters/serviceExecutorEmptyParams.json\"\n" + + "(ParameterRuntimeException):could not find field \"parameterClassName\" " + + "in \"executorParameters:ZOOBY\" entry", e.getMessage()); } } @Test public void badPluginParamNameTest() { - final String[] args = {"-c", "src/test/resources/parameters/serviceExecutorBadPluginNameParams.json"}; + final String[] args = + { "-c", "src/test/resources/parameters/serviceExecutorBadPluginNameParams.json" }; final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); try { @@ -109,15 +119,16 @@ public class ExecutorParameterTests { fail("This test should throw an exception"); } catch (final ParameterException e) { assertEquals("error reading parameters from " - + "\"src/test/resources/parameters/serviceExecutorBadPluginNameParams.json\"\n" - + "(ParameterRuntimeException):could not find field \"parameterClassName\" " - + "in \"executorParameters:ZOOBY\" entry", e.getMessage()); + + "\"src/test/resources/parameters/serviceExecutorBadPluginNameParams.json\"\n" + + "(ParameterRuntimeException):could not find field \"parameterClassName\" " + + "in \"executorParameters:ZOOBY\" entry", e.getMessage()); } } @Test public void badPluginParamObjectTest() { - final String[] args = {"-c", "src/test/resources/parameters/serviceExecutorBadPluginValueObjectParams.json"}; + final String[] args = + { "-c", "src/test/resources/parameters/serviceExecutorBadPluginValueObjectParams.json" }; final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); try { @@ -125,15 +136,16 @@ public class ExecutorParameterTests { fail("This test should throw an exception"); } catch (final ParameterException e) { assertEquals("error reading parameters from " - + "\"src/test/resources/parameters/serviceExecutorBadPluginValueObjectParams.json\"\n" - + "(ParameterRuntimeException):value for field \"parameterClassName\" " - + "of \"executorParameters:LOOBY\" entry is not a plain string", e.getMessage()); + + "\"src/test/resources/parameters/serviceExecutorBadPluginValueObjectParams.json\"\n" + + "(ParameterRuntimeException):value for field \"parameterClassName\" " + + "of \"executorParameters:LOOBY\" entry is not a plain string", e.getMessage()); } } @Test public void badPluginParamBlankTest() { - final String[] args = {"-c", "src/test/resources/parameters/serviceExecutorBadPluginValueBlankParams.json"}; + final String[] args = + { "-c", "src/test/resources/parameters/serviceExecutorBadPluginValueBlankParams.json" }; final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); try { @@ -141,16 +153,16 @@ public class ExecutorParameterTests { fail("This test should throw an exception"); } catch (final ParameterException e) { assertEquals("error reading parameters from " - + "\"src/test/resources/parameters/serviceExecutorBadPluginValueBlankParams.json\"\n" - + "(ParameterRuntimeException):value for field \"parameterClassName\" " - + "in \"executorParameters:LOOBY\" entry is not specified or is blank", e.getMessage()); + + "\"src/test/resources/parameters/serviceExecutorBadPluginValueBlankParams.json\"\n" + + "(ParameterRuntimeException):value for field \"parameterClassName\" " + + "in \"executorParameters:LOOBY\" entry is not specified or is blank", e.getMessage()); } } - @Test public void badPluginParamValueTest() { - final String[] args = {"-c", "src/test/resources/parameters/serviceExecutorBadPluginValueParams.json"}; + final String[] args = + { "-c", "src/test/resources/parameters/serviceExecutorBadPluginValueParams.json" }; final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); try { @@ -158,16 +170,36 @@ public class ExecutorParameterTests { fail("This test should throw an exception"); } catch (final ParameterException e) { assertEquals("error reading parameters from" - + " \"src/test/resources/parameters/serviceExecutorBadPluginValueParams.json\"\n" - + "(ParameterRuntimeException):failed to deserialize the parameters " - + "for \"executorParameters:LOOBY\" to parameter class \"helloworld\"\n" - + "java.lang.ClassNotFoundException: helloworld", e.getMessage()); + + " \"src/test/resources/parameters/serviceExecutorBadPluginValueParams.json\"\n" + + "(ParameterRuntimeException):failed to deserialize the parameters " + + "for \"executorParameters:LOOBY\" to parameter class \"helloworld\"\n" + + "java.lang.ClassNotFoundException: helloworld", e.getMessage()); } } @Test public void goodParametersTest() { - final String[] args = {"-c", "src/test/resources/parameters/goodParams.json"}; + final String[] args = + { "-c", "src/test/resources/parameters/goodParams.json" }; + final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); + + try { + final ApexParameters parameters = new ApexParameterHandler().getParameters(arguments); + + assertEquals("MyApexEngine", parameters.getEngineServiceParameters().getName()); + assertEquals("0.0.1", parameters.getEngineServiceParameters().getVersion()); + assertEquals(45, parameters.getEngineServiceParameters().getId()); + assertEquals(19, parameters.getEngineServiceParameters().getInstanceCount()); + assertEquals(65522, parameters.getEngineServiceParameters().getDeploymentPort()); + } catch (final ParameterException e) { + fail("This test should not throw any exception: " + e.getMessage()); + } + } + + @Test + public void relativeParametersTest() { + final String[] args = + { "-rfr", "src/test/resources", "-c", "src/test/resources/parameters/goodParamsRelative.json" }; final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); try { @@ -178,6 +210,8 @@ public class ExecutorParameterTests { assertEquals(45, parameters.getEngineServiceParameters().getId()); assertEquals(19, parameters.getEngineServiceParameters().getInstanceCount()); assertEquals(65522, parameters.getEngineServiceParameters().getDeploymentPort()); + assertTrue(parameters.getEngineServiceParameters().getPolicyModelFileName() + .endsWith("/src/test/resources/policymodels/SmallModel.json")); } catch (final ParameterException e) { fail("This test should not throw any exception: " + e.getMessage()); } diff --git a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ParameterTests.java b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ParameterTests.java index 7b71253b0..61518b84f 100644 --- a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ParameterTests.java +++ b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ParameterTests.java @@ -150,7 +150,7 @@ public class ParameterTests { + " field \"deploymentPort\" type \"int\" value \"65536\" INVALID, " + "deploymentPort [65536] invalid, must be specified as 1024 <= port <= 65535\n" + " field \"policyModelFileName\" type \"java.lang.String\" " - + "value \"/some/file/name.xml\" INVALID, not found or is not a plain file\n" + + "value \"/some/file/name.xml\" INVALID, not found\n" + " parameter group map \"eventOutputParameters\" INVALID, " + "parameter group has status INVALID\n" + " parameter group \"FirstProducer\" type " + "\"org.onap.policy.apex.service.parameters.eventhandler.EventHandlerParameters\" INVALID" @@ -159,8 +159,7 @@ public class ParameterTests { + "filecarrierplugin.FileCarrierTechnologyParameters\" INVALID, " + "parameter group has status INVALID\n" + " field \"fileName\" type \"java.lang.String\" value \"null\" INVALID, " - + "fileName not specified or is blank or null, " - + "it must be specified as a valid file location\n" + + "\"null\" invalid, must be specified as a non-empty string\n" + " parameter group map \"eventInputParameters\" INVALID, " + "parameter group has status INVALID\n" + " parameter group \"TheFileConsumer1\" type " + "\"org.onap.policy.apex.service.parameters.eventhandler.EventHandlerParameters\" INVALID" @@ -169,8 +168,29 @@ public class ParameterTests { + "filecarrierplugin.FileCarrierTechnologyParameters\" INVALID, " + "parameter group has status INVALID\n" + " field \"fileName\" type \"java.lang.String\" value \"null\" INVALID, " - + "fileName not specified or is blank or null, " - + "it must be specified as a valid file location\n", e.getMessage()); + + "\"null\" invalid, must be specified as a non-empty string\n", e.getMessage()); + } + } + + @Test + public void modelNotFileTest() { + final String[] args = + { "-c", "src/test/resources/parameters/badParamsModelNotFile.json" }; + final ApexCommandLineArguments arguments = new ApexCommandLineArguments(args); + + try { + new ApexParameterHandler().getParameters(arguments); + fail("This test should throw an exception"); + } catch (final ParameterException e) { + assertEquals("validation error(s) on parameters from " + + "\"src/test/resources/parameters/badParamsModelNotFile.json\"\n" + + "parameter group \"APEX_PARAMETERS\" type " + + "\"org.onap.policy.apex.service.parameters.ApexParameters\" INVALID, " + + "parameter group has status INVALID\n" + " parameter group \"MyApexEngine\" type " + + "\"org.onap.policy.apex.service.parameters.engineservice.EngineServiceParameters\" " + + "INVALID, parameter group has status INVALID\n" + " field \"policyModelFileName\" " + + "type \"java.lang.String\" value \"src/test\" INVALID, is not a plain file\n", + e.getMessage()); } } @@ -257,8 +277,8 @@ public class ParameterTests { assertTrue(prodCarrierTech instanceof SuperDooperCarrierTechnologyParameters); - final SuperDooperCarrierTechnologyParameters superDooperParameters = - (SuperDooperCarrierTechnologyParameters) prodCarrierTech; + final SuperDooperCarrierTechnologyParameters superDooperParameters + = (SuperDooperCarrierTechnologyParameters) prodCarrierTech; assertEquals("somehost:12345", superDooperParameters.getBootstrapServers()); assertEquals("0", superDooperParameters.getAcks()); assertEquals(25, superDooperParameters.getRetries()); diff --git a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ProducerConsumerTests.java b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ProducerConsumerTests.java index 374a2df14..87f1adc02 100644 --- a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ProducerConsumerTests.java +++ b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/parameters/ProducerConsumerTests.java @@ -21,6 +21,7 @@ package org.onap.policy.apex.service.engine.parameters; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.junit.Test; @@ -120,8 +121,7 @@ public class ProducerConsumerTests { + "filecarrierplugin.FileCarrierTechnologyParameters\" INVALID, " + "parameter group has status INVALID\n" + " field \"fileName\" type \"java.lang.String\" value \"null\" INVALID, " - + "fileName not specified or is blank or null, " - + "it must be specified as a valid file location\n", e.getMessage()); + + "\"null\" invalid, must be specified as a non-empty string\n", e.getMessage()); } } @@ -191,7 +191,7 @@ public class ProducerConsumerTests { final ApexParameters parameters = new ApexParameterHandler().getParameters(arguments); final FileCarrierTechnologyParameters fileParams = (FileCarrierTechnologyParameters) parameters .getEventOutputParameters().get("aProducer").getCarrierTechnologyParameters(); - assertEquals("/tmp/aaa.json", fileParams.getFileName()); + assertTrue(fileParams.getFileName().endsWith("target/aaa.json")); assertEquals(false, fileParams.isStandardError()); assertEquals(false, fileParams.isStandardIo()); assertEquals(false, fileParams.isStreamingMode()); @@ -223,8 +223,7 @@ public class ProducerConsumerTests { + "filecarrierplugin.FileCarrierTechnologyParameters\" INVALID, " + "parameter group has status INVALID\n" + " field \"fileName\" type " + "\"java.lang.String\" value \"null\" INVALID, " - + "fileName not specified or is blank or null, " - + "it must be specified as a valid file location\n", e.getMessage()); + + "\"null\" invalid, must be specified as a non-empty string\n", e.getMessage()); } } diff --git a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/runtime/impl/EngineServiceImplTest.java b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/runtime/impl/EngineServiceImplTest.java index f68a4872b..fcb207c62 100644 --- a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/runtime/impl/EngineServiceImplTest.java +++ b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/runtime/impl/EngineServiceImplTest.java @@ -59,7 +59,7 @@ import org.onap.policy.common.parameters.ParameterService; public class EngineServiceImplTest { private static String simpleModelString; - private static String mfpModelString; + private static String differentModelString; private static AxPolicyModel simpleModel; /** @@ -71,9 +71,10 @@ public class EngineServiceImplTest { @BeforeClass public static void readSimpleModel() throws IOException, ApexModelException { simpleModelString = TextFileUtils - .getTextFileAsString("src/test/resources/policymodels/SamplePolicyModelJAVASCRIPT.json"); + .getTextFileAsString("src/test/resources/policymodels/SmallModel.json"); - mfpModelString = TextFileUtils.getTextFileAsString("src/test/resources/policymodels/MyFirstPolicyModel.json"); + differentModelString = TextFileUtils + .getTextFileAsString("src/test/resources/policymodels/SmallModelDifferent.json"); final ApexModelReader modelReader = new ApexModelReader<>(AxPolicyModel.class); simpleModel = modelReader.read(new ByteArrayInputStream(simpleModelString.getBytes())); @@ -177,7 +178,7 @@ public class EngineServiceImplTest { } catch (Exception apEx) { assertEquals("removeEventListener()<-Engine-0:0.0.1,STOPPED, listenerName is null", apEx.getMessage()); } - + esImpl.deregisterActionListener("DummyListener"); assertEquals(esImpl, esImpl.getEngineServiceEventInterface()); @@ -425,17 +426,17 @@ public class EngineServiceImplTest { } try { - esImpl.updateModel(config.getEngineKey(), mfpModelString, false); + esImpl.updateModel(config.getEngineKey(), differentModelString, false); fail("test should throw an exception"); } catch (ApexException apEx) { - assertEquals("apex model update failed, supplied model with key \"MyFirstPolicyModel:0.0.1\" is not a " + assertEquals("apex model update failed, supplied model with key \"SmallModelDifferent:0.0.1\" is not a " + "compatible model update " - + "from the existing engine model with key \"SamplePolicyModelJAVASCRIPT:0.0.1\"", + + "from the existing engine model with key \"SmallModel:0.0.1\"", apEx.getMessage()); } try { - esImpl.updateModel(config.getEngineKey(), mfpModelString, true); + esImpl.updateModel(config.getEngineKey(), differentModelString, true); } catch (ApexException apEx) { fail("test should not throw an exception"); } diff --git a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/runtime/impl/EngineWorkerTest.java b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/runtime/impl/EngineWorkerTest.java index 1f8052d4a..87a523506 100644 --- a/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/runtime/impl/EngineWorkerTest.java +++ b/services/services-engine/src/test/java/org/onap/policy/apex/service/engine/runtime/impl/EngineWorkerTest.java @@ -64,7 +64,7 @@ public class EngineWorkerTest { private final ApplicationThreadFactory atFactory = new ApplicationThreadFactory("apex-engine-service", 512); private static String simpleModelString; - private static String mfpModelString; + private static String differentModelString; private static AxPolicyModel simpleModel; /** @@ -75,10 +75,10 @@ public class EngineWorkerTest { */ @BeforeClass public static void readSimpleModel() throws IOException, ApexModelException { - simpleModelString = TextFileUtils - .getTextFileAsString("src/test/resources/policymodels/SamplePolicyModelJAVASCRIPT.json"); + simpleModelString = TextFileUtils.getTextFileAsString("src/test/resources/policymodels/SmallModel.json"); - mfpModelString = TextFileUtils.getTextFileAsString("src/test/resources/policymodels/MyFirstPolicyModel.json"); + differentModelString = TextFileUtils + .getTextFileAsString("src/test/resources/policymodels/SmallModelDifferent.json"); final ApexModelReader modelReader = new ApexModelReader<>(AxPolicyModel.class); simpleModel = modelReader.read(new ByteArrayInputStream(simpleModelString.getBytes())); @@ -161,9 +161,9 @@ public class EngineWorkerTest { } catch (Exception apEx) { assertEquals("addEventListener()<-Worker:0.0.1,STOPPED, listenerName is null", apEx.getMessage()); } - + worker.registerActionListener("DummyListener", null); - + try { worker.registerActionListener(null, new DummyApexEventListener()); fail("test should throw an exception"); @@ -172,7 +172,7 @@ public class EngineWorkerTest { } worker.registerActionListener("DummyListener", new DummyApexEventListener()); - + try { worker.deregisterActionListener(null); fail("test should throw an exception"); @@ -344,17 +344,16 @@ public class EngineWorkerTest { eventQueue.add(new ApexEvent("SomeEvent", "0.0.1", "the.event.namespace", "EventSource", "EventTarget")); try { - worker.updateModel(worker.getKey(), mfpModelString, false); + worker.updateModel(worker.getKey(), differentModelString, false); fail("test should throw an exception"); } catch (ApexException apEx) { - assertEquals("apex model update failed, supplied model with key \"MyFirstPolicyModel:0.0.1\" is not a " + assertEquals("apex model update failed, supplied model with key \"SmallModelDifferent:0.0.1\" is not a " + "compatible model update " - + "from the existing engine model with key \"SamplePolicyModelJAVASCRIPT:0.0.1\"", - apEx.getMessage()); + + "from the existing engine model with key \"SmallModel:0.0.1\"", apEx.getMessage()); } try { - worker.updateModel(worker.getKey(), mfpModelString, true); + worker.updateModel(worker.getKey(), differentModelString, true); } catch (ApexException apEx) { fail("test should not throw an exception"); } diff --git a/services/services-engine/src/test/resources/parameters/badParamsModelNotFile.json b/services/services-engine/src/test/resources/parameters/badParamsModelNotFile.json new file mode 100644 index 000000000..8dec995be --- /dev/null +++ b/services/services-engine/src/test/resources/parameters/badParamsModelNotFile.json @@ -0,0 +1,64 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 19, + "deploymentPort": 65522, + "policyModelFileName": "src/test", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "target/aaa.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "MyOtherProducer": { + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "target/aaa.json" + } + } + } + }, + "eventInputParameters": { + "TheFileConsumer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "target/bbb.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "MySuperDooperConsumer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "SUPER_DOOPER", + "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "SUPER_TOK_DEL", + "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperTokenDelimitedEventProtocolParameters" + } + } + } +} \ No newline at end of file diff --git a/services/services-engine/src/test/resources/parameters/factoryGoodParams.json b/services/services-engine/src/test/resources/parameters/factoryGoodParams.json index 54b58ce00..87448f5e7 100644 --- a/services/services-engine/src/test/resources/parameters/factoryGoodParams.json +++ b/services/services-engine/src/test/resources/parameters/factoryGoodParams.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -30,7 +30,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -43,7 +43,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/goodParams.json b/services/services-engine/src/test/resources/parameters/goodParams.json index c470f3eea..f323b0b51 100644 --- a/services/services-engine/src/test/resources/parameters/goodParams.json +++ b/services/services-engine/src/test/resources/parameters/goodParams.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } } } @@ -43,7 +43,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/goodParamsRelative.json b/services/services-engine/src/test/resources/parameters/goodParamsRelative.json new file mode 100644 index 000000000..b3d193111 --- /dev/null +++ b/services/services-engine/src/test/resources/parameters/goodParamsRelative.json @@ -0,0 +1,64 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 19, + "deploymentPort": 65522, + "policyModelFileName": "policymodels/SmallModel.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "aaa.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "MyOtherProducer": { + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "aaa.json" + } + } + } + }, + "eventInputParameters": { + "TheFileConsumer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "bbb.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "MySuperDooperConsumer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "SUPER_DOOPER", + "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "SUPER_TOK_DEL", + "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperTokenDelimitedEventProtocolParameters" + } + } + } +} \ No newline at end of file diff --git a/services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json b/services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json index bb431279e..48c2dc905 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json +++ b/services/services-engine/src/test/resources/parameters/prodConsBadCTParClass.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsBadEPParClass.json b/services/services-engine/src/test/resources/parameters/prodConsBadEPParClass.json index 7b1f1c099..51e9c3972 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsBadEPParClass.json +++ b/services/services-engine/src/test/resources/parameters/prodConsBadEPParClass.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsBadFileName.json b/services/services-engine/src/test/resources/parameters/prodConsBadFileName.json index 2dc506561..38fba4480 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsBadFileName.json +++ b/services/services-engine/src/test/resources/parameters/prodConsBadFileName.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } diff --git a/services/services-engine/src/test/resources/parameters/prodConsMismatchCTParClass.json b/services/services-engine/src/test/resources/parameters/prodConsMismatchCTParClass.json index e8d1a9632..42c3e69ee 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsMismatchCTParClass.json +++ b/services/services-engine/src/test/resources/parameters/prodConsMismatchCTParClass.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsMismatchEPParClass.json b/services/services-engine/src/test/resources/parameters/prodConsMismatchEPParClass.json index 89e905c3a..1bb893218 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsMismatchEPParClass.json +++ b/services/services-engine/src/test/resources/parameters/prodConsMismatchEPParClass.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsNoCT.json b/services/services-engine/src/test/resources/parameters/prodConsNoCT.json index cbd9957c8..e94f05a5b 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsNoCT.json +++ b/services/services-engine/src/test/resources/parameters/prodConsNoCT.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsNoCTParClass.json b/services/services-engine/src/test/resources/parameters/prodConsNoCTParClass.json index 9c8723a81..07d50b30f 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsNoCTParClass.json +++ b/services/services-engine/src/test/resources/parameters/prodConsNoCTParClass.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsNoEP.json b/services/services-engine/src/test/resources/parameters/prodConsNoEP.json index 92c089225..bdb780f4a 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsNoEP.json +++ b/services/services-engine/src/test/resources/parameters/prodConsNoEP.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsNoEPParClass.json b/services/services-engine/src/test/resources/parameters/prodConsNoEPParClass.json index 8aea0ea3e..f39173ff8 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsNoEPParClass.json +++ b/services/services-engine/src/test/resources/parameters/prodConsNoEPParClass.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsOKFileName.json b/services/services-engine/src/test/resources/parameters/prodConsOKFileName.json index b2424043e..938c318a7 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsOKFileName.json +++ b/services/services-engine/src/test/resources/parameters/prodConsOKFileName.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsWrongTypeCTParClass.json b/services/services-engine/src/test/resources/parameters/prodConsWrongTypeCTParClass.json index 6bfab6a99..adbda5c13 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsWrongTypeCTParClass.json +++ b/services/services-engine/src/test/resources/parameters/prodConsWrongTypeCTParClass.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/prodConsWrongTypeEPParClass.json b/services/services-engine/src/test/resources/parameters/prodConsWrongTypeEPParClass.json index d72139de8..bbc50bde6 100644 --- a/services/services-engine/src/test/resources/parameters/prodConsWrongTypeEPParClass.json +++ b/services/services-engine/src/test/resources/parameters/prodConsWrongTypeEPParClass.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/serviceContextBadClassDistParams.json b/services/services-engine/src/test/resources/parameters/serviceContextBadClassDistParams.json index 6468e10a4..12f22c1eb 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextBadClassDistParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextBadClassDistParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters", diff --git a/services/services-engine/src/test/resources/parameters/serviceContextBadClassLockParams.json b/services/services-engine/src/test/resources/parameters/serviceContextBadClassLockParams.json index 57a38024d..00e6ca64a 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextBadClassLockParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextBadClassLockParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters", @@ -14,7 +14,7 @@ } }, "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } diff --git a/services/services-engine/src/test/resources/parameters/serviceContextBadClassParams.json b/services/services-engine/src/test/resources/parameters/serviceContextBadClassParams.json index a2920303a..c10172d23 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextBadClassParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextBadClassParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "java.lang.Integer" diff --git a/services/services-engine/src/test/resources/parameters/serviceContextBadClassPersistParams.json b/services/services-engine/src/test/resources/parameters/serviceContextBadClassPersistParams.json index 598c20bd7..8c2331e32 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextBadClassPersistParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextBadClassPersistParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters", @@ -14,7 +14,7 @@ } }, "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } diff --git a/services/services-engine/src/test/resources/parameters/serviceContextBadParams.json b/services/services-engine/src/test/resources/parameters/serviceContextBadParams.json index d850ba290..abb6b18cf 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextBadParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextBadParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "hello" diff --git a/services/services-engine/src/test/resources/parameters/serviceContextBadPluginClassParams.json b/services/services-engine/src/test/resources/parameters/serviceContextBadPluginClassParams.json index beb049069..1083f18b1 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextBadPluginClassParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextBadPluginClassParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" diff --git a/services/services-engine/src/test/resources/parameters/serviceContextBadPluginNameParams.json b/services/services-engine/src/test/resources/parameters/serviceContextBadPluginNameParams.json index d152809fa..7d9d8900c 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextBadPluginNameParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextBadPluginNameParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassNamelooby": "" diff --git a/services/services-engine/src/test/resources/parameters/serviceContextNoParams.json b/services/services-engine/src/test/resources/parameters/serviceContextNoParams.json index 2d6cb4d85..44c53bb29 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextNoParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextNoParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { diff --git a/services/services-engine/src/test/resources/parameters/serviceContextOKDefaultParams.json b/services/services-engine/src/test/resources/parameters/serviceContextOKDefaultParams.json index 56294a3c7..f4fee9fa9 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextOKDefaultParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextOKDefaultParams.json @@ -5,13 +5,13 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters" }, "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -22,7 +22,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/serviceContextOKDistParams.json b/services/services-engine/src/test/resources/parameters/serviceContextOKDistParams.json index 1aa2abb0b..5aff80d94 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextOKDistParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextOKDistParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters", @@ -14,7 +14,7 @@ } }, "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -25,7 +25,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/serviceContextOKFlushParams.json b/services/services-engine/src/test/resources/parameters/serviceContextOKFlushParams.json index 7d9eb6f2e..8bae50523 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextOKFlushParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextOKFlushParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters", @@ -15,7 +15,7 @@ } }, "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -26,7 +26,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/serviceContextOKFullParams.json b/services/services-engine/src/test/resources/parameters/serviceContextOKFullParams.json index edbcb07df..24544d2ab 100644 --- a/services/services-engine/src/test/resources/parameters/serviceContextOKFullParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceContextOKFullParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "contextParameters": { "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters", @@ -25,7 +25,7 @@ } }, "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -36,7 +36,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/serviceExecutorBadParams.json b/services/services-engine/src/test/resources/parameters/serviceExecutorBadParams.json index 839694af3..f9f50ee07 100644 --- a/services/services-engine/src/test/resources/parameters/serviceExecutorBadParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceExecutorBadParams.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" }, "ZOOBY": "hello" diff --git a/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginNameParams.json b/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginNameParams.json index 5a28d8985..4a28d58aa 100644 --- a/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginNameParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginNameParams.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" }, "ZOOBY": { diff --git a/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueBlankParams.json b/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueBlankParams.json index c70fa4c8b..7dd74ea34 100644 --- a/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueBlankParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueBlankParams.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" }, "ZOOBY": { diff --git a/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueObjectParams.json b/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueObjectParams.json index 200d8f1a5..2f7219f46 100644 --- a/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueObjectParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueObjectParams.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" }, "ZOOBY": { diff --git a/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueParams.json b/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueParams.json index b96a27409..39618055f 100644 --- a/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceExecutorBadPluginValueParams.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" }, "ZOOBY": { diff --git a/services/services-engine/src/test/resources/parameters/serviceExecutorEmptyParams.json b/services/services-engine/src/test/resources/parameters/serviceExecutorEmptyParams.json index f07eaff9d..3927740e3 100644 --- a/services/services-engine/src/test/resources/parameters/serviceExecutorEmptyParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceExecutorEmptyParams.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" }, "ZOOBY": { diff --git a/services/services-engine/src/test/resources/parameters/serviceExecutorNoExecutorParams.json b/services/services-engine/src/test/resources/parameters/serviceExecutorNoExecutorParams.json index 44d643cd2..0c6618f2e 100644 --- a/services/services-engine/src/test/resources/parameters/serviceExecutorNoExecutorParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceExecutorNoExecutorParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "someParameter": "someValue" } diff --git a/services/services-engine/src/test/resources/parameters/serviceExecutorNoParams.json b/services/services-engine/src/test/resources/parameters/serviceExecutorNoParams.json index 751ac2171..4eb6fe024 100644 --- a/services/services-engine/src/test/resources/parameters/serviceExecutorNoParams.json +++ b/services/services-engine/src/test/resources/parameters/serviceExecutorNoParams.json @@ -5,7 +5,7 @@ "id": 45, "instanceCount": 345, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { @@ -17,7 +17,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/syncBadParamsBadPeers.json b/services/services-engine/src/test/resources/parameters/syncBadParamsBadPeers.json index 6393d4864..355531417 100644 --- a/services/services-engine/src/test/resources/parameters/syncBadParamsBadPeers.json +++ b/services/services-engine/src/test/resources/parameters/syncBadParamsBadPeers.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -32,7 +32,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -47,7 +47,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/syncBadParamsBadTimeout.json b/services/services-engine/src/test/resources/parameters/syncBadParamsBadTimeout.json index a6de63f30..7a04a439a 100644 --- a/services/services-engine/src/test/resources/parameters/syncBadParamsBadTimeout.json +++ b/services/services-engine/src/test/resources/parameters/syncBadParamsBadTimeout.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "synchronousTimeout": 12345 @@ -44,7 +44,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/syncBadParamsInvalidTimeout.json b/services/services-engine/src/test/resources/parameters/syncBadParamsInvalidTimeout.json index ac24c8231..6a4270b27 100644 --- a/services/services-engine/src/test/resources/parameters/syncBadParamsInvalidTimeout.json +++ b/services/services-engine/src/test/resources/parameters/syncBadParamsInvalidTimeout.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -34,7 +34,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -55,7 +55,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/parameters/syncBadParamsNoSyncWithPeer.json b/services/services-engine/src/test/resources/parameters/syncBadParamsNoSyncWithPeer.json index 98840912f..8c6910a13 100644 --- a/services/services-engine/src/test/resources/parameters/syncBadParamsNoSyncWithPeer.json +++ b/services/services-engine/src/test/resources/parameters/syncBadParamsNoSyncWithPeer.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -31,7 +31,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -46,7 +46,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/syncBadParamsNotSyncWithPeer.json b/services/services-engine/src/test/resources/parameters/syncBadParamsNotSyncWithPeer.json index 477bf8639..e1ed8316a 100644 --- a/services/services-engine/src/test/resources/parameters/syncBadParamsNotSyncWithPeer.json +++ b/services/services-engine/src/test/resources/parameters/syncBadParamsNotSyncWithPeer.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -32,7 +32,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -47,7 +47,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } }, "eventProtocolParameters": { diff --git a/services/services-engine/src/test/resources/parameters/syncBadParamsUnpairedTimeout.json b/services/services-engine/src/test/resources/parameters/syncBadParamsUnpairedTimeout.json index 93c998b29..9e24926b9 100644 --- a/services/services-engine/src/test/resources/parameters/syncBadParamsUnpairedTimeout.json +++ b/services/services-engine/src/test/resources/parameters/syncBadParamsUnpairedTimeout.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -34,7 +34,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -55,7 +55,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/parameters/syncGoodParams.json b/services/services-engine/src/test/resources/parameters/syncGoodParams.json index b2980aaed..2a29254de 100644 --- a/services/services-engine/src/test/resources/parameters/syncGoodParams.json +++ b/services/services-engine/src/test/resources/parameters/syncGoodParams.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -52,7 +52,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/parameters/syncGoodParamsBothTimeout.json b/services/services-engine/src/test/resources/parameters/syncGoodParamsBothTimeout.json index 68626958d..1988b76bd 100644 --- a/services/services-engine/src/test/resources/parameters/syncGoodParamsBothTimeout.json +++ b/services/services-engine/src/test/resources/parameters/syncGoodParamsBothTimeout.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "synchronousTimeout": 12345, @@ -35,7 +35,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -55,7 +55,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/parameters/syncGoodParamsConsumerTimeout.json b/services/services-engine/src/test/resources/parameters/syncGoodParamsConsumerTimeout.json index d849040ac..b294a22f7 100644 --- a/services/services-engine/src/test/resources/parameters/syncGoodParamsConsumerTimeout.json +++ b/services/services-engine/src/test/resources/parameters/syncGoodParamsConsumerTimeout.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -53,7 +53,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/parameters/syncGoodParamsProducerTimeout.json b/services/services-engine/src/test/resources/parameters/syncGoodParamsProducerTimeout.json index b248259a4..824f0f6c2 100644 --- a/services/services-engine/src/test/resources/parameters/syncGoodParamsProducerTimeout.json +++ b/services/services-engine/src/test/resources/parameters/syncGoodParamsProducerTimeout.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -20,7 +20,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -34,7 +34,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -54,7 +54,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/parameters/syncMismatchedPeers.json b/services/services-engine/src/test/resources/parameters/syncMismatchedPeers.json index 9e5399d4f..4ca73fc74 100644 --- a/services/services-engine/src/test/resources/parameters/syncMismatchedPeers.json +++ b/services/services-engine/src/test/resources/parameters/syncMismatchedPeers.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -52,7 +52,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/parameters/syncMismatchedTimeout.json b/services/services-engine/src/test/resources/parameters/syncMismatchedTimeout.json index 378106825..e4f9ea335 100644 --- a/services/services-engine/src/test/resources/parameters/syncMismatchedTimeout.json +++ b/services/services-engine/src/test/resources/parameters/syncMismatchedTimeout.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -53,7 +53,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/parameters/syncUnusedConsumerPeers.json b/services/services-engine/src/test/resources/parameters/syncUnusedConsumerPeers.json index 71337f340..3f2c8c555 100644 --- a/services/services-engine/src/test/resources/parameters/syncUnusedConsumerPeers.json +++ b/services/services-engine/src/test/resources/parameters/syncUnusedConsumerPeers.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -52,7 +52,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/parameters/syncUnusedProducerPeers.json b/services/services-engine/src/test/resources/parameters/syncUnusedProducerPeers.json index 4fe58bacc..c377ea6fc 100644 --- a/services/services-engine/src/test/resources/parameters/syncUnusedProducerPeers.json +++ b/services/services-engine/src/test/resources/parameters/syncUnusedProducerPeers.json @@ -5,10 +5,10 @@ "id": 45, "instanceCount": 19, "deploymentPort": 65522, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "src/test/resources/policymodels/SmallModel.json", "engineParameters": { "executorParameters": { - "MVEL": { + "JAVASCRIPT": { "parameterClassName": "org.onap.policy.apex.service.engine.parameters.dummyclasses.SuperDooperExecutorParameters" } } @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/aaa.json" + "fileName": "target/aaa.json" } }, "eventProtocolParameters": { @@ -52,7 +52,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "/tmp/bbb.json" + "fileName": "target/bbb.json" } } }, diff --git a/services/services-engine/src/test/resources/policymodels/MyFirstPolicyModel.json b/services/services-engine/src/test/resources/policymodels/MyFirstPolicyModel.json deleted file mode 100644 index 39ca63271..000000000 --- a/services/services-engine/src/test/resources/policymodels/MyFirstPolicyModel.json +++ /dev/null @@ -1,974 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "MyFirstPolicyModel", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "MyFirstPolicyModel_KeyInfo", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "UUID" : "3351b0f4-cf06-4fa2-8823-edf67bd30223", - "description" : "This task checks if the sales request is for an item that contains alcohol. \nIf the local time is between 00:00:00 and 11:30:00 then the sale is not authorised. Otherwise the sale is authorised. \nIn this implementation we assume that all items with item_ID values between 1000 and 2000 contain alcohol :-)" - } - }, { - "key" : { - "name" : "MyFirstPolicy", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicy", - "version" : "0.0.1" - }, - "UUID" : "6c5e410f-489a-46ff-964e-982ce6e8b6d0", - "description" : "This is my first Apex policy. It checks if a sale should be authorised or not." - } - }, { - "key" : { - "name" : "MyFirstPolicyModel", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel", - "version" : "0.0.1" - }, - "UUID" : "540226fb-55ee-4f0e-a444-983a0494818e", - "description" : "This is my first Apex Policy Model." - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Albums", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Albums", - "version" : "0.0.1" - }, - "UUID" : "3f70ec50-f896-31ba-afec-5fd47e69045b", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Albums:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Events", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Events", - "version" : "0.0.1" - }, - "UUID" : "ef281318-5ac9-3ef0-8db3-8f9c4e4a81e2", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Events:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_KeyInfo", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_KeyInfo", - "version" : "0.0.1" - }, - "UUID" : "d9248c6f-7c00-38df-8251-611463ba4065", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_KeyInfo:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Policies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Policies", - "version" : "0.0.1" - }, - "UUID" : "77c01a6b-510c-3aa9-b640-b4db356aa03b", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Policies:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Schemas", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Schemas", - "version" : "0.0.1" - }, - "UUID" : "d0cc3aa0-ea69-3a43-80ff-a0dbb0ebd885", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Schemas:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Tasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Tasks", - "version" : "0.0.1" - }, - "UUID" : "b02a7e02-2cd0-39e6-b3cb-946fa83a8f08", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Tasks:0.0.1\"" - } - }, { - "key" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "UUID" : "c4500941-3f98-4080-a9cc-5b9753ed050b", - "description" : "An event emitted by the Policy to indicate whether the sale of an item has been authorised" - } - }, { - "key" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "UUID" : "4f04aa98-e917-4f4a-882a-c75ba5a99374", - "description" : "An event raised by the PoS system each time an item is scanned for purchase" - } - }, { - "key" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "UUID" : "36df4c71-9616-4206-8b53-976a5cd4bd87", - "description" : "A type for 'assistant_ID' values" - } - }, { - "key" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "UUID" : "d48b619e-d00d-4008-b884-02d76ea4350b", - "description" : "A type for 'authorised' values" - } - }, { - "key" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "UUID" : "6468845f-4122-4128-8e49-0f52c26078b5", - "description" : "A type for 'branch_ID' values" - } - }, { - "key" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "UUID" : "4f227ff1-aee0-453a-b6b6-9a4b2e0da932", - "description" : "A type for 'item_ID' values" - } - }, { - "key" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "UUID" : "ad1431bb-3155-4e73-b5a3-b89bee498749", - "description" : "A type for 'message' values" - } - }, { - "key" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "UUID" : "eecfde90-896c-4343-8f9c-2603ced94e2d", - "description" : "A type for 'notes' values" - } - }, { - "key" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "UUID" : "52c2fc45-fd8c-463c-bd6f-d91b0554aea7", - "description" : "A type for 'amount'/'price' values" - } - }, { - "key" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "UUID" : "ac3d9842-80af-4a98-951c-bd79a431c613", - "description" : "A type for 'quantity' values" - } - }, { - "key" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "UUID" : "cca47d74-7754-4a61-b163-ca31f66b157b", - "description" : "A type for 'sale_ID' values" - } - }, { - "key" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "UUID" : "fd594e88-411d-4a94-b2be-697b3a0d7adf", - "description" : "A type for 'time' values" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "MyFirstPolicyModel_Policies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "MyFirstPolicy", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "MyFirstPolicy", - "version" : "0.0.1" - }, - "template" : "FREEFORM", - "state" : { - "entry" : [ { - "key" : "BoozeAuthDecide", - "value" : { - "stateKey" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "BoozeAuthDecide" - }, - "trigger" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "MorningBoozeCheck_Output_Direct", - "value" : { - "key" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "BoozeAuthDecide", - "localName" : "MorningBoozeCheck_Output_Direct" - }, - "outgoingEvent" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "BoozeAuthDecide", - "localName" : "MorningBoozeCheck" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "BoozeAuthDecide", - "localName" : "MorningBoozeCheck_Output_Direct" - } - } - } ] - } - } - } ] - }, - "firstState" : "BoozeAuthDecide" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "MyFirstPolicyModel_Tasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "authorised", - "value" : { - "key" : "authorised", - "fieldSchemaKey" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "message", - "value" : { - "key" : "message", - "fieldSchemaKey" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "optional" : true - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nimport java.util.Date;\nimport java.util.Calendar;\nimport java.util.TimeZone;\nimport java.text.SimpleDateFormat;\n\nlogger.info(\"Task Execution: '\"+subject.id+\"'. Input Fields: '\"+inFields+\"'\");\n\noutFields.put(\"amount\" , inFields.get(\"amount\"));\noutFields.put(\"assistant_ID\", inFields.get(\"assistant_ID\"));\noutFields.put(\"notes\" , inFields.get(\"notes\"));\noutFields.put(\"quantity\" , inFields.get(\"quantity\"));\noutFields.put(\"branch_ID\" , inFields.get(\"branch_ID\"));\noutFields.put(\"item_ID\" , inFields.get(\"item_ID\"));\noutFields.put(\"time\" , inFields.get(\"time\"));\noutFields.put(\"sale_ID\" , inFields.get(\"sale_ID\"));\n\nitem_id = inFields.get(\"item_ID\");\n\n//The events used later to test this task use GMT timezone!\ngmt = TimeZone.getTimeZone(\"GMT\");\ntimenow = Calendar.getInstance(gmt);\ndf = new SimpleDateFormat(\"HH:mm:ss z\");\ndf.setTimeZone(gmt);\ntimenow.setTimeInMillis(inFields.get(\"time\"));\n\nmidnight = timenow.clone();\nmidnight.set(\n timenow.get(Calendar.YEAR),timenow.get(Calendar.MONTH),\n timenow.get(Calendar.DATE),0,0,0);\neleven30 = timenow.clone();\neleven30.set(\n timenow.get(Calendar.YEAR),timenow.get(Calendar.MONTH),\n timenow.get(Calendar.DATE),11,30,0);\n\nitemisalcohol = false;\nif(item_id != null && item_id >=1000 && item_id < 2000)\n itemisalcohol = true;\n\nif( itemisalcohol\n && timenow.after(midnight) && timenow.before(eleven30)){\n outFields.put(\"authorised\", false);\n outFields.put(\"message\", \"Sale not authorised by policy task \"+subject.taskName+\n \" for time \"+df.format(timenow.getTime())+\n \". Alcohol can not be sold between \"+df.format(midnight.getTime())+\n \" and \"+df.format(eleven30.getTime()));\n return true;\n}\nelse{\n outFields.put(\"authorised\", true);\n outFields.put(\"message\", \"Sale authorised by policy task \"+subject.taskName+\n \" for time \"+df.format(timenow.getTime()));\n return true;\n}\n\n/*\nThis task checks if a sale request is for an item that is an alcoholic drink.\nIf the local time is between 00:00:00 GMT and 11:30:00 GMT then the sale is not\nauthorised. Otherwise the sale is authorised. \nIn this implementation we assume that items with item_ID value between 1000 and \n2000 are all alcoholic drinks :-)\n*/" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "MyFirstPolicyModel_Events", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "nameSpace" : "com.hyperm", - "source" : "APEX", - "target" : "POS", - "parameter" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "authorised", - "value" : { - "key" : "authorised", - "fieldSchemaKey" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "message", - "value" : { - "key" : "message", - "fieldSchemaKey" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "optional" : true - } - } ] - } - } - }, { - "key" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "nameSpace" : "com.hyperm", - "source" : "POS", - "target" : "APEX", - "parameter" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "MyFirstPolicyModel_Albums", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ ] - } - }, - "schemas" : { - "key" : { - "name" : "MyFirstPolicyModel_Schemas", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Boolean" - } - }, { - "key" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/services/services-engine/src/test/resources/policymodels/SamplePolicyModelJAVASCRIPT.json b/services/services-engine/src/test/resources/policymodels/SamplePolicyModelJAVASCRIPT.json deleted file mode 100644 index 2dc4bcd3f..000000000 --- a/services/services-engine/src/test/resources/policymodels/SamplePolicyModelJAVASCRIPT.json +++ /dev/null @@ -1,6684 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "UUID" : "ca36bfd8-6042-3633-8c85-89c66507c3bf", - "description" : "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "UUID" : "465a81cc-885f-3a4d-bc4e-1508da92b236", - "description" : "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "UUID" : "36b2d570-fff7-3a4b-bab2-6bf492f5129a", - "description" : "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "UUID" : "ff6160a7-fb5e-379c-a6d2-2cd28053eacf", - "description" : "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "UUID" : "5899e216-2abf-3781-abc4-2c257b92721e", - "description" : "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "UUID" : "7c2692a7-4587-3d09-abf9-d96b339a316f", - "description" : "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "UUID" : "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7", - "description" : "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "UUID" : "edbfa868-2ab2-30fd-8078-4c7f67ca6122", - "description" : "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "UUID" : "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4", - "description" : "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "UUID" : "c2550912-10d9-3000-8826-377288cd6cb1", - "description" : "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "UUID" : "f6d75b71-c8a7-3337-a121-88d68c389f5a", - "description" : "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "UUID" : "0215644c-4531-375c-8335-d558b4de8c03", - "description" : "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "976a79e7-5c80-3c03-9503-da3f41fec395", - "description" : "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7", - "description" : "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "UUID" : "1ff2f905-685c-3caf-95bc-0bbc90345888", - "description" : "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "UUID" : "f54c3b2b-be76-31c4-adfc-87c494c06808", - "description" : "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "UUID" : "3410e939-30ca-32c4-a2d8-c30b6fee6eec", - "description" : "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "e27564c4-3cbf-3db2-9bf3-83ae80a2f907", - "description" : "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "UUID" : "d0b2b585-f344-33b8-af9e-250e7f4cfbce", - "description" : "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0", - "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "UUID" : "bc8ee312-81ce-3c4a-92d5-4a73b8077148", - "description" : "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "UUID" : "0589ff20-adcc-3ce5-95fe-8d7978ed54ed", - "description" : "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "UUID" : "095b126d-ca8b-32c9-ad52-d744e817a79c", - "description" : "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "UUID" : "3d786b4c-d9ee-3367-ab71-c67271a4ea2f", - "description" : "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "UUID" : "9231753e-20c5-3436-982f-9100340cc570", - "description" : "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "UUID" : "502383d3-483f-3a56-a426-2f0406674c8d", - "description" : "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "UUID" : "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf", - "description" : "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "UUID" : "ad3a89f5-e369-3c66-b22c-669f7b3653b8", - "description" : "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "UUID" : "56815939-1164-3867-9ed1-0a27ff8aafb3", - "description" : "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "UUID" : "0db0c566-ecd7-3e27-9865-4b82c893abdb", - "description" : "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "UUID" : "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0", - "description" : "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "UUID" : "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a", - "description" : "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "UUID" : "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66", - "description" : "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "UUID" : "051bcfd5-cf73-3c89-8ee7-ea6e005ec059", - "description" : "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "UUID" : "3754fe19-98f2-34a1-9f45-db31052208d8", - "description" : "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "UUID" : "8c200709-a180-3c8b-916f-275ff49ce194", - "description" : "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "UUID" : "a1a879c6-4510-33b0-bbd0-ad6256189a37", - "description" : "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "UUID" : "a7fab96b-ce1c-37ce-bbb2-556b6db524a5", - "description" : "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "UUID" : "0a652886-c88d-3f8c-8994-ae9161e7c963", - "description" : "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "UUID" : "8efba9fa-371e-33df-a7d6-88b0284e7fd0", - "description" : "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "UUID" : "3740077c-a2b3-356b-81dc-5ded2118a951", - "description" : "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "UUID" : "b5c7df95-9af5-322f-9ea8-eb440a2bf926", - "description" : "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "UUID" : "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b", - "description" : "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "UUID" : "093cda11-eaeb-3a46-a5b6-d5e30c00935b", - "description" : "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "UUID" : "569a758d-ba40-37c0-aebb-7ad138df25ac", - "description" : "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "UUID" : "252818d9-b61f-3962-a905-8865fb00fb04", - "description" : "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "UUID" : "fe1a5f7c-c083-377b-a797-752b01fc6c73", - "description" : "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "UUID" : "aa87d007-d07e-3f67-8c6d-0ebc3d85479d", - "description" : "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "UUID" : "126e7a3a-11b6-3f88-9397-c21d8819f859", - "description" : "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "UUID" : "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc", - "description" : "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "UUID" : "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6", - "description" : "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "UUID" : "32a2f355-77f3-3b25-ace6-7a9c5763a5ad", - "description" : "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "UUID" : "3f95472c-973e-30e2-95f1-bf00cbef909a", - "description" : "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "UUID" : "610dbbd4-9149-3b3c-9af4-819056f0e169", - "description" : "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "UUID" : "07fa8f68-55f1-3fd0-81c1-749a379753a7", - "description" : "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "UUID" : "d9c93cd1-539e-35c5-aaec-bb711ceb1251", - "description" : "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "UUID" : "683fe492-7eae-3ac7-9924-bb7850208d05", - "description" : "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "UUID" : "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0", - "description" : "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "UUID" : "97b73937-c344-33c0-924c-4d26b6449564", - "description" : "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "EXTERNAL", - "isWritable" : false, - "itemSchema" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "GLOBAL", - "isWritable" : true, - "itemSchema" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Byte" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/services/services-engine/src/test/resources/policymodels/SamplePolicyModelMVEL.json b/services/services-engine/src/test/resources/policymodels/SamplePolicyModelMVEL.json deleted file mode 100644 index 982444f36..000000000 --- a/services/services-engine/src/test/resources/policymodels/SamplePolicyModelMVEL.json +++ /dev/null @@ -1,7036 +0,0 @@ -{ - "apexPolicyModel": { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "keyInformation": { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "keyInfoMap": { - "entry": [ - { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "UUID": "2708db15-3117-4ef5-ae06-44ad4bc72756", - "description": "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, - { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "UUID": "20f7f2d0-36e1-4134-93d9-8978e0ebb916", - "description": "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, - { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "UUID": "bfa262fc-f59d-4b05-af44-a5b5c218b314", - "description": "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, - { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "UUID": "84eeac88-5031-4487-b67a-5a3ae13c1a89", - "description": "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, - { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "UUID": "7a46a411-1715-48d8-9e70-9b5d14bbbed4", - "description": "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, - { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "UUID": "da0ba1b4-f654-4e99-97b5-595de84cb3dc", - "description": "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, - { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "UUID": "1267b311-60e2-48a7-8d0e-23c4ea21d863", - "description": "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, - { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "UUID": "84013070-ff2e-4295-acbd-4128f0509040", - "description": "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, - { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "UUID": "6fb7761e-b86f-47fc-8e19-6a116600764e", - "description": "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, - { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "UUID": "141cc707-009c-4e3b-a0f8-c346f074f590", - "description": "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, - { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "UUID": "98f4d09f-ff73-4385-8876-df6d04b552cc", - "description": "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, - { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "UUID": "889f6414-bc4d-4f29-b7af-175e63d23ac5", - "description": "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, - { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "UUID": "64e4911c-5aed-467f-be19-277fb6170857", - "description": "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "UUID": "cb6a1892-8c3c-44df-b8a7-0e5a333ff9eb", - "description": "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "UUID": "f3126983-e26c-491f-8738-c57784ca4026", - "description": "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, - { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "UUID": "b20a18d5-c419-4e90-8519-9c8f8b3ce2ab", - "description": "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, - { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "UUID": "28943e99-871b-482b-953f-cfa7138da02c", - "description": "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, - { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "UUID": "2b1b738b-70f6-4b45-9d3c-a7e889b49993", - "description": "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "UUID": "798ee6ea-f349-41bb-a281-7e4c22184e8c", - "description": "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, - { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "UUID": "eb9568d5-d95f-4713-9622-d95ef4cf81c3", - "description": "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "UUID": "10979d21-947f-4920-83ae-63b827e8e80f", - "description": "Generated description for concept referred to by key \"SamplePolicyModelMVEL:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "UUID": "cb65d7fe-8d86-463c-aa16-0f4e6138d705", - "description": "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "UUID": "ea2b4e7a-1a79-440c-9cf0-6fddaad64c0c", - "description": "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "UUID": "269e1d08-9ab4-48b8-8854-b65deb9d41b1", - "description": "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "UUID": "f9c4a91d-92aa-49ce-9b65-ab2378f6b048", - "description": "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "UUID": "7fde2446-ce2a-4bc2-a675-96496c387c88", - "description": "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "UUID": "bc185db6-f18f-4fdd-b5b4-37d14b57f463", - "description": "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "UUID": "2c1e2ede-d67c-4845-90ac-a4d53311bfbb", - "description": "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "UUID": "1d1645a2-2852-4296-9f22-8f31ebe5386a", - "description": "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "UUID": "f3739d83-a029-4ad8-a0b9-e5a028b369b2", - "description": "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "UUID": "5351a5a5-4134-44fd-9a6f-fd37dbfc8aa7", - "description": "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "UUID": "4206bb68-e710-4a01-aade-3e34771da63b", - "description": "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "UUID": "cbaab234-b586-4f63-986e-ed0b317b6c66", - "description": "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "UUID": "24dbc71b-8773-4393-9c36-a5f4991e0f55", - "description": "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "UUID": "42ecd25d-e8cb-48e4-890a-b0616528cf10", - "description": "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "UUID": "7e691294-a816-42f8-b124-9b5eac70b116", - "description": "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "UUID": "bc7cad3c-85a5-40b4-9eda-51ac2387af05", - "description": "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, - { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "UUID": "4386403d-b23c-4c3e-bc14-5d581f9de2f5", - "description": "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, - { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "UUID": "901a80ab-dd46-4697-b818-f669b9f9bce9", - "description": "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "UUID": "cfd19e5d-ab54-4e54-b4e5-1c5eaa832622", - "description": "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "UUID": "42c27d27-878d-4e9d-a139-e60c98f1c747", - "description": "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "UUID": "83919fa0-ed4d-4981-908f-79913734a0f5", - "description": "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "UUID": "194882b0-d987-4200-b82a-2c015605279b", - "description": "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "UUID": "948d345b-39c3-4436-8036-ac9e5c561977", - "description": "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "UUID": "fdad8cb5-4375-4bbf-9ffc-1e5ed8f4bae6", - "description": "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "UUID": "5243c0ba-5c50-4835-a885-6cd988252bb7", - "description": "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "UUID": "29f0b15f-f7c3-46e5-98d7-59a34a677968", - "description": "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "UUID": "aac96de5-9f3c-452c-855f-e556cc807351", - "description": "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "UUID": "7fdc1cc3-08c7-42a4-92a9-39e172fe2f1f", - "description": "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "UUID": "cf60cca6-a2e8-4371-b0e5-85ecaae44acc", - "description": "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "UUID": "1671f996-e14e-407d-a503-f4de09f0785b", - "description": "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "UUID": "814c4c28-9027-4516-9598-adc75fafa92a", - "description": "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, - { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "UUID": "33e81d08-a62b-40ce-b7ff-50734427ebf9", - "description": "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, - { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "UUID": "5cd74351-8e27-4dee-a379-86124db50383", - "description": "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "UUID": "e8c9a056-5e95-4e14-bc96-0c0d13a34b18", - "description": "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "UUID": "92489659-02f3-4cb2-b25f-a6234ad71d36", - "description": "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "UUID": "1c3b9345-32c2-4f7e-94ce-be36d0775e9e", - "description": "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, - { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "UUID": "9e719a99-1d73-4d40-b097-c9622b9ea2b4", - "description": "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, - { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "UUID": "3bcc8ef1-4cc5-4b7f-9dc4-83046d4a2a5d", - "description": "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } - ] - } - }, - "policies": { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "policyMap": { - "entry": [ - { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "Policy0", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "Event0003", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "Event0004", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act0_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act1_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act2_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act3_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "Event0002", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "Event0003", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "Event0001", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "Event0002", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "Event0000", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "Event0001", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match0_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match1_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match2_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match3_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - }, - { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "Policy1", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "Event0103", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "Event0104", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act0_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act1_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act2_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act3_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "Event0102", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "Event0103", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "Event0101", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "Event0102", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "Event0100", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "Event0101", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match0_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match1_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match2_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match3_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - } - ] - } - }, - "tasks": { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "taskMap": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Act1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Decide1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Establish1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Match1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - } - ] - } - }, - "events": { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "eventMap": { - "entry": [ - { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Outside", - "target": "Match", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Match", - "target": "Establish", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Establish", - "target": "Decide", - "parameter": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Decide", - "target": "Act", - "parameter": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Act", - "target": "Outside", - "parameter": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Outside", - "target": "Match", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Match", - "target": "Establish", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Establish", - "target": "Decide", - "parameter": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Decide", - "target": "Act", - "parameter": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Act", - "target": "Outside", - "parameter": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - } - ] - } - }, - "albums": { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "albums": { - "entry": [ - { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "scope": "EXTERNAL", - "isWritable": false, - "itemSchema": { - "name": "TestExternalContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "scope": "APPLICATION", - "isWritable": true, - "itemSchema": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "scope": "APPLICATION", - "isWritable": true, - "itemSchema": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - } - } - } - ] - } - }, - "schemas": { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "schemas": { - "entry": [ - { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Byte" - } - }, - { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, - { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, - { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, - { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, - { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, - { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, - { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, - { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, - { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, - { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, - { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, - { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, - { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, - { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, - { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, - { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, - { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Double" - } - }, - { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Long" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/services/services-engine/src/test/resources/policymodels/SmallModel.json b/services/services-engine/src/test/resources/policymodels/SmallModel.json new file mode 100644 index 000000000..5c0628809 --- /dev/null +++ b/services/services-engine/src/test/resources/policymodels/SmallModel.json @@ -0,0 +1,416 @@ +{ + "apexPolicyModel" : { + "key" : { + "name" : "SmallModel", + "version" : "0.0.1" + }, + "keyInformation" : { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "keyInfoMap" : { + "entry" : [ { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "fec1b353-b35f-4384-b7d9-69622059c248", + "description" : "Generated description for a concept called \"BasicContextAlbum\" with version \"0.0.1\" and UUID \"fec1b353-b35f-4384-b7d9-69622059c248\"" + } + }, { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "UUID" : "cc8d3c1a-e975-459a-bcd2-69f423eaa1f3", + "description" : "Generated description for a concept called \"BasicEvent\" with version \"0.0.1\" and UUID \"cc8d3c1a-e975-459a-bcd2-69f423eaa1f3\"" + } + }, { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "UUID" : "d0c5d8ee-5fe7-4978-89ce-4a3e69cad043", + "description" : "Generated description for a concept called \"BasicPolicy\" with version \"0.0.1\" and UUID \"d0c5d8ee-5fe7-4978-89ce-4a3e69cad043\"" + } + }, { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "UUID" : "c5651414-fc1c-493b-878d-75f0ce685c36", + "description" : "Generated description for a concept called \"BasicTask\" with version \"0.0.1\" and UUID \"c5651414-fc1c-493b-878d-75f0ce685c36\"" + } + }, { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "UUID" : "790ff718-8dc0-44e0-89d8-1b3bbe238310", + "description" : "Generated description for a concept called \"IntType\" with version \"0.0.1\" and UUID \"790ff718-8dc0-44e0-89d8-1b3bbe238310\"" + } + }, { + "key" : { + "name" : "SmallModel", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel", + "version" : "0.0.1" + }, + "UUID" : "a1bd1f4e-713b-456b-b1a8-bb48beee28e8", + "description" : "Generated description for a concept called \"SmallModel\" with version \"0.0.1\" and UUID \"a1bd1f4e-713b-456b-b1a8-bb48beee28e8\"" + } + }, { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "UUID" : "72bed9af-ab7d-3379-b9f7-b5eca5c9ef22", + "description" : "Generated description for concept referred to by key \"SmallModel_Albums:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "UUID" : "796dc6b0-627d-34ae-a5e2-1bc4b4b486b8", + "description" : "Generated description for concept referred to by key \"SmallModel_Events:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "UUID" : "b4876774-6907-3d27-a2b8-f05737c5ee4a", + "description" : "Generated description for concept referred to by key \"SmallModel_KeyInfo:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "UUID" : "5bcf946b-67be-3190-a906-f954896f999f", + "description" : "Generated description for concept referred to by key \"SmallModel_Policies:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "UUID" : "c25bf5c3-7f1e-3667-b8a9-971ba21517bc", + "description" : "Generated description for concept referred to by key \"SmallModel_Schemas:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "UUID" : "43b015ca-2ed1-3a35-b103-e8a5aa68f1ef", + "description" : "Generated description for concept referred to by key \"SmallModel_Tasks:0.0.1\"" + } + } ] + } + }, + "policies" : { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "policyMap" : { + "entry" : [ { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "value" : { + "policyKey" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "template" : "FREEFORM", + "state" : { + "entry" : [ { + "key" : "OnlyState", + "value" : { + "stateKey" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "OnlyState" + }, + "trigger" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "OnlyOutput", + "value" : { + "key" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "OnlyState", + "localName" : "OnlyOutput" + }, + "outgoingEvent" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "NULL", + "parentKeyVersion" : "0.0.0", + "parentLocalName" : "NULL", + "localName" : "NULL" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "NULL", + "logicFlavour" : "UNDEFINED", + "logic" : "" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "OnlyState", + "localName" : "BasicTask" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "OnlyState", + "localName" : "OnlyOutput" + } + } + } ] + } + } + } ] + }, + "firstState" : "OnlyState" + } + } ] + } + }, + "tasks" : { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "taskMap" : { + "entry" : [ { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ ] + }, + "contextAlbumReference" : [ { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"BasicContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + } ] + } + }, + "events" : { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "eventMap" : { + "entry" : [ { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.events", + "source" : "source", + "target" : "target", + "parameter" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + } ] + } + }, + "albums" : { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "albums" : { + "entry" : [ { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "scope" : "GLOBAL", + "isWritable" : true, + "itemSchema" : { + "name" : "IntType", + "version" : "0.0.1" + } + } + } ] + } + }, + "schemas" : { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "schemas" : { + "entry" : [ { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Integer" + } + } ] + } + } + } +} diff --git a/services/services-engine/src/test/resources/policymodels/SmallModelDifferent.json b/services/services-engine/src/test/resources/policymodels/SmallModelDifferent.json new file mode 100644 index 000000000..bbee7daa3 --- /dev/null +++ b/services/services-engine/src/test/resources/policymodels/SmallModelDifferent.json @@ -0,0 +1,416 @@ +{ + "apexPolicyModel" : { + "key" : { + "name" : "SmallModelDifferent", + "version" : "0.0.1" + }, + "keyInformation" : { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "keyInfoMap" : { + "entry" : [ { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "fec1b353-b35f-4384-b7d9-69622059c248", + "description" : "Generated description for a concept called \"BasicContextAlbum\" with version \"0.0.1\" and UUID \"fec1b353-b35f-4384-b7d9-69622059c248\"" + } + }, { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "UUID" : "cc8d3c1a-e975-459a-bcd2-69f423eaa1f3", + "description" : "Generated description for a concept called \"BasicEvent\" with version \"0.0.1\" and UUID \"cc8d3c1a-e975-459a-bcd2-69f423eaa1f3\"" + } + }, { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "UUID" : "d0c5d8ee-5fe7-4978-89ce-4a3e69cad043", + "description" : "Generated description for a concept called \"BasicPolicy\" with version \"0.0.1\" and UUID \"d0c5d8ee-5fe7-4978-89ce-4a3e69cad043\"" + } + }, { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "UUID" : "c5651414-fc1c-493b-878d-75f0ce685c36", + "description" : "Generated description for a concept called \"BasicTask\" with version \"0.0.1\" and UUID \"c5651414-fc1c-493b-878d-75f0ce685c36\"" + } + }, { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "UUID" : "790ff718-8dc0-44e0-89d8-1b3bbe238310", + "description" : "Generated description for a concept called \"IntType\" with version \"0.0.1\" and UUID \"790ff718-8dc0-44e0-89d8-1b3bbe238310\"" + } + }, { + "key" : { + "name" : "SmallModelDifferent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModelDifferent", + "version" : "0.0.1" + }, + "UUID" : "a1bd1f4e-713b-456b-b1a8-bb48beee28e8", + "description" : "Generated description for a concept called \"SmallModel\" with version \"0.0.1\" and UUID \"a1bd1f4e-713b-456b-b1a8-bb48beee28e8\"" + } + }, { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "UUID" : "72bed9af-ab7d-3379-b9f7-b5eca5c9ef22", + "description" : "Generated description for concept referred to by key \"SmallModel_Albums:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "UUID" : "796dc6b0-627d-34ae-a5e2-1bc4b4b486b8", + "description" : "Generated description for concept referred to by key \"SmallModel_Events:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_KeyInfo", + "version" : "0.0.1" + }, + "UUID" : "b4876774-6907-3d27-a2b8-f05737c5ee4a", + "description" : "Generated description for concept referred to by key \"SmallModel_KeyInfo:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "UUID" : "5bcf946b-67be-3190-a906-f954896f999f", + "description" : "Generated description for concept referred to by key \"SmallModel_Policies:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "UUID" : "c25bf5c3-7f1e-3667-b8a9-971ba21517bc", + "description" : "Generated description for concept referred to by key \"SmallModel_Schemas:0.0.1\"" + } + }, { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "UUID" : "43b015ca-2ed1-3a35-b103-e8a5aa68f1ef", + "description" : "Generated description for concept referred to by key \"SmallModel_Tasks:0.0.1\"" + } + } ] + } + }, + "policies" : { + "key" : { + "name" : "SmallModel_Policies", + "version" : "0.0.1" + }, + "policyMap" : { + "entry" : [ { + "key" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "value" : { + "policyKey" : { + "name" : "BasicPolicy", + "version" : "0.0.1" + }, + "template" : "FREEFORM", + "state" : { + "entry" : [ { + "key" : "OnlyState", + "value" : { + "stateKey" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "OnlyState" + }, + "trigger" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "OnlyOutput", + "value" : { + "key" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "OnlyState", + "localName" : "OnlyOutput" + }, + "outgoingEvent" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "NULL", + "parentKeyVersion" : "0.0.0", + "parentLocalName" : "NULL", + "localName" : "NULL" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "NULL", + "logicFlavour" : "UNDEFINED", + "logic" : "" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "OnlyState", + "localName" : "BasicTask" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "BasicPolicy", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "OnlyState", + "localName" : "OnlyOutput" + } + } + } ] + } + } + } ] + }, + "firstState" : "OnlyState" + } + } ] + } + }, + "tasks" : { + "key" : { + "name" : "SmallModel_Tasks", + "version" : "0.0.1" + }, + "taskMap" : { + "entry" : [ { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicTask", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ ] + }, + "contextAlbumReference" : [ { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "executor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"BasicContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + } ] + } + }, + "events" : { + "key" : { + "name" : "SmallModel_Events", + "version" : "0.0.1" + }, + "eventMap" : { + "entry" : [ { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicEvent", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.events", + "source" : "source", + "target" : "target", + "parameter" : { + "entry" : [ { + "key" : "intPar", + "value" : { + "key" : "intPar", + "fieldSchemaKey" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + } ] + } + }, + "albums" : { + "key" : { + "name" : "SmallModel_Albums", + "version" : "0.0.1" + }, + "albums" : { + "entry" : [ { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "BasicContextAlbum", + "version" : "0.0.1" + }, + "scope" : "GLOBAL", + "isWritable" : true, + "itemSchema" : { + "name" : "IntType", + "version" : "0.0.1" + } + } + } ] + } + }, + "schemas" : { + "key" : { + "name" : "SmallModel_Schemas", + "version" : "0.0.1" + }, + "schemas" : { + "entry" : [ { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "IntType", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Integer" + } + } ] + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/EvalDomainModelFactory.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/EvalDomainModelFactory.java index db214636b..05829e452 100644 --- a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/EvalDomainModelFactory.java +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/EvalDomainModelFactory.java @@ -65,7 +65,6 @@ public class EvalDomainModelFactory { private static final String EVENT = "Event"; private static final String TASK_SELECTION_LOGIC = "TaskSelectionLogic"; private static final String JYTHON = "JYTHON"; - private static final String JRUBY = "JRUBY"; private static final String MVEL = "MVEL"; private static final String ORIENT = "Orient"; private static final String STATE_NAME = ""; @@ -221,7 +220,7 @@ public class EvalDomainModelFactory { obTask.duplicateInputFields(event0000.getParameterMap()); obTask.duplicateOutputFields(event0001.getParameterMap()); final AxTaskLogic obAxLogic = new AxTaskLogic(obTask.getKey(), TASK_LOGIC, - (justOneLang == null ? JRUBY : justOneLang), logicReader); + (justOneLang == null ? JAVASCRIPT : justOneLang), logicReader); obAxLogic.setLogic(obAxLogic.getLogic().replaceAll(STATE_NAME, OBSERVE) .replaceAll(TASK_NAME, obTask.getKey().getName()).replaceAll(STATE_NUMBER, "1")); obTask.setTaskLogic(obAxLogic); @@ -361,7 +360,6 @@ public class EvalDomainModelFactory { axLogicExecutorTypeList.add(JYTHON); axLogicExecutorTypeList.add(JYTHON); axLogicExecutorTypeList.add(MVEL); - axLogicExecutorTypeList.add(JRUBY); } return axLogicExecutorTypeList; } diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/java/DefaultTaskLogic.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/java/DefaultTaskLogic.java index 854a9bb3c..0dd59ed86 100644 --- a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/java/DefaultTaskLogic.java +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/java/DefaultTaskLogic.java @@ -20,7 +20,6 @@ package org.onap.policy.apex.testsuites.integration.common.model.java; -import java.util.Date; import java.util.Random; import org.onap.policy.apex.core.engine.executor.context.TaskExecutionContext; @@ -49,24 +48,23 @@ public class DefaultTaskLogic { String inFieldsString = executor.inFields.toString(); executor.logger.debug(inFieldsString); - final Date timeNow = new Date(); final Random rand = new Random(); if (executor.inFields.containsKey("TestDecideCaseSelected")) { executor.outFields.put("TestActCaseSelected", (byte) rand.nextInt(BOUND_FOR_RANDOM_INT)); - executor.outFields.put("TestActStateTime", timeNow.getTime()); + executor.outFields.put("TestActStateTime", java.lang.System.nanoTime()); } else if (executor.inFields.containsKey("TestEstablishCaseSelected")) { executor.outFields.put("TestDecideCaseSelected", (byte) rand.nextInt(BOUND_FOR_RANDOM_INT)); - executor.outFields.put("TestDecideStateTime", timeNow.getTime()); + executor.outFields.put("TestDecideStateTime", java.lang.System.nanoTime()); } else if (executor.inFields.containsKey("TestMatchCaseSelected")) { executor.outFields.put("TestEstablishCaseSelected", (byte) rand.nextInt(BOUND_FOR_RANDOM_INT)); - executor.outFields.put("TestEstablishStateTime", timeNow.getTime()); + executor.outFields.put("TestEstablishStateTime", java.lang.System.nanoTime()); } else { executor.outFields.put("TestMatchCaseSelected", (byte) rand.nextInt(BOUND_FOR_RANDOM_INT)); - executor.outFields.put("TestMatchStateTime", timeNow.getTime()); + executor.outFields.put("TestMatchStateTime", java.lang.System.nanoTime()); } return true; diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/java/EvalTaskLogic.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/java/EvalTaskLogic.java index 2d60926f6..29c58f148 100644 --- a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/java/EvalTaskLogic.java +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/model/java/EvalTaskLogic.java @@ -20,8 +20,6 @@ package org.onap.policy.apex.testsuites.integration.common.model.java; -import java.util.Date; - import org.onap.policy.apex.core.engine.executor.context.TaskExecutionContext; import org.onap.policy.apex.model.basicmodel.concepts.ApexException; @@ -46,8 +44,7 @@ public class EvalTaskLogic { executor.outFields.putAll(executor.inFields); - final Date timeNow = new Date(); - executor.outFields.put("State3Timestamp", timeNow.getTime()); + executor.outFields.put("State3Timestamp", java.lang.System.nanoTime()); String outFieldString = executor.outFields.toString(); executor.logger.debug(outFieldString); diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/testclasses/PingTestClass.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/testclasses/PingTestClass.java new file mode 100644 index 000000000..31e0f3978 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/testclasses/PingTestClass.java @@ -0,0 +1,147 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.testsuites.integration.common.testclasses; + +import java.io.Serializable; + +import org.onap.policy.apex.model.basicmodel.concepts.ApexException; + +/** + * The Class TestPing. + * + * @author Liam Fallon (liam.fallon@ericsson.com) + */ +public class PingTestClass implements Serializable { + private static final long serialVersionUID = -3400711508992955886L; + + private String name = "Rose"; + private String description = "A rose by any other name would smell as sweet"; + private long pingTime = System.currentTimeMillis(); + private long pongTime = -1; + + /** + * Gets the name. + * + * @return the name + */ + public String getName() { + return name; + } + + /** + * Sets the name. + * + * @param name the new name + */ + public void setName(final String name) { + this.name = name; + } + + /** + * Gets the description. + * + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * Sets the description. + * + * @param description the new description + */ + public void setDescription(final String description) { + this.description = description; + } + + /** + * Gets the ping time. + * + * @return the ping time + */ + public long getPingTime() { + return pingTime; + } + + /** + * Sets the ping time. + * + * @param pingTime the new ping time + */ + public void setPingTime(final long pingTime) { + this.pingTime = pingTime; + } + + /** + * Gets the pong time. + * + * @return the pong time + */ + public long getPongTime() { + return pongTime; + } + + /** + * Sets the pong time. + * + * @param pongTime the new pong time + */ + public void setPongTime(final long pongTime) { + this.pongTime = pongTime; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + return "TestPing [name=" + name + ", description=" + description + ", pingTime=" + pingTime + ", pongTime=" + + pongTime + "]"; + } + + /** + * Verify the class. + * + * @throws ApexException the apex event exception + */ + public void verify() throws ApexException { + if (name == null || name.length() < 4) { + throw new ApexException("TestPing is not valid, name length null or less than 4"); + } + + if (!name.startsWith("Rose")) { + throw new ApexException("TestPing is not valid, name does not start with \"Rose\""); + } + + if (description == null || description.length() <= 44) { + throw new ApexException("TestPing is not valid, description length null or less than 44"); + } + + if (!description.startsWith("A rose by any other name would smell as sweet")) { + throw new ApexException("TestPing is not valid, description is incorrect"); + } + + if (pongTime <= pingTime) { + throw new ApexException("TestPing is not valid, pong time is not greater than ping time"); + } + } +} diff --git a/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/testclasses/package-info.java b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/testclasses/package-info.java new file mode 100644 index 000000000..320b36467 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/java/org/onap/policy/apex/testsuites/integration/common/testclasses/package-info.java @@ -0,0 +1,26 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2016-2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +/** + * Package for common test classes for Apex. + * + * @author Liam Fallon (liam.fallon@ericsson.com) + */ +package org.onap.policy.apex.testsuites.integration.common.testclasses; diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSJsonEvent.json new file mode 100644 index 000000000..dbab4827b --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSJsonEvent.json @@ -0,0 +1,59 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12553, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "JMS", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", + "parameters": { + "initialContextFactory": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestInitialContextFactory", + "connectionFactory": "ConnectionFactory", + "providerURL": "remote://localhost:5445", + "securityPrincipal": "guest", + "securityCredentials": "IAmAGuest", + "producerTopic": "jms/topic/apexOut", + "objectMessageSending": "false" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JMSTEXT", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsTextEventProtocolParameters" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "JMS", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", + "parameters": { + "initialContextFactory": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestInitialContextFactory", + "connectionFactory": "ConnectionFactory", + "providerURL": "remote://localhost:5445", + "securityPrincipal": "guest", + "securityCredentials": "IAmAGuest", + "consumerTopic": "jms/topic/apexIn" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JMSTEXT", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsTextEventProtocolParameters" + } + } + } +} + diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSObjectEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSObjectEvent.json new file mode 100644 index 000000000..1df3febfb --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/JMS/JMS2JMSObjectEvent.json @@ -0,0 +1,58 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12553, + "policyModelFileName": "examples/models/JMS/JMSTestModel.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "JMS", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", + "parameters": { + "initialContextFactory": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestInitialContextFactory", + "connectionFactory": "ConnectionFactory", + "providerURL": "remote://localhost:5445", + "securityPrincipal": "guest", + "securityCredentials": "IAmAGuest", + "producerTopic": "jms/topic/apexOut" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JMSOBJECT", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsObjectEventProtocolParameters" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "JMS", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", + "parameters": { + "initialContextFactory": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestInitialContextFactory", + "connectionFactory": "ConnectionFactory", + "providerURL": "remote://localhost:5445", + "securityPrincipal": "guest", + "securityCredentials": "IAmAGuest", + "consumerTopic": "jms/topic/apexIn" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JMSOBJECT", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsObjectEventProtocolParameters" + } + } + } +} + diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json new file mode 100644 index 000000000..9b621b70f --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json @@ -0,0 +1,44 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "inputZero": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]000$" + } + }, + "eventOutputParameters": { + "outputZero": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/Events0004Out.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInOutJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInOutJsonEvent.json new file mode 100644 index 000000000..bab8191dd --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredInOutJsonEvent.json @@ -0,0 +1,69 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "inputZero": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]000$" + }, + "inputOne": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]100$" + } + }, + "eventOutputParameters": { + "outputZero": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/Events0004Out.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]004$" + }, + "outputOne": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/Events0104Out.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]104$" + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredOutJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredOutJsonEvent.json new file mode 100644 index 000000000..e0257699b --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileFilteredOutJsonEvent.json @@ -0,0 +1,56 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "inputZero": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventOutputParameters": { + "outputZero": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/Events0004Out.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]004$" + }, + "outputOne": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/Events0104Out.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]104$" + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEvent.json new file mode 100644 index 000000000..bfd399263 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEvent.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOut.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json new file mode 100644 index 000000000..b8fe2f9ed --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMIMO.json @@ -0,0 +1,87 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "aConsumer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsInMulti0.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "aConsumer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsInMulti1.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "aConsumer2": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsInMulti2.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventOutputParameters": { + "aProducer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutMulti0.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "aProducer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutMulti1.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "aProducer2": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutMulti2.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json new file mode 100644 index 000000000..b02c5ee71 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncMISO.json @@ -0,0 +1,65 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "aConsumer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsInMulti0.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "aConsumer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsInMulti1.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "aConsumer2": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsInMulti2.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutSingle.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json new file mode 100644 index 000000000..79ec1557c --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSIMO.json @@ -0,0 +1,65 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventOutputParameters": { + "aProducer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutMulti0.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "aProducer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutMulti1.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + }, + "aProducer2": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutMulti2.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json new file mode 100644 index 000000000..3308d08e5 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventAsyncSISO.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutSingle.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json new file mode 100644 index 000000000..fea2f5319 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncMIMO.json @@ -0,0 +1,105 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "aConsumer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsInMulti0.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "aProducer0", + "synchronousTimeout": 1000 + }, + "aConsumer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsInMulti1.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "aProducer1", + "synchronousTimeout": 1000 + }, + "aConsumer2": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsInMulti2.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "aProducer2", + "synchronousTimeout": 1000 + } + }, + "eventOutputParameters": { + "aProducer0": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutMulti0.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "aConsumer0", + "synchronousTimeout": 1000 + }, + "aProducer1": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutMulti1.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "aConsumer1", + "synchronousTimeout": 1000 + }, + "aProducer2": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutMulti2.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "aConsumer2", + "synchronousTimeout": 1000 + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json new file mode 100644 index 000000000..7aac345cb --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileJsonEventSyncSISO.json @@ -0,0 +1,49 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12545, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "SyncProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOutSingle.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "SyncConsumer", + "synchronousTimeout": 1000 + } + }, + "eventInputParameters": { + "SyncConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "SyncProducer", + "synchronousTimeout": 1000 + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileXmlEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileXmlEvent.json new file mode 100644 index 000000000..e985b10d4 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2FileXmlEvent.json @@ -0,0 +1,45 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12546, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOut.xmlfile" + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.xmlfile" + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPost.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPost.json new file mode 100644 index 000000000..54955eb54 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPost.json @@ -0,0 +1,44 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTCLIENT", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPut.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPut.json new file mode 100644 index 000000000..70d8deded --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2RESTJsonEventPut.json @@ -0,0 +1,45 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTCLIENT", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestFile2Rest/apex/event/PutEvent", + "httpMethod": "PUT" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StderrJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StderrJsonEvent.json new file mode 100644 index 000000000..429e9564f --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StderrJsonEvent.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardError": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEvent.json new file mode 100644 index 000000000..06af5e66c --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEvent.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json new file mode 100644 index 000000000..06af5e66c --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventJavascript.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json new file mode 100644 index 000000000..1415ee607 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutJsonEventMVEL.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelMVEL.json", + "engineParameters": { + "executorParameters": { + "MVEL": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutXmlEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutXmlEvent.json new file mode 100644 index 000000000..6d9bad4fd --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/File2StdoutXmlEvent.json @@ -0,0 +1,45 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsIn.xmlfile" + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2FileJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2FileJsonEvent.json new file mode 100644 index 000000000..e72a6474a --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2FileJsonEvent.json @@ -0,0 +1,55 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOut.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "KAFKA", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", + "parameters": { + "bootstrapServers": "localhost:49092", + "groupId": "apex-group-id", + "enableAutoCommit": true, + "autoCommitTime": 1000, + "sessionTimeout": 30000, + "consumerPollTime": 100, + "consumerTopicList": [ + "apex-in-0", + "apex-in-1" + ], + "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", + "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json new file mode 100644 index 000000000..6b13db7d4 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaJsonEvent.json @@ -0,0 +1,63 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12547, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "KAFKA", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", + "parameters": { + "bootstrapServers": "localhost:39902", + "acks": "all", + "retries": 0, + "batchSize": 16384, + "lingerTime": 1, + "bufferMemory": 33554432, + "producerTopic": "apex-out-json", + "keySerializer": "org.apache.kafka.common.serialization.StringSerializer", + "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "KAFKA", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", + "parameters": { + "bootstrapServers": "localhost:39902", + "groupId": "apex-group-id", + "enableAutoCommit": true, + "autoCommitTime": 1000, + "sessionTimeout": 30000, + "consumerPollTime": 100, + "consumerTopicList": [ + "apex-in-json" + ], + "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", + "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json new file mode 100644 index 000000000..abb61802c --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2KafkaXmlEvent.json @@ -0,0 +1,65 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 3, + "deploymentPort": 12548, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "KAFKA", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", + "parameters": { + "bootstrapServers": "localhost:39902", + "acks": "all", + "retries": 0, + "batchSize": 16384, + "lingerTime": 1, + "bufferMemory": 33554432, + "producerTopic": "apex-out-xml", + "keySerializer": "org.apache.kafka.common.serialization.StringSerializer", + "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer" + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "KAFKA", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", + "parameters": { + "bootstrapServers": "localhost:39902", + "groupId": "apex-group-id", + "enableAutoCommit": true, + "autoCommitTime": 1000, + "sessionTimeout": 30000, + "consumerPollTime": 100, + "consumerTopicList": [ + "apex-in-xml" + ], + "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", + "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json new file mode 100644 index 000000000..32defff92 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Kafka2RESTJsonEventJava.json @@ -0,0 +1,56 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVA.json", + "engineParameters": { + "executorParameters": { + "JAVA": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTCLIENT", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "TheKafkaConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "KAFKA", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", + "parameters": { + "bootstrapServers": "localhost:49092", + "groupId": "apex-group-id", + "enableAutoCommit": true, + "autoCommitTime": 1000, + "sessionTimeout": 30000, + "consumerPollTime": 100, + "consumerTopicList": [ + "apex-in-0", + "apex-in-1" + ], + "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", + "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2FileJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2FileJsonEvent.json new file mode 100644 index 000000000..f83541340 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2FileJsonEvent.json @@ -0,0 +1,44 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTCLIENT", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRest2File/apex/event/GetEvent" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "fileName": "examples/events/SampleDomain/EventsOut.json" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTJsonEvent.json new file mode 100644 index 000000000..fca96852a --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTJsonEvent.json @@ -0,0 +1,45 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTCLIENT", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRest2REST/apex/event/GetEvent" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTCLIENT", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestRest2REST/apex/event/PostEvent" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json new file mode 100644 index 000000000..e8a23e4f5 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/REST2RESTONAPJsonEvent.json @@ -0,0 +1,45 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTCLIENT", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", + "parameters": { + "url": "http://192.168.219.142:3904/events/apexDMaaP/apexCG/apexC?timeout=10000" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTCLIENT", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", + "parameters": { + "url": "http://192.168.219.142:3904/events/apexDMaaPOut" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEvent.json new file mode 100644 index 000000000..7b84b7246 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEvent.json @@ -0,0 +1,50 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", + "parameters": { + "standalone": true, + "host": "0.0.0.0", + "port": 23324 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstProducer", + "synchronousTimeout": 2000 + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstConsumer", + "synchronousTimeout": 2000 + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEventMultiIn.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEventMultiIn.json new file mode 100644 index 000000000..366dea3cb --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerJsonEventMultiIn.json @@ -0,0 +1,79 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", + "parameters": { + "standalone": true, + "host": "localhost", + "port": 23324 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstProducer", + "synchronousTimeout": 2000 + }, + "SecondConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", + "parameters": { + "standalone": true, + "host": "localhost", + "port": 23325 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "SecondProducer", + "synchronousTimeout": 2000 + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstConsumer", + "synchronousTimeout": 2000 + }, + "SecondProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "SecondConsumer", + "synchronousTimeout": 2000 + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json new file mode 100644 index 000000000..8c99fc188 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEvent.json @@ -0,0 +1,50 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", + "parameters": { + "standalone": true, + "host": "localhost", + "port": 23324 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstProducer", + "synchronousTimeout": 2000 + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstConsumer", + "synchronousTimeout": 2000 + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json new file mode 100644 index 000000000..4058517ae --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerStandaloneJsonEventMultiIn.json @@ -0,0 +1,79 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", + "parameters": { + "standalone": true, + "host": "localhost", + "port": 23324 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstProducer", + "synchronousTimeout": 2000 + }, + "SecondConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", + "parameters": { + "standalone": true, + "host": "localhost", + "port": 23325 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "SecondProducer", + "synchronousTimeout": 2000 + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstConsumer", + "synchronousTimeout": 2000 + }, + "SecondProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "SecondConsumer", + "synchronousTimeout": 2000 + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json new file mode 100644 index 000000000..12337346f --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEvent.json @@ -0,0 +1,45 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstProducer", + "synchronousTimeout": 2000 + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstConsumer", + "synchronousTimeout": 2000 + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json new file mode 100644 index 000000000..55fdfc82f --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/RESTServerTomcatJsonEventMultiIn.json @@ -0,0 +1,69 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstProducer", + "synchronousTimeout": 2000 + }, + "SecondConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "SecondProducer", + "synchronousTimeout": 2000 + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "FirstConsumer", + "synchronousTimeout": 2000 + }, + "SecondProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTSERVER", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + }, + "synchronousMode": true, + "synchronousPeer": "SecondConsumer", + "synchronousTimeout": 2000 + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json new file mode 100644 index 000000000..18447dfe1 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2RESTJsonEventJava.json @@ -0,0 +1,44 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVA.json", + "engineParameters": { + "executorParameters": { + "JAVA": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "RESTCLIENT", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", + "parameters": { + "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent" + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "TheFileConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json new file mode 100644 index 000000000..bae4f4130 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJRuby.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJRUBY.json", + "engineParameters": { + "executorParameters": { + "JRUBY": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.jruby.JrubyExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json new file mode 100644 index 000000000..3167fff37 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJava.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVA.json", + "engineParameters": { + "executorParameters": { + "JAVA": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.java.JavaExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json new file mode 100644 index 000000000..c9ab0c065 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJavascript.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json new file mode 100644 index 000000000..d547c6805 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventJython.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJYTHON.json", + "engineParameters": { + "executorParameters": { + "JYTHON": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.jython.JythonExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json new file mode 100644 index 000000000..cb3ace171 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutJsonEventMVEL.json @@ -0,0 +1,43 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelMVEL.json", + "engineParameters": { + "executorParameters": { + "MVEL": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json new file mode 100644 index 000000000..f87adffd8 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Stdin2StdoutXmlEvent.json @@ -0,0 +1,45 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12345, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "FirstProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + }, + "eventInputParameters": { + "FirstConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "FILE", + "parameters": { + "standardIo": true + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientJsonEvent.json new file mode 100644 index 000000000..2b0805736 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientJsonEvent.json @@ -0,0 +1,47 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12552, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "WEBSOCKET", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", + "parameters": { + "host": "localhost", + "port": 42453 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "WEBSOCKET", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", + "parameters": { + "host": "localhost", + "port": 42451 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientXMLEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientXMLEvent.json new file mode 100644 index 000000000..f6ad417a7 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsClientXMLEvent.json @@ -0,0 +1,49 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12553, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "WEBSOCKET", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", + "parameters": { + "host": "localhost", + "port": 42453 + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "WEBSOCKET", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", + "parameters": { + "host": "localhost", + "port": 42451 + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerJsonEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerJsonEvent.json new file mode 100644 index 000000000..ef5a258c2 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerJsonEvent.json @@ -0,0 +1,47 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12554, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "WEBSOCKET", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", + "parameters": { + "wsClient": false, + "port": 42452 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "WEBSOCKET", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", + "parameters": { + "wsClient": false, + "port": 42450 + } + }, + "eventProtocolParameters": { + "eventProtocol": "JSON" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerXMLEvent.json b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerXMLEvent.json new file mode 100644 index 000000000..9251d80c9 --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/config/SampleDomain/Ws2WsServerXMLEvent.json @@ -0,0 +1,49 @@ +{ + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12555, + "policyModelFileName": "examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.xml", + "engineParameters": { + "executorParameters": { + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" + } + } + } + }, + "eventOutputParameters": { + "aProducer": { + "carrierTechnologyParameters": { + "carrierTechnology": "WEBSOCKET", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", + "parameters": { + "wsClient": false, + "port": 42452 + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + }, + "eventInputParameters": { + "aConsumer": { + "carrierTechnologyParameters": { + "carrierTechnology": "WEBSOCKET", + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", + "parameters": { + "wsClient": false, + "port": 42450 + } + }, + "eventProtocolParameters": { + "eventProtocol": "XML", + "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.xmlfile b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.xmlfile index 21b9b1975..3c42ddcb2 100644 --- a/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.xmlfile +++ b/testsuites/integration/integration-common/src/main/resources/examples/events/SampleDomain/EventsIn.xmlfile @@ -20,11 +20,11 @@ --> - + Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -48,7 +48,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -72,7 +72,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -96,7 +96,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -120,7 +120,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -144,7 +144,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -168,7 +168,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -192,7 +192,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -216,7 +216,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -240,7 +240,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -264,7 +264,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -288,7 +288,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -312,7 +312,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -336,7 +336,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -360,7 +360,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -384,7 +384,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -408,7 +408,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -432,7 +432,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -456,7 +456,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -480,7 +480,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -504,7 +504,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -528,7 +528,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -552,7 +552,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -576,7 +576,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -600,7 +600,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -624,7 +624,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -648,7 +648,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -672,7 +672,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -696,7 +696,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -720,7 +720,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -744,7 +744,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -768,7 +768,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -792,7 +792,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -816,7 +816,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -840,7 +840,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -864,7 +864,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -888,7 +888,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -912,7 +912,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -936,7 +936,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -960,7 +960,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -984,7 +984,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1008,7 +1008,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1032,7 +1032,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1056,7 +1056,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1080,7 +1080,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1104,7 +1104,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1128,7 +1128,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1152,7 +1152,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1176,7 +1176,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1200,7 +1200,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1224,7 +1224,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1248,7 +1248,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1272,7 +1272,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1296,7 +1296,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1320,7 +1320,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1344,7 +1344,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1368,7 +1368,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1392,7 +1392,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1416,7 +1416,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1440,7 +1440,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1464,7 +1464,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1488,7 +1488,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1512,7 +1512,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1536,7 +1536,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1560,7 +1560,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1584,7 +1584,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1608,7 +1608,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1632,7 +1632,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1656,7 +1656,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1680,7 +1680,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1704,7 +1704,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1728,7 +1728,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1752,7 +1752,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1776,7 +1776,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1800,7 +1800,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1824,7 +1824,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1848,7 +1848,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1872,7 +1872,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1896,7 +1896,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1920,7 +1920,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1944,7 +1944,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1968,7 +1968,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -1992,7 +1992,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2016,7 +2016,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2040,7 +2040,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2064,7 +2064,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2088,7 +2088,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2112,7 +2112,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2136,7 +2136,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2160,7 +2160,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2184,7 +2184,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2208,7 +2208,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2232,7 +2232,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2256,7 +2256,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2280,7 +2280,7 @@ Event0100 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2304,7 +2304,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2328,7 +2328,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2352,7 +2352,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2376,7 +2376,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex @@ -2400,7 +2400,7 @@ Event0000 0.0.1 - org.onap.policy.apex.sample.events + org.onap.policy.apex.domains.sample.events test apex diff --git a/testsuites/integration/integration-common/src/main/resources/examples/models/JMS/JMSTestModel.json b/testsuites/integration/integration-common/src/main/resources/examples/models/JMS/JMSTestModel.json new file mode 100644 index 000000000..02365bcdb --- /dev/null +++ b/testsuites/integration/integration-common/src/main/resources/examples/models/JMS/JMSTestModel.json @@ -0,0 +1,456 @@ +{ + "apexPolicyModel": { + "key": { + "name": "JMSTestModel", + "version": "0.0.1" + }, + "keyInformation": { + "key": { + "name": "JMSTestModel_KeyInfo", + "version": "0.0.1" + }, + "keyInfoMap": { + "entry": [ + { + "key": { + "name": "JMSCopyInOutTask", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSCopyInOutTask", + "version": "0.0.1" + }, + "UUID": "b59815ef-fc5b-4e44-9f6e-2f6212bb7296", + "description": "Generated description for a concept called \"JMSCopyInOutTask\" with version \"null\" and UUID \"b59815ef-fc5b-4e44-9f6e-2f6212bb7296\"" + } + }, + { + "key": { + "name": "JMSTestModel", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSTestModel", + "version": "0.0.1" + }, + "UUID": "a731a845-f984-46a9-adf4-c6c7ca0baa0d", + "description": "Generated description for a concept called \"JMSTestModel\" with version \"null\" and UUID \"a731a845-f984-46a9-adf4-c6c7ca0baa0d\"" + } + }, + { + "key": { + "name": "JMSTestModel_Albums", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSTestModel_Albums", + "version": "0.0.1" + }, + "UUID": "b580c2e2-067e-452c-8410-d69344fa718c", + "description": "Generated description for concept referred to by key \"JMSTestModel_Albums:0.0.1\"" + } + }, + { + "key": { + "name": "JMSTestModel_Events", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSTestModel_Events", + "version": "0.0.1" + }, + "UUID": "463f3fa6-2be3-4ded-a015-1f045ee8991e", + "description": "Generated description for concept referred to by key \"JMSTestModel_Events:0.0.1\"" + } + }, + { + "key": { + "name": "JMSTestModel_KeyInfo", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSTestModel_KeyInfo", + "version": "0.0.1" + }, + "UUID": "b14d97fb-f215-4b70-9cd6-cbfb3ed085ee", + "description": "Generated description for concept referred to by key \"JMSTestModel_KeyInfo:0.0.1\"" + } + }, + { + "key": { + "name": "JMSTestModel_Policies", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSTestModel_Policies", + "version": "0.0.1" + }, + "UUID": "9ae9047f-e0d8-42c4-b3a6-e32954ace3b6", + "description": "Generated description for concept referred to by key \"JMSTestModel_Policies:0.0.1\"" + } + }, + { + "key": { + "name": "JMSTestModel_Schemas", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSTestModel_Schemas", + "version": "0.0.1" + }, + "UUID": "adc30c29-d4b9-4408-9213-6d86b051d59c", + "description": "Generated description for concept referred to by key \"JMSTestModel_Schemas:0.0.1\"" + } + }, + { + "key": { + "name": "JMSTestModel_Tasks", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSTestModel_Tasks", + "version": "0.0.1" + }, + "UUID": "c3545f15-710c-4339-9a4e-e0eacffac52e", + "description": "Generated description for concept referred to by key \"JMSTestModel_Tasks:0.0.1\"" + } + }, + { + "key": { + "name": "JMSTestPolicy", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSTestPolicy", + "version": "0.0.1" + }, + "UUID": "fdda6a40-6767-45b0-8703-3b5b3bafaf19", + "description": "Generated description for a concept called \"JMSTestPolicy\" with version \"null\" and UUID \"fdda6a40-6767-45b0-8703-3b5b3bafaf19\"" + } + }, + { + "key": { + "name": "PingTestClassIncomingEvent", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "PingTestClassIncomingEvent", + "version": "0.0.1" + }, + "UUID": "6cdd11f3-5fe8-4510-81b9-af3be303ebae", + "description": "Generated description for a concept called \"PingTestClassIncomingEvent\" with version \"null\" and UUID \"6cdd11f3-5fe8-4510-81b9-af3be303ebae\"" + } + }, + { + "key": { + "name": "PingTestClassOutgoingEvent", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "PingTestClassOutgoingEvent", + "version": "0.0.1" + }, + "UUID": "dc04de01-2284-4461-9fe2-da58a2122a73", + "description": "Generated description for a concept called \"PingTestClassOutgoingEvent\" with version \"0.0.1\" and UUID \"dc04de01-2284-4461-9fe2-da58a2122a73\"" + } + }, + { + "key": { + "name": "PingTestClassType", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "PingTestClassType", + "version": "0.0.1" + }, + "UUID": "bdc2f70a-de52-4127-8012-b9593657da3c", + "description": "Generated description for a concept called \"PingTestClassType\" with version \"null\" and UUID \"bdc2f70a-de52-4127-8012-b9593657da3c\"" + } + } + ] + } + }, + "policies": { + "key": { + "name": "JMSTestModel_Policies", + "version": "0.0.1" + }, + "policyMap": { + "entry": [ + { + "key": { + "name": "JMSTestPolicy", + "version": "0.0.1" + }, + "value": { + "policyKey": { + "name": "JMSTestPolicy", + "version": "0.0.1" + }, + "template": "FREEFORM", + "state": { + "entry": [ + { + "key": "TestJMSState", + "value": { + "stateKey": { + "parentKeyName": "JMSTestPolicy", + "parentKeyVersion": "0.0.1", + "parentLocalName": "NULL", + "localName": "TestJMSState" + }, + "trigger": { + "name": "PingTestClassIncomingEvent", + "version": "0.0.1" + }, + "stateOutputs": { + "entry": [ + { + "key": "InOutOutputMapping", + "value": { + "key": { + "parentKeyName": "JMSTestPolicy", + "parentKeyVersion": "0.0.1", + "parentLocalName": "TestJMSState", + "localName": "InOutOutputMapping" + }, + "outgoingEvent": { + "name": "PingTestClassOutgoingEvent", + "version": "0.0.1" + }, + "nextState": { + "parentKeyName": "NULL", + "parentKeyVersion": "0.0.0", + "parentLocalName": "NULL", + "localName": "NULL" + } + } + } + ] + }, + "contextAlbumReference": [], + "taskSelectionLogic": { + "key": "NULL", + "logicFlavour": "UNDEFINED", + "logic": "" + }, + "stateFinalizerLogicMap": { + "entry": [] + }, + "defaultTask": { + "name": "JMSCopyInOutTask", + "version": "0.0.1" + }, + "taskReferences": { + "entry": [ + { + "key": { + "name": "JMSCopyInOutTask", + "version": "0.0.1" + }, + "value": { + "key": { + "parentKeyName": "JMSTestPolicy", + "parentKeyVersion": "0.0.1", + "parentLocalName": "TestJMSState", + "localName": "InOutTask" + }, + "outputType": "DIRECT", + "output": { + "parentKeyName": "JMSTestPolicy", + "parentKeyVersion": "0.0.1", + "parentLocalName": "TestJMSState", + "localName": "InOutOutputMapping" + } + } + } + ] + } + } + } + ] + }, + "firstState": "TestJMSState" + } + } + ] + } + }, + "tasks": { + "key": { + "name": "JMSTestModel_Tasks", + "version": "0.0.1" + }, + "taskMap": { + "entry": [ + { + "key": { + "name": "JMSCopyInOutTask", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "JMSCopyInOutTask", + "version": "0.0.1" + }, + "inputFields": { + "entry": [ + { + "key": "PingTestClass", + "value": { + "key": "PingTestClass", + "fieldSchemaKey": { + "name": "PingTestClassType", + "version": "0.0.1" + }, + "optional": false + } + } + ] + }, + "outputFields": { + "entry": [ + { + "key": "PingTestClass", + "value": { + "key": "PingTestClass", + "fieldSchemaKey": { + "name": "PingTestClassType", + "version": "0.0.1" + }, + "optional": false + } + } + ] + }, + "taskParameters": { + "entry": [] + }, + "contextAlbumReference": [], + "taskLogic": { + "key": "TaskLogic", + "logicFlavour": "JAVASCRIPT", + "logic": "var outFieldType = Java.type(\"org.onap.policy.apex.testsuites.integration.common.testclasses.PingTestClass\");\nvar outValue = new outFieldType();\n\nvar inValue = executor.inFields.get(\"PingTestClass\");\n\nexecutor.logger.info(inValue);\n\noutValue.setPingTime(inValue.getPingTime());\noutValue.setPongTime(new Date().getTime());\noutValue.setName(inValue.getName() + \"_out\");\n\noutValue.setDescription(\ninValue.getDescription() +\n\". So Romeo would, were he not Romeo call'd,\" +\n\" retain that dear perfection which he owes, without that title.\");\n\nexecutor.logger.info(outValue);\nexecutor.outFields.put(\"PingTestClass\", outValue)\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);" + } + } + } + ] + } + }, + "events": { + "key": { + "name": "JMSTestModel_Events", + "version": "0.0.1" + }, + "eventMap": { + "entry": [ + { + "key": { + "name": "PingTestClassIncomingEvent", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "PingTestClassIncomingEvent", + "version": "0.0.1" + }, + "nameSpace": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms", + "source": "JMS", + "target": "Apex", + "parameter": { + "entry": [ + { + "key": "PingTestClass", + "value": { + "key": "PingTestClass", + "fieldSchemaKey": { + "name": "PingTestClassType", + "version": "0.0.1" + }, + "optional": false + } + } + ] + } + } + }, + { + "key": { + "name": "PingTestClassOutgoingEvent", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "PingTestClassOutgoingEvent", + "version": "0.0.1" + }, + "nameSpace": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms", + "source": "Apex", + "target": "JMS", + "parameter": { + "entry": [ + { + "key": "PingTestClass", + "value": { + "key": "PingTestClass", + "fieldSchemaKey": { + "name": "PingTestClassType", + "version": "0.0.1" + }, + "optional": false + } + } + ] + } + } + } + ] + } + }, + "albums": { + "key": { + "name": "JMSTestModel_Albums", + "version": "0.0.1" + }, + "albums": { + "entry": [] + } + }, + "schemas": { + "key": { + "name": "JMSTestModel_Schemas", + "version": "0.0.1" + }, + "schemas": { + "entry": [ + { + "key": { + "name": "PingTestClassType", + "version": "0.0.1" + }, + "value": { + "key": { + "name": "PingTestClassType", + "version": "0.0.1" + }, + "schemaFlavour": "Java", + "schemaDefinition": "org.onap.policy.apex.testsuites.integration.common.testclasses.PingTestClass" + } + } + ] + } + } + } +} diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/javascript/DefaultTaskLogic.javascript b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/javascript/DefaultTaskLogic.javascript index f98e16555..158e49eea 100644 --- a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/javascript/DefaultTaskLogic.javascript +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/javascript/DefaultTaskLogic.javascript @@ -26,9 +26,7 @@ executor.logger.debug(executor.inFields); var caseSelectedType = Java.type("java.lang.Byte"); executor.outFields.put("TestCaseSelected", new caseSelectedType()); -var JavaDate = Java.type("java.util.Date"); -timeNow = new JavaDate(); -executor.outFields.put("TestStateTime", timeNow.getTime()); +executor.outFields.put("TestStateTime", java.lang.System.nanoTime()); executor.logger.debug(executor.eo); var returnValue = executor.isTrue; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/javascript/EvalTaskLogic.javascript b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/javascript/EvalTaskLogic.javascript index b0756504c..efbe5cb4d 100644 --- a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/javascript/EvalTaskLogic.javascript +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/javascript/EvalTaskLogic.javascript @@ -21,9 +21,7 @@ executor.logger.debug(executor.subject.id); executor.logger.debug(executor.inFields); -var JavaDate = Java.type("java.util.Date"); -timeNow = new JavaDate(); -executor.outFields.put("StateTimestamp", timeNow.getTime()); +executor.outFields.put("StateTimestamp", java.lang.System.nanoTime()); executor.logger.debug(executor.outFields); var returnValue = executor.isTrue; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jruby/DefaultTaskLogic.jruby b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jruby/DefaultTaskLogic.jruby index 4ad39f57e..5a88d4f07 100644 --- a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jruby/DefaultTaskLogic.jruby +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jruby/DefaultTaskLogic.jruby @@ -26,8 +26,7 @@ executor.logger.debug("inFields: " + executor.inFields.toString()) executor.outFields.put("TestCaseSelected", .to_java(:byte)) -timeNow = java.util.Date.new() -executor.outFields.put("TestStateTime", timeNow.getTime()) +executor.outFields.put("TestStateTime", java.lang.System.nanoTime()) executor.logger.debug("outFields: " + executor.outFields.toString()) return true diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jruby/EvalTaskLogic.jruby b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jruby/EvalTaskLogic.jruby index 72a4ee607..a5a86a132 100644 --- a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jruby/EvalTaskLogic.jruby +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jruby/EvalTaskLogic.jruby @@ -25,8 +25,7 @@ executor.logger.debug("inFields: " + executor.inFields.toString()); executor.outFields.putAll(executor.inFields); -timeNow = java.util.Date.new(); -executor.outFields.put("StateTimestamp", timeNow.getTime()); +executor.outFields.put("StateTimestamp", java.lang.System.nanoTime()); executor.logger.debug("outFields: " + executor.outFields.toString()); return true; diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jython/DefaultTaskLogic.jython b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jython/DefaultTaskLogic.jython index f57ce3f0a..824c32bde 100644 --- a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jython/DefaultTaskLogic.jython +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jython/DefaultTaskLogic.jython @@ -20,7 +20,7 @@ from java.lang import Byte from java.lang import Long -from java.util import Date +from java.lang import System executor.logger.debug('id: ' + executor.subject.id) @@ -29,7 +29,7 @@ executor.logger.debug('inFields: ' + executor.inFields.toString()) executor.outFields["TestCaseSelected"] = Byte("") -timeValue = Long(Date().getTime()); +timeValue = Long(System.nanoTime()); executor.outFields["TestStateTime"] = timeValue executor.logger.debug('outFields: ' + executor.outFields.toString()) returnValue = executor.isTrue diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jython/EvalTaskLogic.jython b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jython/EvalTaskLogic.jython index aa6525673..15981aa2d 100644 --- a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jython/EvalTaskLogic.jython +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/jython/EvalTaskLogic.jython @@ -20,13 +20,14 @@ from java.lang import Boolean from java.lang import Long -from java.util import Date +from java.lang import System executor.logger.debug('id: ' + executor.subject.id) executor.logger.debug('inFields: ' + executor.inFields.toString()) executor.outFields.putAll(executor.inFields) -executor.outFields["StateTimestamp"] = Long(Date().getTime()) +timeValue = Long(System.nanoTime()); +executor.outFields["StateTimestamp"] = timeValue executor.logger.debug('outFields: ' + executor.outFields.toString()) returnValue = Boolean.TRUE diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/mvel/DefaultTaskLogic.mvel b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/mvel/DefaultTaskLogic.mvel index 9a1a4bad1..ffe3dd0e4 100644 --- a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/mvel/DefaultTaskLogic.mvel +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/mvel/DefaultTaskLogic.mvel @@ -18,13 +18,11 @@ * ============LICENSE_END========================================================= */ -import java.util.Date; logger.debug(subject.id); gc = getContextAlbum("GlobalContextAlbum"); logger.debug(gc); logger.debug(inFields); outFields["TestCaseSelected"] = (byte); -timeNow = new Date(); -outFields["TestStateTime"] = timeNow.getTime(); +outFields["TestStateTime"] = java.lang.System.nanoTime(); logger.debug(outFields); return true; \ No newline at end of file diff --git a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/mvel/EvalTaskLogic.mvel b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/mvel/EvalTaskLogic.mvel index e15a4beec..869def02c 100644 --- a/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/mvel/EvalTaskLogic.mvel +++ b/testsuites/integration/integration-common/src/main/resources/org/onap/policy/apex/testsuites/integration/common/model/mvel/EvalTaskLogic.mvel @@ -18,9 +18,8 @@ * ============LICENSE_END========================================================= */ -import java.util.Date; logger.debug(subject.id); logger.debug(inFields); -timeNow = new Date(); -outFields["StateTimestamp"] = timeNow.getTime(); + +outFields["StateTimestamp"] = java.lang.System.nanoTime(); return true; \ No newline at end of file diff --git a/testsuites/integration/integration-common/src/test/java/org/onap/policy/apex/testsuites/integration/common/testclasses/TestPingClassTest.java b/testsuites/integration/integration-common/src/test/java/org/onap/policy/apex/testsuites/integration/common/testclasses/TestPingClassTest.java new file mode 100644 index 000000000..6ca7ed9d7 --- /dev/null +++ b/testsuites/integration/integration-common/src/test/java/org/onap/policy/apex/testsuites/integration/common/testclasses/TestPingClassTest.java @@ -0,0 +1,130 @@ +/*- + * ============LICENSE_START======================================================= + * Copyright (C) 2018 Ericsson. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.apex.testsuites.integration.common.testclasses; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; + +import org.junit.Test; +import org.onap.policy.apex.model.basicmodel.concepts.ApexException; + +/** + * Test the ping test class. + */ +public class TestPingClassTest { + @Test + public void testPingClass() { + PingTestClass ptc = new PingTestClass(); + + ptc.setName("Hello"); + assertEquals("Hello", ptc.getName()); + + ptc.setDescription("Good Day"); + assertEquals("Good Day", ptc.getDescription()); + + ptc.setPingTime(0); + assertEquals(0, ptc.getPingTime()); + + ptc.setPongTime(-1); + assertEquals(-1, ptc.getPongTime()); + + try { + ptc.verify(); + fail("test should throw an exception"); + } catch (ApexException ae) { + assertEquals("TestPing is not valid, name does not start with \"Rose\"", ae.getMessage()); + } + + ptc.setName(null); + try { + ptc.verify(); + fail("test should throw an exception"); + } catch (ApexException ae) { + assertEquals("TestPing is not valid, name length null or less than 4", ae.getMessage()); + } + + ptc.setName("Ros"); + try { + ptc.verify(); + fail("test should throw an exception"); + } catch (ApexException ae) { + assertEquals("TestPing is not valid, name length null or less than 4", ae.getMessage()); + } + + ptc.setName("Rose"); + try { + ptc.verify(); + fail("test should throw an exception"); + } catch (ApexException ae) { + assertEquals("TestPing is not valid, description length null or less than 44", ae.getMessage()); + } + + ptc.setDescription(null); + try { + ptc.verify(); + fail("test should throw an exception"); + } catch (ApexException ae) { + assertEquals("TestPing is not valid, description length null or less than 44", ae.getMessage()); + } + + ptc.setDescription("A rose by any other name would smell as swee"); + try { + ptc.verify(); + fail("test should throw an exception"); + } catch (ApexException ae) { + assertEquals("TestPing is not valid, description length null or less than 44", ae.getMessage()); + } + + ptc.setDescription("A rose by any other name would smell as swell"); + try { + ptc.verify(); + fail("test should throw an exception"); + } catch (ApexException ae) { + assertEquals("TestPing is not valid, description is incorrect", ae.getMessage()); + } + + ptc.setDescription("A rose by any other name would smell as sweet"); + try { + ptc.verify(); + fail("test should throw an exception"); + } catch (ApexException ae) { + assertEquals("TestPing is not valid, pong time is not greater than ping time", ae.getMessage()); + } + + ptc.setPongTime(0); + try { + ptc.verify(); + fail("test should throw an exception"); + } catch (ApexException ae) { + assertEquals("TestPing is not valid, pong time is not greater than ping time", ae.getMessage()); + } + + ptc.setPongTime(1); + try { + ptc.verify(); + } catch (ApexException ae) { + fail("test should not throw an exception"); + } + + assertEquals("TestPing [name=Rose, description=A rose by any other name would smell as sweet, " + + "pingTime=0, pongTime=1]", ptc.toString()); + } +} diff --git a/testsuites/integration/integration-uservice-test/pom.xml b/testsuites/integration/integration-uservice-test/pom.xml index 0d3db7a11..38a892377 100644 --- a/testsuites/integration/integration-uservice-test/pom.xml +++ b/testsuites/integration/integration-uservice-test/pom.xml @@ -61,12 +61,6 @@ ${project.version} test - - org.onap.policy.apex-pdp.plugins.plugins-executor - plugins-executor-mvel - ${project.version} - test - org.onap.policy.apex-pdp.plugins.plugins-executor plugins-executor-javascript @@ -190,11 +184,40 @@ + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-examples + generate-test-resources + + unpack + + + + + org.onap.policy.apex-pdp.testsuites.integration + integration-common + ${project.version} + jar + false + ${project.build.directory} + examples/**/* + + + true + true + + + + org.apache.maven.plugins maven-surefire-plugin - always + false diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2File.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2File.java index 5483501b2..709c67c87 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2File.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2File.java @@ -25,6 +25,7 @@ import static org.junit.Assert.assertEquals; import java.io.File; import java.io.IOException; +import org.junit.Before; import org.junit.Test; import org.onap.policy.apex.core.infrastructure.messaging.MessagingException; import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; @@ -33,19 +34,26 @@ import org.onap.policy.apex.model.utilities.TextFileUtils; import org.onap.policy.apex.service.engine.main.ApexMain; public class TestFile2File { + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } @Test public void testJsonFileEvents() throws MessagingException, ApexException, IOException { - final String[] args = {"src/test/resources/prodcons/File2FileJsonEvent.json"}; + final String[] args = {"-rfr", "target", "-c", "target/examples/config/SampleDomain/File2FileJsonEvent.json"}; - testFileEvents(args, "src/test/resources/events/EventsOut.json", 48956); + testFileEvents(args, "target/examples/events/SampleDomain/EventsOut.json", 42200); } @Test public void testXmlFileEvents() throws MessagingException, ApexException, IOException { - final String[] args = {"src/test/resources/prodcons/File2FileXmlEvent.json"}; + final String[] args = {"-rfr", "target", "-c", "target/examples/config/SampleDomain/File2FileXmlEvent.json"}; - testFileEvents(args, "src/test/resources/events/EventsOut.xmlfile", 106739); + testFileEvents(args, "target/examples/events/SampleDomain/EventsOut.xmlfile", 100000); } private void testFileEvents(final String[] args, final String outFilePath, final long expectedFileSize) @@ -61,7 +69,7 @@ public class TestFile2File { // Wait for the file to be filled long outFileSize = 0; while (true) { - final String fileString = TextFileUtils.getTextFileAsString(outFilePath).replaceAll("\\s+", ""); + final String fileString = stripVariableLengthText(outFilePath); outFileSize = fileString.length(); if (outFileSize > 0 && outFileSize >= expectedFileSize) { break; @@ -70,8 +78,22 @@ public class TestFile2File { } apexMain.shutdown(); - outFile.delete(); - assertEquals(outFileSize, expectedFileSize); + assertEquals(expectedFileSize, outFileSize); + } + + /** + * Strip variable length text from file string. + * + * @param textFileAsString the file to read and strip + * @return the stripped string + * @throws IOException on out file read exceptions + */ + private String stripVariableLengthText(final String outFile) throws IOException { + return TextFileUtils.getTextFileAsString(outFile) + .replaceAll("\\s+", "") + .replaceAll(":\\d*\\.?\\d*,", ":0,") + .replaceAll(":\\d*}", ":0}") + .replaceAll("\\d*\\.?\\d*", "0"); } } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileFiltered.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileFiltered.java index 48cd6c013..6c7af80fd 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileFiltered.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileFiltered.java @@ -25,6 +25,7 @@ import static org.junit.Assert.assertEquals; import java.io.File; import java.io.IOException; +import org.junit.Before; import org.junit.Test; import org.onap.policy.apex.core.infrastructure.messaging.MessagingException; import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; @@ -33,48 +34,60 @@ import org.onap.policy.apex.model.utilities.TextFileUtils; import org.onap.policy.apex.service.engine.main.ApexMain; public class TestFile2FileFiltered { + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } @Test public void testJsonFilteredFileInOutEvents() throws MessagingException, ApexException, IOException { - final String[] args = {"src/test/resources/prodcons/File2FileFilteredInOutJsonEvent.json"}; + final String[] args = + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/File2FileFilteredInOutJsonEvent.json" }; - final String[] outFilePaths = { - "src/test/resources/events/Events0004Out.json", - "src/test/resources/events/Events0104Out.json" - }; + final String[] outFilePaths = + { "target/examples/events/SampleDomain/Events0004Out.json", + "target/examples/events/SampleDomain/Events0104Out.json" }; - final long[] expectedFileSizes = {25949, 23007}; + final long[] expectedFileSizes = + { 22366, 19834 }; testFilteredFileEvents(args, outFilePaths, expectedFileSizes); } @Test public void testJsonFilteredFileOutEvents() throws MessagingException, ApexException, IOException { - final String[] args = {"src/test/resources/prodcons/File2FileFilteredOutJsonEvent.json"}; + final String[] args = + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/File2FileFilteredOutJsonEvent.json" }; - final String[] outFilePaths = { - "src/test/resources/events/Events0004Out.json", - "src/test/resources/events/Events0104Out.json" - }; + final String[] outFilePaths = + { "target/examples/events/SampleDomain/Events0004Out.json", + "target/examples/events/SampleDomain/Events0104Out.json" }; - final long[] expectedFileSizes = {25949, 23007}; + final long[] expectedFileSizes = + { 22366, 19834 }; testFilteredFileEvents(args, outFilePaths, expectedFileSizes); } @Test public void testJsonFilteredFileInEvents() throws MessagingException, ApexException, IOException { - final String[] args = {"src/test/resources/prodcons/File2FileFilteredInJsonEvent.json"}; + final String[] args = + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/File2FileFilteredInJsonEvent.json" }; - final String[] outFilePaths = {"src/test/resources/events/Events0004Out.json"}; + final String[] outFilePaths = + { "target/examples/events/SampleDomain/Events0004Out.json" }; - final long[] expectedFileSizes = {25949}; + final long[] expectedFileSizes = + { 22366 }; testFilteredFileEvents(args, outFilePaths, expectedFileSizes); } private void testFilteredFileEvents(final String[] args, final String[] outFilePaths, - final long[] expectedFileSizes) throws MessagingException, ApexException, IOException { + final long[] expectedFileSizes) throws MessagingException, ApexException, IOException { final ApexMain apexMain = new ApexMain(args); final File outFile0 = new File(outFilePaths[0]); @@ -86,7 +99,7 @@ public class TestFile2FileFiltered { // Wait for the file to be filled long outFile0Size = 0; for (int i = 0; i < 4; i++) { - final String fileString = TextFileUtils.getTextFileAsString(outFilePaths[0]).replaceAll("\\s+", ""); + final String fileString = stripVariableLengthText(outFilePaths[0]); outFile0Size = fileString.length(); if (outFile0Size > 0 && outFile0Size >= expectedFileSizes[0]) { break; @@ -100,13 +113,28 @@ public class TestFile2FileFiltered { final long[] actualFileSizes = new long[expectedFileSizes.length]; for (int i = 0; i < outFilePaths.length; i++) { - final String fileString = TextFileUtils.getTextFileAsString(outFilePaths[i]).replaceAll("\\s+", ""); + final String fileString = stripVariableLengthText(outFilePaths[i]); actualFileSizes[i] = fileString.length(); new File(outFilePaths[i]).delete(); } for (int i = 0; i < actualFileSizes.length; i++) { - assertEquals(actualFileSizes[i], expectedFileSizes[i]); + assertEquals(expectedFileSizes[i], actualFileSizes[i]); } } + + /** + * Strip variable length text from file string. + * + * @param textFileAsString the file to read and strip + * @return the stripped string + * @throws IOException on out file read exceptions + */ + private String stripVariableLengthText(final String outFile) throws IOException { + return TextFileUtils.getTextFileAsString(outFile) + .replaceAll("\\s+", "") + .replaceAll(":\\d*\\.?\\d*,", ":0,") + .replaceAll(":\\d*}", ":0}") + .replaceAll("\\d*\\.?\\d*", "0"); + } } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileIgnore.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileIgnore.java index 49c7a96d1..b3fa512d5 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileIgnore.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/file/TestFile2FileIgnore.java @@ -35,9 +35,10 @@ import org.onap.policy.apex.service.engine.main.ApexMain; * The Class TestFile2FileIgnore. */ public class TestFile2FileIgnore { - // This test is used just to bring up an instance of Apex for manual testing and demonstrations // It should always be ignored in automated testing because it holds Apex up for a very long + // time + /** * The main method. * @@ -46,9 +47,8 @@ public class TestFile2FileIgnore { * @throws ApexException the apex exception * @throws IOException Signals that an I/O exception has occurred. */ - // time public static void main(final String[] args) throws MessagingException, ApexException, IOException { - final String[] apexArgs = {"src/test/resources/prodcons/File2FileJsonEvent.json"}; + final String[] apexArgs = {"-rfr", "target", "-c", "examples/config/SampleDomain/File2FileJsonEvent.json"}; testFileEvents(apexArgs, "src/test/resources/events/EventsOut.json", 48656); } @@ -76,7 +76,7 @@ public class TestFile2FileIgnore { // Wait for the file to be filled long outFileSize = 0; while (true) { - final String fileString = TextFileUtils.getTextFileAsString(outFilePath).replaceAll("\\s+", ""); + final String fileString = stripVariableLengthText(outFilePath); outFileSize = fileString.length(); if (outFileSize > 0 && outFileSize >= expectedFileSize) { break; @@ -91,6 +91,22 @@ public class TestFile2FileIgnore { outFile.delete(); assertEquals(outFileSize, expectedFileSize); } + + + /** + * Strip variable length text from file string. + * + * @param textFileAsString the file to read and strip + * @return the stripped string + * @throws IOException on out file read exceptions + */ + private static String stripVariableLengthText(final String outFile) throws IOException { + return TextFileUtils.getTextFileAsString(outFile) + .replaceAll("\\s+", "") + .replaceAll(":\\d*\\.?\\d*,", ":0,") + .replaceAll(":\\d*}", ":0}") + .replaceAll("\\d*\\.?\\d*", "0"); + } } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/JmsEventProducer.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/JmsEventProducer.java index 6a7e61739..ab2f45c22 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/JmsEventProducer.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/JmsEventProducer.java @@ -31,6 +31,7 @@ import javax.jms.Topic; import org.apache.activemq.command.ActiveMQTopic; import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; import org.onap.policy.apex.service.engine.event.ApexEventRuntimeException; +import org.onap.policy.apex.testsuites.integration.common.testclasses.PingTestClass; import org.onap.policy.apex.testsuites.integration.uservice.adapt.events.EventGenerator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -87,7 +88,7 @@ public class JmsEventProducer implements Runnable { public void run() { final Topic jmsTopic = new ActiveMQTopic(topic); try (final Session jmsSession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - final MessageProducer jmsProducer = jmsSession.createProducer(jmsTopic);) { + final MessageProducer jmsProducer = jmsSession.createProducer(jmsTopic)) { while (producerThread.isAlive() && !stopFlag) { ThreadUtilities.sleep(50); @@ -127,7 +128,7 @@ public class JmsEventProducer implements Runnable { Message jmsMessage = null; if (sendObjects) { - jmsMessage = jmsSession.createObjectMessage(new TestPing()); + jmsMessage = jmsSession.createObjectMessage(new PingTestClass()); } else { jmsMessage = jmsSession.createTextMessage(EventGenerator.jsonEvent()); } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/JmsEventSubscriber.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/JmsEventSubscriber.java index d1af8c39a..9dd58c817 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/JmsEventSubscriber.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/JmsEventSubscriber.java @@ -34,6 +34,7 @@ import org.apache.activemq.command.ActiveMQTopic; import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; import org.onap.policy.apex.service.engine.event.ApexEventException; import org.onap.policy.apex.service.engine.event.ApexEventRuntimeException; +import org.onap.policy.apex.testsuites.integration.common.testclasses.PingTestClass; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -51,7 +52,6 @@ public class JmsEventSubscriber implements Runnable { private final Thread subscriberThread; private final Connection connection; - /** * Instantiates a new jms event subscriber. * @@ -62,7 +62,7 @@ public class JmsEventSubscriber implements Runnable { * @throws JMSException the JMS exception */ public JmsEventSubscriber(final String topic, final ConnectionFactory connectionFactory, final String username, - final String password) throws JMSException { + final String password) throws JMSException { this.topic = topic; connection = connectionFactory.createConnection(username, password); connection.start(); @@ -71,14 +71,16 @@ public class JmsEventSubscriber implements Runnable { subscriberThread.start(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see java.lang.Runnable#run() */ @Override public void run() { final Topic jmsTopic = new ActiveMQTopic(topic); try (final Session jmsSession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - final MessageConsumer jmsConsumer = jmsSession.createConsumer(jmsTopic);) { + final MessageConsumer jmsConsumer = jmsSession.createConsumer(jmsTopic)) { while (subscriberThread.isAlive() && !subscriberThread.isInterrupted()) { try { @@ -88,13 +90,13 @@ public class JmsEventSubscriber implements Runnable { } if (message instanceof ObjectMessage) { - final TestPing testPing = (TestPing) ((ObjectMessage) message).getObject(); + final PingTestClass testPing = (PingTestClass) ((ObjectMessage) message).getObject(); testPing.verify(); } else if (message instanceof TextMessage) { ((TextMessage) message).getText(); } else { throw new ApexEventException("unknowm message \"" + message + "\" of type \"" - + message.getClass().getCanonicalName() + "\" received"); + + message.getClass().getCanonicalName() + "\" received"); } eventsReceivedCount++; } catch (final Exception e) { diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestJms2Jms.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestJms2Jms.java index 422a97a11..ca2d3ecc0 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestJms2Jms.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestJms2Jms.java @@ -36,6 +36,7 @@ import org.apache.activemq.broker.BrokerService; import org.apache.activemq.security.AuthenticationUser; import org.apache.activemq.security.SimpleAuthenticationPlugin; import org.junit.AfterClass; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; @@ -55,7 +56,7 @@ public class TestJms2Jms { private static final int SLEEP_TIME = 1500; private static final String GROUP_ROLE = "guests"; - private static final String PACKAGE_NAME = "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms"; + private static final String PACKAGE_NAME = "org.onap.policy.apex.testsuites.integration.common.testclasses"; private static final String USERNAME = "guest"; private static final String PASSWORD = "IAmAGuest"; private static final String URL = "tcp://" + HOST + ":" + PORT; @@ -72,7 +73,6 @@ public class TestJms2Jms { public static ActiveMQConnectionFactory connectionFactory; - /** * Setup embedded jms server. * @@ -97,6 +97,14 @@ public class TestJms2Jms { connectionFactory.setTrustedPackages(Arrays.asList(PACKAGE_NAME)); } + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } + /** * Gets the authentication broker plugin. * @@ -134,7 +142,7 @@ public class TestJms2Jms { */ @Test public void testJmsObjectEvents() throws ApexException, JMSException { - final String[] args = { "src/test/resources/prodcons/JMS2JMSObjectEvent.json" }; + final String[] args = { "-rfr", "target", "-c", "target/examples/config/JMS/JMS2JMSObjectEvent.json" }; testJmsEvents(args, true); } @@ -146,7 +154,7 @@ public class TestJms2Jms { */ @Test public void testJmsJsonEvents() throws ApexException, JMSException { - final String[] args = { "src/test/resources/prodcons/JMS2JMSJsonEvent.json" }; + final String[] args = { "-rfr", "target", "-c", "target/examples/config/JMS/JMS2JMSJsonEvent.json" }; testJmsEvents(args, false); } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestPing.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestPing.java deleted file mode 100644 index b0dfb553a..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/jms/TestPing.java +++ /dev/null @@ -1,147 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Copyright (C) 2016-2018 Ericsson. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - -package org.onap.policy.apex.testsuites.integration.uservice.adapt.jms; - -import java.io.Serializable; - -import org.onap.policy.apex.service.engine.event.ApexEventException; - -/** - * The Class TestPing. - * - * @author Liam Fallon (liam.fallon@ericsson.com) - */ -public class TestPing implements Serializable { - private static final long serialVersionUID = -3400711508992955886L; - - private String name = "Rose"; - private String description = "A rose by any other name would smell as sweet"; - private long pingTime = System.currentTimeMillis(); - private long pongTime = -1; - - /** - * Gets the name. - * - * @return the name - */ - public String getName() { - return name; - } - - /** - * Sets the name. - * - * @param name the new name - */ - public void setName(final String name) { - this.name = name; - } - - /** - * Gets the description. - * - * @return the description - */ - public String getDescription() { - return description; - } - - /** - * Sets the description. - * - * @param description the new description - */ - public void setDescription(final String description) { - this.description = description; - } - - /** - * Gets the ping time. - * - * @return the ping time - */ - public long getPingTime() { - return pingTime; - } - - /** - * Sets the ping time. - * - * @param pingTime the new ping time - */ - public void setPingTime(final long pingTime) { - this.pingTime = pingTime; - } - - /** - * Gets the pong time. - * - * @return the pong time - */ - public long getPongTime() { - return pongTime; - } - - /** - * Sets the pong time. - * - * @param pongTime the new pong time - */ - public void setPongTime(final long pongTime) { - this.pongTime = pongTime; - } - - /* (non-Javadoc) - * @see java.lang.Object#toString() - */ - @Override - public String toString() { - return "TestPing [name=" + name + ", description=" + description + ", pingTime=" + pingTime + ", pongTime=" - + pongTime + "]"; - } - - /** - * Verify. - * - * @throws ApexEventException the apex event exception - */ - public void verify() throws ApexEventException { - if (!name.startsWith("Rose")) { - throw new ApexEventException("TestPing is not valid"); - } - - if (name.length() <= 4) { - throw new ApexEventException("TestPing is not valid"); - } - - if (!description.startsWith("A rose by any other name would smell as sweet")) { - throw new ApexEventException("TestPing is not valid"); - } - - if (description.length() <= 44) { - throw new ApexEventException("TestPing is not valid"); - } - - if (pongTime <= pingTime) { - throw new ApexEventException("TestPing is not valid"); - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/kafka/TestKafka2Kafka.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/kafka/TestKafka2Kafka.java index 6ab910506..5c8eb7eb1 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/kafka/TestKafka2Kafka.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/kafka/TestKafka2Kafka.java @@ -28,6 +28,7 @@ import com.salesforce.kafka.test.junit4.SharedKafkaTestResource; import java.io.File; import java.io.IOException; +import org.junit.Before; import org.junit.ClassRule; import org.junit.Test; import org.onap.policy.apex.core.infrastructure.messaging.MessagingException; @@ -45,6 +46,14 @@ public class TestKafka2Kafka { private static final int EVENT_COUNT = 100; private static final int EVENT_INTERVAL = 20; + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } + @ClassRule public static final SharedKafkaTestResource sharedKafkaTestResource = new SharedKafkaTestResource() // Start a cluster with 1 brokers. @@ -60,8 +69,10 @@ public class TestKafka2Kafka { */ @Test public void testJsonKafkaEvents() throws MessagingException, ApexException { + final String conditionedConfigFile = getConditionedConfigFile( + "target" + File.separator + "examples/config/SampleDomain/Kafka2KafkaJsonEvent.json"); final String[] args = - { "src/test/resources/prodcons/Kafka2KafkaJsonEvent.json" }; + { "-rfr", "target", "-c", conditionedConfigFile }; testKafkaEvents(args, false, "json"); } @@ -73,8 +84,11 @@ public class TestKafka2Kafka { */ @Test public void testXmlKafkaEvents() throws MessagingException, ApexException { + final String conditionedConfigFile = getConditionedConfigFile( + "target" + File.separator + "examples/config/SampleDomain/Kafka2KafkaXmlEvent.json"); final String[] args = - { "src/test/resources/prodcons/Kafka2KafkaXmlEvent.json" }; + { "-rfr", "target", "-c", conditionedConfigFile }; + testKafkaEvents(args, true, "xml"); } @@ -90,18 +104,6 @@ public class TestKafka2Kafka { private void testKafkaEvents(String[] args, final Boolean xmlEvents, final String topicSuffix) throws MessagingException, ApexException { - try { - File tempConfigFile = File.createTempFile("Kafka_", ".json"); - tempConfigFile.deleteOnExit(); - String configAsString = TextFileUtils.getTextFileAsString(args[0]).replaceAll("localhost:39902", - sharedKafkaTestResource.getKafkaConnectString()); - TextFileUtils.putStringAsFile(configAsString, tempConfigFile.getCanonicalFile()); - args[0] = tempConfigFile.getCanonicalPath(); - - } catch (IOException e) { - fail("test should not throw an exception"); - } - sharedKafkaTestResource.getKafkaTestUtils().createTopic("apex-out-" + topicSuffix, 1, (short) 1); sharedKafkaTestResource.getKafkaTestUtils().createTopic("apex-in-" + topicSuffix, 1, (short) 1); @@ -115,7 +117,7 @@ public class TestKafka2Kafka { EVENT_COUNT, xmlEvents, EVENT_INTERVAL); producer.sendEvents(); - + final long testStartTime = System.currentTimeMillis(); // Wait for the producer to send all tis events @@ -131,11 +133,25 @@ public class TestKafka2Kafka { ThreadUtilities.sleep(1000); - assertEquals(producer.getEventsSentCount(), subscriber.getEventsReceivedCount()); - apexMain.shutdown(); subscriber.shutdown(); producer.shutdown(); - ThreadUtilities.sleep(1000); + + assertEquals(producer.getEventsSentCount(), subscriber.getEventsReceivedCount()); + } + + private String getConditionedConfigFile(final String configurationFileName) { + try { + File tempConfigFile = File.createTempFile("Kafka_", ".json"); + tempConfigFile.deleteOnExit(); + String configAsString = TextFileUtils.getTextFileAsString(configurationFileName) + .replaceAll("localhost:39902", sharedKafkaTestResource.getKafkaConnectString()); + TextFileUtils.putStringAsFile(configAsString, tempConfigFile.getCanonicalFile()); + + return tempConfigFile.getCanonicalPath(); + } catch (IOException e) { + fail("test should not throw an exception"); + return null; + } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestFile2Rest.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestFile2Rest.java index d681fd471..9a9b48bad 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestFile2Rest.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestFile2Rest.java @@ -39,17 +39,22 @@ import org.glassfish.grizzly.http.server.HttpServer; import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory; import org.glassfish.jersey.server.ResourceConfig; import org.junit.AfterClass; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.onap.policy.apex.core.infrastructure.messaging.MessagingException; import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; import org.onap.policy.apex.model.basicmodel.concepts.ApexException; import org.onap.policy.apex.service.engine.main.ApexMain; +import org.slf4j.ext.XLogger; +import org.slf4j.ext.XLoggerFactory; /** * The Class TestFile2Rest. */ public class TestFile2Rest { + private static final XLogger LOGGER = XLoggerFactory.getXLogger(TestFile2Rest.class); + private static final String BASE_URI = "http://localhost:32801/TestFile2Rest"; private static HttpServer server; @@ -84,6 +89,14 @@ public class TestFile2Rest { server.shutdown(); } + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } + /** * Test file events post. * @@ -96,16 +109,21 @@ public class TestFile2Rest { final Client client = ClientBuilder.newClient(); final String[] args = - { "src/test/resources/prodcons/File2RESTJsonEventPost.json" }; + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/File2RESTJsonEventPost.json" }; final ApexMain apexMain = new ApexMain(args); + Response response = null; + // Wait for the required amount of events to be received or for 10 seconds for (int i = 0; i < 100; i++) { ThreadUtilities.sleep(100); - final Response response = client.target("http://localhost:32801/TestFile2Rest/apex/event/Stats") + response = client.target("http://localhost:32801/TestFile2Rest/apex/event/Stats") .request("application/json").get(); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); + if (Response.Status.OK.getStatusCode() != response.getStatus()) { + break; + } + final String responseString = response.readEntity(String.class); @SuppressWarnings("unchecked") @@ -116,6 +134,8 @@ public class TestFile2Rest { } apexMain.shutdown(); + + assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); } /** @@ -128,18 +148,23 @@ public class TestFile2Rest { @Test public void testFileEventsPut() throws MessagingException, ApexException, IOException { final String[] args = - { "src/test/resources/prodcons/File2RESTJsonEventPut.json" }; + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/File2RESTJsonEventPut.json" }; final ApexMain apexMain = new ApexMain(args); final Client client = ClientBuilder.newClient(); + Response response = null; + // Wait for the required amount of events to be received or for 10 seconds for (int i = 0; i < 100; i++) { ThreadUtilities.sleep(100); - final Response response = client.target("http://localhost:32801/TestFile2Rest/apex/event/Stats") + response = client.target("http://localhost:32801/TestFile2Rest/apex/event/Stats") .request("application/json").get(); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); + if (Response.Status.OK.getStatusCode() != response.getStatus()) { + break; + } + final String responseString = response.readEntity(String.class); @SuppressWarnings("unchecked") @@ -150,6 +175,8 @@ public class TestFile2Rest { } apexMain.shutdown(); + + assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); } /** @@ -176,6 +203,7 @@ public class TestFile2Rest { System.setOut(stdout); System.setErr(stderr); + LOGGER.info("NoUrl-OUTSTRING=\n" + outString + "\nEnd-NoUrl"); assertTrue(outString.contains(" no URL has been set for event sending on REST client")); } @@ -195,7 +223,7 @@ public class TestFile2Rest { { "src/test/resources/prodcons/File2RESTJsonEventBadURL.json" }; final ApexMain apexMain = new ApexMain(args); - ThreadUtilities.sleep(200); + ThreadUtilities.sleep(2000); apexMain.shutdown(); final String outString = outContent.toString(); @@ -203,6 +231,7 @@ public class TestFile2Rest { System.setOut(stdout); System.setErr(stderr); + LOGGER.info("BadUrl-OUTSTRING=\n" + outString + "\nEnd-BadUrl"); assertTrue(outString.contains( "send of event to URL \"http://localhost:32801/TestFile2Rest/apex/event/Bad\" using HTTP \"POST\" failed with status code 404")); } @@ -231,6 +260,7 @@ public class TestFile2Rest { System.setOut(stdout); System.setErr(stderr); + LOGGER.info("BadHttpMethod-OUTSTRING=\n" + outString + "\nEnd-BadHttpMethod"); assertTrue(outString.contains( "specified HTTP method of \"DELETE\" is invalid, only HTTP methods \"POST\" and \"PUT\" " + "are supproted for event sending on REST client producer")); @@ -252,7 +282,7 @@ public class TestFile2Rest { { "src/test/resources/prodcons/File2RESTJsonEventPostBadResponse.json" }; final ApexMain apexMain = new ApexMain(args); - ThreadUtilities.sleep(500); + ThreadUtilities.sleep(2000); apexMain.shutdown(); final String outString = outContent.toString(); @@ -260,7 +290,9 @@ public class TestFile2Rest { System.setOut(stdout); System.setErr(stderr); + LOGGER.info("BadResponse-OUTSTRING=\n" + outString + "\nEnd-BadResponse"); assertTrue(outString.contains( - "send of event to URL \"http://localhost:32801/TestFile2Rest/apex/event/PostEventBadResponse\" using HTTP \"POST\" failed with status code 400")); + "send of event to URL \"http://localhost:32801/TestFile2Rest/apex/event/PostEventBadResponse\"" + + " using HTTP \"POST\" failed with status code 400")); } } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestRest2File.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestRest2File.java index ec41de5fb..cb98ec76b 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestRest2File.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restclient/TestRest2File.java @@ -55,6 +55,14 @@ public class TestRest2File { private final PrintStream stdout = System.out; private final PrintStream stderr = System.err; + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } + /** * Sets the up. * @@ -98,14 +106,15 @@ public class TestRest2File { @Test public void testRestEventsIn() throws MessagingException, ApexException, IOException { final String[] args = - { "src/test/resources/prodcons/REST2FileJsonEvent.json" }; + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/REST2FileJsonEvent.json" }; final ApexMain apexMain = new ApexMain(args); ThreadUtilities.sleep(1000); apexMain.shutdown(); - final String outputEventText = TextFileUtils.getTextFileAsString("src/test/resources/events/EventsOut.json"); + final String outputEventText = TextFileUtils + .getTextFileAsString("target/examples/events/SampleDomain/EventsOut.json"); assertTrue(outputEventText.contains("04\",\n" + " \"version\": \"0.0.1\",\n" + " \"nameSpace\": \"org.onap.policy.apex.sample.events\"")); } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restserver/TestRestServer.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restserver/TestRestServer.java index 59cc2ceea..5514caab6 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restserver/TestRestServer.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restserver/TestRestServer.java @@ -36,16 +36,21 @@ import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.Entity; import javax.ws.rs.core.Response; +import org.junit.Before; import org.junit.Test; import org.onap.policy.apex.core.infrastructure.messaging.MessagingException; import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; import org.onap.policy.apex.model.basicmodel.concepts.ApexException; import org.onap.policy.apex.service.engine.main.ApexMain; +import org.slf4j.ext.XLogger; +import org.slf4j.ext.XLoggerFactory; /** * The Class TestRestServer. */ public class TestRestServer { + private static final XLogger LOGGER = XLoggerFactory.getXLogger(TestRestServer.class); + private final ByteArrayOutputStream outContent = new ByteArrayOutputStream(); private final ByteArrayOutputStream errContent = new ByteArrayOutputStream(); @@ -54,6 +59,14 @@ public class TestRestServer { private static int eventsSent = 0; + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } + /** * Test rest server put. * @@ -61,28 +74,39 @@ public class TestRestServer { * @throws ApexException the apex exception * @throws IOException Signals that an I/O exception has occurred. */ + @SuppressWarnings("unchecked") @Test public void testRestServerPut() throws MessagingException, ApexException, IOException { + LOGGER.info("testRestServerPut start"); + final String[] args = - { "src/test/resources/prodcons/RESTServerJsonEvent.json" }; + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/RESTServerJsonEvent.json" }; final ApexMain apexMain = new ApexMain(args); final Client client = ClientBuilder.newClient(); + Response response = null; + Map jsonMap = null; + for (int i = 0; i < 20; i++) { - final Response response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") - .request("application/json").put(Entity.json(getEvent())); + response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") + .put(Entity.json(getEvent())); + + if (Response.Status.OK.getStatusCode() != response.getStatus()) { + break; + } - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); final String responseString = response.readEntity(String.class); - @SuppressWarnings("unchecked") - final Map jsonMap = new Gson().fromJson(responseString, Map.class); - assertEquals("org.onap.policy.apex.sample.events", jsonMap.get("nameSpace")); - assertEquals("Test slogan for External Event0", jsonMap.get("TestSlogan")); + jsonMap = new Gson().fromJson(responseString, Map.class); } apexMain.shutdown(); + + assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); + assertEquals("org.onap.policy.apex.sample.events", jsonMap.get("nameSpace")); + assertEquals("Test slogan for External Event0", jsonMap.get("TestSlogan")); + LOGGER.info("testRestServerPut end"); } /** @@ -92,28 +116,36 @@ public class TestRestServer { * @throws ApexException the apex exception * @throws IOException Signals that an I/O exception has occurred. */ + @SuppressWarnings("unchecked") @Test public void testRestServerPost() throws MessagingException, ApexException, IOException { final String[] args = - { "src/test/resources/prodcons/RESTServerJsonEvent.json" }; + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/RESTServerJsonEvent.json" }; final ApexMain apexMain = new ApexMain(args); final Client client = ClientBuilder.newClient(); + Response response = null; + Map jsonMap = null; + for (int i = 0; i < 20; i++) { - final Response response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") - .request("application/json").post(Entity.json(getEvent())); + response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") + .post(Entity.json(getEvent())); + + if (Response.Status.OK.getStatusCode() != response.getStatus()) { + break; + } - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); final String responseString = response.readEntity(String.class); - @SuppressWarnings("unchecked") - final Map jsonMap = new Gson().fromJson(responseString, Map.class); - assertEquals("org.onap.policy.apex.sample.events", jsonMap.get("nameSpace")); - assertEquals("Test slogan for External Event0", jsonMap.get("TestSlogan")); + jsonMap = new Gson().fromJson(responseString, Map.class); } apexMain.shutdown(); + + assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); + assertEquals("org.onap.policy.apex.sample.events", jsonMap.get("nameSpace")); + assertEquals("Test slogan for External Event0", jsonMap.get("TestSlogan")); } /** @@ -126,35 +158,47 @@ public class TestRestServer { @Test public void testRestServerGetStatus() throws MessagingException, ApexException, IOException { final String[] args = - { "src/test/resources/prodcons/RESTServerJsonEvent.json" }; + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/RESTServerJsonEvent.json" }; final ApexMain apexMain = new ApexMain(args); final Client client = ClientBuilder.newClient(); + Response postResponse = null; + Response putResponse = null; + // trigger 10 POST & PUT events for (int i = 0; i < 10; i++) { - final Response postResponse = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") + postResponse = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") .request("application/json").post(Entity.json(getEvent())); - final Response putResponse = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") - .request("application/json").put(Entity.json(getEvent())); - assertEquals(Response.Status.OK.getStatusCode(), postResponse.getStatus()); - assertEquals(Response.Status.OK.getStatusCode(), putResponse.getStatus()); + if (Response.Status.OK.getStatusCode() != postResponse.getStatus()) { + break; + } + putResponse = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") + .put(Entity.json(getEvent())); + + if (Response.Status.OK.getStatusCode() != putResponse.getStatus()) { + break; + } } final Response statResponse = client.target("http://localhost:23324/apex/FirstConsumer/Status") .request("application/json").get(); - assertEquals(Response.Status.OK.getStatusCode(), statResponse.getStatus()); final String responseString = statResponse.readEntity(String.class); + apexMain.shutdown(); + + assertEquals(Response.Status.OK.getStatusCode(), postResponse.getStatus()); + assertEquals(Response.Status.OK.getStatusCode(), putResponse.getStatus()); + assertEquals(Response.Status.OK.getStatusCode(), statResponse.getStatus()); + @SuppressWarnings("unchecked") final Map jsonMap = new Gson().fromJson(responseString, Map.class); - assertEquals("[FirstConsumer", ((String)jsonMap.get("INPUTS")).substring(0, 14)); + assertEquals("[FirstConsumer", ((String) jsonMap.get("INPUTS")).substring(0, 14)); assertEquals(1.0, jsonMap.get("STAT")); - assertTrue((double)jsonMap.get("POST") >= 10.0); - assertTrue((double)jsonMap.get("PUT") >= 10.0); + assertTrue((double) jsonMap.get("POST") >= 10.0); + assertTrue((double) jsonMap.get("PUT") >= 10.0); - apexMain.shutdown(); } /** @@ -164,39 +208,54 @@ public class TestRestServer { * @throws ApexException the apex exception * @throws IOException Signals that an I/O exception has occurred. */ + @SuppressWarnings("unchecked") @Test public void testRestServerMultiInputs() throws MessagingException, ApexException, IOException { final String[] args = - { "src/test/resources/prodcons/RESTServerJsonEventMultiIn.json" }; + { "-rfr", "target", "-c", "target/examples/config/SampleDomain/RESTServerJsonEventMultiIn.json" }; final ApexMain apexMain = new ApexMain(args); final Client client = ClientBuilder.newClient(); + Response firstResponse = null; + Response secondResponse = null; + + Map firstJsonMap = null; + Map secondJsonMap = null; + for (int i = 0; i < 20; i++) { - final Response firstResponse = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") + firstResponse = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") .request("application/json").post(Entity.json(getEvent())); - assertEquals(Response.Status.OK.getStatusCode(), firstResponse.getStatus()); + if (Response.Status.OK.getStatusCode() != firstResponse.getStatus()) { + break; + } + final String firstResponseString = firstResponse.readEntity(String.class); - @SuppressWarnings("unchecked") - final Map firstJsonMap = new Gson().fromJson(firstResponseString, Map.class); - assertEquals("org.onap.policy.apex.sample.events", firstJsonMap.get("nameSpace")); - assertEquals("Test slogan for External Event0", firstJsonMap.get("TestSlogan")); + firstJsonMap = new Gson().fromJson(firstResponseString, Map.class); - final Response secondResponse = client.target("http://localhost:23324/apex/SecondConsumer/EventIn") + secondResponse = client.target("http://localhost:23324/apex/SecondConsumer/EventIn") .request("application/json").post(Entity.json(getEvent())); - assertEquals(Response.Status.OK.getStatusCode(), secondResponse.getStatus()); + if (Response.Status.OK.getStatusCode() != secondResponse.getStatus()) { + break; + } + final String secondResponseString = secondResponse.readEntity(String.class); - @SuppressWarnings("unchecked") - final Map secondJsonMap = new Gson().fromJson(secondResponseString, Map.class); - assertEquals("org.onap.policy.apex.sample.events", secondJsonMap.get("nameSpace")); - assertEquals("Test slogan for External Event0", secondJsonMap.get("TestSlogan")); + secondJsonMap = new Gson().fromJson(secondResponseString, Map.class); } apexMain.shutdown(); + + assertEquals(Response.Status.OK.getStatusCode(), firstResponse.getStatus()); + assertEquals("org.onap.policy.apex.sample.events", firstJsonMap.get("nameSpace")); + assertEquals("Test slogan for External Event0", firstJsonMap.get("TestSlogan")); + + assertEquals(Response.Status.OK.getStatusCode(), secondResponse.getStatus()); + assertEquals("org.onap.policy.apex.sample.events", secondJsonMap.get("nameSpace")); + assertEquals("Test slogan for External Event0", secondJsonMap.get("TestSlogan")); } /** @@ -394,38 +453,6 @@ public class TestRestServer { + "with the same peered mode")); } - /** - * Test rest server divide by zero. - * - * @throws MessagingException the messaging exception - * @throws ApexException the apex exception - * @throws IOException Signals that an I/O exception has occurred. - */ - @Test - public void testRestServerDivideByZero() throws MessagingException, ApexException, IOException { - final String[] args = - { "src/test/resources/prodcons/RESTServerJsonEventDivideByZero.json" }; - final ApexMain apexMain = new ApexMain(args); - - final Client client = ClientBuilder.newClient(); - - for (int i = 0; i < 20; i++) { - final Response response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") - .request("application/json").put(Entity.json(getEvent())); - - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - final String responseString = response.readEntity(String.class); - - @SuppressWarnings("unchecked") - final Map jsonMap = new Gson().fromJson(responseString, Map.class); - assertEquals("org.onap.policy.apex.sample.events", jsonMap.get("nameSpace")); - assertEquals("Test slogan for External Event0", jsonMap.get("TestSlogan")); - assertTrue(((String) jsonMap.get("exceptionMessage")).contains("caused by: / by zero")); - } - - apexMain.shutdown(); - } - /** * Gets the event. * diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restserver/TestRestServerVpnContext.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restserver/TestRestServerVpnContext.java deleted file mode 100644 index 1791033e6..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/restserver/TestRestServerVpnContext.java +++ /dev/null @@ -1,136 +0,0 @@ -/*- - * ============LICENSE_START======================================================= - * Copyright (C) 2016-2018 Ericsson. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - * ============LICENSE_END========================================================= - */ - -package org.onap.policy.apex.testsuites.integration.uservice.adapt.restserver; - -import static org.junit.Assert.assertEquals; - -import java.io.IOException; - -import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; -import javax.ws.rs.client.Entity; -import javax.ws.rs.core.Response; - -import org.junit.Ignore; -import org.junit.Test; -import org.onap.policy.apex.core.infrastructure.messaging.MessagingException; -import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; -import org.onap.policy.apex.model.basicmodel.concepts.ApexException; -import org.onap.policy.apex.service.engine.main.ApexMain; - - -public class TestRestServerVpnContext { - private static int eventsSent = 0; - - @Ignore - @Test - public void testRestServerPut() throws MessagingException, ApexException, IOException { - final String[] args = {"src/test/resources/prodcons/RESTServerJsonEventContextJava.json"}; - final ApexMain apexMain = new ApexMain(args); - - final Client client = ClientBuilder.newClient(); - - Response response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") - .request("application/json").put(Entity.json(setupLinkContext("L09", true))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupLinkContext("L10", true))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupCustomerContext("A", "L09 L10", 300, 50))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupCustomerContext("B", "L09 L10", 300, 299))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupCustomerContext("C", "L09 L10", 300, 300))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupCustomerContext("D", "L09 L10", 300, 400))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - ThreadUtilities.sleep(100000); - - apexMain.shutdown(); - } - - @Ignore - @Test - public void testRestServerPutAvro() throws MessagingException, ApexException, IOException { - final String[] args = {"src/test/resources/prodcons/RESTServerJsonEventContextAvro.json"}; - final ApexMain apexMain = new ApexMain(args); - - final Client client = ClientBuilder.newClient(); - - Response response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn") - .request("application/json").put(Entity.json(setupLinkContext("L09", true))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupLinkContext("L10", true))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupCustomerContext("A", "L09 L10", 300, 50))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupCustomerContext("B", "L09 L10", 300, 299))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupCustomerContext("C", "L09 L10", 300, 300))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - response = client.target("http://localhost:23324/apex/FirstConsumer/EventIn").request("application/json") - .put(Entity.json(setupCustomerContext("D", "L09 L10", 300, 400))); - assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); - - ThreadUtilities.sleep(100000); - - apexMain.shutdown(); - } - - private String setupLinkContext(final String link, final Boolean isUp) { - final String eventString = "{\n" + "\"nameSpace\": \"org.onap.policy.apex.domains.vpn.events\",\n" - + "\"name\": \"VPNLinkCtxtTriggerEvent\",\n" + "\"version\": \"0.0.1\",\n" + "\"source\": \"REST_" - + eventsSent++ + "\",\n" + "\"target\": \"apex\",\n" + "\"Link\": \"" + link + "\",\n" + "\"LinkUp\": " - + isUp + "\n" + "}"; - - return eventString; - } - - private String setupCustomerContext(final String customerName, final String linkList, final int slaDt, - final int ytdDt) { - final String eventString = "{\n" + "\"nameSpace\": \"org.onap.policy.apex.domains.vpn.events\",\n" - + "\"name\": \"VPNCustomerCtxtTriggerEvent\",\n" + "\"version\": \"0.0.1\",\n" + "\"source\": \"REST_" - + eventsSent++ + "\",\n" + "\"target\": \"apex\",\n" + "\"CustomerName\": \"" + customerName + "\",\n" - + "\"LinkList\": \"" + linkList + "\",\n" + "\"SlaDT\": \"" + slaDt + "\",\n" + "\"YtdDT\": " + ytdDt - + "\n" + "}"; - - return eventString; - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsClient.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsClient.java index c2db95860..18c13dbfe 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsClient.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsClient.java @@ -22,6 +22,7 @@ package org.onap.policy.apex.testsuites.integration.uservice.adapt.websocket; import static org.junit.Assert.assertEquals; +import org.junit.Before; import org.junit.Test; import org.onap.policy.apex.core.infrastructure.messaging.MessagingException; import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; @@ -34,15 +35,23 @@ public class TestWs2WsClient { private static final int EVENT_COUNT = 100; private static final int EVENT_INTERVAL = 20; + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } + @Test public void testJsonWsEvents() throws MessagingException, ApexException { - final String[] args = {"src/test/resources/prodcons/Ws2WsClientJsonEvent.json"}; + final String[] args = {"-rfr", "target", "-c", "target/examples/config/SampleDomain/Ws2WsClientJsonEvent.json"}; testWsEvents(args, false); } @Test public void testXmlWsEvents() throws MessagingException, ApexException { - final String[] args = {"src/test/resources/prodcons/Ws2WsClientXMLEvent.json"}; + final String[] args = {"-rfr", "target", "-c", "target/examples/config/SampleDomain/Ws2WsClientXMLEvent.json"}; testWsEvents(args, true); } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsServer.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsServer.java index 34871e3c6..07b51a8e3 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsServer.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/adapt/websocket/TestWs2WsServer.java @@ -22,6 +22,7 @@ package org.onap.policy.apex.testsuites.integration.uservice.adapt.websocket; import static org.junit.Assert.assertEquals; +import org.junit.Before; import org.junit.Test; import org.onap.policy.apex.core.infrastructure.messaging.MessagingException; import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; @@ -37,6 +38,14 @@ public class TestWs2WsServer { private static final int EVENT_COUNT = 100; private static final int EVENT_INTERVAL = 20; + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } + /** * Test json ws events. * @@ -45,7 +54,7 @@ public class TestWs2WsServer { */ @Test public void testJsonWsEvents() throws MessagingException, ApexException { - final String[] args = {"src/test/resources/prodcons/Ws2WsServerJsonEvent.json"}; + final String[] args = {"-rfr", "target", "-c", "target/examples/config/SampleDomain/Ws2WsServerJsonEvent.json"}; testWsEvents(args, false); } @@ -57,7 +66,7 @@ public class TestWs2WsServer { */ @Test public void testXmlWsEvents() throws MessagingException, ApexException { - final String[] args = {"src/test/resources/prodcons/Ws2WsServerXMLEvent.json"}; + final String[] args = {"-rfr", "target", "-c", "target/examples/config/SampleDomain/Ws2WsServerXMLEvent.json"}; testWsEvents(args, true); } diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/context/EventAlbumContextTest.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/context/EventAlbumContextTest.java index 757a48302..d57f280ed 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/context/EventAlbumContextTest.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/context/EventAlbumContextTest.java @@ -26,6 +26,7 @@ import static org.junit.Assert.assertTrue; import java.io.File; import java.io.IOException; +import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; @@ -47,6 +48,14 @@ public class EventAlbumContextTest { @Rule public TemporaryFolder tempTestDir = new TemporaryFolder(); + + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } @Test public void testJavaEventAlbumContextTest() throws IOException, ApexException { @@ -57,7 +66,7 @@ public class EventAlbumContextTest { eventContextString = ResourceUtils.getResourceAsString("examples/scripts/TestPolicyJavaEventContext.apex"); configFile = "src/test/resources/prodcons/Context_JavaEventAlbum_file2file.json"; - outputFile = "src/test/resources/events/Context_JavaEventAlbum_EventOut.json"; + outputFile = "target/Context_JavaEventAlbum_EventOut.json"; compareFile = "src/test/resources/events/Context_JavaEventAlbum_EventOutCompare.json"; testEventAlbumContextTest(); @@ -72,7 +81,7 @@ public class EventAlbumContextTest { eventContextString = ResourceUtils.getResourceAsString("examples/scripts/TestPolicyAvroEventContext.apex"); configFile = "src/test/resources/prodcons/Context_AvroEventAlbum_file2file.json"; - outputFile = "src/test/resources/events/Context_AvroEventAlbum_EventOut.json"; + outputFile = "target/Context_AvroEventAlbum_EventOut.json"; compareFile = "src/test/resources/events/Context_AvroEventAlbum_EventOutCompare.json"; testEventAlbumContextTest(); diff --git a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engdep/EngDepMessagingTest.java b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engdep/EngDepMessagingTest.java index 3e5cb8721..d3a6d76d4 100644 --- a/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engdep/EngDepMessagingTest.java +++ b/testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/testsuites/integration/uservice/engdep/EngDepMessagingTest.java @@ -42,7 +42,7 @@ import org.onap.policy.apex.core.infrastructure.threading.ThreadUtilities; import org.onap.policy.apex.model.basicmodel.concepts.ApexException; import org.onap.policy.apex.model.basicmodel.service.ModelService; import org.onap.policy.apex.model.policymodel.concepts.AxPolicyModel; -import org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters; +import org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters; import org.onap.policy.apex.service.engine.event.ApexEvent; import org.onap.policy.apex.service.parameters.engineservice.EngineServiceParameters; import org.onap.policy.apex.testsuites.integration.common.model.SampleDomainModelFactory; @@ -67,6 +67,14 @@ public class EngDepMessagingTest { private ContextParameters contextParameters; private EngineServiceParameters engineServiceParameters; + /** + * Clear relative file root environment variable. + */ + @Before + public void clearRelativeFileRoot() { + System.clearProperty("APEX_RELATIVE_FILE_ROOT"); + } + /** * Before test. */ @@ -97,8 +105,8 @@ public class EngDepMessagingTest { engineServiceParameters.setDeploymentPort(58820); engineServiceParameters.setInstanceCount(3); engineServiceParameters.setId(100); - engineServiceParameters.getEngineParameters().getExecutorParameterMap().put("MVEL", - new MvelExecutorParameters()); + engineServiceParameters.getEngineParameters().getExecutorParameterMap().put("JAVASCRIPT", + new JavascriptExecutorParameters()); ParameterService.register(engineServiceParameters, true); ParameterService.register(engineServiceParameters.getEngineParameters(), true); @@ -146,7 +154,7 @@ public class EngDepMessagingTest { fail("Test server failed to start after " + MAX_START_WAIT + " ms"); } - final AxPolicyModel apexPolicyModel = new SampleDomainModelFactory().getSamplePolicyModel("MVEL"); + final AxPolicyModel apexPolicyModel = new SampleDomainModelFactory().getSamplePolicyModel("JAVASCRIPT"); final BatchDeployer deployer1 = new BatchDeployer("localhost", 58820, System.out); assertNotNull(deployer1); diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/events/EventsIn.json b/testsuites/integration/integration-uservice-test/src/test/resources/events/EventsIn.json deleted file mode 100644 index f0a0a3da8..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/events/EventsIn.json +++ /dev/null @@ -1,1100 +0,0 @@ -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869268, - "TestTemperature": 8071.559 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869269, - "TestTemperature": 517.19727 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869269, - "TestTemperature": 9080.866 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869269, - "TestTemperature": 4263.7085 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869269, - "TestTemperature": 2342.069 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869269, - "TestTemperature": 6400.4565 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869269, - "TestTemperature": 9495.611 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869269, - "TestTemperature": 4872.2935 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869269, - "TestTemperature": 8130.8086 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869269, - "TestTemperature": 2580.434 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869269, - "TestTemperature": 3169.4663 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869269, - "TestTemperature": 4517.7646 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869269, - "TestTemperature": 9600.465 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869269, - "TestTemperature": 8720.648 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869269, - "TestTemperature": 1031.3821 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869270, - "TestTemperature": 959.9608 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869270, - "TestTemperature": 1483.7533 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869270, - "TestTemperature": 394.8325 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 59.376953 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869270, - "TestTemperature": 862.1466 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 8557.394 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 6732.3687 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 7155.3843 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869270, - "TestTemperature": 4896.5264 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 8457.574 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 4085.176 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 4198.338 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869270, - "TestTemperature": 105.033516 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 8219.068 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 8780.495 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 6224.9775 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869270, - "TestTemperature": 4218.1353 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 4719.9116 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 4592.7275 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 7874.2705 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 9866.951 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 7536.962 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 2430.3843 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 6369.2866 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 7396.739 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 6187.027 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 2216.0667 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 4855.6562 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 5205.6836 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 418.89252 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 5307.6343 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 7034.2065 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 7784.3804 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869270, - "TestTemperature": 3656.007 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 8538.289 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 6515.7104 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 4562.0537 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 9030.76 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 9085.617 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869270, - "TestTemperature": 1244.1838 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869270, - "TestTemperature": 9286.382 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869270, - "TestTemperature": 9573.472 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 2, - "TestTimestamp": 1469781869270, - "TestTemperature": 9994.268 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 3556.8076 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 1305.1998 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 6063.7573 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8860.109 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 1599.9061 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 4316.625 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869271, - "TestTemperature": 2753.6135 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 4469.7656 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 4155.1416 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 1627.2205 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869271, - "TestTemperature": 5554.9585 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 5863.8896 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 9095.753 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 2, - "TestTimestamp": 1469781869271, - "TestTemperature": 5641.7603 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869271, - "TestTemperature": 6120.2446 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 3478.2087 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 1807.8446 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8476.179 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 7418.1934 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 2, - "TestTimestamp": 1469781869271, - "TestTemperature": 4800.719 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869271, - "TestTemperature": 8741.285 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 2, - "TestTimestamp": 1469781869271, - "TestTemperature": 2099.0818 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869271, - "TestTemperature": 138.22377 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 1, - "TestTimestamp": 1469781869271, - "TestTemperature": 272.6066 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 1, - "TestTimestamp": 1469781869271, - "TestTemperature": 2604.9036 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 540.5176 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 2, - "TestTimestamp": 1469781869271, - "TestTemperature": 1482.7478 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 1053.8315 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 6267.906 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 636.44586 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 902.7964 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 259.42923 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 6066.484 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 2918.8723 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 2, - "TestTimestamp": 1469781869271, - "TestTemperature": 6470.262 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 2603.0845 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 4435.378 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 3989.0928 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 7657.731 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 2, - "TestTimestamp": 1469781869271, - "TestTemperature": 6677.433 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0100", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event1", - "TestMatchCase": 0, - "TestTimestamp": 1469781869271, - "TestTemperature": 9456.176 -} -{ - "nameSpace": "org.onap.policy.apex.sample.events", - "name": "Event0000", - "version": "0.0.1", - "source": "test", - "target": "apex", - "TestSlogan": "Test slogan for External Event0", - "TestMatchCase": 3, - "TestTimestamp": 1469781869271, - "TestTemperature": 8723.999 -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/events/EventsIn.xmlfile b/testsuites/integration/integration-uservice-test/src/test/resources/events/EventsIn.xmlfile deleted file mode 100644 index 3c42ddcb2..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/events/EventsIn.xmlfile +++ /dev/null @@ -1,2422 +0,0 @@ - - - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109829 - - - TestTemperature - 5029.0977 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 9205.635 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 745.0819 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 5303.2686 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 76.91979 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 2514.586 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 5762.7017 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 2932.0693 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 4062.569 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 7330.253 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 4523.48 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 4418.4434 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 2070.6726 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 3211.3796 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 9335.347 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 7486.7 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 7916.7837 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 5593.4805 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 2392.5393 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 3407.845 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 8537.924 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109831 - - - TestTemperature - 2093.1672 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 2938.2634 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 9799.69 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 3682.167 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 8614.255 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 5771.5522 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 5778.1587 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 1829.2201 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 8212.186 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 69.31722 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 2842.4954 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 1680.3956 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 2087.8213 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 954.5702 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 5469.4463 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 2140.287 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 8113.5645 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 1402.2207 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 8310.781 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 3253.3342 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 8409.392 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 8705.976 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 5108.107 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 3716.3972 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 813.75836 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 9086.392 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 5549.1143 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 6378.093 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 654.6241 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 8923.838 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 450.83167 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 1230.132 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 1167.3259 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 3186.9114 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 8806.747 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 4241.6426 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 9857.053 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 7561.059 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109832 - - - TestTemperature - 1073.0768 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 6449.4272 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 5766.172 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 4786.6704 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 9645.206 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 9275.977 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 985.0705 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 8582.512 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 6540.643 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 1312.2606 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 2310.2642 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 7863.311 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 9090.517 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 874.7286 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 89.31577 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 5384.0977 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 3326.373 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 7053.2803 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 1100.3625 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 7318.115 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 7304.7827 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 2811.665 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 4690.1846 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 5624.33 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 1051.4647 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 2689.3574 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 2308.247 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 4999.671 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 3138.606 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 0 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 5719.3364 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 445.14835 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 9498.781 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 757.5476 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 227.3655 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 4751.002 - - - - - Event0100 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event1 - - - TestMatchCase - 2 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 8193.897 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 6397.872 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 6133.35 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 3 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 9280.389 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 1031.0221 - - - - - Event0000 - 0.0.1 - org.onap.policy.apex.domains.sample.events - test - apex - - TestSlogan - Test slogan for External Event0 - - - TestMatchCase - 1 - - - TestTimestamp - 1469787109833 - - - TestTemperature - 2206.1318 - - diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/JMSTestModel.json b/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/JMSTestModel.json deleted file mode 100644 index 354638a6d..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/JMSTestModel.json +++ /dev/null @@ -1,456 +0,0 @@ -{ - "apexPolicyModel": { - "key": { - "name": "JMSTestModel", - "version": "0.0.1" - }, - "keyInformation": { - "key": { - "name": "JMSTestModel_KeyInfo", - "version": "0.0.1" - }, - "keyInfoMap": { - "entry": [ - { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "UUID": "b59815ef-fc5b-4e44-9f6e-2f6212bb7296", - "description": "Generated description for a concept called \"JMSCopyInOutTask\" with version \"null\" and UUID \"b59815ef-fc5b-4e44-9f6e-2f6212bb7296\"" - } - }, - { - "key": { - "name": "JMSTestModel", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel", - "version": "0.0.1" - }, - "UUID": "a731a845-f984-46a9-adf4-c6c7ca0baa0d", - "description": "Generated description for a concept called \"JMSTestModel\" with version \"null\" and UUID \"a731a845-f984-46a9-adf4-c6c7ca0baa0d\"" - } - }, - { - "key": { - "name": "JMSTestModel_Albums", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Albums", - "version": "0.0.1" - }, - "UUID": "b580c2e2-067e-452c-8410-d69344fa718c", - "description": "Generated description for concept referred to by key \"JMSTestModel_Albums:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Events", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Events", - "version": "0.0.1" - }, - "UUID": "463f3fa6-2be3-4ded-a015-1f045ee8991e", - "description": "Generated description for concept referred to by key \"JMSTestModel_Events:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_KeyInfo", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_KeyInfo", - "version": "0.0.1" - }, - "UUID": "b14d97fb-f215-4b70-9cd6-cbfb3ed085ee", - "description": "Generated description for concept referred to by key \"JMSTestModel_KeyInfo:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Policies", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Policies", - "version": "0.0.1" - }, - "UUID": "9ae9047f-e0d8-42c4-b3a6-e32954ace3b6", - "description": "Generated description for concept referred to by key \"JMSTestModel_Policies:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Schemas", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Schemas", - "version": "0.0.1" - }, - "UUID": "adc30c29-d4b9-4408-9213-6d86b051d59c", - "description": "Generated description for concept referred to by key \"JMSTestModel_Schemas:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Tasks", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Tasks", - "version": "0.0.1" - }, - "UUID": "c3545f15-710c-4339-9a4e-e0eacffac52e", - "description": "Generated description for concept referred to by key \"JMSTestModel_Tasks:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "UUID": "fdda6a40-6767-45b0-8703-3b5b3bafaf19", - "description": "Generated description for a concept called \"JMSTestPolicy\" with version \"null\" and UUID \"fdda6a40-6767-45b0-8703-3b5b3bafaf19\"" - } - }, - { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "UUID": "6cdd11f3-5fe8-4510-81b9-af3be303ebae", - "description": "Generated description for a concept called \"TestPingIncomingEvent\" with version \"null\" and UUID \"6cdd11f3-5fe8-4510-81b9-af3be303ebae\"" - } - }, - { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "UUID": "dc04de01-2284-4461-9fe2-da58a2122a73", - "description": "Generated description for a concept called \"TestPingOutgoingEvent\" with version \"0.0.1\" and UUID \"dc04de01-2284-4461-9fe2-da58a2122a73\"" - } - }, - { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "UUID": "bdc2f70a-de52-4127-8012-b9593657da3c", - "description": "Generated description for a concept called \"TestPingType\" with version \"null\" and UUID \"bdc2f70a-de52-4127-8012-b9593657da3c\"" - } - } - ] - } - }, - "policies": { - "key": { - "name": "JMSTestModel_Policies", - "version": "0.0.1" - }, - "policyMap": { - "entry": [ - { - "key": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "template": "FREEFORM", - "state": { - "entry": [ - { - "key": "TestJMSState", - "value": { - "stateKey": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "TestJMSState" - }, - "trigger": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "InOutOutputMapping", - "value": { - "key": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "TestJMSState", - "localName": "InOutOutputMapping" - }, - "outgoingEvent": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "TestJMSState", - "localName": "InOutTask" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "TestJMSState", - "localName": "InOutOutputMapping" - } - } - } - ] - } - } - } - ] - }, - "firstState": "TestJMSState" - } - } - ] - } - }, - "tasks": { - "key": { - "name": "JMSTestModel_Tasks", - "version": "0.0.1" - }, - "taskMap": { - "entry": [ - { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "JAVASCRIPT", - "logic": "var outFieldType = Java.type(\"org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestPing\");\nvar outValue = new outFieldType();\n\nvar inValue = executor.inFields.get(\"TestPing\");\n\nexecutor.logger.info(inValue);\n\noutValue.setPingTime(inValue.getPingTime());\noutValue.setPongTime(new Date().getTime());\noutValue.setName(inValue.getName() + \"_out\");\n\noutValue.setDescription(\ninValue.getDescription() +\n\". So Romeo would, were he not Romeo call'd,\" +\n\" retain that dear perfection which he owes, without that title.\");\n\nexecutor.logger.info(outValue);\nexecutor.outFields.put(\"TestPing\", outValue)\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);" - } - } - } - ] - } - }, - "events": { - "key": { - "name": "JMSTestModel_Events", - "version": "0.0.1" - }, - "eventMap": { - "entry": [ - { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms", - "source": "JMS", - "target": "Apex", - "parameter": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms", - "source": "Apex", - "target": "JMS", - "parameter": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - } - ] - } - }, - "albums": { - "key": { - "name": "JMSTestModel_Albums", - "version": "0.0.1" - }, - "albums": { - "entry": [] - } - }, - "schemas": { - "key": { - "name": "JMSTestModel_Schemas", - "version": "0.0.1" - }, - "schemas": { - "entry": [ - { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestPing" - } - } - ] - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/SamplePolicyModelMVEL.json b/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/SamplePolicyModelMVEL.json deleted file mode 100644 index 982444f36..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/SamplePolicyModelMVEL.json +++ /dev/null @@ -1,7036 +0,0 @@ -{ - "apexPolicyModel": { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "keyInformation": { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "keyInfoMap": { - "entry": [ - { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "UUID": "2708db15-3117-4ef5-ae06-44ad4bc72756", - "description": "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, - { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "UUID": "20f7f2d0-36e1-4134-93d9-8978e0ebb916", - "description": "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, - { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "UUID": "bfa262fc-f59d-4b05-af44-a5b5c218b314", - "description": "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, - { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "UUID": "84eeac88-5031-4487-b67a-5a3ae13c1a89", - "description": "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, - { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "UUID": "7a46a411-1715-48d8-9e70-9b5d14bbbed4", - "description": "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, - { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "UUID": "da0ba1b4-f654-4e99-97b5-595de84cb3dc", - "description": "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, - { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "UUID": "1267b311-60e2-48a7-8d0e-23c4ea21d863", - "description": "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, - { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "UUID": "84013070-ff2e-4295-acbd-4128f0509040", - "description": "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, - { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "UUID": "6fb7761e-b86f-47fc-8e19-6a116600764e", - "description": "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, - { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "UUID": "141cc707-009c-4e3b-a0f8-c346f074f590", - "description": "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, - { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "UUID": "98f4d09f-ff73-4385-8876-df6d04b552cc", - "description": "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, - { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "UUID": "889f6414-bc4d-4f29-b7af-175e63d23ac5", - "description": "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, - { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "UUID": "64e4911c-5aed-467f-be19-277fb6170857", - "description": "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "UUID": "cb6a1892-8c3c-44df-b8a7-0e5a333ff9eb", - "description": "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "UUID": "f3126983-e26c-491f-8738-c57784ca4026", - "description": "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, - { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "UUID": "b20a18d5-c419-4e90-8519-9c8f8b3ce2ab", - "description": "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, - { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "UUID": "28943e99-871b-482b-953f-cfa7138da02c", - "description": "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, - { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "UUID": "2b1b738b-70f6-4b45-9d3c-a7e889b49993", - "description": "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "UUID": "798ee6ea-f349-41bb-a281-7e4c22184e8c", - "description": "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, - { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "UUID": "eb9568d5-d95f-4713-9622-d95ef4cf81c3", - "description": "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "UUID": "10979d21-947f-4920-83ae-63b827e8e80f", - "description": "Generated description for concept referred to by key \"SamplePolicyModelMVEL:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "UUID": "cb65d7fe-8d86-463c-aa16-0f4e6138d705", - "description": "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "UUID": "ea2b4e7a-1a79-440c-9cf0-6fddaad64c0c", - "description": "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "UUID": "269e1d08-9ab4-48b8-8854-b65deb9d41b1", - "description": "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "UUID": "f9c4a91d-92aa-49ce-9b65-ab2378f6b048", - "description": "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "UUID": "7fde2446-ce2a-4bc2-a675-96496c387c88", - "description": "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "UUID": "bc185db6-f18f-4fdd-b5b4-37d14b57f463", - "description": "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "UUID": "2c1e2ede-d67c-4845-90ac-a4d53311bfbb", - "description": "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "UUID": "1d1645a2-2852-4296-9f22-8f31ebe5386a", - "description": "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "UUID": "f3739d83-a029-4ad8-a0b9-e5a028b369b2", - "description": "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "UUID": "5351a5a5-4134-44fd-9a6f-fd37dbfc8aa7", - "description": "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "UUID": "4206bb68-e710-4a01-aade-3e34771da63b", - "description": "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "UUID": "cbaab234-b586-4f63-986e-ed0b317b6c66", - "description": "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "UUID": "24dbc71b-8773-4393-9c36-a5f4991e0f55", - "description": "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "UUID": "42ecd25d-e8cb-48e4-890a-b0616528cf10", - "description": "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "UUID": "7e691294-a816-42f8-b124-9b5eac70b116", - "description": "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "UUID": "bc7cad3c-85a5-40b4-9eda-51ac2387af05", - "description": "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, - { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "UUID": "4386403d-b23c-4c3e-bc14-5d581f9de2f5", - "description": "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, - { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "UUID": "901a80ab-dd46-4697-b818-f669b9f9bce9", - "description": "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "UUID": "cfd19e5d-ab54-4e54-b4e5-1c5eaa832622", - "description": "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "UUID": "42c27d27-878d-4e9d-a139-e60c98f1c747", - "description": "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "UUID": "83919fa0-ed4d-4981-908f-79913734a0f5", - "description": "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "UUID": "194882b0-d987-4200-b82a-2c015605279b", - "description": "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "UUID": "948d345b-39c3-4436-8036-ac9e5c561977", - "description": "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "UUID": "fdad8cb5-4375-4bbf-9ffc-1e5ed8f4bae6", - "description": "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "UUID": "5243c0ba-5c50-4835-a885-6cd988252bb7", - "description": "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "UUID": "29f0b15f-f7c3-46e5-98d7-59a34a677968", - "description": "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "UUID": "aac96de5-9f3c-452c-855f-e556cc807351", - "description": "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "UUID": "7fdc1cc3-08c7-42a4-92a9-39e172fe2f1f", - "description": "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "UUID": "cf60cca6-a2e8-4371-b0e5-85ecaae44acc", - "description": "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "UUID": "1671f996-e14e-407d-a503-f4de09f0785b", - "description": "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "UUID": "814c4c28-9027-4516-9598-adc75fafa92a", - "description": "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, - { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "UUID": "33e81d08-a62b-40ce-b7ff-50734427ebf9", - "description": "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, - { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "UUID": "5cd74351-8e27-4dee-a379-86124db50383", - "description": "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "UUID": "e8c9a056-5e95-4e14-bc96-0c0d13a34b18", - "description": "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "UUID": "92489659-02f3-4cb2-b25f-a6234ad71d36", - "description": "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "UUID": "1c3b9345-32c2-4f7e-94ce-be36d0775e9e", - "description": "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, - { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "UUID": "9e719a99-1d73-4d40-b097-c9622b9ea2b4", - "description": "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, - { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "UUID": "3bcc8ef1-4cc5-4b7f-9dc4-83046d4a2a5d", - "description": "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } - ] - } - }, - "policies": { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "policyMap": { - "entry": [ - { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "Policy0", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "Event0003", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "Event0004", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act0_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act1_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act2_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act3_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "Event0002", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "Event0003", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "Event0001", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "Event0002", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "Event0000", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "Event0001", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match0_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match1_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match2_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match3_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - }, - { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "Policy1", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "Event0103", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "Event0104", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act0_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act1_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act2_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act3_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "Event0102", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "Event0103", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "Event0101", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "Event0102", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "Event0100", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "Event0101", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match0_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match1_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match2_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match3_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - } - ] - } - }, - "tasks": { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "taskMap": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Act1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Decide1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Establish1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Match1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - } - ] - } - }, - "events": { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "eventMap": { - "entry": [ - { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Outside", - "target": "Match", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Match", - "target": "Establish", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Establish", - "target": "Decide", - "parameter": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Decide", - "target": "Act", - "parameter": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Act", - "target": "Outside", - "parameter": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Outside", - "target": "Match", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Match", - "target": "Establish", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Establish", - "target": "Decide", - "parameter": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Decide", - "target": "Act", - "parameter": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - }, - { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Act", - "target": "Outside", - "parameter": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - } - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - } - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - } - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - } - } - } - ] - } - } - } - ] - } - }, - "albums": { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "albums": { - "entry": [ - { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "scope": "EXTERNAL", - "isWritable": false, - "itemSchema": { - "name": "TestExternalContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "scope": "APPLICATION", - "isWritable": true, - "itemSchema": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "scope": "APPLICATION", - "isWritable": true, - "itemSchema": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - } - } - } - ] - } - }, - "schemas": { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "schemas": { - "entry": [ - { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Byte" - } - }, - { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, - { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, - { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, - { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, - { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, - { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, - { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, - { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, - { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, - { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, - { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, - { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, - { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, - { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, - { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, - { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, - { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Double" - } - }, - { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Long" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/SamplePolicyModelMVELDivideByZero.json b/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/SamplePolicyModelMVELDivideByZero.json deleted file mode 100644 index 50c426682..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/SamplePolicyModelMVELDivideByZero.json +++ /dev/null @@ -1,7372 +0,0 @@ -{ - "apexPolicyModel": { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "keyInformation": { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "keyInfoMap": { - "entry": [ - { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "UUID": "2708db15-3117-4ef5-ae06-44ad4bc72756", - "description": "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, - { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "UUID": "20f7f2d0-36e1-4134-93d9-8978e0ebb916", - "description": "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, - { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "UUID": "bfa262fc-f59d-4b05-af44-a5b5c218b314", - "description": "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, - { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "UUID": "84eeac88-5031-4487-b67a-5a3ae13c1a89", - "description": "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, - { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "UUID": "7a46a411-1715-48d8-9e70-9b5d14bbbed4", - "description": "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, - { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "UUID": "da0ba1b4-f654-4e99-97b5-595de84cb3dc", - "description": "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, - { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "UUID": "1267b311-60e2-48a7-8d0e-23c4ea21d863", - "description": "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, - { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "UUID": "84013070-ff2e-4295-acbd-4128f0509040", - "description": "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, - { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "UUID": "6fb7761e-b86f-47fc-8e19-6a116600764e", - "description": "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, - { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "UUID": "141cc707-009c-4e3b-a0f8-c346f074f590", - "description": "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, - { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "UUID": "98f4d09f-ff73-4385-8876-df6d04b552cc", - "description": "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, - { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "UUID": "889f6414-bc4d-4f29-b7af-175e63d23ac5", - "description": "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, - { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "UUID": "64e4911c-5aed-467f-be19-277fb6170857", - "description": "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "UUID": "cb6a1892-8c3c-44df-b8a7-0e5a333ff9eb", - "description": "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "KeyInformation", - "version": "0.0.1" - }, - "UUID": "f3126983-e26c-491f-8738-c57784ca4026", - "description": "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, - { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "UUID": "b20a18d5-c419-4e90-8519-9c8f8b3ce2ab", - "description": "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, - { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "UUID": "28943e99-871b-482b-953f-cfa7138da02c", - "description": "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, - { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "UUID": "2b1b738b-70f6-4b45-9d3c-a7e889b49993", - "description": "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "UUID": "798ee6ea-f349-41bb-a281-7e4c22184e8c", - "description": "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, - { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "UUID": "eb9568d5-d95f-4713-9622-d95ef4cf81c3", - "description": "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "SamplePolicyModelMVEL", - "version": "0.0.1" - }, - "UUID": "10979d21-947f-4920-83ae-63b827e8e80f", - "description": "Generated description for concept referred to by key \"SamplePolicyModelMVEL:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "UUID": "cb65d7fe-8d86-463c-aa16-0f4e6138d705", - "description": "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "UUID": "ea2b4e7a-1a79-440c-9cf0-6fddaad64c0c", - "description": "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "UUID": "269e1d08-9ab4-48b8-8854-b65deb9d41b1", - "description": "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "UUID": "f9c4a91d-92aa-49ce-9b65-ab2378f6b048", - "description": "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "UUID": "7fde2446-ce2a-4bc2-a675-96496c387c88", - "description": "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "UUID": "bc185db6-f18f-4fdd-b5b4-37d14b57f463", - "description": "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "UUID": "2c1e2ede-d67c-4845-90ac-a4d53311bfbb", - "description": "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "UUID": "1d1645a2-2852-4296-9f22-8f31ebe5386a", - "description": "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "UUID": "f3739d83-a029-4ad8-a0b9-e5a028b369b2", - "description": "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "UUID": "5351a5a5-4134-44fd-9a6f-fd37dbfc8aa7", - "description": "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "UUID": "4206bb68-e710-4a01-aade-3e34771da63b", - "description": "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "UUID": "cbaab234-b586-4f63-986e-ed0b317b6c66", - "description": "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "UUID": "24dbc71b-8773-4393-9c36-a5f4991e0f55", - "description": "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "UUID": "42ecd25d-e8cb-48e4-890a-b0616528cf10", - "description": "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "UUID": "7e691294-a816-42f8-b124-9b5eac70b116", - "description": "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "UUID": "bc7cad3c-85a5-40b4-9eda-51ac2387af05", - "description": "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, - { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "UUID": "4386403d-b23c-4c3e-bc14-5d581f9de2f5", - "description": "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, - { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "UUID": "901a80ab-dd46-4697-b818-f669b9f9bce9", - "description": "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "UUID": "cfd19e5d-ab54-4e54-b4e5-1c5eaa832622", - "description": "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "UUID": "42c27d27-878d-4e9d-a139-e60c98f1c747", - "description": "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "UUID": "83919fa0-ed4d-4981-908f-79913734a0f5", - "description": "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "UUID": "194882b0-d987-4200-b82a-2c015605279b", - "description": "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "UUID": "948d345b-39c3-4436-8036-ac9e5c561977", - "description": "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "UUID": "fdad8cb5-4375-4bbf-9ffc-1e5ed8f4bae6", - "description": "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "UUID": "5243c0ba-5c50-4835-a885-6cd988252bb7", - "description": "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "UUID": "29f0b15f-f7c3-46e5-98d7-59a34a677968", - "description": "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "UUID": "aac96de5-9f3c-452c-855f-e556cc807351", - "description": "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "UUID": "7fdc1cc3-08c7-42a4-92a9-39e172fe2f1f", - "description": "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "UUID": "cf60cca6-a2e8-4371-b0e5-85ecaae44acc", - "description": "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "UUID": "1671f996-e14e-407d-a503-f4de09f0785b", - "description": "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, - { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "UUID": "814c4c28-9027-4516-9598-adc75fafa92a", - "description": "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, - { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "UUID": "33e81d08-a62b-40ce-b7ff-50734427ebf9", - "description": "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, - { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "UUID": "5cd74351-8e27-4dee-a379-86124db50383", - "description": "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "UUID": "e8c9a056-5e95-4e14-bc96-0c0d13a34b18", - "description": "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "UUID": "92489659-02f3-4cb2-b25f-a6234ad71d36", - "description": "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, - { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "UUID": "1c3b9345-32c2-4f7e-94ce-be36d0775e9e", - "description": "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, - { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "UUID": "9e719a99-1d73-4d40-b097-c9622b9ea2b4", - "description": "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, - { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "UUID": "3bcc8ef1-4cc5-4b7f-9dc4-83046d4a2a5d", - "description": "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } - ] - } - }, - "policies": { - "key": { - "name": "Policies", - "version": "0.0.1" - }, - "policyMap": { - "entry": [ - { - "key": { - "name": "Policy0", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "Policy0", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "Event0003", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "Event0004", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act0_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act1_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act2_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act3_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "Event0002", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "Event0003", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "Event0001", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "Event0002", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "Event0000", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "Event0001", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match0_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match1_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match2_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match3_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - }, - { - "key": { - "name": "Policy1", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "Policy1", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "Event0103", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "Event0104", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act0_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act1_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act2_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Task_Act3_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "Event0102", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "Event0103", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "Event0101", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "Event0102", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "Event0100", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "Event0101", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskSelectionLogic": { - "key": "TaskSelectionLigic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match0_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match1_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match2_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Task_Match3_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "Policy1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - } - ] - } - }, - "tasks": { - "key": { - "name": "Tasks", - "version": "0.0.1" - }, - "taskMap": { - "entry": [ - { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Act0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)2;\ntimeNow = new Date();\ndivZero = 10;\ndivZero = divZero /0;\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Act1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)3;\ntimeNow = new Date();\ndivZero = 10;\ndivZero = divZero /0;\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)0;\ntimeNow = new Date();\ndivZero = 10;\ndivZero = divZero /0;\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Act3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Act3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestActCaseSelected\"] = (byte)1;\ntimeNow = new Date();\ndivZero = 10;\ndivZero = divZero /0;\noutFields[\"TestActStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Decide0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Decide1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Decide3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Decide3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestDecideCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestDecideStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Establish0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Establish1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Establish3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Establish3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestEstablishCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestEstablishStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match0", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - }, - { - "key": "Parameter2", - "value": { - "key": { - "parentKeyName": "Task_Match0", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter2" - }, - "defaultValue": "DefaultValue2" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)2;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match1", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - }, - { - "key": "Parameter1", - "value": { - "key": { - "parentKeyName": "Task_Match1", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter1" - }, - "defaultValue": "DefaultValue1" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)3;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match2", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match2", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)0;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Task_Match3", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [ - { - "key": "Parameter0", - "value": { - "key": { - "parentKeyName": "Task_Match3", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Parameter0" - }, - "defaultValue": "DefaultValue0" - } - } - ] - }, - "contextAlbumReference": [ - { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - { - "name": "GlobalContextAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "_TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.Date;\nlogger.debug(subject.id);\ngc = getContextAlbum(\"GlobalContextAlbum\");\nlogger.debug(gc);\nlogger.debug(inFields);\noutFields[\"TestMatchCaseSelected\"] = (byte)1;\ntimeNow = new Date();\noutFields[\"TestMatchStateTime\"] = timeNow.getTime();\nlogger.debug(outFields);\nreturn true;" - } - } - } - ] - } - }, - "events": { - "key": { - "name": "Events", - "version": "0.0.1" - }, - "eventMap": { - "entry": [ - { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0000", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Outside", - "target": "Match", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0001", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Match", - "target": "Establish", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0002", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Establish", - "target": "Decide", - "parameter": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0003", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Decide", - "target": "Act", - "parameter": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0004", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Act", - "target": "Outside", - "parameter": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0100", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Outside", - "target": "Match", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0101", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Match", - "target": "Establish", - "parameter": { - "entry": [ - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0102", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Establish", - "target": "Decide", - "parameter": { - "entry": [ - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0103", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Decide", - "target": "Act", - "parameter": { - "entry": [ - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Event0104", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.sample.events", - "source": "Act", - "target": "Outside", - "parameter": { - "entry": [ - { - "key": "TestActCaseSelected", - "value": { - "key": "TestActCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestActStateTime", - "value": { - "key": "TestActStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideCaseSelected", - "value": { - "key": "TestDecideCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestDecideStateTime", - "value": { - "key": "TestDecideStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishCaseSelected", - "value": { - "key": "TestEstablishCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestEstablishStateTime", - "value": { - "key": "TestEstablishStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCase", - "value": { - "key": "TestMatchCase", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchCaseSelected", - "value": { - "key": "TestMatchCaseSelected", - "fieldSchemaKey": { - "name": "TestCase", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestMatchStateTime", - "value": { - "key": "TestMatchStateTime", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestSlogan", - "value": { - "key": "TestSlogan", - "fieldSchemaKey": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTemperature", - "value": { - "key": "TestTemperature", - "fieldSchemaKey": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "TestTimestamp", - "value": { - "key": "TestTimestamp", - "fieldSchemaKey": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - } - ] - } - }, - "albums": { - "key": { - "name": "Context", - "version": "0.0.1" - }, - "albums": { - "entry": [ - { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ExternalContextAlbum", - "version": "0.0.1" - }, - "scope": "EXTERNAL", - "isWritable": false, - "itemSchema": { - "name": "TestExternalContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "GlobalContextAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy0ContextAlbum", - "version": "0.0.1" - }, - "scope": "APPLICATION", - "isWritable": true, - "itemSchema": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Policy1ContextAlbum", - "version": "0.0.1" - }, - "scope": "APPLICATION", - "isWritable": true, - "itemSchema": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - } - } - } - ] - } - }, - "schemas": { - "key": { - "name": "TestDatatypes", - "version": "0.0.1" - }, - "schemas": { - "entry": [ - { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestCase", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Byte" - } - }, - { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem000", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, - { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem001", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, - { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem002", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, - { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem003", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, - { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem004", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, - { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem005", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, - { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem006", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, - { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem007", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, - { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem008", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, - { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem009", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, - { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00A", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, - { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00B", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, - { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestContextItem00C", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, - { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestExternalContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, - { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestGlobalContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, - { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPolicyContextItem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, - { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestSlogan", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTemperature", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Double" - } - }, - { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestTimestamp", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Long" - } - } - ] - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelAvro.json b/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelAvro.json deleted file mode 100644 index 5fa4be403..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelAvro.json +++ /dev/null @@ -1,4557 +0,0 @@ -{ - "apexPolicyModel": { - "key": { - "name": "VPNPolicyModelAvro", - "version": "0.0.1" - }, - "keyInformation": { - "key": { - "name": "VPNKeyInformation", - "version": "0.0.1" - }, - "keyInfoMap": { - "entry": [ - { - "key": { - "name": "Action", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Action", - "version": "0.0.1" - }, - "UUID": "fecbf45a-8559-3ba8-be95-c773d8277912", - "description": "Generated description for concept referred to by key \"Action:0.0.1\"" - } - }, - { - "key": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "UUID": "a076b82b-2843-310c-b6a5-a89da296caf7", - "description": "Generated description for concept referred to by key \"AffectedCustomers:0.0.1\"" - } - }, - { - "key": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "UUID": "cc403e79-bf85-3bdc-83dc-86a1ff45abed", - "description": "Generated description for concept referred to by key \"CustomerMap:0.0.1\"" - } - }, - { - "key": { - "name": "CustomerName", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "CustomerName", - "version": "0.0.1" - }, - "UUID": "638a87b0-2040-3ab7-8d1f-3877f6efb250", - "description": "Generated description for concept referred to by key \"CustomerName:0.0.1\"" - } - }, - { - "key": { - "name": "Link", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Link", - "version": "0.0.1" - }, - "UUID": "0e3b3a57-fa0a-3b0d-ad18-0322d1a515f0", - "description": "Generated description for concept referred to by key \"Link:0.0.1\"" - } - }, - { - "key": { - "name": "LinkList", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkList", - "version": "0.0.1" - }, - "UUID": "ec38833a-7f3e-3733-b38b-eb7ecc9e60ca", - "description": "Generated description for concept referred to by key \"LinkList:0.0.1\"" - } - }, - { - "key": { - "name": "LinkMap", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkMap", - "version": "0.0.1" - }, - "UUID": "5eceb73f-c951-360a-afb4-ca7a5376f8a9", - "description": "Generated description for concept referred to by key \"LinkMap:0.0.1\"" - } - }, - { - "key": { - "name": "LinkUp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkUp", - "version": "0.0.1" - }, - "UUID": "2b9935ab-9b97-3228-ba43-ae48d7743c9f", - "description": "Generated description for concept referred to by key \"LinkUp:0.0.1\"" - } - }, - { - "key": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "UUID": "b26602d0-53cb-357c-aa3a-bd53325c7208", - "description": "Generated description for concept referred to by key \"ProblemStatus:0.0.1\"" - } - }, - { - "key": { - "name": "SlaDT", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "SlaDT", - "version": "0.0.1" - }, - "UUID": "c8a76dcf-d322-3a01-9d4b-c2d9a01359aa", - "description": "Generated description for concept referred to by key \"SlaDT:0.0.1\"" - } - }, - { - "key": { - "name": "Status", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Status", - "version": "0.0.1" - }, - "UUID": "32a032cd-923a-3578-a232-d3ce88434b45", - "description": "Generated description for concept referred to by key \"Status:0.0.1\"" - } - }, - { - "key": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "UUID": "af0da9d9-a2bd-387c-a441-66a0b0a0f434", - "description": "Generated description for concept referred to by key \"StatusChanged:0.0.1\"" - } - }, - { - "key": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "UUID": "8c285b89-7102-37b1-aa1b-86d080df0aa9", - "description": "Generated description for concept referred to by key \"VPNActEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "UUID": "a83d78d1-b3b0-3742-85e4-25364bdbae1f", - "description": "Generated description for concept referred to by key \"VPNActTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNContext", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNContext", - "version": "0.0.1" - }, - "UUID": "ab3caa58-6748-373d-a6b9-08528951c261", - "description": "Generated description for concept referred to by key \"VPNContext:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomer", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomer", - "version": "0.0.1" - }, - "UUID": "3c987f55-b978-3e32-9858-4b1978594bf3", - "description": "Generated description for concept referred to by key \"VPNCustomer:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - "UUID": "9d8d7a8b-13f8-3e7f-a34c-8ce5bb988290", - "description": "Generated description for concept referred to by key \"VPNCustomerAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "UUID": "dc6fef76-6014-392f-b017-116bc9a35249", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtActEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "UUID": "2c9f5fb2-3fda-329a-bf81-9bbe72c0b39c", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtActTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "UUID": "9e86afcd-a764-3645-afdd-0fe373c2f9d0", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtDecideEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "UUID": "7c033835-24e5-302b-a2e7-1f357f4a49da", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtDecideTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "UUID": "6767849e-b884-3de3-a9de-49ec21d1653a", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtEstablishEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "UUID": "8d267e4f-a8b3-3ec1-9e00-4fe49c4824ac", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtEstablishTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "UUID": "3113d098-5f5d-30b1-91ad-24006aca60b3", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtMatchEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "UUID": "f7381ce6-2df0-3123-bc4d-fdb28ec0b0b4", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtMatchTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtPolicy", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtPolicy", - "version": "0.0.1" - }, - "UUID": "51645b2f-19ab-3792-8088-a2b0eab9a75b", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtPolicy:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "UUID": "dd7ea64d-863e-3194-8eee-e4aab7af1454", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtTriggerEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDatatypes", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDatatypes", - "version": "0.0.1" - }, - "UUID": "45ec61a2-39c6-3544-9d48-49e29b60daa7", - "description": "Generated description for concept referred to by key \"VPNDatatypes:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "UUID": "c8721fa3-ff74-3222-b2e4-9824b8daf7bb", - "description": "Generated description for concept referred to by key \"VPNDecideEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "UUID": "cb2a893a-7719-3208-9952-a3fa3565cbb4", - "description": "Generated description for concept referred to by key \"VPNDecidePriorityTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "UUID": "bef3b2b0-5575-3b50-a1bc-dd05541cb800", - "description": "Generated description for concept referred to by key \"VPNDecideSLATask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "UUID": "137f8cd1-0f33-3c03-88a5-d0408fe0c26a", - "description": "Generated description for concept referred to by key \"VPNDecideSolvedTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "UUID": "dc647231-a4d6-307e-bd42-d32fa0a2c2c5", - "description": "Generated description for concept referred to by key \"VPNDecideTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "UUID": "a5ec4ca5-b0ce-3098-afc2-61de501e35bd", - "description": "Generated description for concept referred to by key \"VPNEstablishEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "UUID": "e5b00ad5-92d8-3ffc-93e0-ddd1c02e584f", - "description": "Generated description for concept referred to by key \"VPNEstablishTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNEvents", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEvents", - "version": "0.0.1" - }, - "UUID": "07c2931d-9011-3d85-bca6-c10d43856f60", - "description": "Generated description for concept referred to by key \"VPNEvents:0.0.1\"" - } - }, - { - "key": { - "name": "VPNKeyInformation", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNKeyInformation", - "version": "0.0.1" - }, - "UUID": "c2516499-a76d-3526-a6ee-d1d93c598931", - "description": "Generated description for concept referred to by key \"VPNKeyInformation:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLink", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLink", - "version": "0.0.1" - }, - "UUID": "27e97f3a-8b39-3ae7-ac26-af9370cccd43", - "description": "Generated description for concept referred to by key \"VPNLink:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - "UUID": "5a234e2d-9efd-336f-b26d-1f909cdb44be", - "description": "Generated description for concept referred to by key \"VPNLinkAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "UUID": "20fa2bc5-366a-3127-bbbf-c3408e30196d", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtActEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "UUID": "63d61114-538c-3c02-8bc6-d0214dc09824", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtActTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "UUID": "42ecba03-b4cb-3a8f-8c0b-cc63da5eb28a", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtDecideEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "UUID": "ade15880-f26b-32fe-accc-58016cc8bdc5", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtDecideTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "UUID": "6e10e999-4c93-34b2-8723-434a47e80d24", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtEstablishEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "UUID": "b3e9531b-162c-3b07-b47f-4013380e59e8", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtEstablishTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "UUID": "fc2a579b-2424-3a20-9e48-b7fcc72259a7", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtMatchEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "UUID": "48c628d8-d660-37ec-8d24-c17c46ad3109", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtMatchTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtPolicy", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtPolicy", - "version": "0.0.1" - }, - "UUID": "d3818863-91dc-3ed6-9087-c4cd76707003", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtPolicy:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "UUID": "7af8f4e2-c662-3ccf-a77a-6dd2aafdd773", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtTriggerEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "UUID": "e9a25835-f032-3f6f-ae01-8b043cae3680", - "description": "Generated description for concept referred to by key \"VPNMatchEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "UUID": "e5eb173b-18fd-34d2-924c-d4bc00979e86", - "description": "Generated description for concept referred to by key \"VPNMatchTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNPolicies", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNPolicies", - "version": "0.0.1" - }, - "UUID": "1b333371-46d0-3ae7-9da9-d2f7b3525fbc", - "description": "Generated description for concept referred to by key \"VPNPolicies:0.0.1\"" - } - }, - { - "key": { - "name": "VPNPolicy", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNPolicy", - "version": "0.0.1" - }, - "UUID": "5c1491a5-01ae-37cd-aa57-7aac775b6f56", - "description": "Generated description for concept referred to by key \"VPNPolicy:0.0.1\"" - } - }, - { - "key": { - "name": "VPNPolicyModelAvro", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNPolicyModelAvro", - "version": "0.0.1" - }, - "UUID": "52795d54-f668-3993-a5ab-ed754125c83a", - "description": "Generated description for concept referred to by key \"VPNPolicyModelAvro:0.0.1\"" - } - }, - { - "key": { - "name": "VPNProblem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNProblem", - "version": "0.0.1" - }, - "UUID": "0bcf2824-9a3a-394b-981f-1b6b51982a9f", - "description": "Generated description for concept referred to by key \"VPNProblem:0.0.1\"" - } - }, - { - "key": { - "name": "VPNProblemAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNProblemAlbum", - "version": "0.0.1" - }, - "UUID": "ea4e8801-7391-3cb4-a93a-1dfd51ec392c", - "description": "Generated description for concept referred to by key \"VPNProblemAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "VPNTasks", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNTasks", - "version": "0.0.1" - }, - "UUID": "26cae2a3-9eba-3b73-b91c-ef70806cf158", - "description": "Generated description for concept referred to by key \"VPNTasks:0.0.1\"" - } - }, - { - "key": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "UUID": "61759db7-3539-307a-9310-9f3870dab1d6", - "description": "Generated description for concept referred to by key \"VPNTriggerEvent:0.0.1\"" - } - }, - { - "key": { - "name": "YtdDT", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "YtdDT", - "version": "0.0.1" - }, - "UUID": "7bda6f7c-8469-3aea-a075-c1d4acc2a1c8", - "description": "Generated description for concept referred to by key \"YtdDT:0.0.1\"" - } - } - ] - } - }, - "policies": { - "key": { - "name": "VPNPolicies", - "version": "0.0.1" - }, - "policyMap": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtPolicy", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "VPNCustomerCtxtPolicy", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "VPNCustomerCtxtActTask_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNCustomerCtxtDecideTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "VPNCustomerCtxtEstablishTask_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "VPNCustomerCtxtMatchTask_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - }, - { - "key": { - "name": "VPNLinkCtxtPolicy", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "VPNLinkCtxtPolicy", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "VPNLinkCtxtActTask_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNLinkCtxtDecideTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "VPNLinkCtxtEstablishTask_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "VPNLinkCtxtMatchTask_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - }, - { - "key": { - "name": "VPNPolicy", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "VPNPolicy", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "TaskSelectionLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName + \", using default task\" + subject.defaultTaskKey);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "VPNActTask_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "TaskSelectionLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nlogger.debug(inFields);\n\nString incomingLink = inFields[\"Link\"];\nString incomingProblemStatus = inFields[\"ProblemStatus\"];\n\n/* 0 label=VPNDecideTask */\n\nif (incomingLink.equals(\"L09\") && incomingProblemStatus.equals(\"NEWPROBLEM\")) {\n\tSystem.err.println(\"l9 NEWPROBLEM\");\n\tsubject.getTaskKey(\"VPNDecideSLATask\").copyTo(selectedTask);\n\treturn true;\n}\nelse if (incomingLink.equals(\"L09\") && inFields[\"ProblemStatus\"].equals(\"NEWSOLVED\")) {\n\tSystem.err.println(\"l9 NEWSOLVED\");\n\tsubject.getTaskKey(\"VPNDecideSolvedTask\").copyTo(selectedTask);\n\treturn true;\n}\nelse if (incomingLink.equals(\"L10\") && incomingProblemStatus.equals(\"NEWPROBLEM\")) {\n\tSystem.err.println(\"l10 NEWPROBLEM\");\n\tsubject.getTaskKey(\"VPNDecidePriorityTask\").copyTo(selectedTask);\n\treturn true;\n}\nelse if (incomingLink.equals(\"L10\") && incomingProblemStatus.equals(\"NEWSOLVED\")) {\n\tSystem.err.println(\"l10 NEWSOLVED\");\n\tsubject.getTaskKey(\"VPNDecideSolvedTask\").copyTo(selectedTask);\n\treturn true;\n}\nelse {\n\tsubject.defaultTaskKey.copyTo(selectedTask);\n\treturn true;\n}" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNDecidePriorityTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNDecideSLATask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNDecideSolvedTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNDecideTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "TaskSelectionLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName + \", using default task\" + subject.defaultTaskKey);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "VPNEstablishTask_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "TaskSelectionLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName + \", using default task\" + subject.defaultTaskKey);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "VPNMatchTask_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - } - ] - } - }, - "tasks": { - "key": { - "name": "VPNTasks", - "version": "0.0.1" - }, - "taskMap": { - "entry": [ - { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerMap", - "value": { - "key": "CustomerMap", - "fieldSchemaKey": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkMap", - "value": { - "key": "LinkMap", - "fieldSchemaKey": { - "name": "LinkMap", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import java.util.HashMap;\nimport org.apache.avro.generic.GenericRecord;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\nlogger.debug(subject.id);\n\nSystem.err.println(\"*** Links ***\");\nfor (GenericRecord link: getContextAlbum(\"VPNLinkAlbum\").values()) {\n System.err.println(link.get(\"linkName\") + \"\\t\" + link.get(\"active\"));\n}\n\nSystem.err.println(\"*** Customers ***\");\nfor (GenericRecord customer: getContextAlbum(\"VPNCustomerAlbum\").values()) {\n System.err.println(\n \t customer.get(\"customerName\") + \"\\t\" +\n\t\t customer.get(\"slaDT\") + \"\\t\" +\n\t\t customer.get(\"ytdDT\") + \"\\t\" + \n\t\t customer.get(\"linksInUse\"));\n}\n\nHashMap linkMap = subject.getOutFieldSchemaHelper(\"LinkMap\").createNewInstance();\nlinkMap.putAll(getContextAlbum(\"VPNLinkAlbum\"));\noutFields[\"LinkMap\"] = linkMap;\n\nHashMap customerMap = subject.getOutFieldSchemaHelper(\"CustomerMap\").createNewInstance();\ncustomerMap.putAll(getContextAlbum(\"VPNCustomerAlbum\"));\noutFields[\"CustomerMap\"] = customerMap;\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.apache.avro.generic.GenericData.Array;\nimport org.apache.avro.generic.GenericRecord;\nimport org.apache.avro.Schema;\n\nlogger.debug(subject.id);\nSystem.err.println(inFields);\n\nString vpnCustomerName = inFields[\"CustomerName\"];\nGenericRecord vpnCustomer = getContextAlbum(\"VPNCustomerAlbum\").get(vpnCustomerName);\nif (vpnCustomer == null) {\n\tvpnCustomer = getContextAlbum(\"VPNCustomerAlbum\").getSchemaHelper.createNewInstance();\n\tvpnCustomer.put(\"customerName\", vpnCustomerName)\n\tvpnCustomer.put(\"slaDT\", 0);\n\tvpnCustomer.put(\"ytdDT\", 0);\n\tvpnCustomer.put(\"linksInUse\", new Array(0, Schema.createArray(vpnCustomer.getSchema().getField(\"linksInUse\").schema())));\n}\nvpnCustomer.put(\"slaDT\", inFields[\"SlaDT\"]);\nvpnCustomer.put(\"ytdDT\", inFields[\"YtdDT\"]);\n\nfor (String usedLinkName: inFields[\"LinkList\"].split(\" \")) {\n\tGenericRecord vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(usedLinkName);\n\tif (vpnLink != null) {\n\t\tvpnCustomer.get(\"linksInUse\").add(vpnLink.get(\"linkName\"));\n\t}\n\telse {\n\t\tSystem.err.println(\"unknown link \\\"\" + usedLinkName + \"\\\" specified on customer \\\"\" + vpnCustomerName + \"\\\"\");\n\t}\n}\n\ngetContextAlbum(\"VPNCustomerAlbum\").put(vpnCustomer.get(\"customerName\"), vpnCustomer);\n\nSystem.err.println(\"*** Customers ***\");\nfor (GenericRecord customer: getContextAlbum(\"VPNCustomerAlbum\").values()) {\n\tSystem.err.println(\n\t\t\tcustomer.get(\"customerName\") + \"\\t\" +\n\t\t\tcustomer.get(\"slaDT\") + \"\\t\" +\n\t\t\tcustomer.get(\"ytdDT\") + \"\\t\" + \n\t\t\tcustomer.get(\"linksInUse\"));\n}\n\nString outLinkList = \"\";\nfor (String link : vpnCustomer.get(\"linksInUse\")) {\n\toutLinkList += link + \" \";\n}\n\noutFields[\"CustomerName\"] = vpnCustomer.get(\"customerName\");\noutFields[\"LinkList\"] = outLinkList.trim();\noutFields[\"SlaDT\"] = vpnCustomer.get(\"slaDT\");\noutFields[\"YtdDT\"] = vpnCustomer.get(\"ytdDT\");\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.apache.avro.generic.GenericRecord;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nlogger.debug(\"VPNDecidePriorityTask execution logic-Praveen\");\nlogger.debug(inFields);\noutFields[\"Link\"] = inFields[\"Link\"];\noutFields[\"Action\"] = \"Disconnect customers based on Priority\";\n\nArray affectedCustomersArray = subject.getOutFieldSchemaHelper(\"AffectedCustomers\").createNewInstance();\naffectedCustomersArray.add(\"A\");\noutFields[\"AffectedCustomers\"] = affectedCustomersArray;\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.apache.avro.generic.GenericData.Array;\nimport org.apache.avro.generic.GenericRecord;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\n\noutFields[\"Link\"] = inFields[\"Link\"];\noutFields[\"Action\"] = \"Disconnect customers based on SLA Agreement\";\n\nArray slaViolatedCustomerArray = subject.getOutFieldSchemaHelper(\"AffectedCustomers\").createNewInstance();\n\nSystem.err.println(\"cust\\tslaDT\\tytdDT\");\nfor (GenericRecord customer: getContextAlbum(\"VPNCustomerAlbum\").values()) {\n\tSystem.err.println(customer.get(\"customerName\") + \"\\t\" + customer.get(\"slaDT\") + \"\\t\" + customer.get(\"ytdDT\"));\n\n\tif (customer.get(\"ytdDT\") > customer.get(\"slaDT\")) {\n\t\tslaViolatedCustomerArray.add(customer.get(\"customerName\"));\n\t}\n}\n\nSystem.err.println(\"Customers whose SLAs are violated are:\" + slaViolatedCustomerArray);\n\noutFields[\"AffectedCustomers\"] = slaViolatedCustomerArray;\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.apache.avro.generic.GenericRecord;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\noutFields[\"Action\"] = \"Rebuild VPN for customers\";\noutFields[\"Link\"] = inFields[\"Link\"];\noutFields[\"AffectedCustomers\"] = inFields[\"AffectedCustomers\"];\n\n/* Get the problem-link-object for this link */\nString incomingLink = inFields[\"Link\"];\n\nGenericRecord vpnProblem = getContextAlbum(\"VPNProblemAlbum\").get(incomingLink);\n\nif (null != vpnProblem) {\n /* Calculate the total down time from the problem-link-object */\n long linkDownTimeinSecs = vpnProblem.get(\"endTime\") - vpnProblem.get(\"startTime\")/1000;\n /* Get customers from Policy context and add to ytdDT */\n for (GenericRecord customerName : vpnProblem.get(\"affectedCustomers\")) {\n \tGenericRecord customer = getContextAlbum(\"VPNCustomerAlbum\").get(customerName);\n\t\tcustomer.put(\"ytdDT\", customer.get(\"ytdDT\") + linkDownTimeinSecs);\n }\n}\n\n/* Remove the problem-link-object */\ngetContextAlbum(\"VPNProblemAlbum\").remove(incomingLink);\n\nSystem.err.println(\"outFields: \" + outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "StatusChanged", - "value": { - "key": "StatusChanged", - "fieldSchemaKey": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.apache.avro.generic.GenericData.Array;\nimport org.apache.avro.generic.GenericRecord;\nimport org.apache.avro.Schema;\n\nlogger.debug(subject.getId() + \":\" + subject.getTaskName());\n\nSystem.err.println(inFields);\nString vpnLinkName = inFields[\"Link\"];\n\nGenericRecord vpnLink = getContextAlbum(\"VPNLinkAlbum\") .get(vpnLinkName);\nGenericRecord vpnProblem = getContextAlbum(\"VPNProblemAlbum\").get(vpnLinkName);\n\nString incomingStatus = inFields[\"Status\"];\nBoolean incomingStatusChanged = (Boolean)inFields[\"StatusChanged\"];\n\nif (incomingStatus.equalsIgnoreCase(\"DOWN\")) {\n\tvpnLink.put(\"active\", false);\n}\nelse {\n\tvpnLink.put(\"active\", true);\n}\n\nlong now = System.currentTimeMillis();\n\nArray affectedCustomerArray = subject.getOutFieldSchemaHelper(\"AffectedCustomers\").createNewInstance();\n\nif (incomingStatusChanged == false) {\n\toutFields[\"Link\"] = vpnLinkName;\n\tif (incomingStatus.equalsIgnoreCase(\"UP\")) {\n\t\toutFields[\"ProblemStatus\"] = \"NOPROBLEM\";\n\t\toutFields[\"AffectedCustomers\"] = affectedCustomerArray;\n\t}\n\telse if (incomingStatus.equalsIgnoreCase(\"DOWN\")) {\n\t\tfor (String customerName: vpnProblem.get(\"affectedCustomers\")) {\n\t\t\taffectedCustomerArray.add(customerName);\n\t\t}\n\t\toutFields[\"ProblemStatus\"] = \"STILLPROBLEM\";\n\t\toutFields[\"AffectedCustomers\"] = affectedCustomerArray;\n\t}\n\telse {\n\t\tSystem.err.println(\"VpnEstablishLogic: Unsupported link type!!!\" + vpnLinkName + \" \" + incomingStatus);\n\t}\n}\nelse if (incomingStatusChanged == true) {\n\t/* indicates new problem or new solution */\n\tif\t(incomingStatus.equalsIgnoreCase(\"UP\")) {\n\t\t/* A link that was down is now up */\n\t\tif (vpnProblem != null) {\n\t\t\tvpnProblem.put(\"endTime\", now);\n\t\t}\n\t\telse {\n\t\t\tSystem.err.println(\"VpnEstablishLogic: Link change to UP, but with no report of a previous problem!!!\" + vpnLinkName);\n\t\t}\n\t\tfor (String customerName: vpnProblem.get(\"affectedCustomers\")) {\n\t\t\taffectedCustomerArray.add(customerName);\n\t\t}\n\t\toutFields[\"Link\"] = vpnLinkName;\n\t\toutFields[\"AffectedCustomers\"] = affectedCustomerArray;\n\t\toutFields[\"ProblemStatus\"] = \"NEWSOLVED\";\n\t}\n\telse if (incomingStatus.equalsIgnoreCase(\"DOWN\")) {\n\t\t/* A link that was up is now down */\n\t\tif (vpnProblem == null) {\n\t\t\tvpnProblem = getContextAlbum(\"VPNProblemAlbum\").getSchemaHelper().createNewInstance();\n\t\t\tvpnProblem.put(\"problemName\", vpnLinkName);\n\t\t\tvpnProblem.put(\"startTime\", now);\n\t\t\tvpnProblem.put(\"affectedCustomers\", new Array(0, Schema.createArray(vpnProblem.getSchema().getField(\"affectedCustomers\").schema())));\n\t\t\tgetContextAlbum(\"VPNProblemAlbum\").put(vpnLinkName, vpnProblem);\n\n\t\t\tfor (GenericRecord vpnCustomer : getContextAlbum(\"VPNCustomerAlbum\").values()) {\n\t\t\t\tif (vpnCustomer.get(\"linksInUse\").contains(vpnLinkName)) {\n\t\t\t\t\tvpnProblem.get(\"affectedCustomers\").add(vpnCustomer.get(\"customerName\"));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tgetContextAlbum(\"VPNProblemAlbum\").put(vpnLinkName, vpnProblem);\n\n\t\t\tfor (String customerName: vpnProblem.get(\"affectedCustomers\")) {\n\t\t\t\taffectedCustomerArray.add(customerName);\n\t\t\t}\n\t\t\toutFields[\"Link\"] = vpnLinkName;\n\t\t\toutFields[\"AffectedCustomers\"] = affectedCustomerArray;\n\t\t\toutFields[\"ProblemStatus\"] = \"NEWPROBLEM\";\n\t\t}\n\t\telse {\n\t\t\tSystem.err.println(\"VpnEstablishLogic: Link change to DOWN, but with a report of a previous problem: \" + vpnLinkName + \" Not updating problem: \" + vpnProblem);\n\t\t\tfor (String customerName: vpnProblem.get(\"affectedCustomers\")) {\n\t\t\t\taffectedCustomerArray.add(customerName);\n\t\t\t}\n\t\t\toutFields[\"Link\"] = vpnLinkName;\n\t\t\toutFields[\"AffectedCustomers\"] = affectedCustomerArray;\n\t\t\toutFields[\"ProblemStatus\"] = \"STILLPROBLEM\";\n\t\t}\n\t}\n\telse {\n\t\tSystem.err.println(\"VpnEstablishLogic: Unsupported link type!!!\" + vpnLinkName + \" \" + incomingStatus);\n\t}\n}\nelse {\n\tthrow new IllegalArgumentException(\"MatchEvent down time cannot be less than 0\");\n}\n\nSystem.err.println(\"outFields: \" + outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.apache.avro.generic.GenericRecord;\n\nlogger.debug(subject.id);\nSystem.err.println(inFields);\n\nString vpnLinkName = inFields[\"Link\"];\nGenericRecord vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(vpnLinkName);\n\nif (vpnLink == null) {\n\tvpnLink = getContextAlbum(\"VPNLinkAlbum\").getSchemaHelper().createNewInstance();\n\tvpnLink.put(\"linkName\", vpnLinkName);\n\tvpnLink.put(\"active\", true);\n\tgetContextAlbum(\"VPNLinkAlbum\").put(vpnLinkName, vpnLink);\n}\nvpnLink.put(\"active\", inFields[\"LinkUp\"])\n\nSystem.err.println(\"*** Links ***\");\nfor (GenericRecord link: getContextAlbum(\"VPNLinkAlbum\").values()) {\n\tSystem.err.println(link.get(\"linkName\") + \"\\t\" + link.get(\"active\"));\n}\n\noutFields[\"Link\"] = vpnLink.get(\"linkName\");\noutFields[\"LinkUp\"] = vpnLink.get(\"active\");\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "StatusChanged", - "value": { - "key": "StatusChanged", - "fieldSchemaKey": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.apache.avro.generic.GenericRecord;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\nSystem.err.println(inFields);\n\nString vpnLinkName = inFields[\"Link\"];\nString vpnLinkStatus = inFields[\"Status\"];\n\nGenericRecord vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(vpnLinkName);\n\nif (vpnLink == null) {\n\tvpnLink = getContextAlbum(\"VPNLinkAlbum\").createItem();\n\tvpnLink.put(\"linkName\", vpnLinkName);\n\tgetContextAlbum(\"VPNLinkAlbum\").put(vpnLinkName, vpnLink);\n\n\t\n\tvpnLink = new VPNLink(vpnLinkName);\n\tgetContextAlbum(\"VPNLinkAlbum\").put(vpnLinkName, vpnLink);\n\tif (vpnLinkStatus.equalsIgnoreCase(\"DOWN\")) {\n\t\tvpnLink.put(\"active\", true);\n\t}\n\telse {\n\t\tvpnLink.put(\"active\", false);\n\t}\n}\n\nif (vpnLinkStatus.equalsIgnoreCase(\"DOWN\")) {\n\tif (vpnLinkName != null) {\n\t\tif (vpnLink.get(\"active\")) {\n\t\t\toutFields[\"StatusChanged\"] = true;\n\t\t}\n\t\telse {\n\t\t\toutFields[\"StatusChanged\"] = false;\n\t\t}\n\t\toutFields[\"Link\"] = vpnLinkName;\n\t\toutFields[\"Status\"] = vpnLinkStatus;\n\t}\n\telse {\n\t\tSystem.err.println(\"match: trigger context error: link is null\");\n\t}\n}\nelse if (vpnLinkStatus.equalsIgnoreCase(\"UP\")) {\n\tif (vpnLinkName != null) {\n\t\tif (!vpnLink.get(\"active\")) {\n\t\t\toutFields[\"StatusChanged\"] = true;\n\t\t}\n\t\telse {\n\t\t\toutFields[\"StatusChanged\"] = false;\n\t\t}\n\t\toutFields[\"Link\"] = vpnLinkName;\n\t\toutFields[\"Status\"] = vpnLinkStatus;\n\t}\n\telse {\n\t\tSystem.err.println(\"match: trigger context error: link is null\");\n\t}\n}\nelse {\n\tSystem.err.println(\"match: trigger context error: status neither UP nor DOWN\");\n}\n\nSystem.err.println(\"outFields: \" + outFields);\nreturn true;" - } - } - } - ] - } - }, - "events": { - "key": { - "name": "VPNEvents", - "version": "0.0.1" - }, - "eventMap": { - "entry": [ - { - "key": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerMap", - "value": { - "key": "CustomerMap", - "fieldSchemaKey": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkMap", - "value": { - "key": "LinkMap", - "fieldSchemaKey": { - "name": "LinkMap", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "StatusChanged", - "value": { - "key": "StatusChanged", - "fieldSchemaKey": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - } - ] - } - }, - "albums": { - "key": { - "name": "VPNContext", - "version": "0.0.1" - }, - "albums": { - "entry": [ - { - "key": { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "VPNCustomer", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "VPNLink", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "VPNProblemAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNProblemAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "VPNProblem", - "version": "0.0.1" - } - } - } - ] - } - }, - "schemas": { - "key": { - "name": "VPNDatatypes", - "version": "0.0.1" - }, - "schemas": { - "entry": [ - { - "key": { - "name": "Action", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Action", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "schemaFlavour": "Avro", - "schemaDefinition": "{\n\t\"type\": \"array\", \"items\": \"string\"}\n}" - } - }, - { - "key": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "schemaFlavour": "Avro", - "schemaDefinition": "{\n\t\"type\": \"map\", \"values\": {\n\t\t\"type\" : \"record\",\n\t\t\"name\" : \"VPNCustomer\",\n\t\t\"fields\" : [\n\t\t\t{\"name\" : \"customerName\", \"type\" : \"string\"},\n\t\t\t{\"name\" : \"slaDT\" , \"type\" : \"int\"},\n\t\t\t{\"name\" : \"ytdDT\" , \"type\" : \"int\"}\n\t\t\t]\n\t}\n}" - } - }, - { - "key": { - "name": "CustomerName", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "CustomerName", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "Link", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Link", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "LinkList", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkList", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "LinkMap", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkMap", - "version": "0.0.1" - }, - "schemaFlavour": "Avro", - "schemaDefinition": "{\n\t\"type\": \"map\", \"values\": {\n\t\t\"type\" : \"record\",\n\t\t\"name\" : \"VPNLink\",\n\t\t\"fields\" : [\n\t\t\t{\"name\": \"linkName\", \"type\": \"string\"},\n\t\t\t{\"name\": \"active\", \"type\": \"boolean\"}\n\t\t\t]\n\t}\n}" - } - }, - { - "key": { - "name": "LinkUp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkUp", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Boolean" - } - }, - { - "key": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "SlaDT", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "SlaDT", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Integer" - } - }, - { - "key": { - "name": "Status", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Status", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Boolean" - } - }, - { - "key": { - "name": "VPNCustomer", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomer", - "version": "0.0.1" - }, - "schemaFlavour": "Avro", - "schemaDefinition": "{\n\t\"type\" : \"record\",\n\t\"name\" : \"VPNCustomer\",\n\t\"fields\" : [\n\t\t{\"name\" : \"customerName\", \"type\" : \"string\"},\n\t\t{\"name\" : \"slaDT\" , \"type\" : \"int\"},\n\t\t{\"name\" : \"ytdDT\" , \"type\" : \"int\"},\n\t\t{\n\t\t\t\"name\": \"linksInUse\",\n\t\t\t\"doc\": \"Links used by this customer\",\n\t\t\t\"type\": {\"type\" : \"array\", \"items\" : \"string\"}\n\t\t}\n\t\t]\n}" - } - }, - { - "key": { - "name": "VPNLink", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLink", - "version": "0.0.1" - }, - "schemaFlavour": "Avro", - "schemaDefinition": "{\n\t\"type\" : \"record\",\n\t\"name\" : \"VPNLink\",\n\t\"fields\" : [\n\t\t{\"name\": \"linkName\", \"type\": \"string\"},\n\t\t{\"name\": \"active\", \"type\": \"boolean\"}\n\t\t]\n}" - } - }, - { - "key": { - "name": "VPNProblem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNProblem", - "version": "0.0.1" - }, - "schemaFlavour": "Avro", - "schemaDefinition": "{\n\t\"type\" : \"record\",\n\t\"name\" : \"VPNProblem\",\n\t\"fields\" : [\n\t\t{\"name\": \"problemName\", \"type\": \"string\"},\n\t\t{\"name\": \"startTime\" , \"type\": \"long\"},\n\t\t{\"name\": \"endTime\" , \"type\": \"long\"},\n\t\t{\n\t\t\t\"name\": \"affectedCustomers\",\n\t\t\t\"doc\": \"customers affected by this problem\",\n\t\t\t\"type\": {\"type\" : \"array\", \"items\" : \"string\"}\n\t\t}\n\t\t]\n}" - } - }, - { - "key": { - "name": "YtdDT", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "YtdDT", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Integer" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json b/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json deleted file mode 100644 index 4a8c92f98..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/policymodels/VPNPolicyModelJava.json +++ /dev/null @@ -1,4557 +0,0 @@ -{ - "apexPolicyModel": { - "key": { - "name": "VPNPolicyModelJava", - "version": "0.0.1" - }, - "keyInformation": { - "key": { - "name": "VPNKeyInformation", - "version": "0.0.1" - }, - "keyInfoMap": { - "entry": [ - { - "key": { - "name": "Action", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Action", - "version": "0.0.1" - }, - "UUID": "fecbf45a-8559-3ba8-be95-c773d8277912", - "description": "Generated description for concept referred to by key \"Action:0.0.1\"" - } - }, - { - "key": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "UUID": "a076b82b-2843-310c-b6a5-a89da296caf7", - "description": "Generated description for concept referred to by key \"AffectedCustomers:0.0.1\"" - } - }, - { - "key": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "UUID": "cc403e79-bf85-3bdc-83dc-86a1ff45abed", - "description": "Generated description for concept referred to by key \"CustomerMap:0.0.1\"" - } - }, - { - "key": { - "name": "CustomerName", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "CustomerName", - "version": "0.0.1" - }, - "UUID": "638a87b0-2040-3ab7-8d1f-3877f6efb250", - "description": "Generated description for concept referred to by key \"CustomerName:0.0.1\"" - } - }, - { - "key": { - "name": "Link", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Link", - "version": "0.0.1" - }, - "UUID": "0e3b3a57-fa0a-3b0d-ad18-0322d1a515f0", - "description": "Generated description for concept referred to by key \"Link:0.0.1\"" - } - }, - { - "key": { - "name": "LinkList", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkList", - "version": "0.0.1" - }, - "UUID": "ec38833a-7f3e-3733-b38b-eb7ecc9e60ca", - "description": "Generated description for concept referred to by key \"LinkList:0.0.1\"" - } - }, - { - "key": { - "name": "LinkMap", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkMap", - "version": "0.0.1" - }, - "UUID": "5eceb73f-c951-360a-afb4-ca7a5376f8a9", - "description": "Generated description for concept referred to by key \"LinkMap:0.0.1\"" - } - }, - { - "key": { - "name": "LinkUp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkUp", - "version": "0.0.1" - }, - "UUID": "2b9935ab-9b97-3228-ba43-ae48d7743c9f", - "description": "Generated description for concept referred to by key \"LinkUp:0.0.1\"" - } - }, - { - "key": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "UUID": "b26602d0-53cb-357c-aa3a-bd53325c7208", - "description": "Generated description for concept referred to by key \"ProblemStatus:0.0.1\"" - } - }, - { - "key": { - "name": "SlaDT", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "SlaDT", - "version": "0.0.1" - }, - "UUID": "c8a76dcf-d322-3a01-9d4b-c2d9a01359aa", - "description": "Generated description for concept referred to by key \"SlaDT:0.0.1\"" - } - }, - { - "key": { - "name": "Status", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Status", - "version": "0.0.1" - }, - "UUID": "32a032cd-923a-3578-a232-d3ce88434b45", - "description": "Generated description for concept referred to by key \"Status:0.0.1\"" - } - }, - { - "key": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "UUID": "af0da9d9-a2bd-387c-a441-66a0b0a0f434", - "description": "Generated description for concept referred to by key \"StatusChanged:0.0.1\"" - } - }, - { - "key": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "UUID": "8c285b89-7102-37b1-aa1b-86d080df0aa9", - "description": "Generated description for concept referred to by key \"VPNActEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "UUID": "a83d78d1-b3b0-3742-85e4-25364bdbae1f", - "description": "Generated description for concept referred to by key \"VPNActTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNContext", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNContext", - "version": "0.0.1" - }, - "UUID": "ab3caa58-6748-373d-a6b9-08528951c261", - "description": "Generated description for concept referred to by key \"VPNContext:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomer", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomer", - "version": "0.0.1" - }, - "UUID": "3c987f55-b978-3e32-9858-4b1978594bf3", - "description": "Generated description for concept referred to by key \"VPNCustomer:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - "UUID": "9d8d7a8b-13f8-3e7f-a34c-8ce5bb988290", - "description": "Generated description for concept referred to by key \"VPNCustomerAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "UUID": "dc6fef76-6014-392f-b017-116bc9a35249", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtActEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "UUID": "2c9f5fb2-3fda-329a-bf81-9bbe72c0b39c", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtActTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "UUID": "9e86afcd-a764-3645-afdd-0fe373c2f9d0", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtDecideEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "UUID": "7c033835-24e5-302b-a2e7-1f357f4a49da", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtDecideTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "UUID": "6767849e-b884-3de3-a9de-49ec21d1653a", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtEstablishEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "UUID": "8d267e4f-a8b3-3ec1-9e00-4fe49c4824ac", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtEstablishTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "UUID": "3113d098-5f5d-30b1-91ad-24006aca60b3", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtMatchEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "UUID": "f7381ce6-2df0-3123-bc4d-fdb28ec0b0b4", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtMatchTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtPolicy", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtPolicy", - "version": "0.0.1" - }, - "UUID": "51645b2f-19ab-3792-8088-a2b0eab9a75b", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtPolicy:0.0.1\"" - } - }, - { - "key": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "UUID": "dd7ea64d-863e-3194-8eee-e4aab7af1454", - "description": "Generated description for concept referred to by key \"VPNCustomerCtxtTriggerEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDatatypes", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDatatypes", - "version": "0.0.1" - }, - "UUID": "45ec61a2-39c6-3544-9d48-49e29b60daa7", - "description": "Generated description for concept referred to by key \"VPNDatatypes:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "UUID": "c8721fa3-ff74-3222-b2e4-9824b8daf7bb", - "description": "Generated description for concept referred to by key \"VPNDecideEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "UUID": "cb2a893a-7719-3208-9952-a3fa3565cbb4", - "description": "Generated description for concept referred to by key \"VPNDecidePriorityTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "UUID": "bef3b2b0-5575-3b50-a1bc-dd05541cb800", - "description": "Generated description for concept referred to by key \"VPNDecideSLATask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "UUID": "137f8cd1-0f33-3c03-88a5-d0408fe0c26a", - "description": "Generated description for concept referred to by key \"VPNDecideSolvedTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "UUID": "dc647231-a4d6-307e-bd42-d32fa0a2c2c5", - "description": "Generated description for concept referred to by key \"VPNDecideTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "UUID": "a5ec4ca5-b0ce-3098-afc2-61de501e35bd", - "description": "Generated description for concept referred to by key \"VPNEstablishEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "UUID": "e5b00ad5-92d8-3ffc-93e0-ddd1c02e584f", - "description": "Generated description for concept referred to by key \"VPNEstablishTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNEvents", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEvents", - "version": "0.0.1" - }, - "UUID": "07c2931d-9011-3d85-bca6-c10d43856f60", - "description": "Generated description for concept referred to by key \"VPNEvents:0.0.1\"" - } - }, - { - "key": { - "name": "VPNKeyInformation", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNKeyInformation", - "version": "0.0.1" - }, - "UUID": "c2516499-a76d-3526-a6ee-d1d93c598931", - "description": "Generated description for concept referred to by key \"VPNKeyInformation:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLink", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLink", - "version": "0.0.1" - }, - "UUID": "27e97f3a-8b39-3ae7-ac26-af9370cccd43", - "description": "Generated description for concept referred to by key \"VPNLink:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - "UUID": "5a234e2d-9efd-336f-b26d-1f909cdb44be", - "description": "Generated description for concept referred to by key \"VPNLinkAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "UUID": "20fa2bc5-366a-3127-bbbf-c3408e30196d", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtActEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "UUID": "63d61114-538c-3c02-8bc6-d0214dc09824", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtActTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "UUID": "42ecba03-b4cb-3a8f-8c0b-cc63da5eb28a", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtDecideEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "UUID": "ade15880-f26b-32fe-accc-58016cc8bdc5", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtDecideTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "UUID": "6e10e999-4c93-34b2-8723-434a47e80d24", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtEstablishEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "UUID": "b3e9531b-162c-3b07-b47f-4013380e59e8", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtEstablishTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "UUID": "fc2a579b-2424-3a20-9e48-b7fcc72259a7", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtMatchEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "UUID": "48c628d8-d660-37ec-8d24-c17c46ad3109", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtMatchTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtPolicy", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtPolicy", - "version": "0.0.1" - }, - "UUID": "d3818863-91dc-3ed6-9087-c4cd76707003", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtPolicy:0.0.1\"" - } - }, - { - "key": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "UUID": "7af8f4e2-c662-3ccf-a77a-6dd2aafdd773", - "description": "Generated description for concept referred to by key \"VPNLinkCtxtTriggerEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "UUID": "e9a25835-f032-3f6f-ae01-8b043cae3680", - "description": "Generated description for concept referred to by key \"VPNMatchEvent:0.0.1\"" - } - }, - { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "UUID": "e5eb173b-18fd-34d2-924c-d4bc00979e86", - "description": "Generated description for concept referred to by key \"VPNMatchTask:0.0.1\"" - } - }, - { - "key": { - "name": "VPNPolicies", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNPolicies", - "version": "0.0.1" - }, - "UUID": "1b333371-46d0-3ae7-9da9-d2f7b3525fbc", - "description": "Generated description for concept referred to by key \"VPNPolicies:0.0.1\"" - } - }, - { - "key": { - "name": "VPNPolicy", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNPolicy", - "version": "0.0.1" - }, - "UUID": "5c1491a5-01ae-37cd-aa57-7aac775b6f56", - "description": "Generated description for concept referred to by key \"VPNPolicy:0.0.1\"" - } - }, - { - "key": { - "name": "VPNPolicyModelJava", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNPolicyModelJava", - "version": "0.0.1" - }, - "UUID": "39d0dbe2-5fc1-3171-b429-551c25d92003", - "description": "Generated description for concept referred to by key \"VPNPolicyModelJava:0.0.1\"" - } - }, - { - "key": { - "name": "VPNProblem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNProblem", - "version": "0.0.1" - }, - "UUID": "0bcf2824-9a3a-394b-981f-1b6b51982a9f", - "description": "Generated description for concept referred to by key \"VPNProblem:0.0.1\"" - } - }, - { - "key": { - "name": "VPNProblemAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNProblemAlbum", - "version": "0.0.1" - }, - "UUID": "ea4e8801-7391-3cb4-a93a-1dfd51ec392c", - "description": "Generated description for concept referred to by key \"VPNProblemAlbum:0.0.1\"" - } - }, - { - "key": { - "name": "VPNTasks", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNTasks", - "version": "0.0.1" - }, - "UUID": "26cae2a3-9eba-3b73-b91c-ef70806cf158", - "description": "Generated description for concept referred to by key \"VPNTasks:0.0.1\"" - } - }, - { - "key": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "UUID": "61759db7-3539-307a-9310-9f3870dab1d6", - "description": "Generated description for concept referred to by key \"VPNTriggerEvent:0.0.1\"" - } - }, - { - "key": { - "name": "YtdDT", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "YtdDT", - "version": "0.0.1" - }, - "UUID": "7bda6f7c-8469-3aea-a075-c1d4acc2a1c8", - "description": "Generated description for concept referred to by key \"YtdDT:0.0.1\"" - } - } - ] - } - }, - "policies": { - "key": { - "name": "VPNPolicies", - "version": "0.0.1" - }, - "policyMap": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtPolicy", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "VPNCustomerCtxtPolicy", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "VPNCustomerCtxtActTask_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNCustomerCtxtDecideTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "VPNCustomerCtxtEstablishTask_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "VPNCustomerCtxtMatchTask_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNCustomerCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - }, - { - "key": { - "name": "VPNLinkCtxtPolicy", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "VPNLinkCtxtPolicy", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "VPNLinkCtxtActTask_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNLinkCtxtDecideTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "VPNLinkCtxtEstablishTask_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "VPNLinkCtxtMatchTask_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNLinkCtxtPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - }, - { - "key": { - "name": "VPNPolicy", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "VPNPolicy", - "version": "0.0.1" - }, - "template": "MEDA", - "state": { - "entry": [ - { - "key": "Act", - "value": { - "stateKey": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - }, - "trigger": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Act_NULL", - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - }, - "outgoingEvent": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "TaskSelectionLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName + \", using default task\" + subject.defaultTaskKey);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "VPNActTask_DIRECT_Act_NULL" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Act", - "localName": "Act_NULL" - } - } - } - ] - } - } - }, - { - "key": "Decide", - "value": { - "stateKey": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - }, - "trigger": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Decide_Act", - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - }, - "outgoingEvent": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Act" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "TaskSelectionLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nlogger.debug(inFields);\n\nString incomingLink = inFields[\"Link\"];\nString incomingProblemStatus = inFields[\"ProblemStatus\"];\n\n/* 0 label=VPNDecideTask */\n\nif (incomingLink.equals(\"L09\") && incomingProblemStatus.equals(\"NEWPROBLEM\")) {\n\tSystem.err.println(\"l9 NEWPROBLEM\");\n\tsubject.getTaskKey(\"VPNDecideSLATask\").copyTo(selectedTask);\n\treturn true;\n}\nelse if (incomingLink.equals(\"L09\") && inFields[\"ProblemStatus\"].equals(\"NEWSOLVED\")) {\n\tSystem.err.println(\"l9 NEWSOLVED\");\n\tsubject.getTaskKey(\"VPNDecideSolvedTask\").copyTo(selectedTask);\n\treturn true;\n}\nelse if (incomingLink.equals(\"L10\") && incomingProblemStatus.equals(\"NEWPROBLEM\")) {\n\tSystem.err.println(\"l10 NEWPROBLEM\");\n\tsubject.getTaskKey(\"VPNDecidePriorityTask\").copyTo(selectedTask);\n\treturn true;\n}\nelse if (incomingLink.equals(\"L10\") && incomingProblemStatus.equals(\"NEWSOLVED\")) {\n\tSystem.err.println(\"l10 NEWSOLVED\");\n\tsubject.getTaskKey(\"VPNDecideSolvedTask\").copyTo(selectedTask);\n\treturn true;\n}\nelse {\n\tsubject.defaultTaskKey.copyTo(selectedTask);\n\treturn true;\n}" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNDecidePriorityTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNDecideSLATask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNDecideSolvedTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - }, - { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "VPNDecideTask_DIRECT_Decide_Act" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Decide", - "localName": "Decide_Act" - } - } - } - ] - } - } - }, - { - "key": "Establish", - "value": { - "stateKey": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - }, - "trigger": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Establish_Decide", - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - }, - "outgoingEvent": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Decide" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "TaskSelectionLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName + \", using default task\" + subject.defaultTaskKey);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "VPNEstablishTask_DIRECT_Establish_Decide" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Establish", - "localName": "Establish_Decide" - } - } - } - ] - } - } - }, - { - "key": "Match", - "value": { - "stateKey": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Match" - }, - "trigger": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "Match_Establish", - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - }, - "outgoingEvent": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "Establish" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "TaskSelectionLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName + \", using default task\" + subject.defaultTaskKey);\nreturn true;" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "VPNMatchTask_DIRECT_Match_Establish" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "VPNPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "Match", - "localName": "Match_Establish" - } - } - } - ] - } - } - } - ] - }, - "firstState": "Match" - } - } - ] - } - }, - "tasks": { - "key": { - "name": "VPNTasks", - "version": "0.0.1" - }, - "taskMap": { - "entry": [ - { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNActTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerMap", - "value": { - "key": "CustomerMap", - "fieldSchemaKey": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkMap", - "value": { - "key": "LinkMap", - "fieldSchemaKey": { - "name": "LinkMap", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNLinkMap;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerMap;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\nlogger.debug(subject.id);\n\nSystem.err.println(\"*** Links ***\");\nfor (VPNLink link: getContextAlbum(\"VPNLinkAlbum\").values()) {\n System.err.println(link.getName() + \"\\t\" + link.getActive());\n}\n\nSystem.err.println(\"*** Customers ***\");\nfor (VPNCustomer customer: getContextAlbum(\"VPNCustomerAlbum\").values()) {\n System.err.println(\n \t customer.getName() + \"\\t\" +\n\t\t customer.getSlaDT() + \"\\t\" +\n\t\t customer.getYtdDT() + \"\\t\" + \n\t\t customer.getLinksInUseAsString());\n}\n\nVPNLinkMap linkMap = new VPNLinkMap();\nlinkMap.putAll(getContextAlbum(\"VPNLinkAlbum\"));\noutFields[\"LinkMap\"] = linkMap;\n\nVPNCustomerMap customerMap = new VPNCustomerMap();\ncustomerMap.putAll(getContextAlbum(\"VPNCustomerAlbum\"));\noutFields[\"CustomerMap\"] = customerMap;\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtActTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\n\nlogger.debug(subject.id);\nSystem.err.println(inFields);\n\nString vpnCustomerName = inFields[\"CustomerName\"];\nVPNCustomer vpnCustomer = getContextAlbum(\"VPNCustomerAlbum\").get(vpnCustomerName);\nif (vpnCustomer == null) {\n vpnCustomer = new VPNCustomer(vpnCustomerName);\n\t getContextAlbum(\"VPNCustomerAlbum\").put(vpnCustomerName, vpnCustomer);\n}\nvpnCustomer.setSlaDT(inFields[\"SlaDT\"]);\nvpnCustomer.setYtdDT(inFields[\"YtdDT\"]);\n\nfor (String usedLinkName: inFields[\"LinkList\"].split(\" \")) {\n\tVPNLink vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(usedLinkName);\n\tif (vpnLink != null) {\n\t\tvpnCustomer.getLinksInUse().add(vpnLink);\n\t}\n\telse {\n\t\tSystem.err.println(\"unknown link \\\\\"\" + usedLinkName + \"\\\\\" specified on customer \\\\\"\" + vpnCustomerName + \"\\\\\"\");\n\t}\n}\n\nSystem.err.println(\"*** Customers ***\");\nfor (VPNCustomer customer: getContextAlbum(\"VPNCustomerAlbum\").values()) {\n System.err.println(\n \t customer.getName() + \"\\t\" +\n\t\t customer.getSlaDT() + \"\\t\" +\n\t\t customer.getYtdDT() + \"\\t\" + \n\t\t customer.getLinksInUseAsString());\n}\n\noutFields[\"CustomerName\"] = vpnCustomer.getName();\noutFields[\"LinkList\"] = vpnCustomer.getLinksInUseAsString();\noutFields[\"SlaDT\"] = vpnCustomer.getSlaDT();\noutFields[\"YtdDT\"] = vpnCustomer.getYtdDT();\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtDecideTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtEstablishTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtMatchTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecidePriorityTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerArray;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nlogger.debug(\"VPNDecidePriorityTask execution logic-Praveen\");\nlogger.debug(inFields);\noutFields[\"Link\"] = inFields[\"Link\"];\noutFields[\"Action\"] = \"Disconnect customers based on Priority\";\n\nVPNCustomerArray affectedCustomersArray = new VPNCustomerArray();\naffectedCustomersArray.addCustomer(\"A\");\noutFields[\"AffectedCustomers\"] = affectedCustomersArray;\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideSLATask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerArray;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\n\noutFields[\"Link\"] = inFields[\"Link\"];\noutFields[\"Action\"] = \"Disconnect customers based on SLA Agreement\";\n\nVPNCustomerArray slaViolatedCustomerArray = new VPNCustomerArray();\n\nSystem.err.println(\"cust\\tslaDT\\tytdDT\");\nfor (VPNCustomer customer: getContextAlbum(\"VPNCustomerAlbum\").values()) {\n\tSystem.err.println(customer.getName() + \"\\t\" + customer.getSlaDT() + \"\\t\" + customer.getYtdDT());\n\n\tif (customer.getYtdDT() > customer.getSlaDT()) {\n\t\tslaViolatedCustomerArray.addCustomer(customer.getName());\n\t}\n}\n\nSystem.err.println(\"Customers whose SLAs are violated are:\" + slaViolatedCustomerArray.toString());\n\ninFields[\"AffectedCustomers\"].removeAll(slaViolatedCustomerArray.getCustomers());\noutFields[\"AffectedCustomers\"] = new VPNCustomerArray(inFields[\"AffectedCustomers\"].getCustomers());\n\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideSolvedTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNProblem;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\noutFields[\"Action\"] = \"Rebuild VPN for customers\";\noutFields[\"Link\"] = inFields[\"Link\"];\noutFields[\"AffectedCustomers\"] = inFields[\"AffectedCustomers\"];\n\n/* Get the problem-link-object for this link */\nString incomingLink = inFields[\"Link\"];\n\nVPNProblem vpnProblem = getContextAlbum(\"VPNProblemAlbum\").get(incomingLink);\n\nif (null != vpnProblem) {\n /* Calculate the total down time from the problem-link-object */\n long linkDownTimeinSecs = (vpnProblem.getEndTime() - vpnProblem.getStartTime())/1000;\n /* Get customers from Policy context and add to ytdDT */\n for (VPNCustomer customer : vpnProblem.getAffectedCustomers()) {\n\t\tcustomer.setYtdDT(customer.getYtdDT() + linkDownTimeinSecs);\n }\n}\n\n/* Remove the problem-link-object */\ngetContextAlbum(\"VPNProblemAlbum\").remove(incomingLink);\n\nSystem.err.println(\"outFields: \" + outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEstablishTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "StatusChanged", - "value": { - "key": "StatusChanged", - "fieldSchemaKey": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNProblem;\nimport org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerArray;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\n\nSystem.err.println(inFields);\nString vpnLinkName = inFields[\"Link\"];\n\nVPNLink vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(vpnLinkName);\nVPNProblem vpnProblem = getContextAlbum(\"VPNProblemAlbum\").get(vpnLinkName);\n\nString incomingStatus = inFields[\"Status\"];\nBoolean incomingStatusChanged = (Boolean)inFields[\"StatusChanged\"];\n\nif (incomingStatus.equalsIgnoreCase(\"DOWN\")) {\n\tvpnLink.setActive(false);\n}\nelse {\n\tvpnLink.setActive(true);\n}\n\nlong now = System.currentTimeMillis();\n\nif (incomingStatusChanged == false) {\n\toutFields[\"Link\"] = vpnLinkName;\n\tif (incomingStatus.equalsIgnoreCase(\"UP\")) {\n\t\toutFields[\"ProblemStatus\"] = \"NOPROBLEM\";\n\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray();\n\t}\n\telse if (incomingStatus.equalsIgnoreCase(\"DOWN\")) {\n\t\toutFields[\"ProblemStatus\"] = \"STILLPROBLEM\";\n\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray(vpnProblem.getAffectedCustomers());\n\t}\n\telse {\n\t\tSystem.err.println(\"VpnEstablishLogic: Unsupported link type!!!\" + vpnLinkName + \" \" + incomingStatus);\n\t}\n}\nelse if (incomingStatusChanged == true) {\n\t/* indicates new problem or new solution */\n\tif\t(incomingStatus.equalsIgnoreCase(\"UP\")) {\n\t\t/* A link that was down is now up */\n\t\tif (vpnProblem != null) {\n\t\t\tvpnProblem.setEndTime(now);\n\t\t}\n\t\telse {\n\t\t\tSystem.err.println(\"VpnEstablishLogic: Link change to UP, but with no report of a previous problem!!!\" + vpnLinkName);\n\t\t}\n\t\toutFields[\"Link\"] = vpnLinkName;\n\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray(vpnProblem.getAffectedCustomers());\n\t\toutFields[\"ProblemStatus\"] = \"NEWSOLVED\";\n\t}\n\telse if (incomingStatus.equalsIgnoreCase(\"DOWN\")) {\n\t\t/* A link that was up is now down */\n\t\tif (vpnProblem == null) {\n\t\t\tvpnProblem = new VPNProblem(vpnLinkName);\n\t\t\tvpnProblem.setStartTime(now);\n\n\t\t\tfor (VPNCustomer vpnCustomer : getContextAlbum(\"VPNCustomerAlbum\").values()) {\n\t\t\t\tif (vpnCustomer.getLinksInUse().contains(vpnLinkName)) {\n\t\t\t\t\tvpnProblem.add(vpnCustomer);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tgetContextAlbum(\"VPNProblemAlbum\").put(vpnLinkName, vpnProblem);\n\n\t\t\toutFields[\"Link\"] = vpnLinkName;\n\t\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray(vpnProblem.getAffectedCustomers());\n\t\t\toutFields[\"ProblemStatus\"] = \"NEWPROBLEM\";\n\t\t}\n\t\telse {\n\t\t\tSystem.err.println(\"VpnEstablishLogic: Link change to DOWN, but with a report of a previous problem: \" + vpnLinkName + \" Not updating problem: \" + vpnProblem);\n\t\t\toutFields[\"Link\"] = vpnLinkName;\n\t\t\toutFields[\"AffectedCustomers\"] = new VPNCustomerArray(vpnProblem.getAffectedCustomers());\n\t\t\toutFields[\"ProblemStatus\"] = \"STILLPROBLEM\";\n\t\t}\n\t}\n\telse {\n\t\tSystem.err.println(\"VpnEstablishLogic: Unsupported link type!!!\" + vpnLinkName + \" \" + incomingStatus);\n\t}\n}\nelse {\n\tthrow new IllegalArgumentException(\"MatchEvent down time cannot be less than 0\");\n}\n\nSystem.err.println(\"outFields: \" + outFields);\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtActTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\n\nlogger.debug(subject.id);\nSystem.err.println(inFields);\n\nString vpnLinkName = inFields[\"Link\"];\nVPNLink vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(vpnLinkName);\nif (vpnLink == null) {\n vpnLink = new VPNLink(vpnLinkName);\n getContextAlbum(\"VPNLinkAlbum\").put(vpnLinkName, vpnLink);\n}\nvpnLink.setActive(inFields[\"LinkUp\"]);\n\nSystem.err.println(\"*** Links ***\");\nfor (VPNLink link: getContextAlbum(\"VPNLinkAlbum\").values()) {\n System.err.println(link.getName() + \"\\t\" + link.getActive());\n}\n\noutFields[\"Link\"] = vpnLink.getName();\noutFields[\"LinkUp\"] = vpnLink.getActive();\nSystem.err.println(\"outFields: \" + outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtDecideTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtEstablishTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtMatchTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "logger.debug(subject.id + \":\" + subject.taskName);\nlogger.debug(inFields);\nlogger.debug(outFields);\n\nreturn true;" - } - } - }, - { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNMatchTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "StatusChanged", - "value": { - "key": "StatusChanged", - "fieldSchemaKey": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [ - { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - { - "name": "VPNProblemAlbum", - "version": "0.0.1" - } - ], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "MVEL", - "logic": "import org.onap.policy.apex.domains.vpn.java.concepts.VPNLink;\n\nlogger.debug(subject.id + \":\" + subject.taskName);\nSystem.err.println(inFields);\n\nString vpnLinkName = inFields[\"Link\"];\nString vpnLinkStatus = inFields[\"Status\"];\n\nVPNLink vpnLink = getContextAlbum(\"VPNLinkAlbum\").get(vpnLinkName);\nif (vpnLink == null) {\n\tvpnLink = new VPNLink(vpnLinkName);\n\tgetContextAlbum(\"VPNLinkAlbum\").put(vpnLinkName, vpnLink);\n\tif (vpnLinkStatus.equalsIgnoreCase(\"DOWN\")) {\n\t\tvpnLink.setActive(true);\n\t}\n\telse {\n\t\tvpnLink.setActive(false);\n\t}\n}\n\nif (vpnLinkStatus.equalsIgnoreCase(\"DOWN\")) {\n\tif (vpnLinkName != null) {\n\t\tif (vpnLink.getActive()) {\n\t\t\toutFields[\"StatusChanged\"] = true;\n\t\t}\n\t\telse {\n\t\t\toutFields[\"StatusChanged\"] = false;\n\t\t}\n\t\toutFields[\"Link\"] = vpnLinkName;\n\t\toutFields[\"Status\"] = vpnLinkStatus;\n\t}\n\telse {\n\t\tSystem.err.println(\"match: trigger context error: link is null\");\n\t}\n}\nelse if (vpnLinkStatus.equalsIgnoreCase(\"UP\")) {\n\tif (vpnLinkName != null) {\n\t\tif (!vpnLink.getActive()) {\n\t\t\toutFields[\"StatusChanged\"] = true;\n\t\t}\n\t\telse {\n\t\t\toutFields[\"StatusChanged\"] = false;\n\t\t}\n\t\toutFields[\"Link\"] = vpnLinkName;\n\t\toutFields[\"Status\"] = vpnLinkStatus;\n\t}\n\telse {\n\t\tSystem.err.println(\"match: trigger context error: link is null\");\n\t}\n}\nelse {\n\tSystem.err.println(\"match: trigger context error: status neither UP nor DOWN\");\n}\n\nSystem.err.println(\"outFields: \" + outFields);\nreturn true;" - } - } - } - ] - } - }, - "events": { - "key": { - "name": "VPNEvents", - "version": "0.0.1" - }, - "eventMap": { - "entry": [ - { - "key": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNActEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerMap", - "value": { - "key": "CustomerMap", - "fieldSchemaKey": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkMap", - "value": { - "key": "LinkMap", - "fieldSchemaKey": { - "name": "LinkMap", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtActEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtDecideEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtEstablishEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtMatchEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerCtxtTriggerEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "CustomerName", - "value": { - "key": "CustomerName", - "fieldSchemaKey": { - "name": "CustomerName", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkList", - "value": { - "key": "LinkList", - "fieldSchemaKey": { - "name": "LinkList", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "SlaDT", - "value": { - "key": "SlaDT", - "fieldSchemaKey": { - "name": "SlaDT", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "YtdDT", - "value": { - "key": "YtdDT", - "fieldSchemaKey": { - "name": "YtdDT", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNDecideEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Action", - "value": { - "key": "Action", - "fieldSchemaKey": { - "name": "Action", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNEstablishEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "AffectedCustomers", - "value": { - "key": "AffectedCustomers", - "fieldSchemaKey": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "ProblemStatus", - "value": { - "key": "ProblemStatus", - "fieldSchemaKey": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtActEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtDecideEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtEstablishEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtMatchEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkCtxtTriggerEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "LinkUp", - "value": { - "key": "LinkUp", - "fieldSchemaKey": { - "name": "LinkUp", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNMatchEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "StatusChanged", - "value": { - "key": "StatusChanged", - "fieldSchemaKey": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNTriggerEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.domains.vpn.events", - "source": "Source", - "target": "Target", - "parameter": { - "entry": [ - { - "key": "Link", - "value": { - "key": "Link", - "fieldSchemaKey": { - "name": "Link", - "version": "0.0.1" - }, - "optional": false - } - }, - { - "key": "Status", - "value": { - "key": "Status", - "fieldSchemaKey": { - "name": "Status", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - } - ] - } - }, - "albums": { - "key": { - "name": "VPNContext", - "version": "0.0.1" - }, - "albums": { - "entry": [ - { - "key": { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomerAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "VPNCustomer", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLinkAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "VPNLink", - "version": "0.0.1" - } - } - }, - { - "key": { - "name": "VPNProblemAlbum", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNProblemAlbum", - "version": "0.0.1" - }, - "scope": "GLOBAL", - "isWritable": true, - "itemSchema": { - "name": "VPNProblem", - "version": "0.0.1" - } - } - } - ] - } - }, - "schemas": { - "key": { - "name": "VPNDatatypes", - "version": "0.0.1" - }, - "schemas": { - "entry": [ - { - "key": { - "name": "Action", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Action", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "AffectedCustomers", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerArray" - } - }, - { - "key": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "CustomerMap", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomerMap" - } - }, - { - "key": { - "name": "CustomerName", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "CustomerName", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "Link", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Link", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "LinkList", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkList", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "LinkMap", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkMap", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNLinkMap" - } - }, - { - "key": { - "name": "LinkUp", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "LinkUp", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Boolean" - } - }, - { - "key": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "ProblemStatus", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "SlaDT", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "SlaDT", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Integer" - } - }, - { - "key": { - "name": "Status", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "Status", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.String" - } - }, - { - "key": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "StatusChanged", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Boolean" - } - }, - { - "key": { - "name": "VPNCustomer", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNCustomer", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNCustomer" - } - }, - { - "key": { - "name": "VPNLink", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNLink", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNLink" - } - }, - { - "key": { - "name": "VPNProblem", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "VPNProblem", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.domains.vpn.java.concepts.VPNProblem" - } - }, - { - "key": { - "name": "YtdDT", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "YtdDT", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "java.lang.Integer" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_AvroEventAlbum_file2file.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_AvroEventAlbum_file2file.json index 431b05a1e..9c6a746c0 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_AvroEventAlbum_file2file.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_AvroEventAlbum_file2file.json @@ -27,7 +27,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "src/test/resources/events/Context_AvroEventAlbum_EventOut.json" + "fileName": "target/Context_AvroEventAlbum_EventOut.json" } }, "eventProtocolParameters": { diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_JavaEventAlbum_file2file.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_JavaEventAlbum_file2file.json index 54f1a9332..4205f0317 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_JavaEventAlbum_file2file.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Context_JavaEventAlbum_file2file.json @@ -19,7 +19,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "src/test/resources/events/Context_JavaEventAlbum_EventOut.json" + "fileName": "target/Context_JavaEventAlbum_EventOut.json" } }, "eventProtocolParameters": { diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredInJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredInJsonEvent.json deleted file mode 100644 index 209e94fea..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredInJsonEvent.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "inputZero": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]000$" - } - }, - "eventOutputParameters": { - "outputZero": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/Events0004Out.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredInOutJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredInOutJsonEvent.json deleted file mode 100644 index 10544c45e..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredInOutJsonEvent.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "inputZero": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]000$" - }, - "inputOne": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]100$" - } - }, - "eventOutputParameters": { - "outputZero": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/Events0004Out.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]004$" - }, - "outputOne": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/Events0104Out.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]104$" - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredOutJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredOutJsonEvent.json deleted file mode 100644 index 99b7c6684..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileFilteredOutJsonEvent.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "inputZero": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventOutputParameters": { - "outputZero": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/Events0004Out.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]004$" - }, - "outputOne": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/Events0104Out.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "eventNameFilter": "^E[Vv][Ee][Nn][Tt][0-9]104$" - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileJsonEvent.json deleted file mode 100644 index fb42942d7..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileJsonEvent.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12545, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileXmlEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileXmlEvent.json deleted file mode 100644 index 4b3adfaae..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2FileXmlEvent.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12546, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOut.xmlfile" - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.xmlfile" - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadHTTPMethod.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadHTTPMethod.json index 9ce0bb348..f290320a5 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadHTTPMethod.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadHTTPMethod.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -34,7 +34,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" + "fileName": "target/examples/events/SampleDomain/EventsIn.json" } }, "eventProtocolParameters": { diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadURL.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadURL.json index 639b7c677..0dca6bb0a 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadURL.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventBadURL.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" + "fileName": "target/examples/events/SampleDomain/EventsIn.json" } }, "eventProtocolParameters": { diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventNoURL.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventNoURL.json index 2dcedf7fd..be9ab2ad7 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventNoURL.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventNoURL.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -30,7 +30,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" + "fileName": "target/examples/events/SampleDomain/EventsIn.json" } }, "eventProtocolParameters": { diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPost.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPost.json deleted file mode 100644 index 1fa52d055..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPost.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestFile2Rest/apex/event/PostEvent" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPostBadResponse.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPostBadResponse.json index e196d8999..6523d510c 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPostBadResponse.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPostBadResponse.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -33,7 +33,7 @@ "carrierTechnologyParameters": { "carrierTechnology": "FILE", "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" + "fileName": "target/examples/events/SampleDomain/EventsIn.json" } }, "eventProtocolParameters": { diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPut.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPut.json deleted file mode 100644 index 641c0c97e..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/File2RESTJsonEventPut.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestFile2Rest/apex/event/PutEvent", - "httpMethod": "PUT" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsIn.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/JMS2JMSJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/JMS2JMSJsonEvent.json deleted file mode 100644 index f8479969b..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/JMS2JMSJsonEvent.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12553, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "JMS", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", - "parameters": { - "initialContextFactory": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestInitialContextFactory", - "connectionFactory": "ConnectionFactory", - "providerURL": "remote://localhost:5445", - "securityPrincipal": "guest", - "securityCredentials": "IAmAGuest", - "producerTopic": "jms/topic/apexOut", - "objectMessageSending": "false" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JMSTEXT", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsTextEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "JMS", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", - "parameters": { - "initialContextFactory": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestInitialContextFactory", - "connectionFactory": "ConnectionFactory", - "providerURL": "remote://localhost:5445", - "securityPrincipal": "guest", - "securityCredentials": "IAmAGuest", - "consumerTopic": "jms/topic/apexIn" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JMSTEXT", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsTextEventProtocolParameters" - } - } - } -} - diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/JMS2JMSObjectEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/JMS2JMSObjectEvent.json deleted file mode 100644 index 8fea3346b..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/JMS2JMSObjectEvent.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12553, - "policyModelFileName": "src/test/resources/policymodels/JMSTestModel.json", - "engineParameters": { - "executorParameters": { - "JAVASCRIPT": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "JMS", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", - "parameters": { - "initialContextFactory": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestInitialContextFactory", - "connectionFactory": "ConnectionFactory", - "providerURL": "remote://localhost:5445", - "securityPrincipal": "guest", - "securityCredentials": "IAmAGuest", - "producerTopic": "jms/topic/apexOut" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JMSOBJECT", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsObjectEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "JMS", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.jms.JmsCarrierTechnologyParameters", - "parameters": { - "initialContextFactory": "org.onap.policy.apex.testsuites.integration.uservice.adapt.jms.TestInitialContextFactory", - "connectionFactory": "ConnectionFactory", - "providerURL": "remote://localhost:5445", - "securityPrincipal": "guest", - "securityCredentials": "IAmAGuest", - "consumerTopic": "jms/topic/apexIn" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JMSOBJECT", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.jms.JmsObjectEventProtocolParameters" - } - } - } -} - diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Kafka2KafkaJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Kafka2KafkaJsonEvent.json deleted file mode 100644 index f861c27bc..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Kafka2KafkaJsonEvent.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12547, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:39902", - "acks": "all", - "retries": 0, - "batchSize": 16384, - "lingerTime": 1, - "bufferMemory": 33554432, - "producerTopic": "apex-out-json", - "keySerializer": "org.apache.kafka.common.serialization.StringSerializer", - "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:39902", - "groupId": "apex-group", - "enableAutoCommit": true, - "autoCommitTime": 1000, - "sessionTimeout": 30000, - "consumerPollTime": 100, - "consumerTopicList": [ - "apex-in-json" - ], - "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", - "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Kafka2KafkaXmlEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Kafka2KafkaXmlEvent.json deleted file mode 100644 index f18ecc2ed..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Kafka2KafkaXmlEvent.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 3, - "deploymentPort": 12548, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:39902", - "acks": "all", - "retries": 0, - "batchSize": 16384, - "lingerTime": 1, - "bufferMemory": 33554432, - "producerTopic": "apex-out-xml", - "keySerializer": "org.apache.kafka.common.serialization.StringSerializer", - "valueSerializer": "org.apache.kafka.common.serialization.StringSerializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "KAFKA", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.kafka.KafkaCarrierTechnologyParameters", - "parameters": { - "bootstrapServers": "localhost:39902", - "groupId": "apex-group", - "enableAutoCommit": true, - "autoCommitTime": 1000, - "sessionTimeout": 30000, - "consumerPollTime": 100, - "consumerTopicList": [ - "apex-in-xml" - ], - "keyDeserializer": "org.apache.kafka.common.serialization.StringDeserializer", - "valueDeserializer": "org.apache.kafka.common.serialization.StringDeserializer" - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/LBPolicy_ExecModel_file2kafka.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/LBPolicy_ExecModel_file2kafka.json index 7b4127d53..8296485f4 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/LBPolicy_ExecModel_file2kafka.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/LBPolicy_ExecModel_file2kafka.json @@ -5,11 +5,11 @@ "id": 102, "instanceCount": 1, "deploymentPort": 12549, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMvel.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEmptyEvents.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEmptyEvents.json index 804b91e9f..fae8987ac 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEmptyEvents.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEmptyEvents.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEvent.json deleted file mode 100644 index 6424e52e1..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEvent.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTCLIENT", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters", - "parameters": { - "url": "http://localhost:32801/TestRest2File/apex/event/GetEvent" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "FILE", - "parameters": { - "fileName": "src/test/resources/events/EventsOut.json" - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadHTTPMethod.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadHTTPMethod.json index 227c20a0e..8b779668d 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadHTTPMethod.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadHTTPMethod.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadResponse.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadResponse.json index f365a9631..fb79d6536 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadResponse.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadResponse.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadURL.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadURL.json index 852e69194..8a188799c 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadURL.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventBadURL.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventNoURL.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventNoURL.json index 877ca47ba..65ddb2583 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventNoURL.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/REST2FileJsonEventNoURL.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEvent.json deleted file mode 100644 index f482bc9b2..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEvent.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "localhost", - "port": 23324 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerNotSync.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerNotSync.json index 0b325a08d..0b6c8f182 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerNotSync.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerNotSync.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -41,7 +41,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoHost.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoHost.json index 40943e794..999384435 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoHost.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoHost.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -28,7 +28,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } }, "eventOutputParameters": { @@ -42,7 +42,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoPort.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoPort.json index 85e33ef54..7eaaacd83 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoPort.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventConsumerStandaloneNoPort.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -29,7 +29,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } }, "eventOutputParameters": { @@ -43,7 +43,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventContextAvro.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventContextAvro.json deleted file mode 100644 index 2cd373810..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventContextAvro.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/VPNPolicyModelAvro.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - }, - "contextParameters": { - "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters", - "schemaParameters": { - "Avro": { - "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters" - } - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "localhost", - "port": 23324 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventContextJava.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventContextJava.json deleted file mode 100644 index 193c259b5..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventContextJava.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/VPNPolicyModelJava.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - }, - "contextParameters": { - "parameterClassName": "org.onap.policy.apex.context.parameters.ContextParameters", - "schemaParameters": { - "Avro": { - "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters" - } - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "localhost", - "port": 23324 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventDivideByZero.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventDivideByZero.json deleted file mode 100644 index d4b6d19b5..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventDivideByZero.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVELDivideByZero.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "localhost", - "port": 23324 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventMultiIn.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventMultiIn.json deleted file mode 100644 index b34a85d32..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventMultiIn.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventInputParameters": { - "FirstConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "localhost", - "port": 23324 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 - }, - "SecondConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters", - "parameters": { - "standalone": true, - "host": "localhost", - "port": 23325 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "SecondProducer", - "synchronousTimeout": 500 - } - }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 - }, - "SecondProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "SecondConsumer", - "synchronousTimeout": 500 - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerHost.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerHost.json index 2c73fc3de..5ecde66a8 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerHost.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerHost.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -30,7 +30,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } }, "eventOutputParameters": { @@ -47,7 +47,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerNotSync.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerNotSync.json index 8c55d158d..5662e656f 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerNotSync.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerNotSync.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerPort.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerPort.json index da08cf569..e12d63ffe 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerPort.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerPort.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -30,7 +30,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } }, "eventOutputParameters": { @@ -47,7 +47,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerStandalone.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerStandalone.json index a2626dcf1..e74156b14 100644 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerStandalone.json +++ b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/RESTServerJsonEventProducerStandalone.json @@ -5,11 +5,11 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", + "policyModelFileName": "target/examples/models/SampleDomain/SamplePolicyModelJAVASCRIPT.json", "engineParameters": { "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" + "JAVASCRIPT": { + "parameterClassName": "org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters" } } } @@ -30,7 +30,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstProducer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } }, "eventOutputParameters": { @@ -47,7 +47,7 @@ }, "synchronousMode": true, "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 500 + "synchronousTimeout": 2000 } } } diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsClientJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsClientJsonEvent.json deleted file mode 100644 index 7caa8b264..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsClientJsonEvent.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12552, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "host": "localhost", - "port": 42453 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "host": "localhost", - "port": 42451 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsClientXMLEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsClientXMLEvent.json deleted file mode 100644 index 8883d2fa7..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsClientXMLEvent.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12553, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "host": "localhost", - "port": 42453 - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "host": "localhost", - "port": 42451 - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsServerJsonEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsServerJsonEvent.json deleted file mode 100644 index e7b1943c1..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsServerJsonEvent.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12554, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "wsClient": false, - "port": 42452 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "wsClient": false, - "port": 42450 - } - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - } - } - } -} diff --git a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsServerXMLEvent.json b/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsServerXMLEvent.json deleted file mode 100644 index 5cd7945c2..000000000 --- a/testsuites/integration/integration-uservice-test/src/test/resources/prodcons/Ws2WsServerXMLEvent.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12555, - "policyModelFileName": "src/test/resources/policymodels/SamplePolicyModelMVEL.json", - "engineParameters": { - "executorParameters": { - "MVEL": { - "parameterClassName": "org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters" - } - } - } - }, - "eventOutputParameters": { - "aProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "wsClient": false, - "port": 42452 - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - }, - "eventInputParameters": { - "aConsumer": { - "carrierTechnologyParameters": { - "carrierTechnology": "WEBSOCKET", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.websocket.WebSocketCarrierTechnologyParameters", - "parameters": { - "wsClient": false, - "port": 42450 - } - }, - "eventProtocolParameters": { - "eventProtocol": "XML", - "parameterClassName": "org.onap.policy.apex.plugins.event.protocol.xml.XmlEventProtocolParameters" - } - } - } -} diff --git a/tools/model-generator/pom.xml b/tools/model-generator/pom.xml index 0c297bf82..6387eb33d 100644 --- a/tools/model-generator/pom.xml +++ b/tools/model-generator/pom.xml @@ -17,7 +17,8 @@ SPDX-License-Identifier: Apache-2.0 ============LICENSE_END========================================================= --> - + 4.0.0 org.onap.policy.apex-pdp.tools @@ -63,6 +64,76 @@ + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-examples + generate-test-resources + + unpack + + + + + org.onap.policy.apex-pdp.testsuites.integration + integration-common + ${project.version} + jar + false + ${project.build.directory} + examples/**/* + + + org.onap.policy.apex-pdp.examples + examples-aadm + ${project.version} + jar + false + ${project.build.directory} + examples/**/* + + + org.onap.policy.apex-pdp.examples + examples-adaptive + ${project.version} + jar + false + ${project.build.directory} + examples/**/* + + + org.onap.policy.apex-pdp.examples + examples-pcvs + ${project.version} + jar + false + ${project.build.directory} + examples/**/* + + + org.onap.policy.apex-pdp.examples + examples-myfirstpolicy + ${project.version} + jar + false + ${project.build.directory} + examples/**/* + + + true + true + + + + + + + apexSite diff --git a/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/SchemaUtilsTest.java b/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/SchemaUtilsTest.java index 164f187cc..14ff284b9 100644 --- a/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/SchemaUtilsTest.java +++ b/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/SchemaUtilsTest.java @@ -68,7 +68,8 @@ public class SchemaUtilsTest { */ @BeforeClass public static void readSimpleModel() throws IOException, ApexModelException { - String avroModelString = TextFileUtils.getTextFileAsString("src/test/resources/models/AvroModel.json"); + String avroModelString = TextFileUtils + .getTextFileAsString("target/examples/models/pcvs/vpnsla/PCVS-VpnSla.json"); final ApexModelReader modelReader = new ApexModelReader<>(AxPolicyModel.class); avroModel = modelReader.read(new ByteArrayInputStream(avroModelString.getBytes())); diff --git a/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliTest.java b/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliTest.java index 170004e7c..aaff84eeb 100644 --- a/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliTest.java +++ b/tools/model-generator/src/test/java/org/onap/policy/apex/tools/model/generator/model2cli/Model2CliTest.java @@ -102,37 +102,37 @@ public class Model2CliTest { @Test public void testModel2CliAvro() throws IOException { - testModel2CliModel("AvroModel"); + testModel2CliModel("target/examples/models/pcvs/vpnsla", "PCVS-VpnSla"); } @Test public void testModel2CliAadm() throws IOException { - testModel2CliModel("AADMPolicyModel"); + testModel2CliModel("target/examples/models/AADM", "AADMPolicyModel"); } @Test public void testModel2CliAnomaly() { - testModel2CliModel("AnomalyDetectionPolicyModel"); + testModel2CliModel("target/examples/models/Adaptive", "AnomalyDetectionPolicyModel"); } @Test public void testModel2CliAutoLearn() { - testModel2CliModel("AutoLearnPolicyModel"); + testModel2CliModel("target/examples/models/Adaptive", "AutoLearnPolicyModel"); } @Test public void testModel2CliJms() { - testModel2CliModel("JMSSamplePolicyModel"); + testModel2CliModel("target/examples/models/JMS", "JMSTestModel"); } @Test public void testModel2CliMfp() { - testModel2CliModel("MyFirstPolicyModel"); + testModel2CliModel("target/examples/models/MyFirstPolicy/2", "MyFirstPolicyModel"); } @Test public void testModel2CliSample() { - testModel2CliModel("SamplePolicyModelJAVASCRIPT"); + testModel2CliModel("target/examples/models/SampleDomain", "SamplePolicyModelJAVASCRIPT"); } /** @@ -158,13 +158,13 @@ public class Model2CliTest { * * @param modelName the name of the model file */ - private void testModel2CliModel(String modelName) { + private void testModel2CliModel(final String modelPath, final String modelName) { try { File tempFile = File.createTempFile(modelName, ".apex"); tempFile.deleteOnExit(); final String[] cliArgs = - { "-m", "src/test/resources/models/" + modelName + ".json", "-o", tempFile.getCanonicalPath(), "-ow" }; + { "-m", modelPath + "/" + modelName + ".json", "-o", tempFile.getCanonicalPath(), "-ow" }; runModel2Cli(cliArgs); assertTrue(tempFile.isFile()); diff --git a/tools/model-generator/src/test/resources/models/AADMPolicyModel.json b/tools/model-generator/src/test/resources/models/AADMPolicyModel.json deleted file mode 100644 index b252b7c9f..000000000 --- a/tools/model-generator/src/test/resources/models/AADMPolicyModel.json +++ /dev/null @@ -1,7798 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "AADMPolicyModel", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "AADMKeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "AADMContext", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMContext", - "version" : "0.0.1" - }, - "UUID" : "a8985020-eeb1-34f4-8720-460a4ca6394b", - "description" : "Generated description for concept referred to by key \"AADMContext:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMDatatypes", - "version" : "0.0.1" - }, - "UUID" : "3e36da83-11b0-356a-b863-33e9bb46190c", - "description" : "Generated description for concept referred to by key \"AADMDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMDecideTask", - "version" : "0.0.1" - }, - "UUID" : "3a609f60-b8b8-3b8c-8e95-1bafedeedd19", - "description" : "Generated description for concept referred to by key \"AADMDecideTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMDoSProvenActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMDoSProvenActTask", - "version" : "0.0.1" - }, - "UUID" : "73d6a38b-6a73-345c-b1e7-6628aaad2822", - "description" : "Generated description for concept referred to by key \"AADMDoSProvenActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMDoSSuggestionActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMDoSSuggestionActTask", - "version" : "0.0.1" - }, - "UUID" : "0f904146-449b-3187-844e-b12a687e20f3", - "description" : "Generated description for concept referred to by key \"AADMDoSSuggestionActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMEstablishTask", - "version" : "0.0.1" - }, - "UUID" : "5ae9425d-8061-37dd-939b-2e74868b0fac", - "description" : "Generated description for concept referred to by key \"AADMEstablishTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "UUID" : "503c3944-c368-3e05-b8d0-72354fa3668a", - "description" : "Generated description for concept referred to by key \"AADMEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMEvents", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMEvents", - "version" : "0.0.1" - }, - "UUID" : "743cc2b1-15fe-30e0-bbf5-7afc291b0852", - "description" : "Generated description for concept referred to by key \"AADMEvents:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMKeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMKeyInformation", - "version" : "0.0.1" - }, - "UUID" : "623350b2-e709-3022-8005-01bfe29376fd", - "description" : "Generated description for concept referred to by key \"AADMKeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMMatchTask", - "version" : "0.0.1" - }, - "UUID" : "a94dc4bd-40d6-337f-beb7-c59ffab96f87", - "description" : "Generated description for concept referred to by key \"AADMMatchTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMNoActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMNoActTask", - "version" : "0.0.1" - }, - "UUID" : "c517847f-844d-331c-93a4-66e5e4b6ac57", - "description" : "Generated description for concept referred to by key \"AADMNoActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMPolicies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMPolicies", - "version" : "0.0.1" - }, - "UUID" : "03496ff0-07f3-3826-a92b-2505893aa001", - "description" : "Generated description for concept referred to by key \"AADMPolicies:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMPolicy", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMPolicy", - "version" : "0.0.1" - }, - "UUID" : "9f2a1c37-bb53-37cc-b57e-6ad408d6fa20", - "description" : "Generated description for concept referred to by key \"AADMPolicy:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMPolicyModel", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMPolicyModel", - "version" : "0.0.1" - }, - "UUID" : "596419ba-33de-3ff4-bd88-101639a2ed0f", - "description" : "Generated description for concept referred to by key \"AADMPolicyModel:0.0.1\"" - } - }, { - "key" : { - "name" : "AADMTasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMTasks", - "version" : "0.0.1" - }, - "UUID" : "6da118c3-27aa-3b90-b2a0-40c8a2c32500", - "description" : "Generated description for concept referred to by key \"AADMTasks:0.0.1\"" - } - }, { - "key" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "UUID" : "0037c945-48d2-3738-9568-ddcf6d79f884", - "description" : "Generated description for concept referred to by key \"ActionTask:0.0.1\"" - } - }, { - "key" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "UUID" : "6cb1c3e3-a8d8-3e17-90d8-c052d00b19d3", - "description" : "Generated description for concept referred to by key \"ApplicationName:0.0.1\"" - } - }, { - "key" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "UUID" : "e470b7dc-3f59-388c-9913-76362e5e10f9", - "description" : "Generated description for concept referred to by key \"AttachCount:0.0.1\"" - } - }, { - "key" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "UUID" : "0475109a-c7e6-3055-bad9-5e0c2a48d205", - "description" : "Generated description for concept referred to by key \"AverageAttach:0.0.1\"" - } - }, { - "key" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "UUID" : "4ce2f826-f494-39bb-9775-46e23838a77e", - "description" : "Generated description for concept referred to by key \"AverageServiceRequest:0.0.1\"" - } - }, { - "key" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "UUID" : "cbcdc9f1-58ae-3609-a011-1a2e871ebb44", - "description" : "Generated description for concept referred to by key \"AverageThroughput:0.0.1\"" - } - }, { - "key" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "UUID" : "db18ea94-6d6a-334f-a3bc-6df1ce80f781", - "description" : "Generated description for concept referred to by key \"BlacklistOnFlag:0.0.1\"" - } - }, { - "key" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "UUID" : "65c3c97a-e77f-390e-8225-defaff11ea1c", - "description" : "Generated description for concept referred to by key \"DOSFlag:0.0.1\"" - } - }, { - "key" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "UUID" : "4ccee428-ecd9-341b-84a3-9627a316a667", - "description" : "Generated description for concept referred to by key \"ENodeBID:0.0.1\"" - } - }, { - "key" : { - "name" : "ENodeBStatus", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ENodeBStatus", - "version" : "0.0.1" - }, - "UUID" : "daeba341-83c5-36bd-a9f3-1748b3e12d30", - "description" : "Generated description for concept referred to by key \"ENodeBStatus:0.0.1\"" - } - }, { - "key" : { - "name" : "ENodeBStatusAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ENodeBStatusAlbum", - "version" : "0.0.1" - }, - "UUID" : "3476bd5a-fa19-3caf-a3ec-e39ca2e18a78", - "description" : "Generated description for concept referred to by key \"ENodeBStatusAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "UUID" : "0af781e1-fb66-39fa-88dd-b2d29167c022", - "description" : "Generated description for concept referred to by key \"HttpHostClass:0.0.1\"" - } - }, { - "key" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "UUID" : "3c4b38c8-de3f-305c-b1cc-39b0c4eeb198", - "description" : "Generated description for concept referred to by key \"IMSI:0.0.1\"" - } - }, { - "key" : { - "name" : "IMSIStatus", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IMSIStatus", - "version" : "0.0.1" - }, - "UUID" : "8483be99-ddc7-3fe4-a094-526c79d373c4", - "description" : "Generated description for concept referred to by key \"IMSIStatus:0.0.1\"" - } - }, { - "key" : { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - }, - "UUID" : "9057bb9e-348a-3a3e-ab53-e5276693009e", - "description" : "Generated description for concept referred to by key \"IMSIStatusAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "IPAddressStatus", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IPAddressStatus", - "version" : "0.0.1" - }, - "UUID" : "5b25f611-2aa2-3a87-8a02-ca68c98b806f", - "description" : "Generated description for concept referred to by key \"IPAddressStatus:0.0.1\"" - } - }, { - "key" : { - "name" : "IPAddressStatusAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IPAddressStatusAlbum", - "version" : "0.0.1" - }, - "UUID" : "622a1300-5db4-366c-b834-317ac180b186", - "description" : "Generated description for concept referred to by key \"IPAddressStatusAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "UUID" : "7133ba71-fc49-342c-a7cc-1984158e637a", - "description" : "Generated description for concept referred to by key \"NWIPAddress:0.0.1\"" - } - }, { - "key" : { - "name" : "PeriodicActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicActTask", - "version" : "0.0.1" - }, - "UUID" : "9b968879-319f-3d69-9d19-94179f80ddb4", - "description" : "Generated description for concept referred to by key \"PeriodicActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "PeriodicDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicDecideTask", - "version" : "0.0.1" - }, - "UUID" : "75ad1b28-cb2d-30e2-8f8f-e7937e55832f", - "description" : "Generated description for concept referred to by key \"PeriodicDecideTask:0.0.1\"" - } - }, { - "key" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "UUID" : "1d6d63e4-5344-3abc-8678-ff14691a9464", - "description" : "Generated description for concept referred to by key \"PeriodicDelay:0.0.1\"" - } - }, { - "key" : { - "name" : "PeriodicEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicEstablishTask", - "version" : "0.0.1" - }, - "UUID" : "6c2f6ca7-0163-3135-beda-9eb0ff846567", - "description" : "Generated description for concept referred to by key \"PeriodicEstablishTask:0.0.1\"" - } - }, { - "key" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "UUID" : "6d29eeaa-482d-3bbf-8c88-5d5c7ccc7217", - "description" : "Generated description for concept referred to by key \"PeriodicEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "UUID" : "45d754b7-85a8-30cd-9bae-6be89d08255c", - "description" : "Generated description for concept referred to by key \"PeriodicEventCount:0.0.1\"" - } - }, { - "key" : { - "name" : "PeriodicMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicMatchTask", - "version" : "0.0.1" - }, - "UUID" : "1e568638-cc5c-3331-a5a9-415f1644df00", - "description" : "Generated description for concept referred to by key \"PeriodicMatchTask:0.0.1\"" - } - }, { - "key" : { - "name" : "PeriodicPolicy", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicPolicy", - "version" : "0.0.1" - }, - "UUID" : "5d6a65be-7067-3826-9eb7-8d2d25983815", - "description" : "Generated description for concept referred to by key \"PeriodicPolicy:0.0.1\"" - } - }, { - "key" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "UUID" : "825b39f8-2027-3221-8b17-a124bba273a3", - "description" : "Generated description for concept referred to by key \"PeriodicTime:0.0.1\"" - } - }, { - "key" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "UUID" : "b557b275-759d-3e5f-906f-9d184e8522fc", - "description" : "Generated description for concept referred to by key \"ProbeOnFlag:0.0.1\"" - } - }, { - "key" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "UUID" : "a31d86c2-7f27-3b67-9528-7f41c465f789", - "description" : "Generated description for concept referred to by key \"Profile:0.0.1\"" - } - }, { - "key" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "UUID" : "2883fc70-5b0c-32eb-9008-98dfc61f196f", - "description" : "Generated description for concept referred to by key \"ProtocolGroup:0.0.1\"" - } - }, { - "key" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "UUID" : "1f7af8ef-be8a-319c-bec2-dba514ec742a", - "description" : "Generated description for concept referred to by key \"RoundTripTime:0.0.1\"" - } - }, { - "key" : { - "name" : "SAPCActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCActTask", - "version" : "0.0.1" - }, - "UUID" : "53fc4ca0-1e50-397f-9b8b-d662e8ae3748", - "description" : "Generated description for concept referred to by key \"SAPCActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "SAPCBlacklistSubscriberEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCBlacklistSubscriberEvent", - "version" : "0.0.1" - }, - "UUID" : "cefa708e-266d-3b80-a7fd-a598437a8478", - "description" : "Generated description for concept referred to by key \"SAPCBlacklistSubscriberEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "SAPCDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCDecideTask", - "version" : "0.0.1" - }, - "UUID" : "1e946a42-4d82-3161-a471-fd4444709ce1", - "description" : "Generated description for concept referred to by key \"SAPCDecideTask:0.0.1\"" - } - }, { - "key" : { - "name" : "SAPCEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCEstablishTask", - "version" : "0.0.1" - }, - "UUID" : "b66fd760-1c08-396f-b56a-9718bdc07c44", - "description" : "Generated description for concept referred to by key \"SAPCEstablishTask:0.0.1\"" - } - }, { - "key" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "UUID" : "57747831-aaf3-3bb9-93dc-e6099b5e2a6c", - "description" : "Generated description for concept referred to by key \"SAPCEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "SAPCMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCMatchTask", - "version" : "0.0.1" - }, - "UUID" : "bf4934e8-75c9-3485-b67d-4ba4f03a5379", - "description" : "Generated description for concept referred to by key \"SAPCMatchTask:0.0.1\"" - } - }, { - "key" : { - "name" : "SAPCPolicy", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCPolicy", - "version" : "0.0.1" - }, - "UUID" : "36c4410e-0914-34ce-94cb-d5d162a803b4", - "description" : "Generated description for concept referred to by key \"SAPCPolicy:0.0.1\"" - } - }, { - "key" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "UUID" : "b0a7d4fc-7d79-34e8-b9c3-fee3a723631a", - "description" : "Generated description for concept referred to by key \"ServiceRequestCount:0.0.1\"" - } - }, { - "key" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "UUID" : "a50da826-a538-3c51-a11c-4b93b924763b", - "description" : "Generated description for concept referred to by key \"SubscriberCount:0.0.1\"" - } - }, { - "key" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "UUID" : "2c160e99-6d5a-3d16-9b6c-3cf1c037498c", - "description" : "Generated description for concept referred to by key \"TCPOnFlag:0.0.1\"" - } - }, { - "key" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "UUID" : "ddb15c04-8a50-3225-9239-bd4ffa835dfa", - "description" : "Generated description for concept referred to by key \"Threshold:0.0.1\"" - } - }, { - "key" : { - "name" : "TriggerSpec", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TriggerSpec", - "version" : "0.0.1" - }, - "UUID" : "4a9e98fa-606a-3002-8b14-50f79f777131", - "description" : "Generated description for concept referred to by key \"TriggerSpec:0.0.1\"" - } - }, { - "key" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "UUID" : "1dcdc75f-d400-3400-96b2-dc25085c2132", - "description" : "Generated description for concept referred to by key \"UEIPAddress:0.0.1\"" - } - }, { - "key" : { - "name" : "VMMEActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEActTask", - "version" : "0.0.1" - }, - "UUID" : "28a2e4f1-58db-38ec-a719-65f85576b43e", - "description" : "Generated description for concept referred to by key \"VMMEActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "VMMEDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEDecideTask", - "version" : "0.0.1" - }, - "UUID" : "fffd4241-b63c-326c-b39d-25cab76f30eb", - "description" : "Generated description for concept referred to by key \"VMMEDecideTask:0.0.1\"" - } - }, { - "key" : { - "name" : "VMMEEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEEstablishTask", - "version" : "0.0.1" - }, - "UUID" : "34e0da20-a77a-3e46-8425-dd815d9a5371", - "description" : "Generated description for concept referred to by key \"VMMEEstablishTask:0.0.1\"" - } - }, { - "key" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "UUID" : "ece477f8-2e38-31ba-b504-df029dbeb825", - "description" : "Generated description for concept referred to by key \"VMMEEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "VMMEMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEMatchTask", - "version" : "0.0.1" - }, - "UUID" : "8ad7d08d-6b2e-3c0f-9e1c-d75973ef8b81", - "description" : "Generated description for concept referred to by key \"VMMEMatchTask:0.0.1\"" - } - }, { - "key" : { - "name" : "VMMENoActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMENoActTask", - "version" : "0.0.1" - }, - "UUID" : "3a58ff26-0d13-3347-a312-d9bef32c4a2a", - "description" : "Generated description for concept referred to by key \"VMMENoActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "VMMEPolicy", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEPolicy", - "version" : "0.0.1" - }, - "UUID" : "e428b8ae-4886-386e-8587-7ccb8e746dc5", - "description" : "Generated description for concept referred to by key \"VMMEPolicy:0.0.1\"" - } - }, { - "key" : { - "name" : "Version", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Version", - "version" : "0.0.1" - }, - "UUID" : "9a9070ef-7197-3ae8-b934-d00d51ffcabd", - "description" : "Generated description for concept referred to by key \"Version:0.0.1\"" - } - }, { - "key" : { - "name" : "XSTREAM_AADM_ACT_EVENT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "XSTREAM_AADM_ACT_EVENT", - "version" : "0.0.1" - }, - "UUID" : "d9f42aec-97e3-3ad7-b1fa-4a95c4e74833", - "description" : "Generated description for concept referred to by key \"XSTREAM_AADM_ACT_EVENT:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "AADMPolicies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "AADMPolicy", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "AADMPolicy", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "XSTREAM_AADM_ACT_EVENT", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ENodeBStatusAlbum", - "version" : "0.0.1" - }, { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - }, { - "name" : "IPAddressStatusAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nimport org.onap.policy.apex.examples.aadm.concepts.ImsiStatus;\nimport org.onap.policy.apex.examples.aadm.concepts.ENodeBStatus;\n\nlogger.debug(subject.id + \":\" + subject.stateName + \" execution logic\");\nlogger.debug(inFields);\n\nlogger.debug(\"inFields[SERVICE_REQUEST_COUNT]=\" + inFields[\"SERVICE_REQUEST_COUNT\"]);\n\nImsiStatus imsiStatus = getContextAlbum(\"IMSIStatusAlbum\").get((String)inFields[\"IMSI\"]);\n\nif (imsiStatus.getBlockingCount() > 1) {\n subject.getTaskKey(\"AADMNoActTask\").copyTo(selectedTask);\n logger.debug(\"user blacklisted permanently\");\n return false;\n}\n\nlogger.debug(\"imsi: \" + imsiStatus.getImsi() + \" anamalous \" + imsiStatus.getAnomalous());\n\n// check if this is second iteration\nif (inFields[\"TCP_UE_SIDE_AVG_THROUGHPUT\"] != null && inFields[\"TCP_UE_SIDE_AVG_THROUGHPUT\"] > 100 && imsiStatus.getAnomalous()) {\n subject.getTaskKey(\"AADMDoSProvenActTask\").copyTo(selectedTask);\n logger.debug(\"inside TCP_UE_SIDE_AVG_THROUGHPUT\");\n return true;\n}\n\n// Get the status of the ENodeB\nENodeBStatus eNodeBStatus = getContextAlbum(\"ENodeBStatusAlbum\").get((String)inFields[\"ENODEB_ID\"]);\n\n// check if this is first iteration and DoS\nif (inFields[\"SERVICE_REQUEST_COUNT\"] != null &&\n inFields[\"AVG_SUBSCRIBER_SERVICE_REQUEST\"] != null &&\n inFields[\"SERVICE_REQUEST_COUNT\"] > inFields[\"AVG_SUBSCRIBER_SERVICE_REQUEST\"] &&\n eNodeBStatus != null && eNodeBStatus.getDosCount() > 100 &&\n inFields[\"NUM_SUBSCRIBERS\"] != null && inFields[\"NUM_SUBSCRIBERS\"] > 100) {\n logger.debug(\"inside NUM_SUBSCRIBERS\");\n subject.getTaskKey(\"AADMDoSProvenActTask\").copyTo(selectedTask);\n return true;\n}\n\n// check if this is first iteration and request probe\nif (inFields[\"UE_IP_ADDRESS\"] != null) {\n logger.debug(\"inside UE_IP_ADDRESS\");\n subject.getTaskKey(\"AADMDoSSuggestionActTask\").copyTo(selectedTask);\n return true;\n}\n\nsubject.defaultTaskKey.copyTo(selectedTask);\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AADMNoActTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AADMDoSProvenActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "AADMDoSProvenActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "AADMDoSSuggestionActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "AADMDoSSuggestionActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "AADMNoActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "AADMNoActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\";\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AADMDecideTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AADMDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AADMDecideTask_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\";\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AADMEstablishTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AADMEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "AADMEstablishTask_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask)\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\";\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AADMMatchTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AADMMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "AADMMatchTask_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AADMPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "PeriodicPolicy", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "PeriodicPolicy", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "SAPCBlacklistSubscriberEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "PeriodicActTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "PeriodicActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "PeriodicActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "PeriodicDecideTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "PeriodicDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "PeriodicDecideTask_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "PeriodicEstablishTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "PeriodicEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "PeriodicEstablishTask_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "PeriodicMatchTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "PeriodicMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "PeriodicMatchTask_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "PeriodicPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "SAPCPolicy", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "SAPCPolicy", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "SAPCBlacklistSubscriberEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "SAPCActTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "SAPCActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "SAPCActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "SAPCDecideTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "SAPCDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "SAPCDecideTask_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "SAPCEstablishTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "SAPCEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "SAPCEstablishTask_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "XSTREAM_AADM_ACT_EVENT", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "SAPCMatchTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "SAPCMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "SAPCMatchTask_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "SAPCPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "VMMEPolicy", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "VMMEPolicy", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "VMMEActTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "VMMEActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "VMMEActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "VMMENoActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "VMMENoActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "VMMEDecideTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "VMMEDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "VMMEDecideTask_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "VMMEEstablishTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "VMMEEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "VMMEEstablishTask_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "VMMEMatchTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "VMMEMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "VMMEMatchTask_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VMMEPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "AADMTasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "AADMDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMDecideTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AADMDoSProvenActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMDoSProvenActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MAJ_MIN_MAINT_VERSION", - "value" : { - "key" : "MAJ_MIN_MAINT_VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TRIGGER_SPEC", - "value" : { - "key" : "TRIGGER_SPEC", - "fieldSchemaKey" : { - "name" : "TriggerSpec", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "VERSION", - "value" : { - "key" : "VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "ENodeBStatusAlbum", - "version" : "0.0.1" - }, { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nimport org.onap.policy.apex.examples.aadm.concepts.ENodeBStatus;\nimport org.onap.policy.apex.examples.aadm.concepts.ImsiStatus;\n\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\n\noutFields[\"ACTTASK\"] = \"act\";\noutFields[\"TRIGGER_SPEC\"] = \"XSTREAM_AADM_ACT_EVENT\";\noutFields[\"MAJ_MIN_MAINT_VERSION\"] = \"0.0.1\";\noutFields[\"PROBE_ON\"] = true;\noutFields[\"TCP_ON\"] = false;\noutFields[\"IMSI\"] = inFields[\"IMSI\"];\n\nif (inFields[\"IMSI_IP\"] != null) {\n outFields[\"IMSI_IP\"] = inFields[\"IMSI_IP\"];\n}\nelse{\n outFields[\"IMSI_IP\"] = inFields[\"UE_IP_ADDRESS\"];\n}\n\nif (inFields[\"NW_IP\"] != null) {\n outFields[\"NW_IP\"] = inFields[\"NW_IP\"];\n}\nelse{\n outFields[\"NW_IP\"] = inFields[\"SGW_IP_ADDRESS\"];\n}\n\nImsiStatus imsiStatus = getContextAlbum(\"IMSIStatusAlbum\").get((String)inFields[\"IMSI\"]);\nlogger.debug(imsiStatus);\n\nENodeBStatus eNodeBStatus = getContextAlbum(\"ENodeBStatusAlbum\").get(imsiStatus.getENodeBId());\neNodeBStatus.setBeingProbed(false);\n\nleaveProbingOn = false;\nfor (ENodeBStatus enbStatus : getContextAlbum(\"ENodeBStatusAlbum\").values) {\n if (enbStatus.getBeingProbed()) {\n leaveProbingOn = true;\n }\n}\n\nif (!leaveProbingOn) {\n outFields[\"PROBE_ON\"] = false;\n outFields[\"TCP_ON\"] = false;\n}\n\neNodeBStatus.decrementDosCount();\nlogger.debug(eNodeBStatus.getENodeB() + \": dosCount is \" + eNodeBStatus.getDosCount());\n\nimsiStatus.setAnomalous(false);\n\nlogger.debug(\"imsi: \" + imsiStatus.getImsi() + \" anamalous \" + imsiStatus.getAnomalous());\n\ngetContextAlbum(\"IMSIStatusAlbum\") .put(imsiStatus.getImsi(), imsiStatus);\ngetContextAlbum(\"ENodeBStatusAlbum\").put(eNodeBStatus.getENodeB(), eNodeBStatus);\n\noutFields[\"THRESHOLD\"] = 0;\noutFields[\"PROFILE\"] = \"\";\noutFields[\"VERSION\"] = \"0.0.1\";\noutFields[\"BLACKLIST_ON\"] = false;\n\nreturn true;" - } - } - }, { - "key" : { - "name" : "AADMDoSSuggestionActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMDoSSuggestionActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MAJ_MIN_MAINT_VERSION", - "value" : { - "key" : "MAJ_MIN_MAINT_VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TRIGGER_SPEC", - "value" : { - "key" : "TRIGGER_SPEC", - "fieldSchemaKey" : { - "name" : "TriggerSpec", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "VERSION", - "value" : { - "key" : "VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "ENodeBStatusAlbum", - "version" : "0.0.1" - }, { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nimport org.onap.policy.apex.examples.aadm.concepts.ENodeBStatus;\nimport org.onap.policy.apex.examples.aadm.concepts.ImsiStatus;\n\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\n\noutFields[\"ACTTASK\"] = \"probe\";\noutFields[\"TRIGGER_SPEC\"] = \"XSTREAM_AADM_ACT_EVENT\";\noutFields[\"MAJ_MIN_MAINT_VERSION\"] = \"0.0.1\";\noutFields[\"IMSI\"] = inFields[\"IMSI\"];\n\nif (inFields[\"IMSI_IP\"] != null) {\n outFields[\"IMSI_IP\"] = inFields[\"IMSI_IP\"];\n}\nelse {\n outFields[\"IMSI_IP\"] = inFields[\"UE_IP_ADDRESS\"];\n}\n\nif (inFields[\"NW_IP\"] != null) {\n outFields[\"NW_IP\"] = inFields[\"NW_IP\"];\n}\nelse {\n outFields[\"NW_IP\"] = inFields[\"SGW_IP_ADDRESS\"];\n}\n\nImsiStatus imsiStatus = getContextAlbum(\"IMSIStatusAlbum\").get((String)inFields[\"IMSI\"]);\nlogger.debug(imsiStatus);\n\nENodeBStatus eNodeBStatus = getContextAlbum(\"ENodeBStatusAlbum\").get(imsiStatus.getENodeBId());\nlogger.debug(eNodeBStatus);\n\nif (imsiStatus.getENodeBId() != null && !imsiStatus.getENodeBId().equals(inFields[\"ENODEB_ID\"]) || inFields[\"AVG_SUBSCRIBER_SERVICE_REQUEST\"] == null) {\n // if user moved enodeB remove him from previous one\n if (imsiStatus.getENodeBId() != null) {\n eNodeBStatus.decrementDosCount();\n }\n\n // if user became non anomalous return action\n if (inFields[\"AVG_SUBSCRIBER_SERVICE_REQUEST\"] == null) {\n imsiStatus.setAnomalous(false);\n outFields[\"ACTTASK\"] = \"remove_from_probe\";\n\n for (ENodeBStatus enbStatus : getContextAlbum(\"ENodeBStatusAlbum\").values) {\n if (enbStatus.getBeingProbed()) {\n outFields[\"PROBE_ON\"] = true;\n outFields[\"TCP_ON\"] = true;\n return true;\n }\n }\n\n outFields[\"PROBE_ON\"] = false;\n outFields[\"TCP_ON\"] = false;\n\n getContextAlbum(\"IMSIStatusAlbum\").put(imsiStatus.getIMSI(), imsiStatus);\n getContextAlbum(\"ENodeBStatusAlbum\").put(eNodeBStatus.getENodeB(), eNodeBStatus);\n\n return true;\n }\n}\n\nimsiStatus.setAnomalous(true);\nimsiStatus.setAnomolousTime(System.currentTimeMillis());\nimsiStatus.setENodeBId(inFields[\"ENODEB_ID\"]);\ngetContextAlbum(\"IMSIStatusAlbum\").put(imsiStatus.getImsi(), imsiStatus);\nlogger.debug(imsiStatus.getENodeBId() + \": enodeb added to imsi ip added \" + outFields[\"IMSI_IP\"]);\n\nENodeBStatus eNodeBStatus = getContextAlbum(\"ENodeBStatusAlbum\").get(imsiStatus.getENodeBId());\nif (eNodeBStatus == null) {\n eNodeBStatus = new ENodeBStatus(imsiStatus.getENodeBId());\n getContextAlbum(\"ENodeBStatusAlbum\").put(eNodeBStatus.getENodeB(), eNodeBStatus);\n logger.debug(\"new eNodeB added \" + getContextAlbum(\"ENodeBStatusAlbum\").get(imsiStatus.getENodeBId()));\n}\n\neNodeBStatus.incrementDosCount();\ngetContextAlbum(\"ENodeBStatusAlbum\").put(eNodeBStatus.getENodeB(), eNodeBStatus);\nlogger.debug(eNodeBStatus.getENodeB() + \": dosCount incremented to \" + eNodeBStatus.getDosCount());\n\noutFields[\"PROBE_ON\"] = true;\noutFields[\"TCP_ON\"] = true;\noutFields[\"THRESHOLD\"] = 0;\noutFields[\"PROFILE\"] = \"\";\noutFields[\"VERSION\"] = \"0.0.1\";\noutFields[\"BLACKLIST_ON\"] = false;\n\nlogger.debug(\"out here5\");\n\nreturn true;" - } - } - }, { - "key" : { - "name" : "AADMEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMEstablishTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AADMMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMMatchTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "ENodeBStatusAlbum", - "version" : "0.0.1" - }, { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - }, { - "name" : "IPAddressStatusAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nimport org.onap.policy.apex.examples.aadm.concepts.ENodeBStatus;\nimport org.onap.policy.apex.examples.aadm.concepts.IpAddressStatus;\nimport org.onap.policy.apex.examples.aadm.concepts.ImsiStatus;\n\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\n\nipAddress = inFields[\"UE_IP_ADDRESS\"];\nif (ipAddress == null ) {\n ipAddress = inFields[\"IMSI_IP\"];\n\n if (ipAddress == null ) {\n logger.debug(\"Incoming event must specify parameter UE_IP_ADDRESS or parameter IMSI_IP\");\n return false;\n }\n}\n\nimsi = inFields[\"IMSI\"];\nif (imsi == null ) {\n logger.debug(\"Incoming event must specify parameter IMSI\");\n return false;\n}\n\neNodeBID = inFields[\"ENODEB_ID\"];\nif (eNodeBID == null ) {\n logger.debug(\"Incoming event must specify parameter ENODEB_ID\");\n return false;\n}\n\nIpAddressStatus ipAddressStatus = getContextAlbum(\"IPAddressStatusAlbum\").get(ipAddress);\nif (ipAddressStatus == null) {\n ipAddressStatus = new IpAddressStatus(ipAddress); \n ipAddressStatus.setImsi(imsi);\n getContextAlbum(\"IPAddressStatusAlbum\").put(ipAddressStatus.getIpAddress(), ipAddressStatus);\n logger.debug(\"added new IP address \" + getContextAlbum(\"IPAddressStatusAlbum\").get(ipAddress));\n}\nelse {\n logger.debug(\"found IP address \" + ipAddressStatus);\n}\n\nImsiStatus imsiStatus = getContextAlbum(\"IMSIStatusAlbum\").get((String)imsi);\nif (imsiStatus == null) {\n imsiStatus = new ImsiStatus(imsi);\n imsiStatus.setENodeBId(eNodeBID);\n getContextAlbum(\"IMSIStatusAlbum\").put(imsiStatus.getImsi(), imsiStatus);\n logger.debug(\"added new IMSI \" + imsi + \" to IMSI status map\")\n}\n\nENodeBStatus eNodeBStatus = getContextAlbum(\"ENodeBStatusAlbum\").get((String)eNodeBID);\nif (eNodeBStatus == null) {\n eNodeBStatus = new ENodeBStatus(eNodeBID);\n getContextAlbum(\"ENodeBStatusAlbum\").put(eNodeBStatus.getENodeB(), eNodeBStatus);\n logger.debug(\"added new ENodeB \" + eNodeBID + \" to ENodeB status map\")\n}\n\nreturn true;" - } - } - }, { - "key" : { - "name" : "AADMNoActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMNoActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MAJ_MIN_MAINT_VERSION", - "value" : { - "key" : "MAJ_MIN_MAINT_VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TRIGGER_SPEC", - "value" : { - "key" : "TRIGGER_SPEC", - "fieldSchemaKey" : { - "name" : "TriggerSpec", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "VERSION", - "value" : { - "key" : "VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\n\noutFields[\"ACTTASK\"] = \"no\";\noutFields[\"TRIGGER_SPEC\"] = \"XSTREAM_AADM_ACT_EVENT\";\noutFields[\"MAJ_MIN_MAINT_VERSION\"] = \"0.0.1\";\n\nif (inFields[\"PROBE_ON\"] != null) {\n outFields[\"PROBE_ON\"] = inFields[\"PROBE_ON\"];\n}\nelse{\n outFields[\"PROBE_ON\"] = false;\n}\n\nif (inFields[\"TCP_ON\"] != null) {\n outFields[\"TCP_ON\"] = inFields[\"TCP_ON\"];\n}\nelse {\n outFields[\"TCP_ON\"] = false;\n}\n\noutFields[\"IMSI\"] = inFields[\"IMSI\"];\nif (inFields[\"IMSI_IP\"] != null) {\n outFields[\"IMSI_IP\"] = inFields[\"IMSI_IP\"];\n}\nelse {\n outFields[\"IMSI_IP\"] = inFields[\"UE_IP_ADDRESS\"];\n}\n\nif (inFields[\"NW_IP\"] != null) {\n outFields[\"NW_IP\"] = inFields[\"NW_IP\"];\n}\nelse{\n outFields[\"NW_IP\"] = inFields[\"SGW_IP_ADDRESS\"];\n}\n\nreturn true;" - } - } - }, { - "key" : { - "name" : "PeriodicActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "PERIODIC_CURRENT_TIME", - "value" : { - "key" : "PERIODIC_CURRENT_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_DELAY", - "value" : { - "key" : "PERIODIC_DELAY", - "fieldSchemaKey" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_EVENT_COUNT", - "value" : { - "key" : "PERIODIC_EVENT_COUNT", - "fieldSchemaKey" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_FIRST_TIME", - "value" : { - "key" : "PERIODIC_FIRST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_LAST_TIME", - "value" : { - "key" : "PERIODIC_LAST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nimport org.onap.policy.apex.examples.aadm.concepts.ImsiStatus;\n\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\n\nfor (ImsiStatus imsiStatus : getContextAlbum(\"IMSIStatusAlbum\").values()) {\n if ((System.currentTimeMillis() - imsiStatus.getBlacklistedTime()) > 180000) {\n imsiStatus.setBlacklistedTime(0);\n getContextAlbum(\"IMSIStatusAlbum\").put(imsiStatus.getImsi(), imsiStatus);\n }\n}\n\noutFields[\"IMSI\"] = 0;\noutFields[\"PROFILE\"] = \"ServiceA\";\noutFields[\"BLACKLIST_ON\"] = false;\noutFields[\"PROBE_ON\"] = false;\noutFields[\"TCP_ON\"] = false;\noutFields[\"NW_IP\"] = \"0.0.0.0\";\noutFields[\"IMSI_IP\"] = \"0.0.0.0\";\n\nreturn true;" - } - } - }, { - "key" : { - "name" : "PeriodicDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicDecideTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "PERIODIC_CURRENT_TIME", - "value" : { - "key" : "PERIODIC_CURRENT_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_DELAY", - "value" : { - "key" : "PERIODIC_DELAY", - "fieldSchemaKey" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_EVENT_COUNT", - "value" : { - "key" : "PERIODIC_EVENT_COUNT", - "fieldSchemaKey" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_FIRST_TIME", - "value" : { - "key" : "PERIODIC_FIRST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_LAST_TIME", - "value" : { - "key" : "PERIODIC_LAST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "PERIODIC_CURRENT_TIME", - "value" : { - "key" : "PERIODIC_CURRENT_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_DELAY", - "value" : { - "key" : "PERIODIC_DELAY", - "fieldSchemaKey" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_EVENT_COUNT", - "value" : { - "key" : "PERIODIC_EVENT_COUNT", - "fieldSchemaKey" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_FIRST_TIME", - "value" : { - "key" : "PERIODIC_FIRST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_LAST_TIME", - "value" : { - "key" : "PERIODIC_LAST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "PeriodicEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicEstablishTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "PERIODIC_CURRENT_TIME", - "value" : { - "key" : "PERIODIC_CURRENT_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_DELAY", - "value" : { - "key" : "PERIODIC_DELAY", - "fieldSchemaKey" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_EVENT_COUNT", - "value" : { - "key" : "PERIODIC_EVENT_COUNT", - "fieldSchemaKey" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_FIRST_TIME", - "value" : { - "key" : "PERIODIC_FIRST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_LAST_TIME", - "value" : { - "key" : "PERIODIC_LAST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "PERIODIC_CURRENT_TIME", - "value" : { - "key" : "PERIODIC_CURRENT_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_DELAY", - "value" : { - "key" : "PERIODIC_DELAY", - "fieldSchemaKey" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_EVENT_COUNT", - "value" : { - "key" : "PERIODIC_EVENT_COUNT", - "fieldSchemaKey" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_FIRST_TIME", - "value" : { - "key" : "PERIODIC_FIRST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_LAST_TIME", - "value" : { - "key" : "PERIODIC_LAST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "PeriodicMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicMatchTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "PERIODIC_CURRENT_TIME", - "value" : { - "key" : "PERIODIC_CURRENT_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_DELAY", - "value" : { - "key" : "PERIODIC_DELAY", - "fieldSchemaKey" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_EVENT_COUNT", - "value" : { - "key" : "PERIODIC_EVENT_COUNT", - "fieldSchemaKey" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_FIRST_TIME", - "value" : { - "key" : "PERIODIC_FIRST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_LAST_TIME", - "value" : { - "key" : "PERIODIC_LAST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "PERIODIC_CURRENT_TIME", - "value" : { - "key" : "PERIODIC_CURRENT_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_DELAY", - "value" : { - "key" : "PERIODIC_DELAY", - "fieldSchemaKey" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_EVENT_COUNT", - "value" : { - "key" : "PERIODIC_EVENT_COUNT", - "fieldSchemaKey" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_FIRST_TIME", - "value" : { - "key" : "PERIODIC_FIRST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_LAST_TIME", - "value" : { - "key" : "PERIODIC_LAST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "SAPCActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "VERSION", - "value" : { - "key" : "VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nimport org.onap.policy.apex.examples.aadm.concepts.ImsiStatus;\n\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\n\nif (inFields[\"IMSI\"] == null) {\n outFields[\"IMSI\"] = 0;\n}\nelse {\n outFields[\"IMSI\"] = inFields[\"IMSI\"];\n}\n\nif (outFields[\"IMSI\"] == 0 && inFields[\"IMSI_IP\"] != null && inFields[\"IMSI_IP\"].equals(\"0\")) {\n // no action arrived\n outFields[\"IMSI\"] = 0;\n outFields[\"PROFILE\"] = \"none\";\n outFields[\"BLACKLIST_ON\"] = false;\n outFields[\"PROBE_ON\"] = false;\n return true;\n}\n\nImsiStatus imsiStatus = getContextAlbum(\"IMSIStatusAlbum\").get((String)inFields[\"IMSI\"]);\nlogger.debug(imsiStatus);\n\nif (imsiStatus.getBlockingCount() > 1) {\n outFields[\"IMSI\"] = 0;\n outFields[\"PROFILE\"] = \"none\";\n outFields[\"BLACKLIST_ON\"] = false;\n outFields[\"PROBE_ON\"] = false;\n\n return true;\n}\n\nif (imsiStatus.getBlockingCount() > 0 && imsiStatus.getBlacklistedTime() != 0) {\n outFields[\"IMSI\"] = 0;\n outFields[\"PROFILE\"] = \"none\";\n outFields[\"BLACKLIST_ON\"] = false;\n outFields[\"PROBE_ON\"] = false;\n\n return true;\n}\n\nimsiStatus.incrementBlockingCount();\nimsiStatus.setBlacklistedTime(System.currentTimeMillis());\n\nlogger.debug(\"Bocking count for IMSI: \" + imsiStatus.getImsi() + \" is: \" + imsiStatus.getBlockingCount());\ngetContextAlbum(\"IMSIStatusAlbum\").put(imsiStatus.getImsi(), imsiStatus);\n\noutFields[\"PROFILE\"] = \"ServiceA\";\noutFields[\"BLACKLIST_ON\"] = true;\noutFields[\"PROBE_ON\"] = false;\n\nif (imsiStatus.getBlockingCount() > 1) {\n logger.debug(\"POLICY SAPCPolicy - blacklisting imsi: \" + outFields[\"IMSI\"] + \" permanently\");\n}\nelse {\n logger.debug(\"POLICY SAPCPolicy - blacklisting imsi: \" + outFields[\"IMSI\"] + \" temporary for 120000 ms\");\n}\n\nreturn true;" - } - } - }, { - "key" : { - "name" : "SAPCDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCDecideTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "VERSION", - "value" : { - "key" : "VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "SAPCEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCEstablishTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "VERSION", - "value" : { - "key" : "VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "SAPCMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCMatchTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "VERSION", - "value" : { - "key" : "VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\n\nif (inFields[\"ACTTASK\"] != null && inFields[\"ACTTASK\"].equals(\"no\")) {\n outFields[\"IMSI\"] = 0;\n outFields[\"IMSI_IP\"] = \"0\";\n return true;\n}\n\nif (inFields[\"PROBE_ON\"] != null) {\n outFields[\"PROBE_ON\"] = inFields[\"PROBE_ON\"];\n}\nelse{\n outFields[\"PROBE_ON\"] = false;\n}\n\nif (inFields[\"TCP_ON\"] != null) {\n outFields[\"TCP_ON\"] = inFields[\"TCP_ON\"];\n}\nelse{\n outFields[\"TCP_ON\"] = false;\n}\n\noutFields[\"IMSI\"] = inFields[\"IMSI\"];\nif (inFields[\"IMSI_IP\"] != null) {\n outFields[\"IMSI_IP\"] = inFields[\"IMSI_IP\"];\n}\n\nif (inFields[\"NW_IP\"] != null) {\n outFields[\"NW_IP\"] = inFields[\"NW_IP\"];\n}\n\nreturn true;" - } - } - }, { - "key" : { - "name" : "VMMEActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\n\noutFields[\"TRIGGER_SPEC\"] = \"vMMEThresholdEvent\";\noutFields[\"MAJ_MIN_MAINT_VERSION\"] = \"0.0.1\";\n\nif (outFields[\"IMSI\"] == null) {\n outFields[\"IMSI\"] = 0;\n}\n\nif (outFields[\"ENODEB_ID\"] == null) {\n outFields[\"ENODEB_ID\"] = 0;\n}\n\nif (outFields[\"IMSI_IP\"] == null) {\n outFields[\"IMSI_IP\"] = \"\";\n}\n\nif (outFields[\"NW_IP\"] == null) {\n outFields[\"NW_IP\"] = \"\";\n}\n\noutFields[\"PROFILE\"] = \"ServiceA\";\noutFields[\"THRESHOLD\"] = 20;\nreturn true;" - } - } - }, { - "key" : { - "name" : "VMMEDecideTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEDecideTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "VMMEEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEEstablishTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "VMMEMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEMatchTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\n\nif (inFields[\"PROBE_ON\"] != null) {\n outFields[\"PROBE_ON\"] = inFields[\"PROBE_ON\"];\n}\nelse{\n outFields[\"PROBE_ON\"] = false;\n}\n\nif (inFields[\"TCP_ON\"] != null) {\n outFields[\"TCP_ON\"] = inFields[\"TCP_ON\"];\n}\nelse{\n outFields[\"TCP_ON\"] = false;\n}\n\noutFields[\"IMSI\"] = inFields[\"IMSI\"];\nif (inFields[\"IMSI_IP\"] != null) {\n outFields[\"IMSI_IP\"] = inFields[\"IMSI_IP\"];\n}\n\nif (inFields[\"NW_IP\"] != null) {\n outFields[\"NW_IP\"] = inFields[\"NW_IP\"];\n}\noutFields[\"VERSION\"] = inFields.getkey().getVersion();\n\nreturn true;" - } - } - }, { - "key" : { - "name" : "VMMENoActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMENoActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.taskName + \" execution logic\");\nlogger.debug(inFields);\nlogger.debug(outFields);\nreturn true;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "AADMEvents", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.aadm.events", - "source" : "External", - "target" : "Apex", - "parameter" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "APPLICATION", - "value" : { - "key" : "APPLICATION", - "fieldSchemaKey" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ATTACH_COUNT", - "value" : { - "key" : "ATTACH_COUNT", - "fieldSchemaKey" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_ATTACH", - "value" : { - "key" : "AVG_SUBSCRIBER_ATTACH", - "fieldSchemaKey" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "value" : { - "key" : "AVG_SUBSCRIBER_SERVICE_REQUEST", - "fieldSchemaKey" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "DoS", - "value" : { - "key" : "DoS", - "fieldSchemaKey" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NUM_SUBSCRIBERS", - "value" : { - "key" : "NUM_SUBSCRIBERS", - "fieldSchemaKey" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SERVICE_REQUEST_COUNT", - "value" : { - "key" : "SERVICE_REQUEST_COUNT", - "fieldSchemaKey" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "SGW_IP_ADDRESS", - "value" : { - "key" : "SGW_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "value" : { - "key" : "TCP_UE_SIDE_AVG_THROUGHPUT", - "fieldSchemaKey" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "value" : { - "key" : "TCP_UE_SIDE_MEDIAN_RTT_TX_TO_RX", - "fieldSchemaKey" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "UE_IP_ADDRESS", - "value" : { - "key" : "UE_IP_ADDRESS", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "http_host_class", - "value" : { - "key" : "http_host_class", - "fieldSchemaKey" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "protocol_group", - "value" : { - "key" : "protocol_group", - "fieldSchemaKey" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.aadm.events", - "source" : "System", - "target" : "Apex", - "parameter" : { - "entry" : [ { - "key" : "PERIODIC_CURRENT_TIME", - "value" : { - "key" : "PERIODIC_CURRENT_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_DELAY", - "value" : { - "key" : "PERIODIC_DELAY", - "fieldSchemaKey" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_EVENT_COUNT", - "value" : { - "key" : "PERIODIC_EVENT_COUNT", - "fieldSchemaKey" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_FIRST_TIME", - "value" : { - "key" : "PERIODIC_FIRST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PERIODIC_LAST_TIME", - "value" : { - "key" : "PERIODIC_LAST_TIME", - "fieldSchemaKey" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "SAPCBlacklistSubscriberEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCBlacklistSubscriberEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.aadm.events", - "source" : "Apex", - "target" : "External", - "parameter" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SAPCEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.aadm.events", - "source" : "External", - "target" : "Apex", - "parameter" : { - "entry" : [ { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "VERSION", - "value" : { - "key" : "VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "VMMEEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.aadm.events", - "source" : "External", - "target" : "Apex", - "parameter" : { - "entry" : [ { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "XSTREAM_AADM_ACT_EVENT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "XSTREAM_AADM_ACT_EVENT", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.aadm.events", - "source" : "Apex", - "target" : "External", - "parameter" : { - "entry" : [ { - "key" : "ACTTASK", - "value" : { - "key" : "ACTTASK", - "fieldSchemaKey" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "BLACKLIST_ON", - "value" : { - "key" : "BLACKLIST_ON", - "fieldSchemaKey" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "ENODEB_ID", - "value" : { - "key" : "ENODEB_ID", - "fieldSchemaKey" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI", - "value" : { - "key" : "IMSI", - "fieldSchemaKey" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "IMSI_IP", - "value" : { - "key" : "IMSI_IP", - "fieldSchemaKey" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MAJ_MIN_MAINT_VERSION", - "value" : { - "key" : "MAJ_MIN_MAINT_VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "NW_IP", - "value" : { - "key" : "NW_IP", - "fieldSchemaKey" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROBE_ON", - "value" : { - "key" : "PROBE_ON", - "fieldSchemaKey" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "PROFILE", - "value" : { - "key" : "PROFILE", - "fieldSchemaKey" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TCP_ON", - "value" : { - "key" : "TCP_ON", - "fieldSchemaKey" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "THRESHOLD", - "value" : { - "key" : "THRESHOLD", - "fieldSchemaKey" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TRIGGER_SPEC", - "value" : { - "key" : "TRIGGER_SPEC", - "fieldSchemaKey" : { - "name" : "TriggerSpec", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "VERSION", - "value" : { - "key" : "VERSION", - "fieldSchemaKey" : { - "name" : "Version", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "AADMContext", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "ENodeBStatusAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ENodeBStatusAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "ENodeBStatus", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IMSIStatusAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "IMSIStatus", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "IPAddressStatusAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IPAddressStatusAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "IPAddressStatus", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "AADMDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ActionTask", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ApplicationName", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AttachCount", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AverageAttach", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AverageServiceRequest", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AverageThroughput", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "BlacklistOnFlag", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Boolean" - } - }, { - "key" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "DOSFlag", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Boolean" - } - }, { - "key" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ENodeBID", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "ENodeBStatus", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ENodeBStatus", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.examples.aadm.concepts.ENodeBStatus" - } - }, { - "key" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "HttpHostClass", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IMSI", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "IMSIStatus", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IMSIStatus", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.examples.aadm.concepts.ImsiStatus" - } - }, { - "key" : { - "name" : "IPAddressStatus", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "IPAddressStatus", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.examples.aadm.concepts.IpAddressStatus" - } - }, { - "key" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "NWIPAddress", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicDelay", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicEventCount", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "PeriodicTime", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ProbeOnFlag", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Boolean" - } - }, { - "key" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Profile", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ProtocolGroup", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "RoundTripTime", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ServiceRequestCount", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SubscriberCount", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TCPOnFlag", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Boolean" - } - }, { - "key" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Threshold", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "TriggerSpec", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TriggerSpec", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "UEIPAddress", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "Version", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Version", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json b/tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json deleted file mode 100644 index b9321c70e..000000000 --- a/tools/model-generator/src/test/resources/models/AnomalyDetectionPolicyModel.json +++ /dev/null @@ -1,1349 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "AnomalyDetectionPolicyModel", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "AnomalyDetectionKeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "AADMDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AADMDatatypes", - "version" : "0.0.1" - }, - "UUID" : "3e36da83-11b0-356a-b863-33e9bb46190c", - "description" : "Generated description for concept referred to by key \"AADMDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - }, - "UUID" : "b5b56ebf-6802-371c-b7dc-47ceeba7c12c", - "description" : "Generated description for concept referred to by key \"AnomalyDetection:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "UUID" : "6b1c0ec5-9f84-3177-8031-783cde9c140c", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionActEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "UUID" : "a212b27b-1a2f-3a23-877b-181f45244ffb", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - }, - "UUID" : "b2af58db-ce2b-3775-9c3a-e58d2763b6c6", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionAlbums", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionAlbums", - "version" : "0.0.1" - }, - "UUID" : "d1f12713-0528-3120-9af4-165d6f5aec13", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionAlbums:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "UUID" : "c20765ef-d4e8-3891-b94d-ff7831e1085a", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionDecideEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "UUID" : "533fe4b4-c590-31cc-bfe1-164b518627bd", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionDecideTask0:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "UUID" : "85ad18df-4d23-38ac-8dd9-19f4d8ed25b8", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionDecideTask1:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "UUID" : "5cebb6a9-6722-3f37-bdc4-d5525ad02a5a", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionDecideTask2:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "UUID" : "b6bf1dd6-35a2-3e3b-963f-0ce256c0cf32", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionEstablishEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "UUID" : "9c9768ab-a258-39fe-b44a-33ac1356ff79", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionEstablishTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionEvents", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEvents", - "version" : "0.0.1" - }, - "UUID" : "55a53997-499b-3912-9172-927e59a13fbe", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionEvents:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionKeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionKeyInformation", - "version" : "0.0.1" - }, - "UUID" : "6e0fda11-d1ce-3e84-ba30-c3443359f2d7", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionKeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "UUID" : "17cb2af5-304d-3097-bf46-8afeb486f893", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionMatchEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "UUID" : "c7d9d062-1ecb-33a6-84e4-1b4976f69bf7", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionMatchTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionPolicies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionPolicies", - "version" : "0.0.1" - }, - "UUID" : "1a408c2a-1366-38ee-898a-7d366c8dfab8", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionPolicies:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionPolicy", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionPolicy", - "version" : "0.0.1" - }, - "UUID" : "5a862233-05c4-3c97-8bf4-7885b56bd6cb", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionPolicy:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionPolicyModel", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionPolicyModel", - "version" : "0.0.1" - }, - "UUID" : "2b32c540-fc54-3962-8721-19c7a90e3745", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionPolicyModel:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionTasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionTasks", - "version" : "0.0.1" - }, - "UUID" : "3dbd50bb-a126-3601-91e5-adcb947b7e37", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionTasks:0.0.1\"" - } - }, { - "key" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "UUID" : "0053e73c-85af-3dd4-bf27-3e2b84e57e10", - "description" : "Generated description for concept referred to by key \"AnomalyDetectionTriggerEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "UUID" : "926a6990-0610-3382-9cbe-3a9470741d54", - "description" : "Generated description for concept referred to by key \"Iteration:0.0.1\"" - } - }, { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "UUID" : "fb6eac3f-53b0-3f87-984d-b27246d9e891", - "description" : "Generated description for concept referred to by key \"MonitoredValue:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "AnomalyDetectionPolicies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionPolicy", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "AnomalyDetectionPolicy", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\" + subject.defaultTaskKey.getID();\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "AnomalyDetectionActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "JAVA", - "logic" : "org.onap.policy.apex.examples.adaptive.model.java.AnomalyDetectionPolicyDecideTaskSelectionLogic" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AnomalyDetectionDecideTask0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AnomalyDetectionDecideTask1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AnomalyDetectionDecideTask2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\" + subject.defaultTaskKey.getID();\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "AnomalyDetectionEstablishTask_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\" + subject.defaultTaskKey.getID();\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "AnomalyDetectionMatchTask_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AnomalyDetectionPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "AnomalyDetectionTasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideTask2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEstablishTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionMatchTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.getTaskName() + \" execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"Iteration\"] = inFields[\"Iteration\"];\nlogger.debug(\"outFields : \"+outFields);\nreturn true;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "AnomalyDetectionEvents", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionActEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "Act", - "target" : "External", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionDecideEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionEstablishEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionMatchEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionTriggerEvent", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.examples.adaptive.events", - "source" : "External", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "Iteration", - "value" : { - "key" : "Iteration", - "fieldSchemaKey" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "AnomalyDetectionAlbums", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetectionAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "AADMDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AnomalyDetection", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.examples.adaptive.concepts.AnomalyDetection" - } - }, { - "key" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Iteration", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/tools/model-generator/src/test/resources/models/AutoLearnPolicyModel.json b/tools/model-generator/src/test/resources/models/AutoLearnPolicyModel.json deleted file mode 100644 index 166795002..000000000 --- a/tools/model-generator/src/test/resources/models/AutoLearnPolicyModel.json +++ /dev/null @@ -1,1719 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "AutoLearnPolicyModel", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "AutoLearnKeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "ALDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ALDatatypes", - "version" : "0.0.1" - }, - "UUID" : "148a50d2-e4f0-3783-9c91-e94df6d01512", - "description" : "Generated description for concept referred to by key \"ALDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearn", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearn", - "version" : "0.0.1" - }, - "UUID" : "391e51da-a4a5-36e7-91b9-7f847542b2de", - "description" : "Generated description for concept referred to by key \"AutoLearn:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnActEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnActEvent", - "version" : "0.0.1" - }, - "UUID" : "4999200f-19a0-3c67-94fe-217a5ca5a177", - "description" : "Generated description for concept referred to by key \"AutoLearnActEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnActTask", - "version" : "0.0.1" - }, - "UUID" : "f3b2ddd9-7c2a-305e-88e1-37de0980c80c", - "description" : "Generated description for concept referred to by key \"AutoLearnActTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnAlbum", - "version" : "0.0.1" - }, - "UUID" : "af6c71e7-df5c-3e39-9d2f-23201f7eeaf3", - "description" : "Generated description for concept referred to by key \"AutoLearnAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnContext", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnContext", - "version" : "0.0.1" - }, - "UUID" : "f1ed359e-7152-3cdb-8f85-b99e9eb9af9b", - "description" : "Generated description for concept referred to by key \"AutoLearnContext:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnDecideEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideEvent", - "version" : "0.0.1" - }, - "UUID" : "2d19b051-7446-38f3-a12f-b6e94ea2be92", - "description" : "Generated description for concept referred to by key \"AutoLearnDecideEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnDecideTask0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideTask0", - "version" : "0.0.1" - }, - "UUID" : "9f1a710f-e3b6-3c9a-9c66-188750abca16", - "description" : "Generated description for concept referred to by key \"AutoLearnDecideTask0:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnDecideTask1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideTask1", - "version" : "0.0.1" - }, - "UUID" : "2c7ff214-1a87-3b08-af9b-434045c9e2fd", - "description" : "Generated description for concept referred to by key \"AutoLearnDecideTask1:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnDecideTask2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideTask2", - "version" : "0.0.1" - }, - "UUID" : "124d809b-b080-3e76-b42b-ad7c8e810801", - "description" : "Generated description for concept referred to by key \"AutoLearnDecideTask2:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnDecideTask3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideTask3", - "version" : "0.0.1" - }, - "UUID" : "0cc1787e-a326-3f36-848d-0a30da63ec83", - "description" : "Generated description for concept referred to by key \"AutoLearnDecideTask3:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnDecideTask4", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideTask4", - "version" : "0.0.1" - }, - "UUID" : "db69570f-65f4-3b33-9e34-1c4b3ee92669", - "description" : "Generated description for concept referred to by key \"AutoLearnDecideTask4:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnDecideTask5", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideTask5", - "version" : "0.0.1" - }, - "UUID" : "bd9f2bcf-a3b8-33c7-a48a-3452ede151ff", - "description" : "Generated description for concept referred to by key \"AutoLearnDecideTask5:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnDecideTask6", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideTask6", - "version" : "0.0.1" - }, - "UUID" : "172e9c74-aeee-37d9-a483-0f772cd36b81", - "description" : "Generated description for concept referred to by key \"AutoLearnDecideTask6:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnEstablishEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnEstablishEvent", - "version" : "0.0.1" - }, - "UUID" : "430b00e0-5c4a-3a78-b636-3873d6277601", - "description" : "Generated description for concept referred to by key \"AutoLearnEstablishEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnEstablishTask", - "version" : "0.0.1" - }, - "UUID" : "6915102a-6564-327c-bcf9-d8c040463794", - "description" : "Generated description for concept referred to by key \"AutoLearnEstablishTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnEvents", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnEvents", - "version" : "0.0.1" - }, - "UUID" : "1fcbf5a7-2b81-3d62-b870-e3340628d9d5", - "description" : "Generated description for concept referred to by key \"AutoLearnEvents:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnKeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnKeyInformation", - "version" : "0.0.1" - }, - "UUID" : "253488fd-2140-33ad-8374-00d43d3a54ca", - "description" : "Generated description for concept referred to by key \"AutoLearnKeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnMatchEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnMatchEvent", - "version" : "0.0.1" - }, - "UUID" : "1723626c-8fec-3cfd-a071-b1e3bd92637d", - "description" : "Generated description for concept referred to by key \"AutoLearnMatchEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnMatchTask", - "version" : "0.0.1" - }, - "UUID" : "eb3d5b15-79d7-3e24-8513-f658a1e77416", - "description" : "Generated description for concept referred to by key \"AutoLearnMatchTask:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnPolicies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnPolicies", - "version" : "0.0.1" - }, - "UUID" : "72a6d6cf-d04f-3cd6-b9eb-1313e477219b", - "description" : "Generated description for concept referred to by key \"AutoLearnPolicies:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnPolicy", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnPolicy", - "version" : "0.0.1" - }, - "UUID" : "e96b40b3-2447-3cf3-8848-34c908f21c92", - "description" : "Generated description for concept referred to by key \"AutoLearnPolicy:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnPolicyModel", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnPolicyModel", - "version" : "0.0.1" - }, - "UUID" : "0c87dd54-fe77-3b05-bb05-93c9cd8c964d", - "description" : "Generated description for concept referred to by key \"AutoLearnPolicyModel:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnTasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnTasks", - "version" : "0.0.1" - }, - "UUID" : "beb03fdd-0a6e-3669-90b8-218ae9df96a4", - "description" : "Generated description for concept referred to by key \"AutoLearnTasks:0.0.1\"" - } - }, { - "key" : { - "name" : "AutoLearnTriggerEvent", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnTriggerEvent", - "version" : "0.0.1" - }, - "UUID" : "6bd03d79-85f3-373b-a4ab-cbaad89ebd1a", - "description" : "Generated description for concept referred to by key \"AutoLearnTriggerEvent:0.0.1\"" - } - }, { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "UUID" : "fb6eac3f-53b0-3f87-984d-b27246d9e891", - "description" : "Generated description for concept referred to by key \"MonitoredValue:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "AutoLearnPolicies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "AutoLearnPolicy", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "AutoLearnPolicy", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "AutoLearnDecideEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "AutoLearnActEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\" + subject.defaultTaskKey.getID();\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AutoLearnActTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AutoLearnActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "AutoLearnActTask_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "AutoLearnEstablishEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "AutoLearnDecideEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "AutoLearnAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "JAVA", - "logic" : "org.onap.policy.apex.examples.adaptive.model.java.AutoLearnPolicyDecideTaskSelectionLogic" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AutoLearnDecideTask0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AutoLearnDecideTask0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AutoLearnDecideTask0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AutoLearnDecideTask1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AutoLearnDecideTask1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AutoLearnDecideTask2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AutoLearnDecideTask2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AutoLearnDecideTask3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AutoLearnDecideTask3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AutoLearnDecideTask4", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AutoLearnDecideTask4_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AutoLearnDecideTask5", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AutoLearnDecideTask5_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "AutoLearnDecideTask6", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "AutoLearnDecideTask6_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "AutoLearnMatchEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "AutoLearnEstablishEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\" + subject.defaultTaskKey.getID();\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AutoLearnEstablishTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AutoLearnEstablishTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "AutoLearnEstablishTask_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "AutoLearnTriggerEvent", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "AutoLearnMatchEvent", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(subject.id + \":\" + subject.stateName);\nsubject.defaultTaskKey.copyTo(selectedTask);\nlogger.debug(subject.id + \":\" + subject.stateName) + \", using default task\" + subject.defaultTaskKey.getID();\nreturn true;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "AutoLearnMatchTask", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "AutoLearnMatchTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "AutoLearnMatchTask_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "AutoLearnPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "AutoLearnTasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "AutoLearnActTask", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnActTask", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "LastMonitoredValue", - "value" : { - "key" : "LastMonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "LastMonitoredValue", - "value" : { - "key" : "LastMonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(\"AutoLearnActTask execution logic\");\nlogger.debug(\"inFields : \" + inFields);\noutFields[\"MonitoredValue\"] = inFields[\"MonitoredValue\"];\noutFields[\"LastMonitoredValue\"] = inFields[\"LastMonitoredValue\"];\nlogger.debug(\"outFields : \" + outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AutoLearnDecideTask0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideTask0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "LastMonitoredValue", - "value" : { - "key" : "LastMonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "LastMonitoredValue", - "value" : { - "key" : "LastMonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(\"AutoLearnDecideTask0: inFields:\" + inFields);\njava.util.Random rand = new java.util.Random(System.currentTimeMillis());\ndouble MIN = -100.0;\ndouble MAX = 100.0;\ndouble WANT = 50.0;\n\ndouble inval = (Double)(inFields[\"MonitoredValue\"]);\ndouble ret = inval;\n///////////////\ndouble diff = (1.0/2.0) * (Math.abs(inval - WANT));\n///////////////\nret = inval + diff;\nif (ret > MAX)\n ret = MAX;\nif (ret MAX)\n ret = MAX;\nif (ret MAX)\n ret = MAX;\nif (ret MAX)\n ret = MAX;\nif (ret MAX)\n ret = MAX;\nif (ret MAX)\n ret = MAX;\nif (ret < MIN)\n ret = MIN;\n\noutFields[\"MonitoredValue\"] = ret;\noutFields[\"LastMonitoredValue\"] = inval;\nlogger.debug(\"AutoLearnDecideTask5: outFields:\" + outFields);\nreturn true;" - } - } - }, { - "key" : { - "name" : "AutoLearnDecideTask6", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "AutoLearnDecideTask6", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "LastMonitoredValue", - "value" : { - "key" : "LastMonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "LastMonitoredValue", - "value" : { - "key" : "LastMonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "MonitoredValue", - "value" : { - "key" : "MonitoredValue", - "fieldSchemaKey" : { - "name" : "MonitoredValue", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nlogger.debug(\"AutoLearnDecideTask6: inFields:\" + inFields);\njava.util.Random rand = new java.util.Random(System.currentTimeMillis());\ndouble MIN = -100.0;\ndouble MAX = 100.0;\ndouble WANT = 50.0;\n\ndouble inval = (Double)(inFields[\"MonitoredValue\"]);\ndouble ret = inval;\n///////////////\ndouble diff = (-1.0/2.0) * (Math.abs(inval - WANT));\n///////////////\nret = inval + diff;\nif (ret > MAX)\n ret = MAX;\nif (ret\");\n executor.subject.getTaskKey(\"VpnSlaPolicyDecideNoneTask\").copyTo(executor.selectedTask);\n var returnValue = new returnValueType(true);\n} else if (albumProblemMap.get(ifSituation.get(\"problemID\")).get(\"status\") == \"SOLVED\") {\n logger.trace(\"-- situation is solved, selecting \");\n executor.subject.getTaskKey(\"VpnSlaPolicyDecideSolvedTask\").copyTo(executor.selectedTask);\n var returnValue = new returnValueType(true);\n} else if (ifSituation.get(\"violatedSLAs\") != null && ifSituation.get(\"violatedSLAs\").size() > 0) {\n logger.trace(\"-- situation is problem with violations, selecting \");\n executor.subject.getTaskKey(\"VpnSlaPolicyDecidePriorityTask\").copyTo(executor.selectedTask);\n var returnValue = new returnValueType(true);\n} else if (ifSituation.get(\"violatedSLAs\") != null && ifSituation.get(\"violatedSLAs\").size() == 0) {\n logger.trace(\"-- situation is problem without violations, selecting \");\n executor.subject.getTaskKey(\"VpnSlaPolicyDecideSlaTask\").copyTo(executor.selectedTask);\n var returnValue = new returnValueType(true);\n} else {\n logger.error(\"-- detected unknown decision for situation <\" + ifSituation.get(\"problemID\") + \">\");\n rootLogger.error(executor.subject.id + \" \" + \"-- detected unknown decision for situation <\"\n + ifSituation.get(\"problemID\") + \">\");\n var returnValue = new returnValueType(false);\n}\n\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".d-tsl\");" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "VpnSlaPolicyDecideSlaTask", - "version" : "1.0.0" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "VpnSlaPolicyDecideSlaTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyDecideState", - "localName" : "decideSla" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyDecideState", - "localName" : "VpnSlaPolicyDecide_Output_Direct" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyDecidePriorityTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyDecideState", - "localName" : "decidePriority" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyDecideState", - "localName" : "VpnSlaPolicyDecide_Output_Direct" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyDecideSolvedTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyDecideState", - "localName" : "decideNone" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyDecideState", - "localName" : "VpnSlaPolicyDecide_Output_Direct" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyDecideNoneTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyDecideState", - "localName" : "decideNone" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyDecideState", - "localName" : "VpnSlaPolicyDecide_Output_Direct" - } - } - } ] - } - } - }, { - "key" : "VpnSlaPolicyMatchState", - "value" : { - "stateKey" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "NULL", - "localName" : "VpnSlaPolicyMatchState" - }, - "trigger" : { - "name" : "VpnSlaTrigger", - "version" : "1.0.0" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "VpnSlaPolicyMatch_Output_Direct", - "value" : { - "key" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyMatchState", - "localName" : "VpnSlaPolicyMatch_Output_Direct" - }, - "outgoingEvent" : { - "name" : "VpnSlaMatchOut", - "version" : "1.0.0" - }, - "nextState" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "NULL", - "localName" : "VpmSlaPolicyEstablishState" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "VpnSlaPolicyMatchTask", - "version" : "1.0.0" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "VpnSlaPolicyMatchTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyMatchState", - "localName" : "match" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpnSlaPolicyMatchState", - "localName" : "VpnSlaPolicyMatch_Output_Direct" - } - } - } ] - } - } - }, { - "key" : "VpmSlaPolicyEstablishState", - "value" : { - "stateKey" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "NULL", - "localName" : "VpmSlaPolicyEstablishState" - }, - "trigger" : { - "name" : "VpnSlaMatchOut", - "version" : "1.0.0" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "VpnSlaPolicyEstablish_Output_Direct", - "value" : { - "key" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpmSlaPolicyEstablishState", - "localName" : "VpnSlaPolicyEstablish_Output_Direct" - }, - "outgoingEvent" : { - "name" : "VpnSlaEstablishOut", - "version" : "1.0.0" - }, - "nextState" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "NULL", - "localName" : "VpnSlaPolicyDecideState" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "NULL", - "logicFlavour" : "UNDEFINED", - "logic" : "" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "VpnSlaPolicyEstablishTask", - "version" : "1.0.0" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "VpnSlaPolicyEstablishTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpmSlaPolicyEstablishState", - "localName" : "establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "VpnSlaPolicy", - "parentKeyVersion" : "1.0.0", - "parentLocalName" : "VpmSlaPolicyEstablishState", - "localName" : "VpnSlaPolicyEstablish_Output_Direct" - } - } - } ] - } - } - } ] - }, - "firstState" : "VpnSlaPolicyMatchState" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "PCVS-VpnSla_Tasks", - "version" : "1.0.0" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "CustomerContextTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "CustomerContextTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "links", - "value" : { - "key" : "links", - "fieldSchemaKey" : { - "name" : "ctxtCustomerLinksDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "priority", - "value" : { - "key" : "priority", - "fieldSchemaKey" : { - "name" : "ctxtCustomerPriorityDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "satisfaction", - "value" : { - "key" : "satisfaction", - "fieldSchemaKey" : { - "name" : "ctxtCustomerSatisfactionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "customerName", - "value" : { - "key" : "customerName", - "fieldSchemaKey" : { - "name" : "ctxtCustomerNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "dtYTD", - "value" : { - "key" : "dtYTD", - "fieldSchemaKey" : { - "name" : "ctxtCustomerDowntimeYTDDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "dtSLA", - "value" : { - "key" : "dtSLA", - "fieldSchemaKey" : { - "name" : "ctxtCustomerDowntimeSLADecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "report", - "value" : { - "key" : "report", - "fieldSchemaKey" : { - "name" : "reportDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "albumCustomerMap", - "version" : "0.0.1" - }, { - "name" : "albumTopoEdges", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar ifCustomerName = executor.inFields[\"customerName\"];\nvar ifLinks = executor.inFields[\"links\"];\n\nlogger.trace(\"-- got infields, testing existing customer\");\nvar ctxtCustomer = executor.getContextAlbum(\"albumCustomerMap\").get(ifCustomerName);\nif (ctxtCustomer != null) {\n executor.getContextAlbum(\"albumCustomerMap\").remove(ifCustomerName);\n logger.trace(\"-- removed customer: <\" + ifCustomerName + \">\");\n}\n\nlogger.trace(\"-- creating customer: <\" + ifCustomerName + \">\");\nvar links = new Array();\nfor (var i = 0; i < ifLinks.split(\" \").length; i++) {\n var link = executor.getContextAlbum(\"albumTopoEdges\").get(ifLinks.split(\" \")[i]);\n if (link != null) {\n logger.trace(\"-- link: <\" + ifLinks.split(\" \")[i] + \">\");\n links.push(ifLinks.split(\" \")[i]);\n } else {\n logger.trace(\"-- unknown link: <\" + ifLinks.split(\" \")[i] + \"> for customer <\" + ifCustomerName + \">\");\n }\n}\nlogger.trace(\"-- links: <\" + links + \">\");\nctxtCustomer = \"{customerName:\" + ifCustomerName + \", dtSLA:\" + executor.inFields[\"dtSLA\"] + \", dtYTD:\"\n + executor.inFields[\"dtYTD\"] + \", priority:\" + executor.inFields[\"priority\"] + \", satisfaction:\"\n + executor.inFields[\"satisfaction\"] + \", links:[\" + links + \"]}\";\n\nexecutor.getContextAlbum(\"albumCustomerMap\").put(ifCustomerName, ctxtCustomer);\n\nif (logger.isTraceEnabled()) {\n logger.trace(\" >> *** Customers ***\");\n if (executor.getContextAlbum(\"albumCustomerMap\") != null) {\n for (var i = 0; i < executor.getContextAlbum(\"albumCustomerMap\").values().size(); i++) {\n logger.trace(\" >> >> \" + executor.getContextAlbum(\"albumCustomerMap\").values().get(i).get(\"customerName\")\n + \" : \" + \"dtSLA=\" + executor.getContextAlbum(\"albumCustomerMap\").values().get(i).get(\"dtSLA\")\n + \" : \" + \"dtYTD=\" + executor.getContextAlbum(\"albumCustomerMap\").values().get(i).get(\"dtYTD\")\n + \" : \" + \"links=\" + executor.getContextAlbum(\"albumCustomerMap\").values().get(i).get(\"links\")\n + \" : \" + \"priority=\"\n + executor.getContextAlbum(\"albumCustomerMap\").values().get(i).get(\"priority\") + \" : \"\n + \"satisfaction=\"\n + executor.getContextAlbum(\"albumCustomerMap\").values().get(i).get(\"satisfaction\"));\n }\n } else {\n logger.trace(\" >> >> customer album is null\");\n }\n}\n\nexecutor.outFields[\"report\"] = \"customer ctxt :: added customer: \" + ifCustomerName;\n\nlogger.info(\"vpnsla: ctxt added customer \" + ifCustomerName);\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".\");" - } - } - }, { - "key" : { - "name" : "EdgeContextTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "EdgeContextTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "edgeName", - "value" : { - "key" : "edgeName", - "fieldSchemaKey" : { - "name" : "ctxtEdgeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "start", - "value" : { - "key" : "start", - "fieldSchemaKey" : { - "name" : "ctxtEdgeStartDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "end", - "value" : { - "key" : "end", - "fieldSchemaKey" : { - "name" : "ctxtEdgeEndDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "status", - "value" : { - "key" : "status", - "fieldSchemaKey" : { - "name" : "ctxtEdgeStatusDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "report", - "value" : { - "key" : "report", - "fieldSchemaKey" : { - "name" : "reportDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "albumTopoEdges", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar ifEdgeName = executor.inFields[\"edgeName\"];\nvar ifEdgeStatus = executor.inFields[\"status\"];\n\nvar albumTopoEdges = executor.getContextAlbum(\"albumTopoEdges\");\n\nlogger.trace(\"-- got infields, testing existing edge\");\n\nvar ctxtEdge = albumTopoEdges.get(ifEdgeName);\nif (ctxtEdge != null) {\n albumTopoEdges.remove(ifEdgeName);\n logger.trace(\"-- removed edge: <\" + ifEdgeName + \">\");\n}\n\nlogger.trace(\"-- creating edge: <\" + ifEdgeName + \">\");\nctxtEdge = \"{name:\" + ifEdgeName + \", start:\" + executor.inFields[\"start\"] + \", end:\" + executor.inFields[\"end\"]\n + \", active:\" + ifEdgeStatus + \"}\";\nalbumTopoEdges.put(ifEdgeName, ctxtEdge);\n\nif (logger.isTraceEnabled()) {\n logger.trace(\" >> *** Edges ***\");\n if (albumTopoEdges != null) {\n for (var i = 0; i < albumTopoEdges.values().size(); i++) {\n logger.trace(\" >> >> \" + albumTopoEdges.values().get(i).get(\"name\") + \" \\t \"\n + albumTopoEdges.values().get(i).get(\"start\") + \" --> \" + albumTopoEdges.values().get(i).get(\"end\")\n + \" \\t \" + albumTopoEdges.values().get(i).get(\"active\"));\n }\n } else {\n logger.trace(\" >> >> edge album is null\");\n }\n}\n\nexecutor.outFields[\"report\"] = \"edge ctxt :: added edge \" + ifEdgeName;\n\nlogger.info(\"vpnsla: ctxt added edge \" + ifEdgeName);\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".\");" - } - } - }, { - "key" : { - "name" : "NodeContextTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "NodeContextTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "mininetName", - "value" : { - "key" : "mininetName", - "fieldSchemaKey" : { - "name" : "ctxtNodeMininetNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "nodeName", - "value" : { - "key" : "nodeName", - "fieldSchemaKey" : { - "name" : "ctxtNodeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "report", - "value" : { - "key" : "report", - "fieldSchemaKey" : { - "name" : "reportDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "albumTopoNodes", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar ifNodeName = executor.inFields[\"nodeName\"];\nvar ifMininetName = executor.inFields[\"mininetName\"];\n\nvar albumTopoNodes = executor.getContextAlbum(\"albumTopoNodes\");\n\nlogger.trace(\"-- got infields, testing existing node\");\n\nvar ctxtNode = albumTopoNodes.get(ifNodeName);\nif (ctxtNode != null) {\n albumTopoNodes.remove(ifNodeName);\n logger.trace(\"-- removed node: <\" + ifNodeName + \">\");\n}\n\nlogger.trace(\"-- creating node: <\" + ifNodeName + \">\");\nctxtNode = \"{name:\" + ifNodeName + \", mnname:\" + ifMininetName + \"}\";\nalbumTopoNodes.put(ifNodeName, ctxtNode);\n\nif (logger.isTraceEnabled()) {\n logger.trace(\" >> *** Nodes ***\");\n if (albumTopoNodes != null) {\n for (var i = 0; i < albumTopoNodes.values().size(); i++) {\n logger.trace(\" >> >> \" + albumTopoNodes.values().get(i).get(\"name\") + \" : \"\n + albumTopoNodes.values().get(i).get(\"mnname\"));\n }\n } else {\n logger.trace(\" >> >> node album is null\");\n }\n}\n\nexecutor.outFields[\"report\"] = \"node ctxt :: added node \" + ifNodeName;\n\nlogger.info(\"vpnsla: ctxt added node \" + ifNodeName);\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".\");" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyActTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaPolicyActTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "decision", - "value" : { - "key" : "decision", - "fieldSchemaKey" : { - "name" : "decideDecisionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "edgeName", - "value" : { - "key" : "edgeName", - "fieldSchemaKey" : { - "name" : "edgeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "action", - "value" : { - "key" : "action", - "fieldSchemaKey" : { - "name" : "actionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "albumCustomerMap", - "version" : "0.0.1" - }, { - "name" : "albumProblemMap", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar ifDecision = executor.inFields[\"decision\"];\nvar ifMatchStart = executor.inFields[\"matchStart\"];\n\nvar albumCustomerMap = executor.getContextAlbum(\"albumCustomerMap\");\nvar albumProblemMap = executor.getContextAlbum(\"albumProblemMap\");\n\nswitch (ifDecision.get(\"decision\").toString()) {\ncase \"NONE\":\n executor.outFields[\"edgeName\"] = \"\";\n executor.outFields[\"action\"] = \"\";\n break;\ncase \"IMPEDE\":\n for (var i = 0; i < ifDecision.get(\"customers\").size(); i++) {\n customer = albumCustomerMap.get(ifDecision.get(\"customers\").get(i).toString());\n executor.outFields[\"edgeName\"] = customer.get(\"links\").get(0);\n executor.outFields[\"action\"] = \"firewall\";\n }\n break;\ncase \"REBUILD\":\n // finally solved, remove problem\n albumProblemMap.remove(ifDecision.get(\"problemID\"));\n executor.outFields[\"edgeName\"] = \"L10\"; // this is ###static###\n executor.outFields[\"action\"] = \"rebuild\"; // this is ###static###\n break;\ndefault:\n\n}\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);\n\nif (executor.outFields[\"action\"] != \"\") {\n logger.info(\"vpnsla: action is to \" + executor.outFields[\"action\"] + \" \" + executor.outFields[\"edgeName\"]);\n} else {\n logger.info(\"vpnsla: no action required\");\n}\n\nlogger.trace(\"-- outfields: \" + executor.outFields);\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".a\");\n\nvar now = new Date().getTime();\nlogger.info(\"VPN SLA finished in \" + (now - ifMatchStart) + \" ms\");" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyDecideNoneTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaPolicyDecideNoneTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "situation", - "value" : { - "key" : "situation", - "fieldSchemaKey" : { - "name" : "establishSituationDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "decision", - "value" : { - "key" : "decision", - "fieldSchemaKey" : { - "name" : "decideDecisionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\nimportClass(org.slf4j.LoggerFactory);\n\nimportClass(java.util.ArrayList);\n\nimportClass(org.apache.avro.generic.GenericData.Array);\nimportClass(org.apache.avro.generic.GenericRecord);\nimportClass(org.apache.avro.Schema);\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar rootLogger = LoggerFactory.getLogger(logger.ROOT_LOGGER_NAME);\n\nvar ifSituation = executor.inFields[\"situation\"];\n\n// create outfiled for decision\nvar decision = executor.subject.getOutFieldSchemaHelper(\"decision\").createNewInstance();\ndecision.put(\"description\", \"None, everything is ok\");\ndecision.put(\"decision\", \"NONE\");\ndecision.put(\"customers\", new ArrayList());\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nif (ifSituation.get(\"problemID\") == \"NONE\") {\n logger.trace(\"-- no problem, everything ok\");\n var returnValue = new returnValueType(true);\n} else {\n logger.trace(\"-- wrong problemID <\" + problemID + \"> for NONE task, we should not be here\");\n rootLogger.error(executor.subject.id + \" \" + \"-- wrong problemID <\" + problemID\n + \"> for NONE task, we should not be here\");\n var returnValue = new returnValueType(false);\n}\n\nexecutor.outFields[\"decision\"] = decision;\n\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".d-non\");" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyDecidePriorityTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaPolicyDecidePriorityTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "situation", - "value" : { - "key" : "situation", - "fieldSchemaKey" : { - "name" : "establishSituationDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "decision", - "value" : { - "key" : "decision", - "fieldSchemaKey" : { - "name" : "decideDecisionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "albumCustomerMap", - "version" : "0.0.1" - }, { - "name" : "albumProblemMap", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\nimportClass(org.slf4j.LoggerFactory);\n\nimportClass(java.util.ArrayList);\n\nimportClass(org.apache.avro.generic.GenericData.Array);\nimportClass(org.apache.avro.generic.GenericRecord);\nimportClass(org.apache.avro.Schema);\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar rootLogger = LoggerFactory.getLogger(logger.ROOT_LOGGER_NAME);\n\nvar ifSituation = executor.inFields[\"situation\"];\n\nvar albumCustomerMap = executor.getContextAlbum(\"albumCustomerMap\");\nvar albumProblemMap = executor.getContextAlbum(\"albumProblemMap\");\n\n// create outfiled for decision\nvar decision = executor.subject.getOutFieldSchemaHelper(\"decision\").createNewInstance();\ndecision.put(\"description\", \"None, everything is ok\");\ndecision.put(\"decision\", \"IMPEDE\");\ndecision.put(\"problemID\", ifSituation.get(\"problemID\"));\ndecision.put(\"customers\", new ArrayList());\n\nvar problem = albumProblemMap.get(ifSituation.get(\"problemID\"));\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nif (problem != null && ifSituation.get(\"violatedSLAs\").size() > 0) {\n logger.trace(\"-- impede by priority\");\n for (var i = 0; i < problem.get(\"edgeUsedBy\").size(); i++) {\n customerCtxt = albumCustomerMap.get(problem.get(\"edgeUsedBy\").get(i).toString());\n if (customerCtxt.get(\"priority\") == false) {\n decision.get(\"customers\").add(customerCtxt.get(\"customerName\"));\n }\n }\n var returnValue = new returnValueType(true);\n} else {\n logger.trace(\"-- wrong problemID <\" + ifSituation.get(\"problemID\") + \"> for PRIORITY task, we should not be here\");\n rootLogger.error(executor.subject.id + \" \" + \"-- wrong problemID <\" + ifSituation.get(\"problemID\")\n + \"> for PRIORITY task, we should not be here\");\n var returnValue = new returnValueType(false);\n}\n\n// set impededLast to decision[customers]\nproblem.get(\"impededLast\").clear();\nproblem.get(\"impededLast\").addAll(decision.get(\"customers\"));\n\nexecutor.outFields[\"decision\"] = decision;\nlogger.trace(\"-- decision: \" + decision);\n\nlogger.info(\"vpnsla: priority, impeding customers \" + decision.get(\"customers\"));\n\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".d-pri\");" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyDecideSlaTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaPolicyDecideSlaTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "situation", - "value" : { - "key" : "situation", - "fieldSchemaKey" : { - "name" : "establishSituationDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "decision", - "value" : { - "key" : "decision", - "fieldSchemaKey" : { - "name" : "decideDecisionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "albumCustomerMap", - "version" : "0.0.1" - }, { - "name" : "albumProblemMap", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\nimportClass(org.slf4j.LoggerFactory);\n\nimportClass(java.util.ArrayList);\n\nimportClass(org.apache.avro.generic.GenericData.Array);\nimportClass(org.apache.avro.generic.GenericRecord);\nimportClass(org.apache.avro.Schema);\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar rootLogger = LoggerFactory.getLogger(logger.ROOT_LOGGER_NAME);\n\nvar ifSituation = executor.inFields[\"situation\"];\n\nvar albumCustomerMap = executor.getContextAlbum(\"albumCustomerMap\");\nvar albumProblemMap = executor.getContextAlbum(\"albumProblemMap\");\n\n// create outfiled for decision\nvar decision = executor.subject.getOutFieldSchemaHelper(\"decision\").createNewInstance();\ndecision.put(\"description\", \"Impede given customers selected based on maximum SLA delta\");\ndecision.put(\"decision\", \"IMPEDE\");\ndecision.put(\"problemID\", ifSituation.get(\"problemID\"));\ndecision.put(\"customers\", new ArrayList());\n\nvar problem = albumProblemMap.get(ifSituation.get(\"problemID\"));\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nif (problem != null && ifSituation.get(\"violatedSLAs\").size() == 0) {\n logger.trace(\"-- impede by maximum SLA\");\n var customer = \"\";\n var customerSla = 0;\n for (var i = 0; i < problem.get(\"edgeUsedBy\").size(); i++) {\n customerCtxt = albumCustomerMap.get(problem.get(\"edgeUsedBy\").get(i).toString());\n if (customerSla == 0) {\n customerSla = customerCtxt.get(\"dtSLA\") - customerCtxt.get(\"dtYTD\");\n }\n if ((customerCtxt.get(\"dtSLA\") - customerCtxt.get(\"dtYTD\")) >= customerSla) {\n customer = customerCtxt.get(\"customerName\");\n customerSla = (customerCtxt.get(\"dtSLA\") - customerCtxt.get(\"dtYTD\"));\n }\n }\n decision.get(\"customers\").add(customer);\n var returnValue = new returnValueType(true);\n} else {\n logger.trace(\"-- wrong problemID <\" + ifSituation.get(\"problemID\") + \"> for SLA task, we should not be here\");\n rootLogger.error(executor.subject.id + \" \" + \"-- wrong problemID <\" + ifSituation.get(\"problemID\")\n + \"> for SLA task, we should not be here\");\n var returnValue = new returnValueType(false);\n}\n\n// set impededLast to decision[customers]\nproblem.get(\"impededLast\").clear();\nproblem.get(\"impededLast\").addAll(decision.get(\"customers\"));\n\nexecutor.outFields[\"decision\"] = decision;\nlogger.trace(\"-- decision: \" + decision);\n\nlogger.info(\"vpnsla: sla balance, impeding customers \" + decision.get(\"customers\"));\n\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".d-sla\");" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyDecideSolvedTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaPolicyDecideSolvedTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "situation", - "value" : { - "key" : "situation", - "fieldSchemaKey" : { - "name" : "establishSituationDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "decision", - "value" : { - "key" : "decision", - "fieldSchemaKey" : { - "name" : "decideDecisionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "albumProblemMap", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\nimportClass(org.slf4j.LoggerFactory);\n\nimportClass(java.util.ArrayList);\n\nimportClass(org.apache.avro.generic.GenericData.Array);\nimportClass(org.apache.avro.generic.GenericRecord);\nimportClass(org.apache.avro.Schema);\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar rootLogger = LoggerFactory.getLogger(logger.ROOT_LOGGER_NAME);\n\nvar ifSituation = executor.inFields[\"situation\"];\n\nvar albumProblemMap = executor.getContextAlbum(\"albumProblemMap\");\n\n// create outfiled for decision\nvar decision = executor.subject.getOutFieldSchemaHelper(\"decision\").createNewInstance();\ndecision.put(\"description\", \"None, everything is ok\");\ndecision.put(\"decision\", \"REBUILD\");\ndecision.put(\"customers\", new ArrayList());\ndecision.put(\"problemID\", ifSituation.get(\"problemID\"));\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nif (albumProblemMap.get(ifSituation.get(\"problemID\")).get(\"status\") == \"SOLVED\") {\n logger.trace(\"-- problem solved\");\n var returnValue = new returnValueType(true);\n} else {\n logger.trace(\"-- wrong problemID <\" + problemID + \"> for SOLVED task, we should not be here\");\n rootLogger.error(executor.subject.id + \" \" + \"-- wrong problemID <\" + problemID\n + \"> for SOLVED task, we should not be here\");\n var returnValue = new returnValueType(false);\n}\n\nexecutor.outFields[\"decision\"] = decision;\n\nlogger.info(\"vpnsla: sla solved, problem solved\");\n\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".d-non\");" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyEstablishTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaPolicyEstablishTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "edgeName", - "value" : { - "key" : "edgeName", - "fieldSchemaKey" : { - "name" : "edgeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "hasChanged", - "value" : { - "key" : "hasChanged", - "fieldSchemaKey" : { - "name" : "edgeChangedDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "status", - "value" : { - "key" : "status", - "fieldSchemaKey" : { - "name" : "edgeStatusDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "situation", - "value" : { - "key" : "situation", - "fieldSchemaKey" : { - "name" : "establishSituationDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "albumCustomerMap", - "version" : "0.0.1" - }, { - "name" : "albumProblemMap", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\nimportClass(org.slf4j.LoggerFactory);\n\nimportClass(java.util.ArrayList);\n\nimportClass(org.apache.avro.generic.GenericData.Array);\nimportClass(org.apache.avro.generic.GenericRecord);\nimportClass(org.apache.avro.Schema);\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar rootLogger = LoggerFactory.getLogger(logger.ROOT_LOGGER_NAME);\n\nvar ifEdgeName = executor.inFields[\"edgeName\"];\nvar ifEdgeStatus = executor.inFields[\"status\"].toString();\nvar ifhasChanged = executor.inFields[\"hasChanged\"];\nvar ifMatchStart = executor.inFields[\"matchStart\"];\n\nvar albumCustomerMap = executor.getContextAlbum(\"albumCustomerMap\");\nvar albumProblemMap = executor.getContextAlbum(\"albumProblemMap\");\n\nvar linkProblem = albumProblemMap.get(ifEdgeName);\n\n// create outfiled for situation\nvar situation = executor.subject.getOutFieldSchemaHelper(\"situation\").createNewInstance();\nsituation.put(\"violatedSLAs\", new ArrayList());\n\n// create a string as states+hasChanged+linkProblem and switch over it\nvar switchTest = ifEdgeStatus + \":\" + ifhasChanged + \":\" + (linkProblem == null ? \"no\" : \"yes\");\nswitch (switchTest) {\ncase \"UP:false:no\":\n logger.trace(\"-- edge <\" + ifEdgeName + \"> UP:false:no => everything ok\");\n logger.info(\"vpnsla: everything ok\");\n situation.put(\"problemID\", \"NONE\");\n break;\ncase \"UP:false:yes\":\n logger.trace(\"-- edge <\" + ifEdgeName + \"> UP:false:yes ==> did we miss earlier up?, removing problem\");\n albumProblemMap.remove(ifEdgeName);\n linkProblem = null;\n situation.put(\"problemID\", \"NONE\");\n break;\ncase \"UP:true:no\":\n logger.trace(\"-- edge <\" + ifEdgeName + \"> UP:true:no ==> did we miss the earlier down?, creating new problem\");\n situation.put(\"problemID\", ifEdgeName);\n break;\ncase \"UP:true:yes\":\n logger.trace(\"-- edge <\" + ifEdgeName + \"> UP:true:yes ==> detected solution, link up again\");\n logger.info(\"vpnsla: problem solved\");\n linkProblem.put(\"endTime\", ifMatchStart);\n linkProblem.put(\"status\", \"SOLVED\");\n situation.put(\"problemID\", \"NONE\");\n break;\ncase \"DOWN:false:no\":\n logger.trace(\"-- edge <\" + ifEdgeName + \"> DOWN:false:no ==> did we miss an earlier down?, creating new problem\");\n situation.put(\"problemID\", ifEdgeName);\n break;\ncase \"DOWN:false:yes\":\n logger.trace(\"-- edge <\" + ifEdgeName + \"> DOWN:false:yes ==> problem STILL exists\");\n logger.info(\"vpnsla: problem still exists\");\n linkProblem.put(\"status\", \"STILL\");\n situation.put(\"problemID\", ifEdgeName);\n break;\ncase \"DOWN:true:no\":\n logger.trace(\"-- edge <\" + ifEdgeName + \"> DOWN:true:no ==> found NEW problem\");\n logger.info(\"vpnsla: this is a new problem\");\n situation.put(\"problemID\", ifEdgeName);\n break;\ncase \"DOWN:true:yes\":\n logger.trace(\"-- edge <\" + ifEdgeName\n + \"> DOWN:true:yes ==> did we miss to remove an earlier problem?, remove and create new problem\");\n linkProblem = null;\n situation.put(\"problemID\", ifEdgeName);\n break;\n\ndefault:\n logger.error(\"-- input wrong for edge\" + ifEdgeName + \": edge status <\" + ifEdgeStatus\n + \"> unknown or null on hasChanged <\" + ifhasChanged + \">\");\n rootLogger.error(\"-- input wrong for edge\" + ifEdgeName + \": edge status <\" + ifEdgeStatus\n + \"> unknown or null on hasChanged <\" + ifhasChanged + \">\");\n}\n\n// create new problem if situation requires it\nif (situation.get(\"problemID\").equals(ifEdgeName) && linkProblem == null) {\n logger.trace(\"-- edge <\" + ifEdgeName + \"> creating new problem\");\n linkProblem = albumProblemMap.getSchemaHelper().createNewInstance();\n linkProblem.put(\"edge\", ifEdgeName);\n linkProblem.put(\"startTime\", ifMatchStart);\n linkProblem.put(\"lastUpdate\", ifMatchStart);\n linkProblem.put(\"endTime\", 0);\n linkProblem.put(\"status\", \"NEW\");\n linkProblem.put(\"edgeUsedBy\", new ArrayList());\n linkProblem.put(\"impededLast\", new ArrayList());\n\n for (var i = 0; i < albumCustomerMap.values().size(); i++) {\n var customer = albumCustomerMap.values().get(i);\n var customerLinks = albumCustomerMap.values().get(i).get(\"links\");\n for (var k = 0; k < customerLinks.size(); k++) {\n if (customerLinks.get(k) == ifEdgeName) {\n linkProblem.get(\"edgeUsedBy\").add(customer.get(\"customerName\"));\n }\n }\n }\n albumProblemMap.put(ifEdgeName, linkProblem);\n logger.trace(\"-- edge <\" + ifEdgeName + \"> problem created as <\" + linkProblem + \">\");\n}\n\n// set dtYTD if situation requires it\nif (linkProblem != null && (linkProblem.get(\"status\") == \"STILL\" || linkProblem.get(\"status\") == \"SOLVED\")) {\n var linkDownTimeinSecs = (ifMatchStart - linkProblem.get(\"lastUpdate\")) / 1000;\n logger.trace(\"-- edge <\" + ifEdgeName + \"> down time: \" + linkDownTimeinSecs + \" s\");\n for (var k = 0; k < linkProblem.get(\"impededLast\").size(); k++) {\n for (var i = 0; i < albumCustomerMap.values().size(); i++) {\n var customer = albumCustomerMap.values().get(i);\n if (customer.get(\"customerName\").equals(linkProblem.get(\"impededLast\").get(k))) {\n logger.info(\"-- vpnsla: customer \" + customer.get(\"customerName\") + \" YDT downtime increased from \"\n + customer.get(\"dtYTD\") + \" to \" + (customer.get(\"dtYTD\") + linkDownTimeinSecs));\n customer.put(\"dtYTD\", (customer.get(\"dtYTD\") + linkDownTimeinSecs))\n }\n }\n }\n // set lastUpdate to this policy execution for next execution calculation\n linkProblem.put(\"lastUpdate\", ifMatchStart);\n}\n\n// check SLA violations if situation requires it\nif (linkProblem != null && linkProblem.get(\"status\") != \"SOLVED\") {\n logger.info(\">e> customer\\tDT SLA\\tDT YTD\\tviolation\");\n for (var i = 0; i < albumCustomerMap.values().size(); i++) {\n var customer = albumCustomerMap.values().get(i);\n if (customer.get(\"dtYTD\") > customer.get(\"dtSLA\")) {\n situation.get(\"violatedSLAs\").add(customer.get(\"customerName\"));\n logger.info(\">e> \" + customer.get(\"customerName\") + \"\\t\\t\" + customer.get(\"dtSLA\") + \"s\\t\"\n + customer.get(\"dtYTD\") + \"s\\t\" + \"!!\");\n } else {\n logger.info(\">e> \" + customer.get(\"customerName\") + \"\\t\\t\" + customer.get(\"dtSLA\") + \"s\\t\"\n + customer.get(\"dtYTD\") + \"s\");\n }\n }\n}\n\nexecutor.outFields[\"situation\"] = situation;\n\nlogger.trace(\"-- out fields <\" + executor.outFields + \">\");\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".e\");" - } - } - }, { - "key" : { - "name" : "VpnSlaPolicyMatchTask", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaPolicyMatchTask", - "version" : "1.0.0" - }, - "inputFields" : { - "entry" : [ { - "key" : "edgeName", - "value" : { - "key" : "edgeName", - "fieldSchemaKey" : { - "name" : "edgeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "status", - "value" : { - "key" : "status", - "fieldSchemaKey" : { - "name" : "edgeStatusDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "edgeName", - "value" : { - "key" : "edgeName", - "fieldSchemaKey" : { - "name" : "edgeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "hasChanged", - "value" : { - "key" : "hasChanged", - "fieldSchemaKey" : { - "name" : "edgeChangedDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "status", - "value" : { - "key" : "status", - "fieldSchemaKey" : { - "name" : "edgeStatusDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ { - "name" : "albumTopoEdges", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nload(\"nashorn:mozilla_compat.js\");\n\nvar now = new Date().getTime();\nexecutor.outFields[\"matchStart\"] = now;\n\nimportClass(org.slf4j.LoggerFactory);\n\nvar logger = executor.logger;\nlogger.trace(\"start: \" + executor.subject.id);\nlogger.trace(\"-- infields: \" + executor.inFields);\n\nvar rootLogger = LoggerFactory.getLogger(logger.ROOT_LOGGER_NAME);\n\nvar ifEdgeName = executor.inFields[\"edgeName\"];\nvar ifLinkStatus = executor.inFields[\"status\"];\n\nvar albumTopoEdges = executor.getContextAlbum(\"albumTopoEdges\");\n\nlogger.trace(\"-- got infields, checking albumTopoEdges changes\");\n\nvar active = false;\nswitch (ifLinkStatus.toString()) {\ncase \"UP\":\n active = true;\n break;\ncase \"DOWN\":\n active = false;\n break;\ndefault:\n active = false;\n logger.error(\"-- trigger sent unknown link status <\" + ifLinkStatus + \"> for link <\" + ifEdgeName + \">\");\n rootLogger.error(executor.subject.id + \" \" + \"-- trigger sent unknown link status <\" + ifLinkStatus\n + \"> for link <\" + ifEdgeName + \">\");\n}\n\nvar link = albumTopoEdges.get(ifEdgeName);\nif (link == null) {\n logger.trace(\"-- link <\" + ifEdgeName + \"> not in albumTopoEdges\");\n} else {\n logger.trace(\"-- found link <\" + link + \"> in albumTopoEdges\");\n logger.trace(\"-- active <\" + active + \"> : link.active <\" + link.get(\"active\") + \">\");\n if (active != link.get(\"active\")) {\n link.put(\"active\", active);\n logger.trace(\"-- link <\" + ifEdgeName + \"> status changed to \");\n executor.outFields[\"hasChanged\"] = true;\n } else {\n logger.trace(\"-- link <\" + ifEdgeName + \"> status not changed \");\n executor.outFields[\"hasChanged\"] = false;\n }\n}\n\nexecutor.outFields[\"edgeName\"] = ifEdgeName;\nexecutor.outFields[\"status\"] = ifLinkStatus;\n\nlogger.info(\"vpnsla: detected \" + ifEdgeName + \" as \" + ifLinkStatus);\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);\nlogger.trace(\"finished: \" + executor.subject.id);\nlogger.debug(\".m\");" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "PCVS-VpnSla_Events", - "version" : "1.0.0" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "CustomerContextEventIn", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "CustomerContextEventIn", - "version" : "1.0.0" - }, - "nameSpace" : "org.onap.policy.apex.examples.pcvs.vpnsla", - "source" : "CtxtManagement", - "target" : "APEX", - "parameter" : { - "entry" : [ { - "key" : "links", - "value" : { - "key" : "links", - "fieldSchemaKey" : { - "name" : "ctxtCustomerLinksDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "priority", - "value" : { - "key" : "priority", - "fieldSchemaKey" : { - "name" : "ctxtCustomerPriorityDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "satisfaction", - "value" : { - "key" : "satisfaction", - "fieldSchemaKey" : { - "name" : "ctxtCustomerSatisfactionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "customerName", - "value" : { - "key" : "customerName", - "fieldSchemaKey" : { - "name" : "ctxtCustomerNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "dtYTD", - "value" : { - "key" : "dtYTD", - "fieldSchemaKey" : { - "name" : "ctxtCustomerDowntimeYTDDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "dtSLA", - "value" : { - "key" : "dtSLA", - "fieldSchemaKey" : { - "name" : "ctxtCustomerDowntimeSLADecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "EdgeContextEventIn", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "EdgeContextEventIn", - "version" : "1.0.0" - }, - "nameSpace" : "org.onap.policy.apex.examples.pcvs.vpnsla", - "source" : "CtxtManagement", - "target" : "APEX", - "parameter" : { - "entry" : [ { - "key" : "edgeName", - "value" : { - "key" : "edgeName", - "fieldSchemaKey" : { - "name" : "ctxtEdgeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "start", - "value" : { - "key" : "start", - "fieldSchemaKey" : { - "name" : "ctxtEdgeStartDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "end", - "value" : { - "key" : "end", - "fieldSchemaKey" : { - "name" : "ctxtEdgeEndDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "status", - "value" : { - "key" : "status", - "fieldSchemaKey" : { - "name" : "ctxtEdgeStatusDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "NodeContextEventIn", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "NodeContextEventIn", - "version" : "1.0.0" - }, - "nameSpace" : "org.onap.policy.apex.examples.pcvs.vpnsla", - "source" : "CtxtManagement", - "target" : "APEX", - "parameter" : { - "entry" : [ { - "key" : "mininetName", - "value" : { - "key" : "mininetName", - "fieldSchemaKey" : { - "name" : "ctxtNodeMininetNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "nodeName", - "value" : { - "key" : "nodeName", - "fieldSchemaKey" : { - "name" : "ctxtNodeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "ReportOut", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ReportOut", - "version" : "1.0.0" - }, - "nameSpace" : "org.onap.policy.apex.examples.pcvs.vpnsla", - "source" : "APEX", - "target" : "CtxtManagement", - "parameter" : { - "entry" : [ { - "key" : "report", - "value" : { - "key" : "report", - "fieldSchemaKey" : { - "name" : "reportDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "VpnSlaActOut", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaActOut", - "version" : "1.0.0" - }, - "nameSpace" : "org.onap.policy.apex.examples.pcvs.vpnsla", - "source" : "SlaAct", - "target" : "ActioningSystem", - "parameter" : { - "entry" : [ { - "key" : "edgeName", - "value" : { - "key" : "edgeName", - "fieldSchemaKey" : { - "name" : "edgeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "action", - "value" : { - "key" : "action", - "fieldSchemaKey" : { - "name" : "actionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "VpnSlaDecideOut", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaDecideOut", - "version" : "1.0.0" - }, - "nameSpace" : "org.onap.policy.apex.examples.pcvs.vpnsla", - "source" : "SlaDecide", - "target" : "SlaAct", - "parameter" : { - "entry" : [ { - "key" : "decision", - "value" : { - "key" : "decision", - "fieldSchemaKey" : { - "name" : "decideDecisionDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "VpnSlaEstablishOut", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaEstablishOut", - "version" : "1.0.0" - }, - "nameSpace" : "org.onap.policy.apex.examples.pcvs.vpnsla", - "source" : "SlaEstablish", - "target" : "SlaDecide", - "parameter" : { - "entry" : [ { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "situation", - "value" : { - "key" : "situation", - "fieldSchemaKey" : { - "name" : "establishSituationDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "VpnSlaMatchOut", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaMatchOut", - "version" : "1.0.0" - }, - "nameSpace" : "org.onap.policy.apex.examples.pcvs.vpnsla", - "source" : "VpnSlaMatch", - "target" : "VpnSlaEstablish", - "parameter" : { - "entry" : [ { - "key" : "edgeName", - "value" : { - "key" : "edgeName", - "fieldSchemaKey" : { - "name" : "edgeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "hasChanged", - "value" : { - "key" : "hasChanged", - "fieldSchemaKey" : { - "name" : "edgeChangedDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "matchStart", - "value" : { - "key" : "matchStart", - "fieldSchemaKey" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "status", - "value" : { - "key" : "status", - "fieldSchemaKey" : { - "name" : "edgeStatusDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "VpnSlaTrigger", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "VpnSlaTrigger", - "version" : "1.0.0" - }, - "nameSpace" : "org.onap.policy.apex.examples.pcvs.vpnsla", - "source" : "TriggerSys", - "target" : "VpnSlaMatch", - "parameter" : { - "entry" : [ { - "key" : "edgeName", - "value" : { - "key" : "edgeName", - "fieldSchemaKey" : { - "name" : "edgeNameDecl", - "version" : "1.0.0" - }, - "optional" : false - } - }, { - "key" : "status", - "value" : { - "key" : "status", - "fieldSchemaKey" : { - "name" : "edgeStatusDecl", - "version" : "1.0.0" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "PCVS-VpnSla_Albums", - "version" : "1.0.0" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "albumCustomerMap", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "albumCustomerMap", - "version" : "0.0.1" - }, - "scope" : "global", - "isWritable" : true, - "itemSchema" : { - "name" : "ctxtCustomerMapDecl", - "version" : "1.0.0" - } - } - }, { - "key" : { - "name" : "albumProblemMap", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "albumProblemMap", - "version" : "0.0.1" - }, - "scope" : "global", - "isWritable" : true, - "itemSchema" : { - "name" : "problemMapDecl", - "version" : "1.0.0" - } - } - }, { - "key" : { - "name" : "albumTopoEdges", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "albumTopoEdges", - "version" : "0.0.1" - }, - "scope" : "global", - "isWritable" : true, - "itemSchema" : { - "name" : "ctxtTopologyEdgesDecl", - "version" : "1.0.0" - } - } - }, { - "key" : { - "name" : "albumTopoNodes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "albumTopoNodes", - "version" : "0.0.1" - }, - "scope" : "global", - "isWritable" : true, - "itemSchema" : { - "name" : "ctxtTopologyNodesDecl", - "version" : "1.0.0" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "PCVS-VpnSla_Schemas", - "version" : "1.0.0" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "actionDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "actionDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ctxtCustomerDowntimeSLADecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtCustomerDowntimeSLADecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "ctxtCustomerDowntimeYTDDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtCustomerDowntimeYTDDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "ctxtCustomerLinksDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtCustomerLinksDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ctxtCustomerMapDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtCustomerMapDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Avro", - "schemaDefinition" : "{\n \"type\" : \"record\",\n \"name\" : \"Customer\",\n \"fields\" : [\n {\"name\" : \"customerName\", \"type\" : \"string\"},\n {\"name\" : \"dtSLA\" , \"type\" : \"int\"},\n {\"name\" : \"dtYTD\" , \"type\" : \"int\"},\n {\"name\" : \"priority\" , \"type\" : \"boolean\"},\n {\"name\" : \"satisfaction\", \"type\" : \"int\"},\n {\n \"name\": \"links\",\n \"doc\": \"Links used by this customer\",\n \"type\": {\"type\" : \"array\", \"items\" : \"string\"}\n }\n ]\n}" - } - }, { - "key" : { - "name" : "ctxtCustomerNameDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtCustomerNameDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ctxtCustomerPriorityDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtCustomerPriorityDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Boolean" - } - }, { - "key" : { - "name" : "ctxtCustomerSatisfactionDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtCustomerSatisfactionDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "ctxtEdgeEndDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtEdgeEndDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ctxtEdgeNameDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtEdgeNameDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ctxtEdgeStartDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtEdgeStartDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ctxtEdgeStatusDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtEdgeStatusDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Boolean" - } - }, { - "key" : { - "name" : "ctxtNodeMininetNameDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtNodeMininetNameDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ctxtNodeNameDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtNodeNameDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "ctxtTopologyEdgesDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtTopologyEdgesDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Avro", - "schemaDefinition" : "{\n \"type\" : \"record\",\n \"name\" : \"TopologyEdges\",\n \"fields\" : [\n {\"name\": \"name\", \"type\": \"string\", \"doc\": \"Name of the Edge, typically a link name\"},\n {\"name\": \"start\", \"type\": \"string\", \"doc\": \"Edge endpoint: start - a node name\"},\n {\"name\": \"end\", \"type\": \"string\", \"doc\": \"Edge endpoint: end - a node name\"},\n {\"name\": \"active\", \"type\": \"boolean\", \"doc\": \"Flag for active/inactive edges, inactive means a link is down\"}\n ]\n}" - } - }, { - "key" : { - "name" : "ctxtTopologyNodesDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "ctxtTopologyNodesDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Avro", - "schemaDefinition" : "{\n \"type\" : \"record\",\n \"name\" : \"TopologyNodes\",\n \"fields\" : [\n {\"name\" : \"name\", \"type\" : \"string\", \"doc\": \"The name of the node\"},\n {\"name\" : \"mnname\", \"type\" : \"string\", \"doc\": \"The name of the node in Mininet\"}\n ]\n}" - } - }, { - "key" : { - "name" : "decideDecisionDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "decideDecisionDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Avro", - "schemaDefinition" : "{\n \"type\" : \"record\",\n \"name\" : \"Situation\",\n \"fields\" : [\n {\"name\": \"description\", \"type\": \"string\", \"doc\": \"Description of the taken decision\"},\n {\n \"name\": \"decision\",\n \"doc\": \"taken decision\",\n \"type\": {\n \"type\": \"enum\",\n \"name\": \"decisionEnum\",\n \"symbols\" : [\n \"IMPEDE\",\n \"REBUILD\",\n \"NONE\"\n ]\n }\n },\n {\"name\": \"customers\", \"type\": {\"type\" : \"array\", \"items\" : \"string\"}, \"doc\": \"List of customers affected by the decision\"},\n {\"name\": \"problemID\", \"type\": \"string\", \"doc\": \"Identifier of the problem for lookup in problemMap\"}\n ]\n}" - } - }, { - "key" : { - "name" : "edgeChangedDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "edgeChangedDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Boolean" - } - }, { - "key" : { - "name" : "edgeNameDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "edgeNameDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "edgeStatusDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "edgeStatusDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Avro", - "schemaDefinition" : "{\n \"type\": \"enum\",\n \"name\": \"Status\",\n \"symbols\" : [\n \"UP\",\n \"DOWN\"\n ]\n}" - } - }, { - "key" : { - "name" : "establishSituationDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "establishSituationDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Avro", - "schemaDefinition" : "{\n \"type\" : \"record\",\n \"name\" : \"Situation\",\n \"fields\" : [\n {\"name\": \"problemID\", \"type\": \"string\", \"doc\": \"Identifier of the problem for lookup in problemMap\"},\n {\"name\": \"violatedSLAs\", \"type\": {\"type\" : \"array\", \"items\" : \"string\"}, \"doc\": \"List of customers with SLA violations\"}\n ]\n}" - } - }, { - "key" : { - "name" : "problemMapDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "problemMapDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Avro", - "schemaDefinition" : "{\n \"type\" : \"record\",\n \"name\" : \"Problem\",\n \"fields\" : [\n {\"name\": \"edge\", \"type\": \"string\"},\n {\"name\": \"startTime\", \"type\": \"long\"},\n {\"name\": \"lastUpdate\", \"type\": \"long\"},\n {\"name\": \"endTime\", \"type\": \"long\"},\n {\n \"name\": \"status\",\n \"doc\": \"problem status\",\n \"type\": {\n \"type\": \"enum\",\n \"name\": \"statusEnum\",\n \"symbols\" : [\n \"NONE\",\n \"STILL\",\n \"SOLVED\",\n \"NEW\"\n ]\n }\n },\n {\n \"name\": \"edgeUsedBy\",\n \"doc\": \"customers using the edge\",\n \"type\": {\"type\" : \"array\", \"items\" : \"string\"}\n },\n {\n \"name\": \"impededLast\",\n \"doc\": \"customers last impeded\",\n \"type\": {\"type\" : \"array\", \"items\" : \"string\"}\n }\n ]\n}" - } - }, { - "key" : { - "name" : "reportDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "reportDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "value" : { - "key" : { - "name" : "timestampDecl", - "version" : "1.0.0" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/tools/model-generator/src/test/resources/models/JMSSamplePolicyModel.json b/tools/model-generator/src/test/resources/models/JMSSamplePolicyModel.json deleted file mode 100644 index d85630456..000000000 --- a/tools/model-generator/src/test/resources/models/JMSSamplePolicyModel.json +++ /dev/null @@ -1,456 +0,0 @@ -{ - "apexPolicyModel": { - "key": { - "name": "JMSTestModel", - "version": "0.0.1" - }, - "keyInformation": { - "key": { - "name": "JMSTestModel_KeyInfo", - "version": "0.0.1" - }, - "keyInfoMap": { - "entry": [ - { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "UUID": "b59815ef-fc5b-4e44-9f6e-2f6212bb7296", - "description": "Generated description for a concept called \"JMSCopyInOutTask\" with version \"null\" and UUID \"b59815ef-fc5b-4e44-9f6e-2f6212bb7296\"" - } - }, - { - "key": { - "name": "JMSTestModel", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel", - "version": "0.0.1" - }, - "UUID": "a731a845-f984-46a9-adf4-c6c7ca0baa0d", - "description": "Generated description for a concept called \"JMSTestModel\" with version \"null\" and UUID \"a731a845-f984-46a9-adf4-c6c7ca0baa0d\"" - } - }, - { - "key": { - "name": "JMSTestModel_Albums", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Albums", - "version": "0.0.1" - }, - "UUID": "b580c2e2-067e-452c-8410-d69344fa718c", - "description": "Generated description for concept referred to by key \"JMSTestModel_Albums:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Events", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Events", - "version": "0.0.1" - }, - "UUID": "463f3fa6-2be3-4ded-a015-1f045ee8991e", - "description": "Generated description for concept referred to by key \"JMSTestModel_Events:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_KeyInfo", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_KeyInfo", - "version": "0.0.1" - }, - "UUID": "b14d97fb-f215-4b70-9cd6-cbfb3ed085ee", - "description": "Generated description for concept referred to by key \"JMSTestModel_KeyInfo:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Policies", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Policies", - "version": "0.0.1" - }, - "UUID": "9ae9047f-e0d8-42c4-b3a6-e32954ace3b6", - "description": "Generated description for concept referred to by key \"JMSTestModel_Policies:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Schemas", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Schemas", - "version": "0.0.1" - }, - "UUID": "adc30c29-d4b9-4408-9213-6d86b051d59c", - "description": "Generated description for concept referred to by key \"JMSTestModel_Schemas:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestModel_Tasks", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestModel_Tasks", - "version": "0.0.1" - }, - "UUID": "c3545f15-710c-4339-9a4e-e0eacffac52e", - "description": "Generated description for concept referred to by key \"JMSTestModel_Tasks:0.0.1\"" - } - }, - { - "key": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "UUID": "fdda6a40-6767-45b0-8703-3b5b3bafaf19", - "description": "Generated description for a concept called \"JMSTestPolicy\" with version \"null\" and UUID \"fdda6a40-6767-45b0-8703-3b5b3bafaf19\"" - } - }, - { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "UUID": "6cdd11f3-5fe8-4510-81b9-af3be303ebae", - "description": "Generated description for a concept called \"TestPingIncomingEvent\" with version \"null\" and UUID \"6cdd11f3-5fe8-4510-81b9-af3be303ebae\"" - } - }, - { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "UUID": "dc04de01-2284-4461-9fe2-da58a2122a73", - "description": "Generated description for a concept called \"TestPingOutgoingEvent\" with version \"0.0.1\" and UUID \"dc04de01-2284-4461-9fe2-da58a2122a73\"" - } - }, - { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "UUID": "bdc2f70a-de52-4127-8012-b9593657da3c", - "description": "Generated description for a concept called \"TestPingType\" with version \"null\" and UUID \"bdc2f70a-de52-4127-8012-b9593657da3c\"" - } - } - ] - } - }, - "policies": { - "key": { - "name": "JMSTestModel_Policies", - "version": "0.0.1" - }, - "policyMap": { - "entry": [ - { - "key": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "value": { - "policyKey": { - "name": "JMSTestPolicy", - "version": "0.0.1" - }, - "template": "FREEFORM", - "state": { - "entry": [ - { - "key": "TestJMSState", - "value": { - "stateKey": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "NULL", - "localName": "TestJMSState" - }, - "trigger": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "stateOutputs": { - "entry": [ - { - "key": "InOutOutputMapping", - "value": { - "key": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "TestJMSState", - "localName": "InOutOutputMapping" - }, - "outgoingEvent": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "nextState": { - "parentKeyName": "NULL", - "parentKeyVersion": "0.0.0", - "parentLocalName": "NULL", - "localName": "NULL" - } - } - } - ] - }, - "contextAlbumReference": [], - "taskSelectionLogic": { - "key": "NULL", - "logicFlavour": "UNDEFINED", - "logic": "" - }, - "stateFinalizerLogicMap": { - "entry": [] - }, - "defaultTask": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "taskReferences": { - "entry": [ - { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "value": { - "key": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "TestJMSState", - "localName": "InOutTask" - }, - "outputType": "DIRECT", - "output": { - "parentKeyName": "JMSTestPolicy", - "parentKeyVersion": "0.0.1", - "parentLocalName": "TestJMSState", - "localName": "InOutOutputMapping" - } - } - } - ] - } - } - } - ] - }, - "firstState": "TestJMSState" - } - } - ] - } - }, - "tasks": { - "key": { - "name": "JMSTestModel_Tasks", - "version": "0.0.1" - }, - "taskMap": { - "entry": [ - { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "JMSCopyInOutTask", - "version": "0.0.1" - }, - "inputFields": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "outputFields": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - }, - "taskParameters": { - "entry": [] - }, - "contextAlbumReference": [], - "taskLogic": { - "key": "TaskLogic", - "logicFlavour": "JAVASCRIPT", - "logic": "var outFieldType = Java.type(\"org.onap.policy.apex.apps.uservice.test.adapt.jms.TestPing\");\nvar outValue = new outFieldType();\n\nvar inValue = executor.inFields.get(\"TestPing\");\n\nexecutor.logger.info(inValue);\n\noutValue.setPingTime(inValue.getPingTime());\noutValue.setPongTime(new Date().getTime());\noutValue.setName(inValue.getName() + \"_out\");\n\noutValue.setDescription(\ninValue.getDescription() +\n\". So Romeo would, were he not Romeo call'd,\" +\n\" retain that dear perfection which he owes, without that title.\");\n\nexecutor.logger.info(outValue);\nexecutor.outFields.put(\"TestPing\", outValue)\n\nvar returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);" - } - } - } - ] - } - }, - "events": { - "key": { - "name": "JMSTestModel_Events", - "version": "0.0.1" - }, - "eventMap": { - "entry": [ - { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingIncomingEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.apps.uservice.test.adapt.jms", - "source": "JMS", - "target": "Apex", - "parameter": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - }, - { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingOutgoingEvent", - "version": "0.0.1" - }, - "nameSpace": "org.onap.policy.apex.apps.uservice.test.adapt.jms", - "source": "Apex", - "target": "JMS", - "parameter": { - "entry": [ - { - "key": "TestPing", - "value": { - "key": "TestPing", - "fieldSchemaKey": { - "name": "TestPingType", - "version": "0.0.1" - }, - "optional": false - } - } - ] - } - } - } - ] - } - }, - "albums": { - "key": { - "name": "JMSTestModel_Albums", - "version": "0.0.1" - }, - "albums": { - "entry": [] - } - }, - "schemas": { - "key": { - "name": "JMSTestModel_Schemas", - "version": "0.0.1" - }, - "schemas": { - "entry": [ - { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "value": { - "key": { - "name": "TestPingType", - "version": "0.0.1" - }, - "schemaFlavour": "Java", - "schemaDefinition": "org.onap.policy.apex.apps.uservice.test.adapt.jms.TestPing" - } - } - ] - } - } - } -} diff --git a/tools/model-generator/src/test/resources/models/MyFirstPolicyModel.json b/tools/model-generator/src/test/resources/models/MyFirstPolicyModel.json deleted file mode 100644 index 85bb0e411..000000000 --- a/tools/model-generator/src/test/resources/models/MyFirstPolicyModel.json +++ /dev/null @@ -1,1213 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "MyFirstPolicyModel", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "MyFirstPolicyModel_KeyInfo", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "UUID" : "3351b0f4-cf06-4fa2-8823-edf67bd30223", - "description" : "This task checks if the sales request is for an item that contains alcohol. \nIf the local time is between 00:00:00 and 11:30:00 then the sale is not authorised. Otherwise the sale is authorised. \nIn this implementation we assume that all items with item_ID values between 1000 and 2000 contain alcohol :-)" - } - }, { - "key" : { - "name" : "MorningBoozeCheckAlt1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MorningBoozeCheckAlt1", - "version" : "0.0.1" - }, - "UUID" : "bc6d90c9-c902-4686-afd3-925b30e39990", - "description" : "This task checks if a sale request is for an item that is an alcoholic drink. \nIf the local time is between 00:00:00 CET and 13:00:00 CET then the sale is not authorised. \nAlso alcohol sales are not allowed on Sundays. Otherwise the sale is authorised. \nIn this implementation we assume that items with item_ID between 1000 and 2000 are all alcoholic drinks" - } - }, { - "key" : { - "name" : "MyFirstPolicy", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicy", - "version" : "0.0.1" - }, - "UUID" : "6c5e410f-489a-46ff-964e-982ce6e8b6d0", - "description" : "This is my first Apex policy. It checks if a sale should be authorised or not." - } - }, { - "key" : { - "name" : "MyFirstPolicyModel", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel", - "version" : "0.0.1" - }, - "UUID" : "540226fb-55ee-4f0e-a444-983a0494818e", - "description" : "This is my first Apex Policy Model." - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Albums", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Albums", - "version" : "0.0.1" - }, - "UUID" : "3f70ec50-f896-31ba-afec-5fd47e69045b", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Albums:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Events", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Events", - "version" : "0.0.1" - }, - "UUID" : "ef281318-5ac9-3ef0-8db3-8f9c4e4a81e2", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Events:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_KeyInfo", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_KeyInfo", - "version" : "0.0.1" - }, - "UUID" : "d9248c6f-7c00-38df-8251-611463ba4065", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_KeyInfo:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Policies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Policies", - "version" : "0.0.1" - }, - "UUID" : "77c01a6b-510c-3aa9-b640-b4db356aa03b", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Policies:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Schemas", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Schemas", - "version" : "0.0.1" - }, - "UUID" : "d0cc3aa0-ea69-3a43-80ff-a0dbb0ebd885", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Schemas:0.0.1\"" - } - }, { - "key" : { - "name" : "MyFirstPolicyModel_Tasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MyFirstPolicyModel_Tasks", - "version" : "0.0.1" - }, - "UUID" : "b02a7e02-2cd0-39e6-b3cb-946fa83a8f08", - "description" : "Generated description for concept referred to by key \"MyFirstPolicyModel_Tasks:0.0.1\"" - } - }, { - "key" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "UUID" : "c4500941-3f98-4080-a9cc-5b9753ed050b", - "description" : "An event emitted by the Policy to indicate whether the sale of an item has been authorised" - } - }, { - "key" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "UUID" : "4f04aa98-e917-4f4a-882a-c75ba5a99374", - "description" : "An event raised by the PoS system each time an item is scanned for purchase" - } - }, { - "key" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "UUID" : "36df4c71-9616-4206-8b53-976a5cd4bd87", - "description" : "A type for 'assistant_ID' values" - } - }, { - "key" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "UUID" : "d48b619e-d00d-4008-b884-02d76ea4350b", - "description" : "A type for 'authorised' values" - } - }, { - "key" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "UUID" : "6468845f-4122-4128-8e49-0f52c26078b5", - "description" : "A type for 'branch_ID' values" - } - }, { - "key" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "UUID" : "4f227ff1-aee0-453a-b6b6-9a4b2e0da932", - "description" : "A type for 'item_ID' values" - } - }, { - "key" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "UUID" : "ad1431bb-3155-4e73-b5a3-b89bee498749", - "description" : "A type for 'message' values" - } - }, { - "key" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "UUID" : "eecfde90-896c-4343-8f9c-2603ced94e2d", - "description" : "A type for 'notes' values" - } - }, { - "key" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "UUID" : "52c2fc45-fd8c-463c-bd6f-d91b0554aea7", - "description" : "A type for 'amount'/'price' values" - } - }, { - "key" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "UUID" : "ac3d9842-80af-4a98-951c-bd79a431c613", - "description" : "A type for 'quantity' values" - } - }, { - "key" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "UUID" : "cca47d74-7754-4a61-b163-ca31f66b157b", - "description" : "A type for 'sale_ID' values" - } - }, { - "key" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "UUID" : "fd594e88-411d-4a94-b2be-697b3a0d7adf", - "description" : "A type for 'time' values" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "MyFirstPolicyModel_Policies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "MyFirstPolicy", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "MyFirstPolicy", - "version" : "0.0.1" - }, - "template" : "FREEFORM", - "state" : { - "entry" : [ { - "key" : "BoozeAuthDecide", - "value" : { - "stateKey" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "BoozeAuthDecide" - }, - "trigger" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "MorningBoozeCheck_Output_Direct", - "value" : { - "key" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "BoozeAuthDecide", - "localName" : "MorningBoozeCheck_Output_Direct" - }, - "outgoingEvent" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/* * ============LICENSE_START======================================================= * Copyright (C) 2016-2018 Ericsson. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the \"License\"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an \"AS IS\" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 * ============LICENSE_END========================================================= */var returnValueType = Java.type(\"java.lang.Boolean\");\nvar returnValue = new returnValueType(true);\n\nexecutor.logger.info(\"Task Selection Execution: '\"+executor.subject.id+\"'. Input Event: '\"+executor.inFields+\"'\");\n\nbranchid = executor.inFields.get(\"branch_ID\");\ntaskorig = executor.subject.getTaskKey(\"MorningBoozeCheck\");\ntaskalt = executor.subject.getTaskKey(\"MorningBoozeCheckAlt1\");\ntaskdef = executor.subject.getDefaultTaskKey();\n\nif(branchid >=0 && branchid <1000){\n taskorig.copyTo(executor.selectedTask);\n}\nelse if (branchid >=1000 && branchid <2000){\n taskalt.copyTo(executor.selectedTask);\n}\nelse{\n taskdef.copyTo(executor.selectedTask);\n}\n\n/*\nThis task selection logic selects task \"MorningBoozeCheck\" for branches with 0<=branch_ID<1000 and selects task \"MorningBoozeCheckAlt1\" for branches with 1000<=branch_ID<2000. Otherwise the default task is selected. In this case the default task is also \"MorningBoozeCheck\"\n*/" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "MorningBoozeCheckAlt1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "BoozeAuthDecide", - "localName" : "MorningBoozeCheckAlt1" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "BoozeAuthDecide", - "localName" : "MorningBoozeCheck_Output_Direct" - } - } - }, { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "BoozeAuthDecide", - "localName" : "MorningBoozeCheck" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "MyFirstPolicy", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "BoozeAuthDecide", - "localName" : "MorningBoozeCheck_Output_Direct" - } - } - } ] - } - } - } ] - }, - "firstState" : "BoozeAuthDecide" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "MyFirstPolicyModel_Tasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MorningBoozeCheck", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "authorised", - "value" : { - "key" : "authorised", - "fieldSchemaKey" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "message", - "value" : { - "key" : "message", - "fieldSchemaKey" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "optional" : true - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nimport java.util.Date;\nimport java.util.Calendar;\nimport java.util.TimeZone;\nimport java.text.SimpleDateFormat;\n\nlogger.info(\"Task Execution: '\"+subject.id+\"'. Input Fields: '\"+inFields+\"'\");\n\noutFields.put(\"amount\" , inFields.get(\"amount\"));\noutFields.put(\"assistant_ID\", inFields.get(\"assistant_ID\"));\noutFields.put(\"notes\" , inFields.get(\"notes\"));\noutFields.put(\"quantity\" , inFields.get(\"quantity\"));\noutFields.put(\"branch_ID\" , inFields.get(\"branch_ID\"));\noutFields.put(\"item_ID\" , inFields.get(\"item_ID\"));\noutFields.put(\"time\" , inFields.get(\"time\"));\noutFields.put(\"sale_ID\" , inFields.get(\"sale_ID\"));\n\nitem_id = inFields.get(\"item_ID\");\n\n//The events used later to test this task use GMT timezone!\ngmt = TimeZone.getTimeZone(\"GMT\");\ntimenow = Calendar.getInstance(gmt);\ndf = new SimpleDateFormat(\"HH:mm:ss z\");\ndf.setTimeZone(gmt);\ntimenow.setTimeInMillis(inFields.get(\"time\"));\n\nmidnight = timenow.clone();\nmidnight.set(\n timenow.get(Calendar.YEAR),timenow.get(Calendar.MONTH),\n timenow.get(Calendar.DATE),0,0,0);\neleven30 = timenow.clone();\neleven30.set(\n timenow.get(Calendar.YEAR),timenow.get(Calendar.MONTH),\n timenow.get(Calendar.DATE),11,30,0);\n\nitemisalcohol = false;\nif(item_id != null && item_id >=1000 && item_id < 2000)\n itemisalcohol = true;\n\nif( itemisalcohol\n && timenow.after(midnight) && timenow.before(eleven30)){\n outFields.put(\"authorised\", false);\n outFields.put(\"message\", \"Sale not authorised by policy task \"+subject.taskName+\n \" for time \"+df.format(timenow.getTime())+\n \". Alcohol can not be sold between \"+df.format(midnight.getTime())+\n \" and \"+df.format(eleven30.getTime()));\n return true;\n}\nelse{\n outFields.put(\"authorised\", true);\n outFields.put(\"message\", \"Sale authorised by policy task \"+subject.taskName+\n \" for time \"+df.format(timenow.getTime()));\n return true;\n}\n\n/*\nThis task checks if a sale request is for an item that is an alcoholic drink.\nIf the local time is between 00:00:00 GMT and 11:30:00 GMT then the sale is not\nauthorised. Otherwise the sale is authorised. \nIn this implementation we assume that items with item_ID value between 1000 and \n2000 are all alcoholic drinks :-)\n*/" - } - } - }, { - "key" : { - "name" : "MorningBoozeCheckAlt1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "MorningBoozeCheckAlt1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "authorised", - "value" : { - "key" : "authorised", - "fieldSchemaKey" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "message", - "value" : { - "key" : "message", - "fieldSchemaKey" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "optional" : true - } - } ] - }, - "taskParameters" : { - "entry" : [ ] - }, - "contextAlbumReference" : [ ], - "taskLogic" : { - "key" : "TaskLogic", - "logicFlavour" : "MVEL", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nimport java.util.Date;\nimport java.util.Calendar;\nimport java.util.TimeZone;\nimport java.text.SimpleDateFormat;\n\nlogger.info(\"Task Execution: '\"+subject.id+\"'. Input Event: '\"+inFields+\"'\");\n\noutFields.put(\"amount\" , inFields.get(\"amount\"));\noutFields.put(\"assistant_ID\", inFields.get(\"assistant_ID\"));\noutFields.put(\"notes\" , inFields.get(\"notes\"));\noutFields.put(\"quantity\" , inFields.get(\"quantity\"));\noutFields.put(\"branch_ID\" , inFields.get(\"branch_ID\"));\noutFields.put(\"item_ID\" , inFields.get(\"item_ID\"));\noutFields.put(\"time\" , inFields.get(\"time\"));\noutFields.put(\"sale_ID\" , inFields.get(\"sale_ID\"));\n\nitem_id = inFields.get(\"item_ID\");\n\n//The events used later to test this task use CET timezone!\ncet = TimeZone.getTimeZone(\"CET\");\ntimenow = Calendar.getInstance(cet);\ndf = new SimpleDateFormat(\"HH:mm:ss z\");\ndf.setTimeZone(cet);\ntimenow.setTimeInMillis(inFields.get(\"time\"));\n\nmidnight = timenow.clone();\nmidnight.set(\n timenow.get(Calendar.YEAR),timenow.get(Calendar.MONTH),\n timenow.get(Calendar.DATE),0,0,0);\nonepm = timenow.clone();\nonepm.set(\n timenow.get(Calendar.YEAR),timenow.get(Calendar.MONTH),\n timenow.get(Calendar.DATE),13,0,0);\n\nitemisalcohol = false;\nif(item_id != null && item_id >=1000 && item_id < 2000)\n itemisalcohol = true;\n\nif( itemisalcohol &&\n ( (timenow.after(midnight) && timenow.before(onepm))\n ||\n (timenow.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY)\n )){\n outFields.put(\"authorised\", false);\n outFields.put(\"message\", \"Sale not authorised by policy task \"+subject.taskName+\n \" for time \"+df.format(timenow.getTime())+\n \". Alcohol can not be sold between \"+df.format(midnight.getTime())+\n \" and \"+df.format(onepm.getTime()) +\" or on Sunday\");\n return true;\n}\nelse{\n outFields.put(\"authorised\", true);\n outFields.put(\"message\", \"Sale authorised by policy task \"+subject.taskName+\n \" for time \"+df.format(timenow.getTime()));\n return true;\n}\n\n/*\nThis task checks if a sale request is for an item that is an alcoholic drink. \nIf the local time is between 00:00:00 CET and 13:00:00 CET then the sale is not authorised. \nAlso alcohol sales are not allowed on Sundays. Otherwise the sale is authorised. \nIn this implementation we assume that items with item_ID between 1000 and 2000 are all alcoholic drinks :-)\n*/" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "MyFirstPolicyModel_Events", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SALE_AUTH", - "version" : "0.0.1" - }, - "nameSpace" : "com.hyperm", - "source" : "APEX", - "target" : "POS", - "parameter" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "authorised", - "value" : { - "key" : "authorised", - "fieldSchemaKey" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "message", - "value" : { - "key" : "message", - "fieldSchemaKey" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "optional" : true - } - } ] - } - } - }, { - "key" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SALE_INPUT", - "version" : "0.0.1" - }, - "nameSpace" : "com.hyperm", - "source" : "POS", - "target" : "APEX", - "parameter" : { - "entry" : [ { - "key" : "sale_ID", - "value" : { - "key" : "sale_ID", - "fieldSchemaKey" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "amount", - "value" : { - "key" : "amount", - "fieldSchemaKey" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "assistant_ID", - "value" : { - "key" : "assistant_ID", - "fieldSchemaKey" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "notes", - "value" : { - "key" : "notes", - "fieldSchemaKey" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "optional" : true - } - }, { - "key" : "quantity", - "value" : { - "key" : "quantity", - "fieldSchemaKey" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "branch_ID", - "value" : { - "key" : "branch_ID", - "fieldSchemaKey" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "item_ID", - "value" : { - "key" : "item_ID", - "fieldSchemaKey" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "time", - "value" : { - "key" : "time", - "fieldSchemaKey" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "MyFirstPolicyModel_Albums", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ ] - } - }, - "schemas" : { - "key" : { - "name" : "MyFirstPolicyModel_Schemas", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "assistant_ID_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "authorised_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Boolean" - } - }, { - "key" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "branch_ID_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "item_ID_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "message_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "notes_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "price_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "quantity_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Integer" - } - }, { - "key" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "sale_ID_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - }, { - "key" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "timestamp_type", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} \ No newline at end of file diff --git a/tools/model-generator/src/test/resources/models/SamplePolicyModelJAVASCRIPT.json b/tools/model-generator/src/test/resources/models/SamplePolicyModelJAVASCRIPT.json deleted file mode 100644 index 2dc4bcd3f..000000000 --- a/tools/model-generator/src/test/resources/models/SamplePolicyModelJAVASCRIPT.json +++ /dev/null @@ -1,6684 +0,0 @@ -{ - "apexPolicyModel" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "keyInfoMap" : { - "entry" : [ { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "UUID" : "ca36bfd8-6042-3633-8c85-89c66507c3bf", - "description" : "Generated description for concept referred to by key \"Context:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "UUID" : "465a81cc-885f-3a4d-bc4e-1508da92b236", - "description" : "Generated description for concept referred to by key \"Event0000:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "UUID" : "36b2d570-fff7-3a4b-bab2-6bf492f5129a", - "description" : "Generated description for concept referred to by key \"Event0001:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "UUID" : "ff6160a7-fb5e-379c-a6d2-2cd28053eacf", - "description" : "Generated description for concept referred to by key \"Event0002:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "UUID" : "5899e216-2abf-3781-abc4-2c257b92721e", - "description" : "Generated description for concept referred to by key \"Event0003:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "UUID" : "7c2692a7-4587-3d09-abf9-d96b339a316f", - "description" : "Generated description for concept referred to by key \"Event0004:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "UUID" : "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7", - "description" : "Generated description for concept referred to by key \"Event0100:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "UUID" : "edbfa868-2ab2-30fd-8078-4c7f67ca6122", - "description" : "Generated description for concept referred to by key \"Event0101:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "UUID" : "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4", - "description" : "Generated description for concept referred to by key \"Event0102:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "UUID" : "c2550912-10d9-3000-8826-377288cd6cb1", - "description" : "Generated description for concept referred to by key \"Event0103:0.0.1\"" - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "UUID" : "f6d75b71-c8a7-3337-a121-88d68c389f5a", - "description" : "Generated description for concept referred to by key \"Event0104:0.0.1\"" - } - }, { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "UUID" : "0215644c-4531-375c-8335-d558b4de8c03", - "description" : "Generated description for concept referred to by key \"Events:0.0.1\"" - } - }, { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "976a79e7-5c80-3c03-9503-da3f41fec395", - "description" : "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7", - "description" : "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" - }, - "UUID" : "1ff2f905-685c-3caf-95bc-0bbc90345888", - "description" : "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" - } - }, { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "UUID" : "f54c3b2b-be76-31c4-adfc-87c494c06808", - "description" : "Generated description for concept referred to by key \"Policies:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "UUID" : "3410e939-30ca-32c4-a2d8-c30b6fee6eec", - "description" : "Generated description for concept referred to by key \"Policy0:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "e27564c4-3cbf-3db2-9bf3-83ae80a2f907", - "description" : "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "UUID" : "d0b2b585-f344-33b8-af9e-250e7f4cfbce", - "description" : "Generated description for concept referred to by key \"Policy1:0.0.1\"" - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "UUID" : "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0", - "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" - } - }, { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "UUID" : "bc8ee312-81ce-3c4a-92d5-4a73b8077148", - "description" : "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "UUID" : "0589ff20-adcc-3ce5-95fe-8d7978ed54ed", - "description" : "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "UUID" : "095b126d-ca8b-32c9-ad52-d744e817a79c", - "description" : "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "UUID" : "3d786b4c-d9ee-3367-ab71-c67271a4ea2f", - "description" : "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "UUID" : "9231753e-20c5-3436-982f-9100340cc570", - "description" : "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "UUID" : "502383d3-483f-3a56-a426-2f0406674c8d", - "description" : "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "UUID" : "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf", - "description" : "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "UUID" : "ad3a89f5-e369-3c66-b22c-669f7b3653b8", - "description" : "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "UUID" : "56815939-1164-3867-9ed1-0a27ff8aafb3", - "description" : "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "UUID" : "0db0c566-ecd7-3e27-9865-4b82c893abdb", - "description" : "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "UUID" : "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0", - "description" : "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "UUID" : "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a", - "description" : "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "UUID" : "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66", - "description" : "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "UUID" : "051bcfd5-cf73-3c89-8ee7-ea6e005ec059", - "description" : "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "UUID" : "3754fe19-98f2-34a1-9f45-db31052208d8", - "description" : "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "UUID" : "8c200709-a180-3c8b-916f-275ff49ce194", - "description" : "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "UUID" : "a1a879c6-4510-33b0-bbd0-ad6256189a37", - "description" : "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" - } - }, { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "UUID" : "a7fab96b-ce1c-37ce-bbb2-556b6db524a5", - "description" : "Generated description for concept referred to by key \"Tasks:0.0.1\"" - } - }, { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "UUID" : "0a652886-c88d-3f8c-8994-ae9161e7c963", - "description" : "Generated description for concept referred to by key \"TestCase:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "UUID" : "8efba9fa-371e-33df-a7d6-88b0284e7fd0", - "description" : "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "UUID" : "3740077c-a2b3-356b-81dc-5ded2118a951", - "description" : "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "UUID" : "b5c7df95-9af5-322f-9ea8-eb440a2bf926", - "description" : "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "UUID" : "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b", - "description" : "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "UUID" : "093cda11-eaeb-3a46-a5b6-d5e30c00935b", - "description" : "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "UUID" : "569a758d-ba40-37c0-aebb-7ad138df25ac", - "description" : "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "UUID" : "252818d9-b61f-3962-a905-8865fb00fb04", - "description" : "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "UUID" : "fe1a5f7c-c083-377b-a797-752b01fc6c73", - "description" : "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "UUID" : "aa87d007-d07e-3f67-8c6d-0ebc3d85479d", - "description" : "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "UUID" : "126e7a3a-11b6-3f88-9397-c21d8819f859", - "description" : "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "UUID" : "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc", - "description" : "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "UUID" : "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6", - "description" : "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "UUID" : "32a2f355-77f3-3b25-ace6-7a9c5763a5ad", - "description" : "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" - } - }, { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "UUID" : "3f95472c-973e-30e2-95f1-bf00cbef909a", - "description" : "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "UUID" : "610dbbd4-9149-3b3c-9af4-819056f0e169", - "description" : "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "UUID" : "07fa8f68-55f1-3fd0-81c1-749a379753a7", - "description" : "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "UUID" : "d9c93cd1-539e-35c5-aaec-bb711ceb1251", - "description" : "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "UUID" : "683fe492-7eae-3ac7-9924-bb7850208d05", - "description" : "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "UUID" : "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0", - "description" : "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "UUID" : "97b73937-c344-33c0-924c-4d26b6449564", - "description" : "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" - } - } ] - } - }, - "policies" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" - }, - "policyMap" : { - "entry" : [ { - "key" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy0", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - }, { - "key" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "value" : { - "policyKey" : { - "name" : "Policy1", - "version" : "0.0.1" - }, - "template" : "MEDA", - "state" : { - "entry" : [ { - "key" : "Act", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - }, - "trigger" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Act_NULL", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - }, - "outgoingEvent" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "NULL", - "parentKeyVersion" : "0.0.0", - "parentLocalName" : "NULL", - "localName" : "NULL" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act0_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act1_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act2_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Task_Act3_DIRECT_Act_NULL" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Act", - "localName" : "Act_NULL" - } - } - } ] - } - } - }, { - "key" : "Decide", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - }, - "trigger" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Decide_Act", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - }, - "outgoingEvent" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Act" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide0_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide1_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide2_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Task_Decide3_DIRECT_Decide_Act" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Decide", - "localName" : "Decide_Act" - } - } - } ] - } - } - }, { - "key" : "Establish", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - }, - "trigger" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Establish_Decide", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - }, - "outgoingEvent" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Decide" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish0_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish1_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish2_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Task_Establish3_DIRECT_Establish_Decide" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Establish", - "localName" : "Establish_Decide" - } - } - } ] - } - } - }, { - "key" : "Match", - "value" : { - "stateKey" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Match" - }, - "trigger" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "stateOutputs" : { - "entry" : [ { - "key" : "Match_Establish", - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - }, - "outgoingEvent" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nextState" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Establish" - } - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskSelectionLogic" : { - "key" : "TaskSelectionLigic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" - }, - "stateFinalizerLogicMap" : { - "entry" : [ ] - }, - "defaultTask" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "taskReferences" : { - "entry" : [ { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match0_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match1_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match2_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Task_Match3_DIRECT_Match_Establish" - }, - "outputType" : "DIRECT", - "output" : { - "parentKeyName" : "Policy1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "Match", - "localName" : "Match_Establish" - } - } - } ] - } - } - } ] - }, - "firstState" : "Match" - } - } ] - } - }, - "tasks" : { - "key" : { - "name" : "Tasks", - "version" : "0.0.1" - }, - "taskMap" : { - "entry" : [ { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Act0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Act1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Act3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Act3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Decide3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Decide3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Establish3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Establish3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match0", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - }, { - "key" : "Parameter2", - "value" : { - "key" : { - "parentKeyName" : "Task_Match0", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter2" - }, - "defaultValue" : "DefaultValue2" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match1", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - }, { - "key" : "Parameter1", - "value" : { - "key" : { - "parentKeyName" : "Task_Match1", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter1" - }, - "defaultValue" : "DefaultValue1" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match2", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match2", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - }, { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Task_Match3", - "version" : "0.0.1" - }, - "inputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "outputFields" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - }, - "taskParameters" : { - "entry" : [ { - "key" : "Parameter0", - "value" : { - "key" : { - "parentKeyName" : "Task_Match3", - "parentKeyVersion" : "0.0.1", - "parentLocalName" : "NULL", - "localName" : "Parameter0" - }, - "defaultValue" : "DefaultValue0" - } - } ] - }, - "contextAlbumReference" : [ { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - } ], - "taskLogic" : { - "key" : "_TaskLogic", - "logicFlavour" : "JAVASCRIPT", - "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" - } - } - } ] - } - }, - "events" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" - }, - "eventMap" : { - "entry" : [ { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0000", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0001", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0002", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0003", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0004", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0100", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Outside", - "target" : "Match", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0101", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Match", - "target" : "Establish", - "parameter" : { - "entry" : [ { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0102", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Establish", - "target" : "Decide", - "parameter" : { - "entry" : [ { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0103", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Decide", - "target" : "Act", - "parameter" : { - "entry" : [ { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - }, { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Event0104", - "version" : "0.0.1" - }, - "nameSpace" : "org.onap.policy.apex.sample.events", - "source" : "Act", - "target" : "Outside", - "parameter" : { - "entry" : [ { - "key" : "TestActCaseSelected", - "value" : { - "key" : "TestActCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestActStateTime", - "value" : { - "key" : "TestActStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideCaseSelected", - "value" : { - "key" : "TestDecideCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestDecideStateTime", - "value" : { - "key" : "TestDecideStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishCaseSelected", - "value" : { - "key" : "TestEstablishCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestEstablishStateTime", - "value" : { - "key" : "TestEstablishStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCase", - "value" : { - "key" : "TestMatchCase", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchCaseSelected", - "value" : { - "key" : "TestMatchCaseSelected", - "fieldSchemaKey" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestMatchStateTime", - "value" : { - "key" : "TestMatchStateTime", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestSlogan", - "value" : { - "key" : "TestSlogan", - "fieldSchemaKey" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTemperature", - "value" : { - "key" : "TestTemperature", - "fieldSchemaKey" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "optional" : false - } - }, { - "key" : "TestTimestamp", - "value" : { - "key" : "TestTimestamp", - "fieldSchemaKey" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "optional" : false - } - } ] - } - } - } ] - } - }, - "albums" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" - }, - "albums" : { - "entry" : [ { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "ExternalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "EXTERNAL", - "isWritable" : false, - "itemSchema" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "GlobalContextAlbum", - "version" : "0.0.1" - }, - "scope" : "GLOBAL", - "isWritable" : true, - "itemSchema" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy0ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - }, { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "Policy1ContextAlbum", - "version" : "0.0.1" - }, - "scope" : "APPLICATION", - "isWritable" : true, - "itemSchema" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - } - } - } ] - } - }, - "schemas" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" - }, - "schemas" : { - "entry" : [ { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestCase", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Byte" - } - }, { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem000", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem000" - } - }, { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem001", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem001" - } - }, { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem002", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem002" - } - }, { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem003", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem003" - } - }, { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem004", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem004" - } - }, { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem005", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem005" - } - }, { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem006", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem006" - } - }, { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem007", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem007" - } - }, { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem008", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem008" - } - }, { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem009", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem009" - } - }, { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00A", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00A" - } - }, { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00B", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00B" - } - }, { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestContextItem00C", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00C" - } - }, { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestExternalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" - } - }, { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestGlobalContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" - } - }, { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestPolicyContextItem", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" - } - }, { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" - } - }, { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" - } - }, { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" - } - } ] - } - } - } -} \ No newline at end of file -- cgit 1.2.3-korg