diff options
Diffstat (limited to 'tests/policy')
35 files changed, 7793 insertions, 7428 deletions
diff --git a/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.json b/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.json index 810d970d..ba62a171 100644 --- a/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.json +++ b/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.json @@ -1,5 +1,5 @@ { - "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", "policy_types": { "onap.policies.controlloop.operational.Apex": { "version": "1.0.0", @@ -50,17 +50,17 @@ "default": "1.0.0" }, "id": { - "type": "int", + "type": "integer", "description": "Specifies the engine id", "required": true }, "instance_count": { - "type": "int", + "type": "integer", "description": "Specifies the number of engine threads that should be run", "required": true }, "deployment_port": { - "type": "int", + "type": "integer", "description": "Specifies the port to connect to for engine administration", "required": false, "default": 1 @@ -68,14 +68,12 @@ "policy_model_file_name": { "type": "string", "description": "The name of the file from which to read the APEX policy model", - "required": false, - "default": "" + "required": false }, "policy_type_impl": { "type": "string", "description": "The policy type implementation from which to read the APEX policy model", - "required": false, - "default": "" + "required": false }, "periodic_event_period": { "type": "string", @@ -119,7 +117,7 @@ "required": false }, "synchronous_mode": { - "type": "bool", + "type": "boolean", "description": "Specifies the event handler is syncronous (receive event and send response)", "required": false, "default": false @@ -127,17 +125,15 @@ "synchronous_peer": { "type": "string", "description": "The peer event handler (output for input or input for output) of this event handler in synchronous mode, this parameter is mandatory if the event handler is in synchronous mode", - "required": false, - "default": "" + "required": false }, "synchronous_timeout": { - "type": "int", + "type": "integer", "description": "The timeout in milliseconds for responses to be issued by APEX torequests, this parameter is mandatory if the event handler is in synchronous mode", - "required": false, - "default": "" + "required": false }, "requestor_mode": { - "type": "bool", + "type": "boolean", "description": "Specifies the event handler is in requestor mode (send event and wait for response mode)", "required": false, "default": false @@ -145,14 +141,12 @@ "requestor_peer": { "type": "string", "description": "The peer event handler (output for input or input for output) of this event handler in requestor mode, this parameter is mandatory if the event handler is in requestor mode", - "required": false, - "default": "" + "required": false }, "requestor_timeout": { - "type": "int", + "type": "integer", "description": "The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode", - "required": false, - "default": "" + "required": false } } }, @@ -186,7 +180,7 @@ } } }, - "onap.datatypes.policies.controlloop.operational.apex.Environmental": { + "onap.datatypes.policies.controlloop.operational.apex.Environment": { "derived_from": "tosca.datatypes.Root", "properties": { "name": { @@ -237,7 +231,7 @@ } }, "locking": { - "type": "onap.datatypes.policies.controlloop.operational.apex.plugin", + "type": "onap.datatypes.policies.controlloop.operational.apex.Plugin", "description": "The plugin to be used for locking context in and between APEX PDPs at runtime", "required": false }, @@ -263,4 +257,4 @@ } } } -}
\ No newline at end of file +} diff --git a/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json b/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json index 0a87dd90..07118ac3 100644 --- a/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json +++ b/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json @@ -1,6747 +1,7432 @@ { - "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", "topology_template": { "policies": [ { "operational.sampledomain": { "type": "onap.policies.controlloop.operational.Apex", "type_version": "1.0.0", - "derived_from": "tosca.policies.Root", "name": "onap.policies.controlloop.Operational.apex.sampledomain", "version": "1.0.0", "properties": { - "content": { - "engineServiceParameters": { - "name": "MyApexEngine", - "version": "0.0.1", - "id": 45, - "instanceCount": 4, - "deploymentPort": 12561, - "policy_type_impl": { - "apexPolicyModel" : { - "key" : { - "name" : "SamplePolicyModelJAVASCRIPT", - "version" : "0.0.1" - }, - "keyInformation" : { - "key" : { - "name" : "KeyInformation", - "version" : "0.0.1" + "engineServiceParameters": { + "name": "MyApexEngine", + "version": "0.0.1", + "id": 45, + "instanceCount": 4, + "deploymentPort": 12561, + "policy_type_impl": { + "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" }, - "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\"" - } - } ] + "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\"" } - }, - "policies" : { - "key" : { - "name" : "Policies", - "version" : "0.0.1" + }, + { + "key": { + "name": "Event0000", + "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" - } - } - } ] + "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" } - } - }, { - "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" - } - } - } ] + } + } + ] + }, + "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\ntrue;" + }, + "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" : "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": { + "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" : "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" - } - } - } ] + } + }, + { + "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\ntrue;" + }, + "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" } - } - } ] - }, - "firstState" : "Match" + } + }, + { + "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\ntrue;" + }, + "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\ntrue;" + }, + "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" + } + } + } + ] + } + } } - }, { - "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" - } - } - } ] + ] + }, + "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" } - } - }, { - "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" - } - } - } ] + } + } + ] + }, + "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\ntrue;" + }, + "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" : "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": { + "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" : "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" - } - } - } ] + } + }, + { + "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\ntrue;" + }, + "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\ntrue;" + }, + "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\ntrue;" + }, + "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" } - } - } ] - }, - "firstState" : "Match" + } + }, + { + "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" + } + ] + } + }, + "tasks": { + "key": { + "name": "Tasks", + "version": "0.0.1" + }, + "taskMap": { + "entry": [ + { + "key": { + "name": "Task_Act0", + "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;" - } + "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 + } } - }, { - "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;" - } + ] + }, + "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 + } } - }, { - "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;" - } + ] + }, + "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" + } } - }, { - "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;" - } + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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 + } } - }, { - "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;" - } + ] + }, + "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 + } } - }, { - "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;" - } + ] + }, + "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" + } } - }, { - "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;" - } + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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 + } } - }, { - "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;" - } + ] + }, + "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 + } } - }, { - "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;" - } + ] + }, + "taskParameters": { + "entry": [ + { + "key": "Parameter0", + "value": { + "key": { + "parentKeyName": "Task_Act2", + "parentKeyVersion": "0.0.1", + "parentLocalName": "NULL", + "localName": "Parameter0" + }, + "defaultValue": "DefaultValue0" + } } - }, { - "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;" - } + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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 + } } - }, { - "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;" - } + ] + }, + "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 + } } - }, { - "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;" - } + ] + }, + "taskParameters": { + "entry": [ + { + "key": "Parameter0", + "value": { + "key": { + "parentKeyName": "Task_Act3", + "parentKeyVersion": "0.0.1", + "parentLocalName": "NULL", + "localName": "Parameter0" + }, + "defaultValue": "DefaultValue0" + } } - }, { - "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;" - } + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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 + } } - }, { - "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;" - } + ] + }, + "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 + } } - }, { - "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;" - } + ] + }, + "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" + } } - }, { - "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;" - } + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } } - }, - "events" : { - "key" : { - "name" : "Events", - "version" : "0.0.1" + }, + { + "key": { + "name": "Task_Decide2", + "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 - } - } ] - } + "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 + } } - }, { - "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 - } - } ] - } + ] + }, + "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 + } } - }, { - "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 - } - } ] - } + ] + }, + "taskParameters": { + "entry": [ + { + "key": "Parameter0", + "value": { + "key": { + "parentKeyName": "Task_Decide2", + "parentKeyVersion": "0.0.1", + "parentLocalName": "NULL", + "localName": "Parameter0" + }, + "defaultValue": "DefaultValue0" + } } - }, { - "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 - } - } ] - } + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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 + } } - }, { - "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 - } - } ] - } + ] + }, + "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 + } } - }, { - "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 - } - } ] - } + ] + }, + "taskParameters": { + "entry": [ + { + "key": "Parameter0", + "value": { + "key": { + "parentKeyName": "Task_Decide3", + "parentKeyVersion": "0.0.1", + "parentLocalName": "NULL", + "localName": "Parameter0" + }, + "defaultValue": "DefaultValue0" + } } - }, { - "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 - } - } ] - } + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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 + } } - }, { - "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 - } - } ] - } + ] + }, + "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 + } } - }, { - "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 - } - } ] - } + ] + }, + "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" + } } - }, { - "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 - } - } ] - } + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } } - }, - "albums" : { - "key" : { - "name" : "Context", - "version" : "0.0.1" + }, + { + "key": { + "name": "Task_Establish2", + "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" - } + "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 + } } - }, { - "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" - } + ] + }, + "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 + } } - }, { - "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" - } + ] + }, + "taskParameters": { + "entry": [ + { + "key": "Parameter0", + "value": { + "key": { + "parentKeyName": "Task_Establish2", + "parentKeyVersion": "0.0.1", + "parentLocalName": "NULL", + "localName": "Parameter0" + }, + "defaultValue": "DefaultValue0" + } } - }, { - "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" - } + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } } - }, - "schemas" : { - "key" : { - "name" : "TestDatatypes", - "version" : "0.0.1" + }, + { + "key": { + "name": "Task_Match0", + "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" + "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 + } } - }, { - "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" + ] + }, + "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" + } } - }, { - "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" + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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 + } } - }, { - "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" + ] + }, + "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 + } } - }, { - "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" + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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 + } } - }, { - "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" + ] + }, + "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 + } } - }, { - "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" + ] + }, + "taskParameters": { + "entry": [ + { + "key": "Parameter0", + "value": { + "key": { + "parentKeyName": "Task_Match2", + "parentKeyVersion": "0.0.1", + "parentLocalName": "NULL", + "localName": "Parameter0" + }, + "defaultValue": "DefaultValue0" + } } - }, { - "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" + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + }, + { + "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 + } } - }, { - "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" + ] + }, + "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 + } } - }, { - "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" + ] + }, + "taskParameters": { + "entry": [ + { + "key": "Parameter0", + "value": { + "key": { + "parentKeyName": "Task_Match3", + "parentKeyVersion": "0.0.1", + "parentLocalName": "NULL", + "localName": "Parameter0" + }, + "defaultValue": "DefaultValue0" + } } - }, { - "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" + ] + }, + "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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;" + } + } + } + ] + } + }, + "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" : "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": "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" : "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": "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" : "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": "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" : "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": "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" : "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": "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" : "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": "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" : "TestSlogan", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestSlogan", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.String" + ] + } + } + }, + { + "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" : "TestTemperature", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTemperature", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Double" + ] + } + } + }, + { + "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" : "TestTimestamp", - "version" : "0.0.1" - }, - "value" : { - "key" : { - "name" : "TestTimestamp", - "version" : "0.0.1" - }, - "schemaFlavour" : "Java", - "schemaDefinition" : "java.lang.Long" + ] + } + } + }, + { + "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 + } } - } ] + ] + } } - } - } - }, - "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" + "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" + } + } + } + ] + } }, - "synchronousMode": true, - "synchronousPeer": "FirstProducer", - "synchronousTimeout": 2000 + "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" + } + } + ] + } + } } }, - "eventOutputParameters": { - "FirstProducer": { - "carrierTechnologyParameters": { - "carrierTechnology": "RESTSERVER", - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters" - }, - "eventProtocolParameters": { - "eventProtocol": "JSON" - }, - "synchronousMode": true, - "synchronousPeer": "FirstConsumer", - "synchronousTimeout": 2000 + "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/tests/policy/api/api-test.robot b/tests/policy/api/api-test.robot index 7f108d01..76c1bdc6 100644 --- a/tests/policy/api/api-test.robot +++ b/tests/policy/api/api-test.robot @@ -7,7 +7,7 @@ Library json *** Test Cases *** Healthcheck [Documentation] Runs Policy Api Health check - ${auth}= Create List healthcheck zb!XztG34 + ${auth}= Create List healthcheck zb!XztG34 Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json @@ -18,7 +18,7 @@ Healthcheck Statistics [Documentation] Runs Policy Api Statistics - ${auth}= Create List healthcheck zb!XztG34 + ${auth}= Create List healthcheck zb!XztG34 Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json @@ -29,7 +29,7 @@ Statistics RetrievePolicyTypes [Documentation] Gets Policy Types - ${auth}= Create List healthcheck zb!XztG34 + ${auth}= Create List healthcheck zb!XztG34 Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json @@ -38,10 +38,21 @@ RetrievePolicyTypes Should Be Equal As Strings ${resp.status_code} 200 Should Be Equal As Strings ${resp.json()['version']} 1.0.0 -CreateTCAPolicyType - [Documentation] Create TCA Policy Type - ${auth}= Create List healthcheck zb!XztG34 - ${postjson}= Get file ${CURDIR}/data/onap.policy.monitoring.cdap.tca.hi.lo.app.json +CreateTCAPolicyTypeV1 + [Documentation] Create TCA Policy Type Version 1. Trying to create an existing policy type with any change and same version should cause error. + ${auth}= Create List healthcheck zb!XztG34 + ${postjson}= Get file ${CURDIR}/data/onap.policy.monitoring.cdap.tca.hi.lo.app.v1.json + Log Creating session https://${POLICY_API_IP}:6969 + ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Post Request policy /policy/api/v1/policytypes data=${postjson} headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 406 + +CreateTCAPolicyTypeV2 + [Documentation] Create TCA Policy Type Version 2 + ${auth}= Create List healthcheck zb!XztG34 + ${postjson}= Get file ${CURDIR}/data/onap.policy.monitoring.cdap.tca.hi.lo.app.v2.json Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json @@ -49,12 +60,12 @@ CreateTCAPolicyType Log Received response from policy ${resp.text} Should Be Equal As Strings ${resp.status_code} 200 ${postjsonobject} To Json ${postjson} - Dictionary Should Contain Key ${resp.json()} tosca_definitions_version - Dictionary Should Contain Key ${postjsonobject} tosca_definitions_version + Dictionary Should Contain Key ${resp.json()} tosca_definitions_version + Dictionary Should Contain Key ${postjsonobject} tosca_definitions_version RetrieveMonitoringPolicyTypes [Documentation] Retrieve Monitoring related Policy Types - ${auth}= Create List healthcheck zb!XztG34 + ${auth}= Create List healthcheck zb!XztG34 Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json @@ -64,10 +75,10 @@ RetrieveMonitoringPolicyTypes List Should Contain Value ${resp.json()['policy_types']} onap.policies.Monitoring -CreateNewMonitoringPolicy - [Documentation] Create a new Monitoring TCA policy - ${auth}= Create List healthcheck zb!XztG34 - ${postjson}= Get file ${CURDIR}/data/vCPE.policy.monitoring.input.tosca.json +CreateNewMonitoringPolicyV1 + [Documentation] Create a new Monitoring TCA policy version 1 + ${auth}= Create List healthcheck zb!XztG34 + ${postjson}= Get file ${CURDIR}/data/vCPE.policy.monitoring.input.tosca.v1.json Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json @@ -78,10 +89,21 @@ CreateNewMonitoringPolicy Dictionary Should Contain Key ${resp.json()['topology_template']['policies'][0]} onap.restart.tca Dictionary Should Contain Key ${postjsonobject['topology_template']['policies'][0]} onap.restart.tca -SimpleCreateNewMonitoringPolicy - [Documentation] Create a new Monitoring TCA policiy using simple endpoint - ${auth}= Create List healthcheck zb!XztG34 - ${postjson}= Get file ${CURDIR}/data/vCPE.policy.monitoring.input.tosca.json +SimpleCreateNewMonitoringPolicyV1 + [Documentation] Create a new Monitoring TCA policiy version 1 using simple endpoint. Trying to create an existing policy with any change and same version should cause error. + ${auth}= Create List healthcheck zb!XztG34 + ${postjson}= Get file ${CURDIR}/data/vCPE.policy.monitoring.input.tosca.v1_2.json + Log Creating session https://${POLICY_API_IP}:6969 + ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Post Request policy /policy/api/v1/policies data=${postjson} headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 406 + +SimpleCreateNewMonitoringPolicyV2 + [Documentation] Create a new Monitoring TCA policiy version 2 using simple endpoint + ${auth}= Create List healthcheck zb!XztG34 + ${postjson}= Get file ${CURDIR}/data/vCPE.policy.monitoring.input.tosca.v2.json Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json @@ -95,7 +117,7 @@ SimpleCreateNewMonitoringPolicy RetrievePoliciesOfType [Documentation] Retrieve all Policies Created for a specific Policy Type ${auth}= Create List healthcheck zb!XztG34 - ${expjson}= Get file ${CURDIR}/data/vCPE.policy.monitoring.input.tosca.json + ${expjson}= Get file ${CURDIR}/data/vCPE.policy.monitoring.input.tosca.v1.json Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json @@ -106,8 +128,8 @@ RetrievePoliciesOfType Dictionary Should Contain Key ${resp.json()['topology_template']['policies'][0]} onap.restart.tca Dictionary Should Contain Key ${expjsonobject['topology_template']['policies'][0]} onap.restart.tca -DeleteSpecificPolicy - [Documentation] Delete Policy of a Type +DeleteSpecificPolicyV1 + [Documentation] Delete the Monitoring Policy Version 1 of the TCA Policy Type ${auth}= Create List healthcheck zb!XztG34 Log Creating session https://${POLICY_API_IP}:6969 ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} @@ -117,3 +139,39 @@ DeleteSpecificPolicy Should Be Equal As Strings ${resp.status_code} 200 ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.restart.tca/versions/1.0.0 headers=${headers} Should Be Equal As Strings ${resp.status_code} 404 + +DeleteSpecificPolicyV2 + [Documentation] Delete the Monitoring Policy Version 2 of the TCA Policy Type + ${auth}= Create List healthcheck zb!XztG34 + Log Creating session https://${POLICY_API_IP}:6969 + ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.restart.tca/versions/2.0.0 headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0/policies/onap.restart.tca/versions/2.0.0 headers=${headers} + Should Be Equal As Strings ${resp.status_code} 404 + +DeleteSpecificPolicyTypeV1 + [Documentation] Delete the TCA Policy Type Version 1 + ${auth}= Create List healthcheck zb!XztG34 + Log Creating session https://${POLICY_API_IP}:6969 + ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0 headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/1.0.0 headers=${headers} + Should Be Equal As Strings ${resp.status_code} 404 + +DeleteSpecificPolicyTypeV2 + [Documentation] Delete the TCA Policy Type Version 2 + ${auth}= Create List healthcheck zb!XztG34 + Log Creating session https://${POLICY_API_IP}:6969 + ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0 headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + ${resp}= Delete Request policy /policy/api/v1/policytypes/onap.policies.monitoring.cdap.tca.hi.lo.app/versions/2.0.0 headers=${headers} + Should Be Equal As Strings ${resp.status_code} 404 diff --git a/tests/policy/api/data/onap.policy.monitoring.cdap.tca.hi.lo.app.json b/tests/policy/api/data/onap.policy.monitoring.cdap.tca.hi.lo.app.v1.json index f06247d7..15c20458 100644 --- a/tests/policy/api/data/onap.policy.monitoring.cdap.tca.hi.lo.app.json +++ b/tests/policy/api/data/onap.policy.monitoring.cdap.tca.hi.lo.app.v1.json @@ -1,8 +1,9 @@ { - "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", "policy_types": { "onap.policies.Monitoring": { "derived_from": "tosca.policies.Root", + "version": "1.0.0", "description": "a base policy type for all policies that governs monitoring provisioning" }, "onap.policies.monitoring.cdap.tca.hi.lo.app": { @@ -10,11 +11,8 @@ "version": "1.0.0", "properties": { "tca_policy": { - "type": "map", - "description": "TCA Policy JSON", - "entry_schema": { - "type": "onap.datatypes.monitoring.tca_policy" - } + "type": "onap.datatypes.monitoring.tca_policy", + "description": "TCA Policy JSON" } } } @@ -210,4 +208,4 @@ } } } -}
\ No newline at end of file +} diff --git a/tests/policy/api/data/onap.policy.monitoring.cdap.tca.hi.lo.app.v2.json b/tests/policy/api/data/onap.policy.monitoring.cdap.tca.hi.lo.app.v2.json new file mode 100644 index 00000000..a7a801a8 --- /dev/null +++ b/tests/policy/api/data/onap.policy.monitoring.cdap.tca.hi.lo.app.v2.json @@ -0,0 +1,206 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "policy_types": { + "onap.policies.monitoring.cdap.tca.hi.lo.app": { + "derived_from": "onap.policies.Monitoring", + "version": "2.0.0", + "properties": { + "tca_policy": { + "type": "onap.datatypes.monitoring.tca_policy", + "description": "TCA Policy JSON" + } + } + } + }, + "data_types": { + "onap.datatypes.monitoring.metricsPerEventName": { + "derived_from": "tosca.datatypes.Root", + "properties": { + "controlLoopSchemaType": { + "type": "string", + "required": true, + "description": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM", + "constraints": [ + { + "valid_values": [ + "VM", + "VNF" + ] + } + ] + }, + "eventName": { + "type": "string", + "required": true, + "description": "Event name to which thresholds need to be applied" + }, + "policyName": { + "type": "string", + "required": true, + "description": "TCA Policy Scope Name" + }, + "policyScope": { + "type": "string", + "required": true, + "description": "TCA Policy Scope" + }, + "policyVersion": { + "type": "string", + "required": true, + "description": "TCA Policy Scope Version" + }, + "thresholds": { + "type": "list", + "required": true, + "description": "Thresholds associated with eventName", + "entry_schema": { + "type": "onap.datatypes.monitoring.thresholds" + } + } + } + }, + "onap.datatypes.monitoring.tca_policy": { + "derived_from": "tosca.datatypes.Root", + "properties": { + "domain": { + "type": "string", + "required": true, + "description": "Domain name to which TCA needs to be applied", + "default": "measurementsForVfScaling", + "constraints": [ + { + "equal": "measurementsForVfScaling" + } + ] + }, + "metricsPerEventName": { + "type": "list", + "required": true, + "description": "Contains eventName and threshold details that need to be applied to given eventName", + "entry_schema": { + "type": "onap.datatypes.monitoring.metricsPerEventName" + } + } + } + }, + "onap.datatypes.monitoring.thresholds": { + "derived_from": "tosca.datatypes.Root", + "properties": { + "closedLoopControlName": { + "type": "string", + "required": true, + "description": "Closed Loop Control Name associated with the threshold" + }, + "closedLoopEventStatus": { + "type": "string", + "required": true, + "description": "Closed Loop Event Status of the threshold", + "constraints": [ + { + "valid_values": [ + "ONSET", + "ABATED" + ] + } + ] + }, + "direction": { + "type": "string", + "required": true, + "description": "Direction of the threshold", + "constraints": [ + { + "valid_values": [ + "LESS", + "LESS_OR_EQUAL", + "GREATER", + "GREATER_OR_EQUAL", + "EQUAL" + ] + } + ] + }, + "fieldPath": { + "type": "string", + "required": true, + "description": "Json field Path as per CEF message which needs to be analyzed for TCA", + "constraints": [ + { + "valid_values": [ + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated", + "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated", + "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle", + "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt", + "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice", + "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq", + "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal", + "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem", + "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait", + "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage", + "$.event.measurementsForVfScalingFields.meanRequestLatency", + "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered", + "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached", + "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured", + "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree", + "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed", + "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value" + ] + } + ] + }, + "severity": { + "type": "string", + "required": true, + "description": "Threshold Event Severity", + "constraints": [ + { + "valid_values": [ + "CRITICAL", + "MAJOR", + "MINOR", + "WARNING", + "NORMAL" + ] + } + ] + }, + "thresholdValue": { + "type": "integer", + "required": true, + "description": "Threshold value for the field Path inside CEF message" + }, + "version": { + "type": "string", + "required": true, + "description": "Version number associated with the threshold" + } + } + } + } +} diff --git a/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.json b/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.v1.json index a8ffe520..1079c7c1 100644 --- a/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.json +++ b/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.v1.json @@ -1,12 +1,12 @@ { - "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", "topology_template": { "policies": [ { "onap.restart.tca": { "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", "version": "1.0.0", - "type_version": "1.0.0", + "type_version": "1.0.0", "metadata": { "policy-id": "onap.restart.tca" }, diff --git a/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.v1_2.json b/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.v1_2.json new file mode 100644 index 00000000..35ad3c54 --- /dev/null +++ b/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.v1_2.json @@ -0,0 +1,52 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "topology_template": { + "policies": [ + { + "onap.restart.tca": { + "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", + "version": "1.0.0", + "type_version": "1.0.0", + "description": "monitoring policy", + "metadata": { + "policy-id": "onap.restart.tca" + }, + "properties": { + "tca_policy" : { + "domain": "measurementsForVfScaling", + "metricsPerEventName": [ + { + "eventName": "Measurement_vGMUX", + "controlLoopSchemaType": "VNF", + "policyScope": "DCAE", + "policyName": "DCAE.Config_tca-hi-lo", + "policyVersion": "v0.0.1", + "thresholds": [ + { + "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", + "version": "1.0.2", + "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", + "thresholdValue": 0, + "direction": "EQUAL", + "severity": "MAJOR", + "closedLoopEventStatus": "ABATED" + }, + { + "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", + "version": "1.0.2", + "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", + "thresholdValue": 0, + "direction": "GREATER", + "severity": "CRITICAL", + "closedLoopEventStatus": "ONSET" + } + ] + } + ] + } + } + } + } + ] + } +} diff --git a/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.v2.json b/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.v2.json new file mode 100644 index 00000000..c6b2ad2d --- /dev/null +++ b/tests/policy/api/data/vCPE.policy.monitoring.input.tosca.v2.json @@ -0,0 +1,51 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "topology_template": { + "policies": [ + { + "onap.restart.tca": { + "type": "onap.policies.monitoring.cdap.tca.hi.lo.app", + "version": "2.0.0", + "type_version": "1.0.0", + "metadata": { + "policy-id": "onap.restart.tca" + }, + "properties": { + "tca_policy" : { + "domain": "measurementsForVfScaling", + "metricsPerEventName": [ + { + "eventName": "Measurement_vGMUX", + "controlLoopSchemaType": "VNF", + "policyScope": "DCAE", + "policyName": "DCAE.Config_tca-hi-lo", + "policyVersion": "v0.0.1", + "thresholds": [ + { + "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", + "version": "1.0.2", + "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", + "thresholdValue": 0, + "direction": "EQUAL", + "severity": "MAJOR", + "closedLoopEventStatus": "ABATED" + }, + { + "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", + "version": "1.0.2", + "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", + "thresholdValue": 0, + "direction": "GREATER", + "severity": "CRITICAL", + "closedLoopEventStatus": "ONSET" + } + ] + } + ] + } + } + } + } + ] + } +} diff --git a/tests/policy/drools-applications/drools-applications-test.robot b/tests/policy/drools-applications/drools-applications-test.robot index cf4d3cea..0a41a6c5 100644 --- a/tests/policy/drools-applications/drools-applications-test.robot +++ b/tests/policy/drools-applications/drools-applications-test.robot @@ -15,3 +15,37 @@ Alive Log Received response from policy ${resp.text} Should Be Equal As Strings ${resp.status_code} 200 Should Be Equal As Strings ${resp.json()['alive']} True + +Healthcheck + [Documentation] Runs Policy PDP-D Health check + ${auth}= Create List demo@people.osaaf.org demo123456! + Log Creating session https://${POLICY_DROOLS_IP}:6969/healthcheck + ${session}= Create Session policy https://${POLICY_DROOLS_IP}:6969 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Get Request policy /healthcheck headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.json()['healthy']} True + +Frankfurt + [Documentation] Checks frankfurt controller is up + ${auth}= Create List demo@people.osaaf.org demo123456! + Log Creating session https://${POLICY_DROOLS_IP}:9696 + ${session}= Create Session policy https://${POLICY_DROOLS_IP}:9696 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Get Request policy /policy/pdp/engine/controllers/frankfurt/drools/facts headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.json()['frankfurt']} 0 + +Usecases + [Documentation] Checks usecases controller is up + ${auth}= Create List demo@people.osaaf.org demo123456! + Log Creating session https://${POLICY_DROOLS_IP}:9696 + ${session}= Create Session policy https://${POLICY_DROOLS_IP}:9696 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Get Request policy /policy/pdp/engine/controllers/usecases/drools/facts headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.json()['usecases']} 0 + diff --git a/tests/policy/drools-pdp/drools-pdp-test.robot b/tests/policy/drools-pdp/drools-pdp-test.robot index fdb46a92..cf4d3cea 100644 --- a/tests/policy/drools-pdp/drools-pdp-test.robot +++ b/tests/policy/drools-pdp/drools-pdp-test.robot @@ -8,8 +8,8 @@ Library json Alive [Documentation] Runs Policy PDP Alive Check ${auth}= Create List demo@people.osaaf.org demo123456! - Log Creating session https://${POLICY_IP}:9696 - ${session}= Create Session policy https://${POLICY_IP}:9696 auth=${auth} + Log Creating session https://${POLICY_DROOLS_IP}:9696 + ${session}= Create Session policy https://${POLICY_DROOLS_IP}:9696 auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= Get Request policy /policy/pdp/engine headers=${headers} Log Received response from policy ${resp.text} diff --git a/tests/policy/engine/Policy-CSIT.robot b/tests/policy/engine/Policy-CSIT.robot deleted file mode 100644 index e55ccac8..00000000 --- a/tests/policy/engine/Policy-CSIT.robot +++ /dev/null @@ -1,425 +0,0 @@ -*** Settings *** -Documentation Policy ONAP CSIT Test cases -Library String -Library HttpLibrary.HTTP -LIbrary Process -Library BuiltIn -Library ONAPLibrary.Templating -Resource policy_interface.robot - -*** Variables *** -${RESOURCE_PATH_CREATE} /pdp/api/createPolicy -${RESOURCE_PATH_CREATE_PUSH} /pdp/api/pushPolicy -${RESOURCE_PATH_CREATE_DELETE} /pdp/api/deletePolicy -${RESOURCE_PATH_GET_CONFIG} /pdp/api/getConfig -${RESOURCE_PATH_LISTPOLICY} /pdp/api/listPolicy -${CREATE_CONFIG_VFW_TEMPLATE} configpolicy_vFW_R1.jinja -${CREATE_CONFIG_VDNS_TEMPLATE} configpolicy_vDNS_R1.jinja -${CREATE_CONFIG_VCPE_TEMPLATE} configpolicy_vCPE_R1.jinja -${CREATE_OPS_VFW_TEMPLATE} opspolicy_VFW_R1.jinja -${CREATE_OOF_HPA_TEMPLATE} oofpolicy_HPA_R1.jinja -${CREATE_SDNC_VFW_TEMPLATE} sdncnamingpolicy_vFW.jinja -${CREATE_SDNC_VPG_TEMPLATE} sdncnamingpolicy_vPG.jinja -${PUSH_POLICY_TEMPLATE} pushpolicy.jinja -${MULTIPLE_PUSH_POLICY_TEMPLATE} multiple_pushpolicy.jinja -${MULTIPLE_UNPUSH_POLICY_TEMPLATE} multiple_unpushpolicy.jinja -${CREATE_OPS_VDNS_TEMPLATE} opspolicy_VDNS_R1.jinja -${DEL_POLICY_TEMPLATE} deletepolicy.jinja -${GETCONFIG_TEMPLATE} getconfigpolicy.jinja -${GETOOF_TEMPLATE} getoofpolicy.jinja -${LISTPOLICY_TEMPLATE} listpolicy.jinja -${CONFIG_POLICY_VFW_NAME} vFirewall -${CONFIG_POLICY_VFW_TYPE} MicroService -${CONFIG_POLICY_VDNS_NAME} vLoadBalancer -${CONFIG_POLICY_VDNS_TYPE} MicroService -${OPS_POLICY_VFW_NAME} vFirewall -${OPS_POLICY_VFW_TYPE} BRMS_PARAM -${OPS_POLICY_VDNS_NAME} vLoadBalancer -${OPS_POLICY_VDNS_TYPE} BRMS_PARAM -${CONFIG_POLICY_VCPE_NAME} vCPE -${CONFIG_POLICY_VCPE_TYPE} MicroService -${OPS_POLICY_VCPE_NAME} vCPE -${OPS_POLICY_VCPE_TYPE} BRMS_PARAM -${OPS_POLICY_VOLTE_NAME} VoLTE -${OPS_POLICY_VOLTE_TYPE} BRMS_PARAM -${OOF_POLICY_HPA_NAME} HPA -${OOF_POLICY_HPA_TYPE} Optimization -${SDNC_POLICY_VFW_NAME} ONAP_vFW_Naming -${SDNC_POLICY_VPG_NAME} ONAP_vPG_Naming -${MULTIPLE_PUSH_POLICY_NAME1} com.testBase1 -${MULTIPLE_PUSH_POLICY_NAME2} com.testBase2 -${MULTIPLE_PUSH_POLICY_NAME3} com.testBase3 -${file_path} ../testsuite/robot/assets/templates/ControlLoopDemo__closedLoopControlName.drl -${RESOURCE_PATH_UPLOAD} /pdp/api/policyEngineImport?importParametersJson=%7B%22serviceName%22%3A%22Manyu456%22%2C%20%22serviceType%22%3A%22BRMSPARAM%22%7D -${CREATE_OPS_VCPE_TEMPLATE} opspolicy_vCPE_R1.jinja -${CREATE_OPS_VOLTE_TEMPLATE} opspolicy_vOLTE_R1.jinja - - -*** Test Cases *** -Policy Health check - Run Policy Health Check - -VFW Config Policy - ${CONFIG_POLICY_VFW_NAME}= Create Config VFW Policy - Push Config Policy ${CONFIG_POLICY_VFW_NAME} ${CONFIG_POLICY_VFW_TYPE} - #VFW Policy Tests - -VDNS Config Policy - ${CONFIG_POLICY_VDNS_NAME}= Create Config VDNS Policy - Push Config Policy ${CONFIG_POLICY_VDNS_NAME} ${CONFIG_POLICY_VDNS_TYPE} - #VDNS Policy Tests - -VCPE Config Policy - ${CONFIG_POLICY_VCPE_NAME}= Create Config VCPE Policy - Push Config Policy ${CONFIG_POLICY_VCPE_NAME} ${CONFIG_POLICY_VCPE_TYPE} - #VCPE Policy Tests - -VFW Ops Policy - ${OPS_POLICY_VFW_NAME}= Create Ops VFW Policy - Push Ops Policy ${OPS_POLICY_VFW_NAME} ${OPS_POLICY_VFW_TYPE} - -VDNS Ops Policy - ${OPS_POLICY_VDNS_NAME}= Create Ops VDNS Policy - Push Ops Policy ${OPS_POLICY_VDNS_NAME} ${OPS_POLICY_VDNS_TYPE} - -VCPE Ops Policy - ${OPS_POLICY_VCPE_NAME}= Create Ops VCPE Policy - Push Ops Policy ${OPS_POLICY_VCPE_NAME} ${OPS_POLICY_VCPE_TYPE} - -VOLTE Ops Policy - ${OPS_POLICY_VOLTE_NAME}= Create Ops VOLTE Policy - Push Ops Policy ${OPS_POLICY_VOLTE_NAME} ${OPS_POLICY_VOLTE_TYPE} - #VOLTE Policy Tests - -VFW SDNC Naming Policy - ${SDNC_POLICY_VFW_NAME}= Create VFW SDNC Naming Policy - Push Config Policy ${SDNC_POLICY_VFW_NAME} ${CONFIG_POLICY_VFW_TYPE} - #VFW Policy Tests - -VPG SDNC Naming Policy - ${SDNC_POLICY_VPG_NAME}= Create VPG SDNC Naming Policy - Push Config Policy ${SDNC_POLICY_VPG_NAME} ${CONFIG_POLICY_VFW_TYPE} - #VPG Policy Tests - -HPA OOF Policy - ${OOF_POLICY_HPA_NAME}= Create OOF HPA Policy - Push Config Policy ${OOF_POLICY_HPA_NAME} ${OOF_POLICY_HPA_TYPE} - #HPA Policy Tests - -VFW Get Configs Policy - Sleep 5s - Get Configs VFW Policy - -VDNS Get Configs Policy - Sleep 5s - Get Configs VDNS Policy - -VCPE Get Configs Policy - Sleep 5s - Get Configs VCPE Policy - -HPA Get OOF Policy - Sleep 5s - Get OOF HPA Policy - -ListPolicy - ListPolicy test com.Config_Sample.1.xml - -Multiple Push Policy - ${MULTIPLE_PUSH_POLICY_NAME1}= Create Ops VDNS Policy - ${MULTIPLE_PUSH_POLICY_NAME2}= Create Ops VDNS Policy - ${MULTIPLE_PUSH_POLICY_NAME3}= Create Ops VDNS Policy - Push Multiple Policy test ${MULTIPLE_PUSH_POLICY_NAME1} ${MULTIPLE_PUSH_POLICY_NAME2} ${MULTIPLE_PUSH_POLICY_NAME3} ${OPS_POLICY_VDNS_TYPE} - Sleep 5s - Delete Multiple Policy test ${MULTIPLE_PUSH_POLICY_NAME1} ${MULTIPLE_PUSH_POLICY_NAME2} ${MULTIPLE_PUSH_POLICY_NAME3} ${OPS_POLICY_VDNS_TYPE} - -*** Keywords *** - -VFW Policy Tests - ${CONFIG_POLICY_VFW_NAME}= Create Config VFW Policy - Push Config Policy ${CONFIG_POLICY_VFW_NAME} ${CONFIG_POLICY_VFW_TYPE} - Get Configs VFW Policy - ${OPS_POLICY_VFW_NAME}= Create Ops VFW Policy - Push Ops Policy ${OPS_POLICY_VFW_NAME} ${OPS_POLICY_VFW_TYPE} - ${SDNC_POLICY_VFW_NAME}= Create VFW SDNC Naming Policy - Push Config Policy ${CONFIG_POLICY_VFW_NAME} ${CONFIG_POLICY_VFW_TYPE} - -VDNS Policy Tests - ${CONFIG_POLICY_VDNS_NAME}= Create Config VDNS Policy - Push Config Policy ${CONFIG_POLICY_VDNS_NAME} ${CONFIG_POLICY_VDNS_TYPE} - Get Configs VDNS Policy - ${OPS_POLICY_VDNS_NAME}= Create Ops VDNS Policy - Push Ops Policy ${OPS_POLICY_VDNS_NAME} ${OPS_POLICY_VDNS_TYPE} - -VCPE Policy Tests - ${CONFIG_POLICY_VCPE_NAME}= Create Config VCPE Policy - Push Config Policy ${CONFIG_POLICY_VCPE_NAME} ${CONFIG_POLICY_VCPE_TYPE} - Get Configs VCPE Policy - ${OPS_POLICY_VCPE_NAME}= Create Ops VCPE Policy - Push Ops Policy ${OPS_POLICY_VCPE_NAME} ${OPS_POLICY_VCPE_TYPE} - -VPG Policy Tests - ${SDNC_POLICY_VPG_NAME}= Create VPG SDNC Naming Policy - Push Config Policy ${SDNC_POLICY_VPG_NAME} ${CONFIG_POLICY_VFW_TYPE} - -VOLTE Policy Tests - ${OPS_POLICY_VOLTE_NAME}= Create Ops VOLTE Policy - Push Ops Policy ${OPS_POLICY_VOLTE_NAME} ${OPS_POLICY_VOLTE_TYPE} - -HPA Policy Tests - ${OOF_POLICY_HPA_NAME}= Create OOF HPA Policy - Push Config Policy ${OOF_POLICY_HPA_NAME} ${OOF_POLICY_HPA_TYPE} - Get OOF HPA Policy - -Get Configs VFW Policy - [Documentation] Get Config Policy for VFW - Create Environment policy ${CURDIR} - ${getconfigpolicy}= Catenate .*${CONFIG_POLICY_VFW_NAME}* - ${configpolicy_name}= Create Dictionary config_policy_name=${getconfigpolicy} - ${output} = Apply Template policy ${GETCONFIG_TEMPLATE} ${configpolicy_name} - ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} - Should Be Equal As Strings ${get_resp.status_code} 200 - -Create OOF HPA Policy - [Documentation] Create OOF Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_HPA - ${OOF_POLICY_HPA_NAME}= Set Test Variable ${policyname1} - ${hpapolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_OOF_HPA_TEMPLATE} ${hpapolicy} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Log ${put_resp} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Get OOF HPA Policy - [Documentation] Get OOF Policy for HPA - Create Environment policy ${CURDIR} - ${gethpapolicy}= Catenate .*${OOF_POLICY_HPA_NAME}* - ${hpapolicy_name}= Create Dictionary oof_policy_name=${gethpapolicy} - ${output} = Apply Template policy ${GETOOF_TEMPLATE} ${hpapolicy_name} - ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} - Should Be Equal As Strings ${get_resp.status_code} 200 - -Create Config VFW Policy - [Documentation] Create Config Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_vFirewall - ${CONFIG_POLICY_VFW_NAME}= Set Test Variable ${policyname1} - ${configpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_CONFIG_VFW_TEMPLATE} ${configpolicy} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Create VPG SDNC Naming Policy - [Documentation] Create VPG SDNC Naming Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_ONAP_vPG_Naming - ${SDNC_POLICY_VPG_NAME}= Set Test Variable ${policyname1} - ${sdncpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_SDNC_VPG_TEMPLATE} ${sdncpolicy} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Create VFW SDNC Naming Policy - [Documentation] Create VFW SDNC Naming Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_ONAP_vFW_Naming - ${SDNC_POLICY_VFW_NAME}= Set Test Variable ${policyname1} - ${sdncpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_SDNC_VFW_TEMPLATE} ${sdncpolicy} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Create Policy Name - [Documentation] Generate Policy Name - [Arguments] ${prefix}=CSIT_ - ${random}= Generate Random String 15 [LOWER][NUMBERS] - ${policyname}= Catenate ${prefix}${random} - [Return] ${policyname} - -Create Ops VFW Policy - [Documentation] Create Operational Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_vFirewall - ${OPS_POLICY_VFW_NAME}= Set Test Variable ${policyname1} - ${dict}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_OPS_VFW_TEMPLATE} ${dict} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Log ${put_resp} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Push Ops Policy - [Documentation] Push Ops Policy - [Arguments] ${policyname} ${policytype} - Create Environment policy ${CURDIR} - ${dict}= Create Dictionary policy_name=${policyname} policy_type=${policytype} - ${output} = Apply Template policy ${PUSH_POLICY_TEMPLATE} ${dict} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE_PUSH} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - -Push Config Policy - [Documentation] Push Config Policy - [Arguments] ${policyname} ${policytype} - Create Environment policy ${CURDIR} - ${dict}= Create Dictionary policy_name=${policyname} policy_type=${policytype} - ${output} = Apply Template policy ${PUSH_POLICY_TEMPLATE} ${dict} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE_PUSH} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - -Delete Ops Policy - [Documentation] Delete Config Policy - [Arguments] ${policy_name} - Create Environment policy ${CURDIR} - ${policyname3}= Catenate com.Config_BRMS_Param_${policyname}.1.xml - ${dict}= Create Dictionary policy_name=${policyname3} - ${output} = Apply Template policy ${DEL_POLICY_TEMPLATE} ${dict} - ${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - -Delete Config Policy - [Documentation] Delete Ops Policy - [Arguments] ${policy_name} - Create Environment policy ${CURDIR} - ${policyname3}= Catenate com.Config_MS_com.${policy_name}.1.xml - ${dict}= Create Dictionary policy_name=${policyname3} - ${output} = Apply Template policy ${DEL_POLICY_TEMPLATE} ${dict} - ${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - -Delete OOF Policy - [Documentation] Delete OOF Policy - [Arguments] ${policy_name} - Create Environment policy ${CURDIR} - ${policyname3}= Catenate com.Config_OOF_${policy_name}.1.xml - ${dict}= Create Dictionary policy_name=${policyname3} - ${output} = Apply Template policy ${DEL_POLICY_TEMPLATE} ${dict} - ${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - -Get Configs VDNS Policy - [Documentation] Get Config Policy for VDNS - Create Environment policy ${CURDIR} - ${getconfigpolicy}= Catenate .*${CONFIG_POLICY_VDNS_NAME}* - ${configpolicy_name}= Create Dictionary config_policy_name=${getconfigpolicy} - ${output} = Apply Template policy ${GETCONFIG_TEMPLATE} ${configpolicy_name} - ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} - Should Be Equal As Strings ${get_resp.status_code} 200 - -Create Config VDNS Policy - [Documentation] Create Config Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_vLoadBalancer - ${CONFIG_POLICY_VDNS_NAME}= Set Test Variable ${policyname1} - ${configpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_CONFIG_VDNS_TEMPLATE} ${configpolicy} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Create Ops VDNS Policy - [Documentation] Create Operational Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_vLoadBalancer - ${OPS_POLICY_VDNS_NAME}= Set Test Variable ${policyname1} - ${dict}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_OPS_VDNS_TEMPLATE} ${dict} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Log ${put_resp} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Create Config VCPE Policy - [Documentation] Create Config Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_vCPE - ${CONFIG_POLICY_VCPE_NAME}= Set Test Variable ${policyname1} - ${configpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_CONFIG_VCPE_TEMPLATE} ${configpolicy} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Get Configs VCPE Policy - [Documentation] Get Config Policy for VCPE - Create Environment policy ${CURDIR} - ${getconfigpolicy}= Catenate .*${CONFIG_POLICY_VCPE_NAME}* - ${configpolicy_name}= Create Dictionary config_policy_name=${getconfigpolicy} - ${output} = Apply Template policy ${GETCONFIG_TEMPLATE} ${configpolicy_name} - ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} - Should Be Equal As Strings ${get_resp.status_code} 200 - -Create Ops vCPE Policy - [Documentation] Create Operational Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_vCPE - ${OPS_POLICY_VCPE_NAME}= Set Test Variable ${policyname1} - ${dict}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_OPS_VCPE_TEMPLATE} ${dict} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Log ${put_resp} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Create Ops VolTE Policy - [Documentation] Create Operational Policy - Create Environment policy ${CURDIR} - ${randompolicyname} = Create Policy Name - ${policyname1}= Catenate com.${randompolicyname}_VoLTE - ${dict}= Create Dictionary policy_name=${policyname1} - ${output} = Apply Template policy ${CREATE_OPS_VOLTE_TEMPLATE} ${dict} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} - Log ${put_resp} - Should Be Equal As Strings ${put_resp.status_code} 200 - [Return] ${policyname1} - -Upload DRL file - [Documentation] Upload DRL file1 - ${file_data}= Get Binary File ${file_path} - ${files}= Create Dictionary file=${file_data} - #${CONFIG_POLICY_VDNS_NAME}= Set Test Variable ${policyname1} - # ${files2} = {'file': open('../testsuite/robot/assets/templates/ControlLoopDemo__closedLoopControlName.drl', 'rb')} - # ${files}= Create Dictionary file ${file_data} - ${put_resp} = Run Policy Post form Request ${RESOURCE_PATH_UPLOAD} ${files} - Should Be Equal As Strings ${put_resp.status_code} 200 - -ListPolicy test - [Documentation] Listing Config Policies - [Arguments] ${policy_name} - Create Environment policy ${CURDIR} - ${dict}= Create Dictionary policy_name=${policy_name} - ${output} = Apply Template policy ${LISTPOLICY_TEMPLATE} ${dict} - ${put_resp} = policy_interface.Run Policy Post Request ${RESOURCE_PATH_LISTPOLICY} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - -Push Multiple Policy test - [Documentation] Push Multiple Policy - [Arguments] ${policyname1} ${policyname2} ${policyname3} ${policytype} - Create Environment policy ${CURDIR} - ${dict}= Create Dictionary policy_name1=${policyname1} policy_name2=${policyname2} policy_name3=${policyname3} policy_type=${policytype} - ${output} = Apply Template policy ${MULTIPLE_PUSH_POLICY_TEMPLATE} ${dict} - ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE_PUSH} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - -Delete Multiple Policy test - [Documentation] Delete Multiple Policy - [Arguments] ${policyname1} ${policyname2} ${policyname3} ${policytype} - Create Environment policy ${CURDIR} - ${dict}= Create Dictionary policy_name1=${policyname1} policy_name2=${policyname2} policy_name3=${policyname3} policy_type=${policytype} - ${output} = Apply Template policy ${MULTIPLE_UNPUSH_POLICY_TEMPLATE} ${dict} - ${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output} - Should Be Equal As Strings ${put_resp.status_code} 200 - diff --git a/tests/policy/engine/__init__.robot b/tests/policy/engine/__init__.robot deleted file mode 100644 index c7970e6a..00000000 --- a/tests/policy/engine/__init__.robot +++ /dev/null @@ -1,2 +0,0 @@ -*** Settings *** -Documentation Policy - Suite 1 diff --git a/tests/policy/engine/configpolicy_vCPE_R1.jinja b/tests/policy/engine/configpolicy_vCPE_R1.jinja deleted file mode 100644 index 6bcd74fe..00000000 --- a/tests/policy/engine/configpolicy_vCPE_R1.jinja +++ /dev/null @@ -1,7 +0,0 @@ -{ - "configBody": "{ \"service\": \"tca_policy\", \"location\": \"SampleServiceLocation\", \"uuid\": \"test\", \"policyName\": \"MicroServicevCPE\", \"description\": \"MicroService vCPE Policy\", \"configName\": \"SampleConfigName\", \"templateVersion\": \"OpenSource.version.1\", \"version\": \"1.1.0\", \"priority\": \"1\", \"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"riskType\": \"SampleRiskType\", \"riskLevel\": \"1\", \"guard\": \"False\", \"content\": { \"policyVersion\": \"v0.0.1\", \"threshholds\": [{ \"severity\": \"MAJOR\", \"fieldPath\": \"$$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\", \"thresholdValue\": \"0\", \"closedLoopEventStatus\": \"ABATED\", \"closedLoopControlName\": \"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"version\": \"1.0.2\", \"direction\": \"EQUAL\" }, { \"severity\": \"CRITICAL\", \"fieldPath\": \"$$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\", \"thresholdValue\": \"0\", \"closedLoopEventStatus\": \"ONSET\", \"closedLoopControlName\": \"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"version\": \"1.0.2\", \"direction\": \"GREATER\" }], \"policyName\": \"DCAE.Config_tca-hi-lo\", \"controlLoopSchemaType\": \"VNF\", \"policyScope\": \"DCAE\", \"eventName\": \"Measurement_vGMUX\" } }", - "policyConfigType": "MicroService", - "policyName": "{{policy_name}}", - "onapName": "DCAE", - "priority": "5" -} diff --git a/tests/policy/engine/configpolicy_vDNS_R1.jinja b/tests/policy/engine/configpolicy_vDNS_R1.jinja deleted file mode 100644 index a2c3eeb9..00000000 --- a/tests/policy/engine/configpolicy_vDNS_R1.jinja +++ /dev/null @@ -1,7 +0,0 @@ -{ - "configBody": "{ \"service\": \"tca_policy\", \"location\": \"SampleServiceLocation\", \"uuid\": \"test\", \"policyName\": \"MicroServicevDNS\", \"description\": \"MicroService vDNS Policy\", \"configName\": \"SampleConfigName\", \"templateVersion\": \"OpenSource.version.1\", \"version\": \"1.1.0\", \"priority\": \"1\", \"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\", \"riskType\": \"SampleRiskType\", \"riskLevel\": \"1\", \"guard\": \"False\", \"content\": { \"policyVersion\": \"v0.0.1\", \"threshholds\": [{ \"severity\": \"CRITICAL\", \"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\", \"thresholdValue\": \"300\", \"closedLoopEventStatus\": \"ONSET\", \"closedLoopControlName\": \"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\", \"version\": \"1.0.2\", \"direction\": \"GREATER_OR_EQUAL\" }], \"policyName\": \"DCAE.Config_tca-hi-lo\", \"controlLoopSchemaType\": \"VM\", \"policyScope\": \"DCAE\", \"eventName\": \"vLoadBalancer\" } }", - "policyConfigType": "MicroService", - "policyName": "{{policy_name}}", - "onapName": "DCAE", - "priority": "5" -} diff --git a/tests/policy/engine/configpolicy_vFW_R1.jinja b/tests/policy/engine/configpolicy_vFW_R1.jinja deleted file mode 100644 index b843a0b0..00000000 --- a/tests/policy/engine/configpolicy_vFW_R1.jinja +++ /dev/null @@ -1,7 +0,0 @@ -{ - "configBody": "{\"service\": \"tca_policy\",\"location\": \"SampleServiceLocation\",\"uuid\": \"test\",\"policyName\": \"MicroServicevFirewall\",\"description\": \"MicroService vFirewall Policy\",\"configName\": \"SampleConfigName\",\"templateVersion\": \"OpenSource.version.1\",\"version\": \"1.1.0\",\"priority\": \"1\",\"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"riskType\": \"SampleRiskType\",\"riskLevel\": \"1\",\"guard\": \"False\",\"content\": {\"policyVersion\": \"v0.0.1\",\"threshholds\": [{\"severity\": \"MAJOR\",\"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\": \"300\",\"closedLoopEventStatus\": \"ONSET\",\"closedLoopControlName\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\": \"1.0.2\",\"direction\": \"LESS_OR_EQUAL\"}, {\"severity\": \"CRITICAL\",\"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\": \"700\",\"closedLoopEventStatus\": \"ONSET\",\"closedLoopControlName\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\": \"1.0.2\",\"direction\": \"GREATER_OR_EQUAL\"}],\"policyName\": \"DCAE.Config_tca-hi-lo\",\"controlLoopSchemaType\": \"VNF\",\"policyScope\": \"DCAE\",\"eventName\": \"vFirewallBroadcastPackets\"}}", - "policyConfigType": "MicroService", - "policyName": "{{policy_name}}", - "onapName": "DCAE", - "priority": "5" -} diff --git a/tests/policy/engine/createpolicy.jinja b/tests/policy/engine/createpolicy.jinja deleted file mode 100644 index bbb1f1ad..00000000 --- a/tests/policy/engine/createpolicy.jinja +++ /dev/null @@ -1,21 +0,0 @@ -{ - "policyConfigType": "BRMS_PARAM", - "policyName": "{{policy_name}}", - "policyDescription": "Create BRMS Param policy", - "attributes": { - "RULE": { - "templateName": "ClosedLoopDemo_closedLoopControlName", - "aaiNamedQueryUUID": "2", - "aaiPassword": "2", - "aaiPatternMatch": "2", - "aaiURL": "2", - "actor": "2", - "appcTopic": "2", - "closedLoopControlName": "2", - "msoPassword": "2", - "msoURL": "2", - "msoUsername": "2", - "aaiUsername": "3" - } - } -} diff --git a/tests/policy/engine/deletepolicy.jinja b/tests/policy/engine/deletepolicy.jinja deleted file mode 100644 index 73c5badf..00000000 --- a/tests/policy/engine/deletepolicy.jinja +++ /dev/null @@ -1,5 +0,0 @@ -{ - "pdpGroup": "default", - "policyComponent": "PDP", - "policyName": "{{policy_name}}" -} diff --git a/tests/policy/engine/getconfigpolicy.jinja b/tests/policy/engine/getconfigpolicy.jinja deleted file mode 100644 index 11e8cae6..00000000 --- a/tests/policy/engine/getconfigpolicy.jinja +++ /dev/null @@ -1,8 +0,0 @@ -{ - "configAttributes" : { - }, - "configName" : ".*", - "ecompName" : "DCAE", - "policyName" : "{{config_policy_name}}", - "unique" : false -}
\ No newline at end of file diff --git a/tests/policy/engine/getoofpolicy.jinja b/tests/policy/engine/getoofpolicy.jinja deleted file mode 100644 index 3c7dd755..00000000 --- a/tests/policy/engine/getoofpolicy.jinja +++ /dev/null @@ -1,6 +0,0 @@ -{ - "configAttributes" : { - }, - "policyName" : "{{oof_policy_name}}", - "unique" : false -} diff --git a/tests/policy/engine/global_properties.robot b/tests/policy/engine/global_properties.robot deleted file mode 100644 index e0c816ea..00000000 --- a/tests/policy/engine/global_properties.robot +++ /dev/null @@ -1,30 +0,0 @@ -*** Settings *** -Documentation store all properties that can change or are used in multiple places here -... format is all caps with underscores between words and prepended with GLOBAL -... make sure you prepend them with GLOBAL so that other files can easily see it is from this file. - - -*** Variables *** -${GLOBAL_APPLICATION_ID} robot-ete -${GLOBAL_MSO_STATUS_PATH} /ecomp/mso/infra/orchestrationRequests/v2/ -${GLOBAL_SELENIUM_BROWSER} chrome -${GLOBAL_SELENIUM_BROWSER_CAPABILITIES} Create Dictionary -${GLOBAL_SELENIUM_DELAY} 0 -${GLOBAL_SELENIUM_BROWSER_IMPLICIT_WAIT} 5 -${GLOBAL_SELENIUM_BROWSER_WAIT_TIMEOUT} 15 -${GLOBAL_OPENSTACK_HEAT_SERVICE_TYPE} orchestration -${GLOBAL_OPENSTACK_CINDER_SERVICE_TYPE} volume -${GLOBAL_OPENSTACK_NOVA_SERVICE_TYPE} compute -${GLOBAL_OPENSTACK_NEUTRON_SERVICE_TYPE} network -${GLOBAL_OPENSTACK_GLANCE_SERVICE_TYPE} image -${GLOBAL_OPENSTACK_KEYSTONE_SERVICE_TYPE} identity -${GLOBAL_AAI_CLOUD_OWNER} Rackspace -${GLOBAL_BUILD_NUMBER} 31 -${GLOBAL_VM_PRIVATE_KEY} ${EXECDIR}/robot/assets/keys/robot_ssh_private_key.pvt -# policy info - everything is from the private oam network (also called ecomp private network) -${GLOBAL_POLICY_SERVER_URL} https://%{PDP_IP}:8081 -${GLOBAL_POLICY_AUTH} dGVzdHBkcDphbHBoYTEyMw== -${GLOBAL_POLICY_CLIENTAUTH} cHl0aG9uOnRlc3Q= -${GLOBAL_POLICY_HEALTHCHECK_URL} https://%{POLICY_IP}:6969 -${GLOBAL_POLICY_USERNAME} demo@people.osaaf.org -${GLOBAL_POLICY_PASSWORD} demo123456! diff --git a/tests/policy/engine/listpolicy.jinja b/tests/policy/engine/listpolicy.jinja deleted file mode 100644 index ce2d3df0..00000000 --- a/tests/policy/engine/listpolicy.jinja +++ /dev/null @@ -1,3 +0,0 @@ -{ - "policyName": "{{policy_name}}" -} diff --git a/tests/policy/engine/multiple_pushpolicy.jinja b/tests/policy/engine/multiple_pushpolicy.jinja deleted file mode 100644 index bda0da08..00000000 --- a/tests/policy/engine/multiple_pushpolicy.jinja +++ /dev/null @@ -1,5 +0,0 @@ -{ - "policyName":"{{policy_name1}},{{policy_name2}},{{policy_name3}}", - "policyType":"{{policy_type}}", - "pdpGroup":"default" -} diff --git a/tests/policy/engine/multiple_unpushpolicy.jinja b/tests/policy/engine/multiple_unpushpolicy.jinja deleted file mode 100644 index 55fb8810..00000000 --- a/tests/policy/engine/multiple_unpushpolicy.jinja +++ /dev/null @@ -1,6 +0,0 @@ -{ - "policyName": "{{policy_name1}},{{policy_name2}},{{policy_name3}}", - "policyType": "{{policy_type}}", - "policyComponent": "PDP", - "pdpGroup": "default" -} diff --git a/tests/policy/engine/oofpolicy_HPA_R1.jinja b/tests/policy/engine/oofpolicy_HPA_R1.jinja deleted file mode 100644 index 6834ceb6..00000000 --- a/tests/policy/engine/oofpolicy_HPA_R1.jinja +++ /dev/null @@ -1,6 +0,0 @@ -{ - "configBody": "{\"service\":\"hpaPolicy\",\"policyName\":\"testWorkingTOSCA\",\"description\":\"testing\",\"templateVersion\":\"OpenSource.version.1\",\"version\":\"CSIT\",\"priority\":\"5\",\"riskType\":\"SampleRiskType\",\"riskLevel\":\"3\",\"guard\":\"False\",\"content\":{\"identity\":\"testIdentity\",\"policyScope\":[\"test1\",\"test2\",\"test3\"],\"policyType\":\"hpaPolicy\",\"resources\":\"testResources1\",\"flavorFeatures\":[{\"flavorLabel\":\"testFlavor\",\"flavorProperties\":[{\"score\":\"testScore\",\"featureAttributes\":[{\"unit\":\"testUnit\",\"attribute\":\"teatFeatureAttribute\",\"value\":\"testValue\",\"operator\":\"any\"}],\"mandatory\":\"testMandatory\",\"hpaFeature\":\"testHAPFeature\",\"architecture\":\"testArch\"}]}]}}", - "policyConfigType": "Optimization", - "policyName": "{{policy_name}}", - "onapName": "OOF" -} diff --git a/tests/policy/engine/opspolicy_VDNS_R1.jinja b/tests/policy/engine/opspolicy_VDNS_R1.jinja deleted file mode 100644 index 8b1e6d2d..00000000 --- a/tests/policy/engine/opspolicy_VDNS_R1.jinja +++ /dev/null @@ -1,16 +0,0 @@ -{ - "policyConfigType": "BRMS_PARAM", - "policyName": "{{policy_name}}", - "policyDescription": "BRMS Param vDNS policy", - "policyScope": "com", - "attributes": { - "MATCHING": { - "controller" : "amsterdam" - }, - "RULE": { - "templateName": "ClosedLoopControlName", - "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", - "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3%0D%0A++trigger_policy%3A+unique-policy-id-1-scale-up%0D%0A++timeout%3A+1200%0D%0A++abatement%3A+false%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-scale-up%0D%0A++++name%3A+Create+a+new+VF+Module%0D%0A++++description%3A%0D%0A++++actor%3A+SO%0D%0A++++recipe%3A+VF+Module+Create%0D%0A++++target%3A%0D%0A++++++type%3A+VNF%0D%0A++++retry%3A+0%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard" - } - } -}
\ No newline at end of file diff --git a/tests/policy/engine/opspolicy_VFW_R1.jinja b/tests/policy/engine/opspolicy_VFW_R1.jinja deleted file mode 100644 index 0a6977df..00000000 --- a/tests/policy/engine/opspolicy_VFW_R1.jinja +++ /dev/null @@ -1,16 +0,0 @@ -{ - "policyConfigType": "BRMS_PARAM", - "policyName": "{{policy_name}}", - "policyDescription": "BRMS Param vFirewall policy", - "policyScope": "com", - "attributes": { - "MATCHING": { - "controller" : "amsterdam" - }, - "RULE": { - "templateName": "ClosedLoopControlName", - "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", - "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a%0D%0A++trigger_policy%3A+unique-policy-id-1-modifyConfig%0D%0A++timeout%3A+1200%0D%0A++abatement%3A+false%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-modifyConfig%0D%0A++++name%3A+modify+packet+gen+config%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+ModifyConfig%0D%0A++++target%3A%0D%0A++++++%23+TBD+-+Cannot+be+known+until+instantiation+is+done%0D%0A++++++resourceID%3A+Eace933104d443b496b8.nodes.heat.vpg%0D%0A++++++type%3A+VNF%0D%0A++++retry%3A+0%0D%0A++++timeout%3A+300%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard" - } - } -} diff --git a/tests/policy/engine/opspolicy_vCPE_R1.jinja b/tests/policy/engine/opspolicy_vCPE_R1.jinja deleted file mode 100644 index a04a0c1e..00000000 --- a/tests/policy/engine/opspolicy_vCPE_R1.jinja +++ /dev/null @@ -1,16 +0,0 @@ -{ - "policyConfigType": "BRMS_PARAM", - "policyName": "{{policy_name}}", - "policyDescription": "BRMS Param vCPE policy", - "policyScope": "com", - "attributes": { - "MATCHING": { - "controller" : "amsterdam" - }, - "RULE": { - "templateName": "ClosedLoopControlName", - "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", - "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A++abatement%3A+true%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard" - } - } -}
\ No newline at end of file diff --git a/tests/policy/engine/opspolicy_vOLTE_R1.jinja b/tests/policy/engine/opspolicy_vOLTE_R1.jinja deleted file mode 100644 index 67119659..00000000 --- a/tests/policy/engine/opspolicy_vOLTE_R1.jinja +++ /dev/null @@ -1,16 +0,0 @@ -{ - "policyConfigType": "BRMS_PARAM", - "policyName": "{{policy_name}}", - "policyDescription": "BRMS Param VOLTE policy", - "policyScope": "com", - "attributes": { - "MATCHING": { - "controller" : "amsterdam" - }, - "RULE": { - "templateName": "ClosedLoopControlName", - "closedLoopControlName": "ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b", - "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A++abatement%3A+false%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+VFC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard" - } - } -}
\ No newline at end of file diff --git a/tests/policy/engine/policy_interface.robot b/tests/policy/engine/policy_interface.robot deleted file mode 100644 index da7fdd87..00000000 --- a/tests/policy/engine/policy_interface.robot +++ /dev/null @@ -1,66 +0,0 @@ -*** Settings *** -Documentation The main interface for interacting with Policy. It handles low level stuff like managing the http request library and Policy required fields -Library RequestsLibrary -Library String -Library Collections -Resource global_properties.robot - -*** Variables *** -${POLICY_HEALTH_CHECK_PATH} /healthcheck - -*** Keywords *** - -Run Policy Health Check - [Documentation] Runs Policy Health check - ${auth}= Create List ${GLOBAL_POLICY_USERNAME} ${GLOBAL_POLICY_PASSWORD} - Log Creating session ${GLOBAL_POLICY_SERVER_URL} - ${session}= Create Session policy ${GLOBAL_POLICY_HEALTHCHECK_URL} auth=${auth} - ${headers}= Create Dictionary Accept=application/json Content-Type=application/json - ${resp}= Get Request policy ${POLICY_HEALTH_CHECK_PATH} headers=${headers} - Log Received response from policy ${resp.text} - Should Be Equal As Strings ${resp.status_code} 200 - Should Be True ${resp.json()['healthy']} - @{ITEMS}= Copy List ${resp.json()['details']} - :FOR ${ELEMENT} IN @{ITEMS} - \ Should Be Equal As Strings ${ELEMENT['code']} 200 - \ Should Be True ${ELEMENT['healthy']} - -Run Policy Put Request - [Documentation] Runs Policy Put request - [Arguments] ${data_path} ${data} - Log Creating session ${GLOBAL_POLICY_SERVER_URL} - ${session}= Create Session policy ${GLOBAL_POLICY_SERVER_URL} - ${headers}= Create Dictionary Accept=application/json Content-Type=application/json Authorization=Basic ${GLOBAL_POLICY_AUTH} ClientAuth=${GLOBAL_POLICY_CLIENTAUTH} Environment=TEST - ${resp}= Put Request policy ${data_path} data=${data} headers=${headers} - Log Received response from policy ${resp.text} - [Return] ${resp} - -Run Policy Post Request - [Documentation] Runs Policy Post request - [Arguments] ${data_path} ${data} - Log Creating session ${GLOBAL_POLICY_SERVER_URL} - ${session}= Create Session policy ${GLOBAL_POLICY_SERVER_URL} - ${headers}= Create Dictionary Accept=application/json Content-Type=application/json Authorization=Basic ${GLOBAL_POLICY_AUTH} ClientAuth=${GLOBAL_POLICY_CLIENTAUTH} Environment=TEST - ${resp}= Post Request policy ${data_path} data=${data} headers=${headers} - Log Received response from policy ${resp.text} - [Return] ${resp} - -Run Policy Delete Request - [Documentation] Runs Policy Delete request - [Arguments] ${data_path} ${data} - Log Creating session ${GLOBAL_POLICY_SERVER_URL} - ${session}= Create Session policy ${GLOBAL_POLICY_SERVER_URL} - ${headers}= Create Dictionary Accept=application/json Content-Type=application/json Authorization=Basic ${GLOBAL_POLICY_AUTH} ClientAuth=${GLOBAL_POLICY_CLIENTAUTH} Environment=TEST - ${resp}= Delete Request policy ${data_path} data=${data} headers=${headers} - Log Received response from policy ${resp.text} - [Return] ${resp} - -Run Policy Get Configs Request - [Documentation] Runs Policy Get Configs request - [Arguments] ${data_path} ${data} - Log Creating session ${GLOBAL_POLICY_SERVER_URL} - ${session}= Create Session policy ${GLOBAL_POLICY_SERVER_URL} - ${headers}= Create Dictionary Accept=application/json Content-Type=application/json Authorization=Basic ${GLOBAL_POLICY_AUTH} ClientAuth=${GLOBAL_POLICY_CLIENTAUTH} - ${resp}= Post Request policy ${data_path} data=${data} headers=${headers} - Log Received response from policy ${resp.text} - [Return] ${resp} diff --git a/tests/policy/engine/pushpolicy.jinja b/tests/policy/engine/pushpolicy.jinja deleted file mode 100644 index a1faaede..00000000 --- a/tests/policy/engine/pushpolicy.jinja +++ /dev/null @@ -1,5 +0,0 @@ -{ - "policyName":"{{policy_name}}", - "policyType":"{{policy_type}}", - "pdpGroup":"default" -}
\ No newline at end of file diff --git a/tests/policy/engine/sdncnamingpolicy_vFW.jinja b/tests/policy/engine/sdncnamingpolicy_vFW.jinja deleted file mode 100644 index a012d59c..00000000 --- a/tests/policy/engine/sdncnamingpolicy_vFW.jinja +++ /dev/null @@ -1,11 +0,0 @@ -{ - "configBody": "{\"service\":\"SDNC-GenerateName\",\"version\":\"CSIT\",\"content\":{\"policy-instance-name\":\"ONAP_VFW_NAMING_TIMESTAMP\",\"naming-models\":[{\"naming-properties\":[{\"property-name\":\"AIC_CLOUD_REGION\"},{\"property-name\":\"nfRole\"},{\"property-name\":\"TIMESTAMP\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNF\",\"nfRole\":\"vFW\",\"naming-recipe\":\"AIC_CLOUD_REGION|DELIMITER|nfRole|DELIMITER|TIMESTAMP\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"ENTIRETY\",\"start-value\":\"001\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}},{\"property-name\":\"NFC_NAMING_CODE\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNFC\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|NFC_NAMING_CODE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"},{\"property-name\":\"VF_MODULE_LABEL\"},{\"property-name\":\"VF_MODULE_TYPE\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"PRECEEDING\",\"start-value\":\"01\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}}],\"naming-type\":\"VF-MODULE\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|VF_MODULE_LABEL|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"}],\"naming-type\":\"KEY\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"protected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"protected_private_net_id\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"unprotected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"unprotected_private_net_id\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"}]}}", - "policyName": "{{policy_name}}", - "policyConfigType": "MicroService", - "onapName": "SDNC", - "riskLevel": "4", - "riskType": "test", - "guard": "false", - "priority": "4", - "description": "ONAP_VFW_NAMING_TIMESTAMP" -}
\ No newline at end of file diff --git a/tests/policy/engine/sdncnamingpolicy_vPG.jinja b/tests/policy/engine/sdncnamingpolicy_vPG.jinja deleted file mode 100644 index 9aa4f505..00000000 --- a/tests/policy/engine/sdncnamingpolicy_vPG.jinja +++ /dev/null @@ -1,11 +0,0 @@ -{ - "configBody": "{\"service\":\"SDNC-GenerateName\",\"version\":\"CSIT\",\"content\":{\"policy-instance-name\":\"ONAP_VPG_NAMING_TIMESTAMP\",\"naming-models\":[{\"naming-properties\":[{\"property-name\":\"AIC_CLOUD_REGION\"},{\"property-name\":\"nfRole\"},{\"property-name\":\"TIMESTAMP\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNF\",\"nfRole\":\"vPG\",\"naming-recipe\":\"AIC_CLOUD_REGION|DELIMITER|nfRole|DELIMITER|TIMESTAMP\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"ENTIRETY\",\"start-value\":\"001\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}},{\"property-name\":\"NFC_NAMING_CODE\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNFC\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|NFC_NAMING_CODE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"},{\"property-name\":\"VF_MODULE_LABEL\"},{\"property-name\":\"VF_MODULE_TYPE\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"PRECEEDING\",\"start-value\":\"01\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}}],\"naming-type\":\"VF-MODULE\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|VF_MODULE_LABEL|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"}],\"naming-type\":\"KEY\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"protected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"protected_private_net_id\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"unprotected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"unprotected_private_net_id\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"}]}}", "policyName": "{{policy_name}}", - "policyName": "{{policy_name}}", - "policyConfigType": "MicroService", - "onapName": "SDNC", - "riskLevel": "4", - "riskType": "test", - "guard": "false", - "priority": "4", - "description": "ONAP_VPG_NAMING_TIMESTAMP" -}
\ No newline at end of file diff --git a/tests/policy/xacml-pdp/data/onap.policies.monitoring.cdap.tca.hi.lo.app.json b/tests/policy/xacml-pdp/data/onap.policies.monitoring.cdap.tca.hi.lo.app.json index f06247d7..06574735 100644 --- a/tests/policy/xacml-pdp/data/onap.policies.monitoring.cdap.tca.hi.lo.app.json +++ b/tests/policy/xacml-pdp/data/onap.policies.monitoring.cdap.tca.hi.lo.app.json @@ -1,5 +1,5 @@ { - "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", "policy_types": { "onap.policies.Monitoring": { "derived_from": "tosca.policies.Root", @@ -10,11 +10,8 @@ "version": "1.0.0", "properties": { "tca_policy": { - "type": "map", - "description": "TCA Policy JSON", - "entry_schema": { - "type": "onap.datatypes.monitoring.tca_policy" - } + "type": "onap.datatypes.monitoring.tca_policy", + "description": "TCA Policy JSON" } } } @@ -210,4 +207,4 @@ } } } -}
\ No newline at end of file +} diff --git a/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json b/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json index fac5cfad..3003d9a8 100644 --- a/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json +++ b/tests/policy/xacml-pdp/data/vCPE.policy.monitoring.input.tosca.json @@ -1,5 +1,5 @@ { - "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", "topology_template": { "policies": [ { diff --git a/tests/policy/xacml-pdp/xacml-pdp-test.robot b/tests/policy/xacml-pdp/xacml-pdp-test.robot index 8227996f..0305af8e 100644 --- a/tests/policy/xacml-pdp/xacml-pdp-test.robot +++ b/tests/policy/xacml-pdp/xacml-pdp-test.robot @@ -28,7 +28,6 @@ Statistics Should Be Equal As Strings ${resp.json()['code']} 200 ExecuteXacmlPolicy - Wait Until Keyword Succeeds 2 min 5 sec CreateMonitorPolicyType Wait Until Keyword Succeeds 2 min 5 sec CreateNewMonitorPolicy Wait Until Keyword Succeeds 2 min 5 sec DeployMonitorPolicy Wait Until Keyword Succeeds 2 min 10 sec GetAbbreviatedDecisionResult @@ -36,20 +35,6 @@ ExecuteXacmlPolicy *** Keywords *** -CreateMonitorPolicyType - [Documentation] Create Monitoring Policy Type - ${auth}= Create List healthcheck zb!XztG34 - ${postjson}= Get file ${CURDIR}/data/onap.policies.monitoring.cdap.tca.hi.lo.app.json - Log Creating session https://${POLICY_API_IP}:6969 - ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth} - ${headers}= Create Dictionary Accept=application/json Content-Type=application/json - ${resp}= Post Request policy /policy/api/v1/policytypes data=${postjson} headers=${headers} - Log Received response from policy2 ${resp.text} - Should Be Equal As Strings ${resp.status_code} 200 - ${postjsonobject} To Json ${postjson} - Dictionary Should Contain Key ${resp.json()} tosca_definitions_version - Dictionary Should Contain Key ${postjsonobject} tosca_definitions_version - CreateNewMonitorPolicy [Documentation] Create a new Monitoring policy ${auth}= Create List healthcheck zb!XztG34 |