summaryrefslogtreecommitdiffstats
path: root/policy/apex
diff options
context:
space:
mode:
authorPérez Caparrós David, INI-ONE-MBL-MEE <David.PerezCaparros@swisscom.com>2020-04-23 14:49:35 +0200
committerDavid Perez Caparros <david.perezcaparros@swisscom.com>2020-04-24 11:32:11 +0000
commita7e9ac102f7c8ca2eed1b49d88f32d9ab3f406c4 (patch)
tree697eb405176b8ea0bbb797929e578b48f61132e4 /policy/apex
parent306b2a8c51389393b7b28ed2015dc8a671933fea (diff)
Fix BBS use case APEX policies
JSON payload for deploying BBS APEX policies needs to be corrected Issue-ID: INT-1499 Signed-off-by: Pérez Caparrós David, INI-ONE-MBL-MEE <David.PerezCaparros@swisscom.com> Change-Id: Ia9c1120f3961dfa2c4ee81a6ebd3be69b7b7163c
Diffstat (limited to 'policy/apex')
-rw-r--r--policy/apex/json/BBS APEX Policy API.postman_collection.json828
-rw-r--r--policy/apex/json/bbs_create_policy.json11
-rw-r--r--policy/apex/json/bbs_policytypes.json38
-rw-r--r--policy/apex/json/bbs_simple_deploy.json2
4 files changed, 852 insertions, 27 deletions
diff --git a/policy/apex/json/BBS APEX Policy API.postman_collection.json b/policy/apex/json/BBS APEX Policy API.postman_collection.json
new file mode 100644
index 0000000..0c99b0d
--- /dev/null
+++ b/policy/apex/json/BBS APEX Policy API.postman_collection.json
@@ -0,0 +1,828 @@
+{
+ "info": {
+ "_postman_id": "a36e5b21-2920-441d-a2ca-543bf90e8519",
+ "name": "BBS APEX Policy API",
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+ },
+ "item": [
+ {
+ "name": "Api Healthcheck",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "url": {
+ "raw": "{{POLICY-API-URL}}/policy/api/v1/healthcheck",
+ "host": [
+ "{{POLICY-API-URL}}"
+ ],
+ "path": [
+ "policy",
+ "api",
+ "v1",
+ "healthcheck"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "PAP Healthcheck",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "type": "text"
+ },
+ {
+ "key": "Accept",
+ "value": "application/json",
+ "type": "text"
+ }
+ ],
+ "url": {
+ "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/healthcheck",
+ "host": [
+ "{{POLICY-PAP-URL}}"
+ ],
+ "path": [
+ "policy",
+ "pap",
+ "v1",
+ "healthcheck"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "Apex Healthcheck",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "url": {
+ "raw": "{{POLICY-APEX-URL}}/policy/apex-pdp/v1/healthcheck",
+ "host": [
+ "{{POLICY-APEX-URL}}"
+ ],
+ "path": [
+ "policy",
+ "apex-pdp",
+ "v1",
+ "healthcheck"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "PAP Statistics",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "type": "text"
+ },
+ {
+ "key": "Accept",
+ "value": "application/json",
+ "type": "text"
+ }
+ ],
+ "url": {
+ "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/statistics",
+ "host": [
+ "{{POLICY-PAP-URL}}"
+ ],
+ "path": [
+ "policy",
+ "pap",
+ "v1",
+ "statistics"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "PAP Deployed Policies",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "type": "text"
+ },
+ {
+ "key": "Accept",
+ "value": "application/json",
+ "type": "text"
+ }
+ ],
+ "url": {
+ "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/statistics",
+ "host": [
+ "{{POLICY-PAP-URL}}"
+ ],
+ "path": [
+ "policy",
+ "pap",
+ "v1",
+ "statistics"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "PDPGroup Query",
+ "protocolProfileBehavior": {
+ "disableBodyPruning": true
+ },
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "type": "text"
+ },
+ {
+ "key": "Accept",
+ "value": "application/json",
+ "type": "text"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": ""
+ },
+ "url": {
+ "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps",
+ "host": [
+ "{{POLICY-PAP-URL}}"
+ ],
+ "path": [
+ "policy",
+ "pap",
+ "v1",
+ "pdps"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "Create Policy Type",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\r\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\r\n \"policy_types\": {\r\n \"onap.policies.controlloop.operational.Apex\": {\r\n \"version\": \"1.0.0\",\r\n \"description\": \"Operational Policy for Control Loops using the APEX PDP\",\r\n \"properties\": {\r\n \"engine_service\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EngineService\",\r\n \"description\": \"APEX Engine Service Parameters\"\r\n },\r\n \"inputs\": {\r\n \"type\": \"map\",\r\n \"description\": \"Inputs for handling events coming into the APEX engine\",\r\n \"entry_schema\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EventHandler\"\r\n }\r\n },\r\n \"outputs\": {\r\n \"type\": \"map\",\r\n \"description\": \"Outputs for handling events going out of the APEX engine\",\r\n \"entry_schema\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EventHandler\"\r\n }\r\n },\r\n \"environment\": {\r\n \"type\": \"list\",\r\n \"description\": \"Envioronmental parameters for the APEX engine\",\r\n \"entry_schema\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Environment\"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n \"data_types\": {\r\n \"onap.datatypes.policies.controlloop.operational.apex.EngineService\": {\r\n \"derived_from\": \"tosca.datatypes.Root\",\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"description\": \"Specifies the engine name\",\r\n \"required\": false,\r\n \"default\": \"ApexEngineService\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"description\": \"Specifies the engine version in double dotted format\",\r\n \"required\": false,\r\n \"default\": \"1.0.0\"\r\n },\r\n \"id\": {\r\n \"type\": \"integer\",\r\n \"description\": \"Specifies the engine id\",\r\n \"required\": true\r\n },\r\n \"instance_count\": {\r\n \"type\": \"integer\",\r\n \"description\": \"Specifies the number of engine threads that should be run\",\r\n \"required\": true\r\n },\r\n \"deployment_port\": {\r\n \"type\": \"integer\",\r\n \"description\": \"Specifies the port to connect to for engine administration\",\r\n \"required\": false,\r\n \"default\": 1\r\n },\r\n \"policy_model_file_name\": {\r\n \"type\": \"string\",\r\n \"description\": \"The name of the file from which to read the APEX policy model\",\r\n \"required\": false\r\n },\r\n \"policy_type_impl\": {\r\n \"type\": \"string\",\r\n \"description\": \"The policy type implementation from which to read the APEX policy model\",\r\n \"required\": false\r\n },\r\n \"periodic_event_period\": {\r\n \"type\": \"string\",\r\n \"description\": \"The time interval in milliseconds for the periodic scanning event, 0 means \\\"don't scan\\\"\",\r\n \"required\": false,\r\n \"default\": 0\r\n },\r\n \"engine\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine\",\r\n \"description\": \"The parameters for all engines in the APEX engine service\",\r\n \"required\": true\r\n }\r\n }\r\n },\r\n \"onap.datatypes.policies.controlloop.operational.apex.EventHandler\": {\r\n \"derived_from\": \"tosca.datatypes.Root\",\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"description\": \"Specifies the event handler name, if not specified this is set to the key name\",\r\n \"required\": false\r\n },\r\n \"carrier_technology\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology\",\r\n \"description\": \"Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)\",\r\n \"required\": true\r\n },\r\n \"event_protocol\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EventProtocol\",\r\n \"description\": \"Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)\",\r\n \"required\": true\r\n },\r\n \"event_name\": {\r\n \"type\": \"string\",\r\n \"description\": \"Specifies the event name for events on this event handler, if not specified, the event name is read from or written to the event being received or sent\",\r\n \"required\": false\r\n },\r\n \"event_name_filter\": {\r\n \"type\": \"string\",\r\n \"description\": \"Specifies a filter as a regular expression, events that do not match the filter are dropped, the default is to let all events through\",\r\n \"required\": false\r\n },\r\n \"synchronous_mode\": {\r\n \"type\": \"boolean\",\r\n \"description\": \"Specifies the event handler is syncronous (receive event and send response)\",\r\n \"required\": false,\r\n \"default\": false\r\n },\r\n \"synchronous_peer\": {\r\n \"type\": \"string\",\r\n \"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\",\r\n \"required\": false\r\n },\r\n \"synchronous_timeout\": {\r\n \"type\": \"integer\",\r\n \"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\",\r\n \"required\": false\r\n },\r\n \"requestor_mode\": {\r\n \"type\": \"boolean\",\r\n \"description\": \"Specifies the event handler is in requestor mode (send event and wait for response mode)\",\r\n \"required\": false,\r\n \"default\": false\r\n },\r\n \"requestor_peer\": {\r\n \"type\": \"string\",\r\n \"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\",\r\n \"required\": false\r\n },\r\n \"requestor_timeout\": {\r\n \"type\": \"integer\",\r\n \"description\": \"The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode\",\r\n \"required\": false\r\n }\r\n }\r\n },\r\n \"onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology\": {\r\n \"derived_from\": \"tosca.datatypes.Root\",\r\n \"properties\": {\r\n \"label\": {\r\n \"type\": \"string\",\r\n \"description\": \"The label (name) of the carrier technology (such as REST, Kafka, WebSocket)\",\r\n \"required\": true\r\n },\r\n \"plugin_parameter_class_name\": {\r\n \"type\": \"string\",\r\n \"description\": \"The class name of the class that overrides default handling of event input or output for this carrier technology, defaults to the supplied input or output class\",\r\n \"required\": false\r\n }\r\n }\r\n },\r\n \"onap.datatypes.policies.controlloop.operational.apex.EventProtocol\": {\r\n \"derived_from\": \"tosca.datatypes.Root\",\r\n \"properties\": {\r\n \"label\": {\r\n \"type\": \"string\",\r\n \"description\": \"The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)\",\r\n \"required\": true\r\n },\r\n \"event_protocol_plugin_class\": {\r\n \"type\": \"string\",\r\n \"description\": \"The class name of the class that overrides default handling of the event protocol for this carrier technology, defaults to the supplied event protocol class\",\r\n \"required\": false\r\n }\r\n }\r\n },\r\n \"onap.datatypes.policies.controlloop.operational.apex.Environment\": {\r\n \"derived_from\": \"tosca.datatypes.Root\",\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"description\": \"The name of the environment variable\",\r\n \"required\": true\r\n },\r\n \"value\": {\r\n \"type\": \"string\",\r\n \"description\": \"The value of the environment variable\",\r\n \"required\": true\r\n }\r\n }\r\n },\r\n \"onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine\": {\r\n \"derived_from\": \"tosca.datatypes.Root\",\r\n \"properties\": {\r\n \"context\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context\",\r\n \"description\": \"The properties for handling context in APEX engines, defaults to using Java maps for context\",\r\n \"required\": false\r\n },\r\n \"executors\": {\r\n \"type\": \"map\",\r\n \"description\": \"The plugins for policy executors used in engines such as javascript, MVEL, Jython\",\r\n \"required\": true,\r\n \"entry_schema\": {\r\n \"description\": \"The plugin class path for this policy executor\",\r\n \"type\": \"string\"\r\n }\r\n }\r\n }\r\n },\r\n \"onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context\": {\r\n \"derived_from\": \"tosca.datatypes.Root\",\r\n \"properties\": {\r\n \"distributor\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\",\r\n \"description\": \"The plugin to be used for distributing context between APEX PDPs at runtime\",\r\n \"required\": false\r\n },\r\n \"schemas\": {\r\n \"type\": \"map\",\r\n \"description\": \"The plugins for context schemas available in APEX PDPs such as Java and Avro\",\r\n \"required\": false,\r\n \"entry_schema\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\"\r\n }\r\n },\r\n \"locking\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\",\r\n \"description\": \"The plugin to be used for locking context in and between APEX PDPs at runtime\",\r\n \"required\": false\r\n },\r\n \"persistence\": {\r\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\",\r\n \"description\": \"The plugin to be used for persisting context for APEX PDPs at runtime\",\r\n \"required\": false\r\n }\r\n }\r\n },\r\n \"onap.datatypes.policies.controlloop.operational.apex.Plugin\": {\r\n \"derived_from\": \"tosca.datatypes.Root\",\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"description\": \"The name of the executor such as Javascript, Jython or MVEL\",\r\n \"required\": true\r\n },\r\n \"plugin_class_name\": {\r\n \"type\": \"string\",\r\n \"description\": \"The class path of the plugin class for this executor\"\r\n }\r\n }\r\n }\r\n }\r\n}"
+ },
+ "url": {
+ "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes",
+ "host": [
+ "{{POLICY-API-URL}}"
+ ],
+ "path": [
+ "policy",
+ "api",
+ "v1",
+ "policytypes"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "BBS: Create Policy Type",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n \"policy_types\": {\n \"onap.policies.controlloop.operational.Apex\": {\n \"version\": \"1.0.0\",\n \"description\": \"Operational Policy for Control Loops using the APEX PDP\",\n \"properties\": {\n \"engine_service\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EngineService\",\n \"description\": \"APEX Engine Service Parameters\"\n },\n \"inputs\": {\n \"type\": \"map\",\n \"description\": \"Inputs for handling events coming into the APEX engine\",\n \"entry_schema\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EventHandler\"\n }\n },\n \"outputs\": {\n \"type\": \"map\",\n \"description\": \"Outputs for handling events going out of the APEX engine\",\n \"entry_schema\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EventHandler\"\n }\n },\n \"environment\": {\n \"type\": \"list\",\n \"description\": \"Envioronmental parameters for the APEX engine\",\n \"entry_schema\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Environment\"\n }\n }\n }\n }\n },\n \"data_types\": {\n \"onap.datatypes.policies.controlloop.operational.apex.EngineService\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"Specifies the engine name\",\n \"required\": false,\n \"default\": \"ApexEngineService\"\n },\n \"version\": {\n \"type\": \"string\",\n \"description\": \"Specifies the engine version in double dotted format\",\n \"required\": false,\n \"default\": \"1.0.0\"\n },\n \"id\": {\n \"type\": \"integer\",\n \"description\": \"Specifies the engine id\",\n \"required\": true\n },\n \"instance_count\": {\n \"type\": \"integer\",\n \"description\": \"Specifies the number of engine threads that should be run\",\n \"required\": true\n },\n \"deployment_port\": {\n \"type\": \"integer\",\n \"description\": \"Specifies the port to connect to for engine administration\",\n \"required\": false,\n \"default\": 1\n },\n \"policy_model_file_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the file from which to read the APEX policy model\",\n \"required\": false\n },\n \"policy_type_impl\": {\n \"type\": \"string\",\n \"description\": \"The policy type implementation from which to read the APEX policy model\",\n \"required\": false\n },\n \"periodic_event_period\": {\n \"type\": \"string\",\n \"description\": \"The time interval in milliseconds for the periodic scanning event, 0 means \\\"don't scan\\\"\",\n \"required\": false,\n \"default\": 0\n },\n \"engine\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine\",\n \"description\": \"The parameters for all engines in the APEX engine service\",\n \"required\": true\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.EventHandler\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"Specifies the event handler name, if not specified this is set to the key name\",\n \"required\": false\n },\n \"carrier_technology\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology\",\n \"description\": \"Specifies the carrier technology of the event handler (such as REST/Web Socket/Kafka)\",\n \"required\": true\n },\n \"event_protocol\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.EventProtocol\",\n \"description\": \"Specifies the event protocol of events for the event handler (such as Yaml/JSON/XML/POJO)\",\n \"required\": true\n },\n \"event_name\": {\n \"type\": \"string\",\n \"description\": \"Specifies the event name for events on this event handler, if not specified, the event name is read from or written to the event being received or sent\",\n \"required\": false\n },\n \"event_name_filter\": {\n \"type\": \"string\",\n \"description\": \"Specifies a filter as a regular expression, events that do not match the filter are dropped, the default is to let all events through\",\n \"required\": false\n },\n \"synchronous_mode\": {\n \"type\": \"boolean\",\n \"description\": \"Specifies the event handler is syncronous (receive event and send response)\",\n \"required\": false,\n \"default\": false\n },\n \"synchronous_peer\": {\n \"type\": \"string\",\n \"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\",\n \"required\": false\n },\n \"synchronous_timeout\": {\n \"type\": \"integer\",\n \"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\",\n \"required\": false\n },\n \"requestor_mode\": {\n \"type\": \"boolean\",\n \"description\": \"Specifies the event handler is in requestor mode (send event and wait for response mode)\",\n \"required\": false,\n \"default\": false\n },\n \"requestor_peer\": {\n \"type\": \"string\",\n \"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\",\n \"required\": false\n },\n \"requestor_timeout\": {\n \"type\": \"integer\",\n \"description\": \"The timeout in milliseconds for wait for responses to requests, this parameter is mandatory if the event handler is in requestor mode\",\n \"required\": false\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.CarrierTechnology\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"label\": {\n \"type\": \"string\",\n \"description\": \"The label (name) of the carrier technology (such as REST, Kafka, WebSocket)\",\n \"required\": true\n },\n \"plugin_parameter_class_name\": {\n \"type\": \"string\",\n \"description\": \"The class name of the class that overrides default handling of event input or output for this carrier technology, defaults to the supplied input or output class\",\n \"required\": false\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.EventProtocol\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"label\": {\n \"type\": \"string\",\n \"description\": \"The label (name) of the event protocol (such as Yaml, JSON, XML, or POJO)\",\n \"required\": true\n },\n \"event_protocol_plugin_class\": {\n \"type\": \"string\",\n \"description\": \"The class name of the class that overrides default handling of the event protocol for this carrier technology, defaults to the supplied event protocol class\",\n \"required\": false\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.Environment\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the environment variable\",\n \"required\": true\n },\n \"value\": {\n \"type\": \"string\",\n \"description\": \"The value of the environment variable\",\n \"required\": true\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.engineservice.Engine\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"context\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context\",\n \"description\": \"The properties for handling context in APEX engines, defaults to using Java maps for context\",\n \"required\": false\n },\n \"executors\": {\n \"type\": \"map\",\n \"description\": \"The plugins for policy executors used in engines such as javascript, MVEL, Jython\",\n \"required\": true,\n \"entry_schema\": {\n \"description\": \"The plugin class path for this policy executor\",\n \"type\": \"string\"\n }\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.engineservice.engine.Context\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"distributor\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\",\n \"description\": \"The plugin to be used for distributing context between APEX PDPs at runtime\",\n \"required\": false\n },\n \"schemas\": {\n \"type\": \"map\",\n \"description\": \"The plugins for context schemas available in APEX PDPs such as Java and Avro\",\n \"required\": false,\n \"entry_schema\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\"\n }\n },\n \"locking\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\",\n \"description\": \"The plugin to be used for locking context in and between APEX PDPs at runtime\",\n \"required\": false\n },\n \"persistence\": {\n \"type\": \"onap.datatypes.policies.controlloop.operational.apex.Plugin\",\n \"description\": \"The plugin to be used for persisting context for APEX PDPs at runtime\",\n \"required\": false\n }\n }\n },\n \"onap.datatypes.policies.controlloop.operational.apex.Plugin\": {\n \"derived_from\": \"tosca.datatypes.Root\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the executor such as Javascript, Jython or MVEL\",\n \"required\": true\n },\n \"plugin_class_name\": {\n \"type\": \"string\",\n \"description\": \"The class path of the plugin class for this executor\"\n }\n }\n }\n }\n}"
+ },
+ "url": {
+ "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes",
+ "host": [
+ "{{POLICY-API-URL}}"
+ ],
+ "path": [
+ "policy",
+ "api",
+ "v1",
+ "policytypes"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "Fetch Policy Type",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "url": {
+ "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0",
+ "host": [
+ "{{POLICY-API-URL}}"
+ ],
+ "path": [
+ "policy",
+ "api",
+ "v1",
+ "policytypes",
+ "onap.policies.controlloop.operational.Apex",
+ "versions",
+ "1.0.0"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "Create Policy",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\r\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\r\n \"topology_template\": {\r\n \"policies\": [\r\n {\r\n \"operational.apex.sampledomain\": {\r\n \"type\": \"onap.policies.controlloop.operational.Apex\",\r\n \"type_version\": \"1.0.0\",\r\n \"version\": \"1.0.0\",\r\n \"metadata\": {\r\n \"policy-id\": \"operational.apex.sampledomain\",\r\n \"policy-version\": 1\r\n },\r\n \"properties\": {\r\n \"engineServiceParameters\": {\r\n \"name\": \"MyApexEngine\",\r\n \"version\": \"0.0.1\",\r\n \"id\": 45,\r\n \"instanceCount\": 4,\r\n \"deploymentPort\": 12561,\r\n \"policy_type_impl\": {\r\n \"apexPolicyModel\": {\r\n \"key\": {\r\n \"name\": \"SamplePolicyModelJAVASCRIPT\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"keyInformation\": {\r\n \"key\": {\r\n \"name\": \"KeyInformation\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"keyInfoMap\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Context\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Context\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"ca36bfd8-6042-3633-8c85-89c66507c3bf\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Context:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0000\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0000\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"465a81cc-885f-3a4d-bc4e-1508da92b236\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0000:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"36b2d570-fff7-3a4b-bab2-6bf492f5129a\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0001:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"ff6160a7-fb5e-379c-a6d2-2cd28053eacf\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0002:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"5899e216-2abf-3781-abc4-2c257b92721e\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0003:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0004\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0004\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"7c2692a7-4587-3d09-abf9-d96b339a316f\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0004:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0100\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0100\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0100:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0101\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0101\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"edbfa868-2ab2-30fd-8078-4c7f67ca6122\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0101:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0102\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0102\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0102:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0103\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0103\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"c2550912-10d9-3000-8826-377288cd6cb1\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0103:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0104\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0104\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"f6d75b71-c8a7-3337-a121-88d68c389f5a\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Event0104:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Events\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Events\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"0215644c-4531-375c-8335-d558b4de8c03\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Events:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"976a79e7-5c80-3c03-9503-da3f41fec395\",\r\n \"description\": \"Generated description for concept referred to by key \\\"ExternalContextAlbum:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"c95e9e5f-d2c7-3ac7-a205-ea3574530cb7\",\r\n \"description\": \"Generated description for concept referred to by key \\\"GlobalContextAlbum:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"KeyInformation\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"KeyInformation\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"1ff2f905-685c-3caf-95bc-0bbc90345888\",\r\n \"description\": \"Generated description for concept referred to by key \\\"KeyInformation:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Policies\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Policies\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"f54c3b2b-be76-31c4-adfc-87c494c06808\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Policies:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Policy0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Policy0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"3410e939-30ca-32c4-a2d8-c30b6fee6eec\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Policy0:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"e27564c4-3cbf-3db2-9bf3-83ae80a2f907\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Policy0ContextAlbum:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Policy1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Policy1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"d0b2b585-f344-33b8-af9e-250e7f4cfbce\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Policy1:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Policy1ContextAlbum:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"SamplePolicyModelJAVASCRIPT\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"SamplePolicyModelJAVASCRIPT\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"bc8ee312-81ce-3c4a-92d5-4a73b8077148\",\r\n \"description\": \"Generated description for concept referred to by key \\\"SamplePolicyModelJAVASCRIPT:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Act0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"0589ff20-adcc-3ce5-95fe-8d7978ed54ed\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Act0:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Act1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"095b126d-ca8b-32c9-ad52-d744e817a79c\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Act1:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Act2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"3d786b4c-d9ee-3367-ab71-c67271a4ea2f\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Act2:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Act3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"9231753e-20c5-3436-982f-9100340cc570\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Act3:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Decide0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"502383d3-483f-3a56-a426-2f0406674c8d\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Decide0:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Decide1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"16598106-41c8-3b5a-99c6-5fcf6d1a5ddf\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Decide1:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Decide2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"ad3a89f5-e369-3c66-b22c-669f7b3653b8\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Decide2:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Decide3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"56815939-1164-3867-9ed1-0a27ff8aafb3\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Decide3:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Establish0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"0db0c566-ecd7-3e27-9865-4b82c893abdb\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Establish0:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Establish1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Establish1:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Establish2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Establish2:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Establish3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Establish3:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Match0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"051bcfd5-cf73-3c89-8ee7-ea6e005ec059\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Match0:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Match1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"3754fe19-98f2-34a1-9f45-db31052208d8\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Match1:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Match2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"8c200709-a180-3c8b-916f-275ff49ce194\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Match2:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Match3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"a1a879c6-4510-33b0-bbd0-ad6256189a37\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Task_Match3:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Tasks\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Tasks\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"a7fab96b-ce1c-37ce-bbb2-556b6db524a5\",\r\n \"description\": \"Generated description for concept referred to by key \\\"Tasks:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"0a652886-c88d-3f8c-8994-ae9161e7c963\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestCase:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem000\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem000\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"8efba9fa-371e-33df-a7d6-88b0284e7fd0\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem000:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"3740077c-a2b3-356b-81dc-5ded2118a951\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem001:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"b5c7df95-9af5-322f-9ea8-eb440a2bf926\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem002:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem003:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem004\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem004\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"093cda11-eaeb-3a46-a5b6-d5e30c00935b\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem004:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem005\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem005\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"569a758d-ba40-37c0-aebb-7ad138df25ac\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem005:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem006\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem006\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"252818d9-b61f-3962-a905-8865fb00fb04\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem006:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem007\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem007\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"fe1a5f7c-c083-377b-a797-752b01fc6c73\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem007:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem008\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem008\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"aa87d007-d07e-3f67-8c6d-0ebc3d85479d\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem008:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem009\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem009\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"126e7a3a-11b6-3f88-9397-c21d8819f859\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem009:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem00A\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem00A\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem00A:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem00B\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem00B\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"dbdc98df-3ff4-360c-b8d3-a7a836ac3de6\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem00B:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem00C\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem00C\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"32a2f355-77f3-3b25-ace6-7a9c5763a5ad\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestContextItem00C:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestDatatypes\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestDatatypes\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"3f95472c-973e-30e2-95f1-bf00cbef909a\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestDatatypes:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestExternalContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestExternalContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"610dbbd4-9149-3b3c-9af4-819056f0e169\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestExternalContextItem:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestGlobalContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestGlobalContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"07fa8f68-55f1-3fd0-81c1-749a379753a7\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestGlobalContextItem:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestPolicyContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestPolicyContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"d9c93cd1-539e-35c5-aaec-bb711ceb1251\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestPolicyContextItem:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"683fe492-7eae-3ac7-9924-bb7850208d05\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestSlogan:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"bba25b6f-e3cd-3060-9022-4ef3a79f8eb0\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestTemperature:0.0.1\\\"\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"UUID\": \"97b73937-c344-33c0-924c-4d26b6449564\",\r\n \"description\": \"Generated description for concept referred to by key \\\"TestTimestamp:0.0.1\\\"\"\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"policies\": {\r\n \"key\": {\r\n \"name\": \"Policies\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"policyMap\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Policy0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"policyKey\": {\r\n \"name\": \"Policy0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"template\": \"MEDA\",\r\n \"state\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Act\",\r\n \"value\": {\r\n \"stateKey\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Act\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"Event0003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"stateOutputs\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Act_NULL\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n },\r\n \"outgoingEvent\": {\r\n \"name\": \"Event0004\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nextState\": {\r\n \"parentKeyName\": \"NULL\",\r\n \"parentKeyVersion\": \"0.0.0\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"NULL\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskSelectionLogic\": {\r\n \"key\": \"TaskSelectionLigic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n },\r\n \"stateFinalizerLogicMap\": {\r\n \"entry\": []\r\n },\r\n \"defaultTask\": {\r\n \"name\": \"Task_Act1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskReferences\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Task_Act0_DIRECT_Act_NULL\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Task_Act1_DIRECT_Act_NULL\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Task_Act2_DIRECT_Act_NULL\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Task_Act3_DIRECT_Act_NULL\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": \"Decide\",\r\n \"value\": {\r\n \"stateKey\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Decide\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"Event0002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"stateOutputs\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Decide_Act\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n },\r\n \"outgoingEvent\": {\r\n \"name\": \"Event0003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nextState\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Act\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskSelectionLogic\": {\r\n \"key\": \"TaskSelectionLigic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n },\r\n \"stateFinalizerLogicMap\": {\r\n \"entry\": []\r\n },\r\n \"defaultTask\": {\r\n \"name\": \"Task_Decide3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskReferences\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Task_Decide0_DIRECT_Decide_Act\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Task_Decide1_DIRECT_Decide_Act\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Task_Decide2_DIRECT_Decide_Act\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Task_Decide3_DIRECT_Decide_Act\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": \"Establish\",\r\n \"value\": {\r\n \"stateKey\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Establish\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"Event0001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"stateOutputs\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Establish_Decide\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n },\r\n \"outgoingEvent\": {\r\n \"name\": \"Event0002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nextState\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Decide\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskSelectionLogic\": {\r\n \"key\": \"TaskSelectionLigic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n },\r\n \"stateFinalizerLogicMap\": {\r\n \"entry\": []\r\n },\r\n \"defaultTask\": {\r\n \"name\": \"Task_Establish2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskReferences\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Task_Establish0_DIRECT_Establish_Decide\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Task_Establish1_DIRECT_Establish_Decide\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Task_Establish2_DIRECT_Establish_Decide\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Task_Establish3_DIRECT_Establish_Decide\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": \"Match\",\r\n \"value\": {\r\n \"stateKey\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Match\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"Event0000\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"stateOutputs\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Match_Establish\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n },\r\n \"outgoingEvent\": {\r\n \"name\": \"Event0001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nextState\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Establish\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskSelectionLogic\": {\r\n \"key\": \"TaskSelectionLigic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n },\r\n \"stateFinalizerLogicMap\": {\r\n \"entry\": []\r\n },\r\n \"defaultTask\": {\r\n \"name\": \"Task_Match0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskReferences\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Task_Match0_DIRECT_Match_Establish\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Task_Match1_DIRECT_Match_Establish\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Task_Match2_DIRECT_Match_Establish\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Task_Match3_DIRECT_Match_Establish\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"firstState\": \"Match\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Policy1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"policyKey\": {\r\n \"name\": \"Policy1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"template\": \"MEDA\",\r\n \"state\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Act\",\r\n \"value\": {\r\n \"stateKey\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Act\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"Event0103\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"stateOutputs\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Act_NULL\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n },\r\n \"outgoingEvent\": {\r\n \"name\": \"Event0104\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nextState\": {\r\n \"parentKeyName\": \"NULL\",\r\n \"parentKeyVersion\": \"0.0.0\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"NULL\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskSelectionLogic\": {\r\n \"key\": \"TaskSelectionLigic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n },\r\n \"stateFinalizerLogicMap\": {\r\n \"entry\": []\r\n },\r\n \"defaultTask\": {\r\n \"name\": \"Task_Act0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskReferences\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Task_Act0_DIRECT_Act_NULL\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Task_Act1_DIRECT_Act_NULL\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Task_Act2_DIRECT_Act_NULL\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Task_Act3_DIRECT_Act_NULL\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Act\",\r\n \"localName\": \"Act_NULL\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": \"Decide\",\r\n \"value\": {\r\n \"stateKey\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Decide\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"Event0102\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"stateOutputs\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Decide_Act\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n },\r\n \"outgoingEvent\": {\r\n \"name\": \"Event0103\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nextState\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Act\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskSelectionLogic\": {\r\n \"key\": \"TaskSelectionLigic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n },\r\n \"stateFinalizerLogicMap\": {\r\n \"entry\": []\r\n },\r\n \"defaultTask\": {\r\n \"name\": \"Task_Decide3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskReferences\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Task_Decide0_DIRECT_Decide_Act\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Task_Decide1_DIRECT_Decide_Act\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Task_Decide2_DIRECT_Decide_Act\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Task_Decide3_DIRECT_Decide_Act\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Decide\",\r\n \"localName\": \"Decide_Act\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": \"Establish\",\r\n \"value\": {\r\n \"stateKey\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Establish\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"Event0101\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"stateOutputs\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Establish_Decide\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n },\r\n \"outgoingEvent\": {\r\n \"name\": \"Event0102\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nextState\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Decide\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskSelectionLogic\": {\r\n \"key\": \"TaskSelectionLigic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n },\r\n \"stateFinalizerLogicMap\": {\r\n \"entry\": []\r\n },\r\n \"defaultTask\": {\r\n \"name\": \"Task_Establish1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskReferences\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Task_Establish0_DIRECT_Establish_Decide\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Task_Establish1_DIRECT_Establish_Decide\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Task_Establish2_DIRECT_Establish_Decide\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Task_Establish3_DIRECT_Establish_Decide\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Establish\",\r\n \"localName\": \"Establish_Decide\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": \"Match\",\r\n \"value\": {\r\n \"stateKey\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Match\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"Event0100\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"stateOutputs\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Match_Establish\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n },\r\n \"outgoingEvent\": {\r\n \"name\": \"Event0101\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nextState\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Establish\"\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskSelectionLogic\": {\r\n \"key\": \"TaskSelectionLigic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n },\r\n \"stateFinalizerLogicMap\": {\r\n \"entry\": []\r\n },\r\n \"defaultTask\": {\r\n \"name\": \"Task_Match3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskReferences\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Task_Match0_DIRECT_Match_Establish\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Task_Match1_DIRECT_Match_Establish\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Task_Match2_DIRECT_Match_Establish\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Task_Match3_DIRECT_Match_Establish\"\r\n },\r\n \"outputType\": \"DIRECT\",\r\n \"output\": {\r\n \"parentKeyName\": \"Policy1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"Match\",\r\n \"localName\": \"Match_Establish\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"firstState\": \"Match\"\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"tasks\": {\r\n \"key\": {\r\n \"name\": \"Tasks\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"taskMap\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Act0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestActCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestActCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestActStateTime\",\r\n \"value\": {\r\n \"key\": \"TestActStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Act0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter1\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Act0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter1\"\r\n },\r\n \"defaultValue\": \"DefaultValue1\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter2\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Act0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter2\"\r\n },\r\n \"defaultValue\": \"DefaultValue2\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Act1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestActCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestActCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestActStateTime\",\r\n \"value\": {\r\n \"key\": \"TestActStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Act1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter1\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Act1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter1\"\r\n },\r\n \"defaultValue\": \"DefaultValue1\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Act2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestActCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestActCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestActStateTime\",\r\n \"value\": {\r\n \"key\": \"TestActStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Act2\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Act3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Act3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestActCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestActCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestActStateTime\",\r\n \"value\": {\r\n \"key\": \"TestActStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Act3\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Decide0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Decide0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter1\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Decide0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter1\"\r\n },\r\n \"defaultValue\": \"DefaultValue1\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter2\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Decide0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter2\"\r\n },\r\n \"defaultValue\": \"DefaultValue2\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Decide1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Decide1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter1\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Decide1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter1\"\r\n },\r\n \"defaultValue\": \"DefaultValue1\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Decide2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Decide2\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Decide3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Decide3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Decide3\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Establish0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Establish0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter1\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Establish0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter1\"\r\n },\r\n \"defaultValue\": \"DefaultValue1\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter2\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Establish0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter2\"\r\n },\r\n \"defaultValue\": \"DefaultValue2\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Establish1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Establish1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter1\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Establish1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter1\"\r\n },\r\n \"defaultValue\": \"DefaultValue1\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Establish2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Establish2\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Establish3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Establish3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Establish3\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Match0\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Match0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter1\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Match0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter1\"\r\n },\r\n \"defaultValue\": \"DefaultValue1\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter2\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Match0\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter2\"\r\n },\r\n \"defaultValue\": \"DefaultValue2\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Match1\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Match1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n },\r\n {\r\n \"key\": \"Parameter1\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Match1\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter1\"\r\n },\r\n \"defaultValue\": \"DefaultValue1\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Match2\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Match2\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Task_Match3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Task_Match3\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"inputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"outputFields\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n },\r\n \"taskParameters\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"Parameter0\",\r\n \"value\": {\r\n \"key\": {\r\n \"parentKeyName\": \"Task_Match3\",\r\n \"parentKeyVersion\": \"0.0.1\",\r\n \"parentLocalName\": \"NULL\",\r\n \"localName\": \"Parameter0\"\r\n },\r\n \"defaultValue\": \"DefaultValue0\"\r\n }\r\n }\r\n ]\r\n },\r\n \"contextAlbumReference\": [\r\n {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n }\r\n ],\r\n \"taskLogic\": {\r\n \"key\": \"_TaskLogic\",\r\n \"logicFlavour\": \"JAVASCRIPT\",\r\n \"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;\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"events\": {\r\n \"key\": {\r\n \"name\": \"Events\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"eventMap\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"Event0000\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0000\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Outside\",\r\n \"target\": \"Match\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Match\",\r\n \"target\": \"Establish\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Establish\",\r\n \"target\": \"Decide\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Decide\",\r\n \"target\": \"Act\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0004\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0004\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Act\",\r\n \"target\": \"Outside\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestActCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestActCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestActStateTime\",\r\n \"value\": {\r\n \"key\": \"TestActStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0100\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0100\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Outside\",\r\n \"target\": \"Match\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0101\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0101\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Match\",\r\n \"target\": \"Establish\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0102\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0102\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Establish\",\r\n \"target\": \"Decide\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0103\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0103\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Decide\",\r\n \"target\": \"Act\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Event0104\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Event0104\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"nameSpace\": \"org.onap.policy.apex.sample.events\",\r\n \"source\": \"Act\",\r\n \"target\": \"Outside\",\r\n \"parameter\": {\r\n \"entry\": [\r\n {\r\n \"key\": \"TestActCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestActCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestActStateTime\",\r\n \"value\": {\r\n \"key\": \"TestActStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestDecideCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestDecideStateTime\",\r\n \"value\": {\r\n \"key\": \"TestDecideStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestEstablishCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"value\": {\r\n \"key\": \"TestEstablishStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCase\",\r\n \"value\": {\r\n \"key\": \"TestMatchCase\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"value\": {\r\n \"key\": \"TestMatchCaseSelected\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestMatchStateTime\",\r\n \"value\": {\r\n \"key\": \"TestMatchStateTime\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestSlogan\",\r\n \"value\": {\r\n \"key\": \"TestSlogan\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTemperature\",\r\n \"value\": {\r\n \"key\": \"TestTemperature\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n },\r\n {\r\n \"key\": \"TestTimestamp\",\r\n \"value\": {\r\n \"key\": \"TestTimestamp\",\r\n \"fieldSchemaKey\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"optional\": false\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"albums\": {\r\n \"key\": {\r\n \"name\": \"Context\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"albums\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"ExternalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"scope\": \"EXTERNAL\",\r\n \"isWritable\": false,\r\n \"itemSchema\": {\r\n \"name\": \"TestExternalContextItem\",\r\n \"version\": \"0.0.1\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"GlobalContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"scope\": \"GLOBAL\",\r\n \"isWritable\": true,\r\n \"itemSchema\": {\r\n \"name\": \"TestGlobalContextItem\",\r\n \"version\": \"0.0.1\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Policy0ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"scope\": \"APPLICATION\",\r\n \"isWritable\": true,\r\n \"itemSchema\": {\r\n \"name\": \"TestPolicyContextItem\",\r\n \"version\": \"0.0.1\"\r\n }\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"Policy1ContextAlbum\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"scope\": \"APPLICATION\",\r\n \"isWritable\": true,\r\n \"itemSchema\": {\r\n \"name\": \"TestPolicyContextItem\",\r\n \"version\": \"0.0.1\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"schemas\": {\r\n \"key\": {\r\n \"name\": \"TestDatatypes\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemas\": {\r\n \"entry\": [\r\n {\r\n \"key\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestCase\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"java.lang.Byte\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem000\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem000\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem000\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem001\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem001\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem002\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem002\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem003\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem003\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem004\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem004\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem004\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem005\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem005\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem005\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem006\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem006\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem006\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem007\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem007\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem007\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem008\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem008\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem008\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem009\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem009\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem009\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem00A\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem00A\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem00A\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem00B\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem00B\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem00B\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestContextItem00C\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestContextItem00C\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestContextItem00C\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestExternalContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestExternalContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestExternalContextItem\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestGlobalContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestGlobalContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestGlobalContextItem\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestPolicyContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestPolicyContextItem\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"org.onap.policy.apex.context.test.concepts.TestPolicyContextItem\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestSlogan\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"java.lang.String\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestTemperature\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"java.lang.Double\"\r\n }\r\n },\r\n {\r\n \"key\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"value\": {\r\n \"key\": {\r\n \"name\": \"TestTimestamp\",\r\n \"version\": \"0.0.1\"\r\n },\r\n \"schemaFlavour\": \"Java\",\r\n \"schemaDefinition\": \"java.lang.Long\"\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n },\r\n \"engineParameters\": {\r\n \"executorParameters\": {\r\n \"JAVASCRIPT\": {\r\n \"parameterClassName\": \"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters\"\r\n }\r\n }\r\n }\r\n },\r\n \"eventInputParameters\": {\r\n \"FirstConsumer\": {\r\n \"carrierTechnologyParameters\": {\r\n \"carrierTechnology\": \"RESTSERVER\",\r\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters\",\r\n \"parameters\": {\r\n \"standalone\": true,\r\n \"host\": \"0.0.0.0\",\r\n \"port\": 23324\r\n }\r\n },\r\n \"eventProtocolParameters\": {\r\n \"eventProtocol\": \"JSON\"\r\n },\r\n \"synchronousMode\": true,\r\n \"synchronousPeer\": \"FirstProducer\",\r\n \"synchronousTimeout\": 2000\r\n }\r\n },\r\n \"eventOutputParameters\": {\r\n \"FirstProducer\": {\r\n \"carrierTechnologyParameters\": {\r\n \"carrierTechnology\": \"RESTSERVER\",\r\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters\"\r\n },\r\n \"eventProtocolParameters\": {\r\n \"eventProtocol\": \"JSON\"\r\n },\r\n \"synchronousMode\": true,\r\n \"synchronousPeer\": \"FirstConsumer\",\r\n \"synchronousTimeout\": 2000\r\n }\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n}"
+ },
+ "url": {
+ "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies",
+ "host": [
+ "{{POLICY-API-URL}}"
+ ],
+ "path": [
+ "policy",
+ "api",
+ "v1",
+ "policytypes",
+ "onap.policies.controlloop.operational.Apex",
+ "versions",
+ "1.0.0",
+ "policies"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "BBS: Create Policy",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"tosca_definitions_version\": \"tosca_simple_yaml_1_1_0\",\n \"topology_template\": {\n \"policies\": [\n {\n \"operational.onapbbs\": {\n \"type\": \"onap.policies.controlloop.operational.Apex\",\n \"type_version\": \"1.0.0\",\n \"version\": \"1.0.0\",\n \"metadata\": {\n \"policy-id\": \"operational.onapbbs\",\n \"policy-version\": \"1.0.0\"\n },\n \"properties\": {\n \"engineServiceParameters\": {\n \"name\": \"NomadicONTPolicyModelEngine\",\n \"version\": \"0.0.1\",\n \"id\": 101,\n \"instanceCount\": 4,\n \"deploymentPort\": 12345,\n \"engineParameters\": {\n \"executorParameters\": {\n \"MVEL\": {\n \"parameterClassName\": \"org.onap.policy.apex.plugins.executor.mvel.MvelExecutorParameters\"\n },\n \"JAVASCRIPT\": {\n \"parameterClassName\": \"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters\"\n }\n },\n \"contextParameters\": {\n \"parameterClassName\": \"org.onap.policy.apex.context.parameters.ContextParameters\",\n \"schemaParameters\": {\n \"Avro\": {\n \"parameterClassName\": \"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters\"\n },\n \"Java\": {\n \"parameterClassName\": \"org.onap.policy.apex.context.impl.schema.java.JavaSchemaHelperParameters\",\n \"jsonAdapters\": {\n \"Instant\": {\n \"adaptedClass\": \"java.time.Instant\",\n \"adaptorClass\": \"org.onap.policy.controlloop.util.Serialization$GsonInstantAdapter\"\n }\n }\n }\n }\n }\n },\n \"policy_type_impl\": {\n \"apexPolicyModel\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel\",\n \"version\": \"1.0.2\"\n },\n \"keyInformation\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_KeyInfo\",\n \"version\": \"1.0.2\"\n },\n \"keyInfoMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"AAIServiceAssignedTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAIServiceAssignedTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"2af956bf-4c3f-370b-8112-44d7eca870a7\",\n \"description\": \"Generated description for concept referred to by key \\\"AAIServiceAssignedTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"AAIServiceCreateTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAIServiceCreateTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"e1fcaf11-adce-3d40-90e2-9b74d523b7ba\",\n \"description\": \"Generated description for concept referred to by key \\\"AAIServiceCreateTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"AAI_CPE_AUTH_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAI_CPE_AUTH_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"UUID\": \"11fbba56-9d56-398b-aa9f-8f1242384de5\",\n \"description\": \"Generated description for concept referred to by key \\\"AAI_CPE_AUTH_UPDATE:1.0.0\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"AAI_SERVICE_ASSIGNED\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAI_SERVICE_ASSIGNED\",\n \"version\": \"1.0.0\"\n },\n \"UUID\": \"91964d94-023a-3039-bb27-da28d38206e6\",\n \"description\": \"Generated description for concept referred to by key \\\"AAI_SERVICE_ASSIGNED:1.0.0\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"AAI_SERVICE_CREATE\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAI_SERVICE_CREATE\",\n \"version\": \"1.0.0\"\n },\n \"UUID\": \"5ee7ee54-2155-3e11-b899-8af74d8044ce\",\n \"description\": \"Generated description for concept referred to by key \\\"AAI_SERVICE_CREATE:1.0.0\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"CPEAuthenticationPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"CPEAuthenticationPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"f8c31efd-6755-3bd8-8720-b622e7e61a4d\",\n \"description\": \"Generated description for concept referred to by key \\\"CPEAuthenticationPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"CPE_Authentication\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"CPE_Authentication\",\n \"version\": \"1.0.2\"\n },\n \"UUID\": \"7fe1283a-ff26-3fdc-9856-bcebd2f7b3d2\",\n \"description\": \"Generated description for concept referred to by key \\\"CPE_Authentication:1.0.2\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"END_CONTROL_LOOP\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"END_CONTROL_LOOP\",\n \"version\": \"1.0.0\"\n },\n \"UUID\": \"e5b7f639-1586-3a51-a968-6315e0b79f27\",\n \"description\": \"Generated description for concept referred to by key \\\"END_CONTROL_LOOP:1.0.0\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"END_EVENT\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"END_EVENT\",\n \"version\": \"1.0.0\"\n },\n \"UUID\": \"0378736c-46f7-39fb-9e89-3c34e124ade1\",\n \"description\": \"Generated description for concept referred to by key \\\"END_EVENT:1.0.0\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ERROR_LOG\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ERROR_LOG\",\n \"version\": \"1.0.0\"\n },\n \"UUID\": \"a220439e-cc77-3a05-8ac9-773ab68f417e\",\n \"description\": \"Generated description for concept referred to by key \\\"ERROR_LOG:1.0.0\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ErrorAAIServiceAssignedLogTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ErrorAAIServiceAssignedLogTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"4b5311bb-b3e8-31f6-9ea1-0fd026d739d7\",\n \"description\": \"Generated description for concept referred to by key \\\"ErrorAAIServiceAssignedLogTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ErrorSdncResourceUpdateTaskLogTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ErrorSdncResourceUpdateTaskLogTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"daa86721-a761-334f-96bf-6f5c781f65ed\",\n \"description\": \"Generated description for concept referred to by key \\\"ErrorSdncResourceUpdateTaskLogTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"GetBBSCloseLoopEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"GetBBSCloseLoopEventTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"0791e26f-5d94-3cee-991c-31f226e83c4e\",\n \"description\": \"Generated description for concept referred to by key \\\"GetBBSCloseLoopEventTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicEventSuccessTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicEventSuccessTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"6fe3e6f7-a429-3979-9146-db0fa239591b\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicEventSuccessTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"3d9cf947-a5ef-3781-8c70-ec0e94f65693\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicONTContextAlbum:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicONTContextType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTContextType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"b9508c97-79b6-35ec-8e45-731eac9d37cc\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicONTContextType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel\",\n \"version\": \"1.0.2\"\n },\n \"UUID\": \"457e3fcf-a901-37b2-bfc0-14d56abfc507\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicONTPolicyModel:1.0.2\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Albums\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Albums\",\n \"version\": \"1.0.2\"\n },\n \"UUID\": \"9a0edd63-7d9b-3122-8750-d6a17c248f0f\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicONTPolicyModel_Albums:1.0.2\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Events\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Events\",\n \"version\": \"1.0.2\"\n },\n \"UUID\": \"82ff2635-a05e-3b3e-ae59-526735db78fc\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicONTPolicyModel_Events:1.0.2\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_KeyInfo\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_KeyInfo\",\n \"version\": \"1.0.2\"\n },\n \"UUID\": \"530bcf35-a3cb-305a-8b41-0499945b510f\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicONTPolicyModel_KeyInfo:1.0.2\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Policies\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Policies\",\n \"version\": \"1.0.2\"\n },\n \"UUID\": \"9223db37-fb3b-3b3f-a85b-eb7e7b3a4e10\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicONTPolicyModel_Policies:1.0.2\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Schemas\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Schemas\",\n \"version\": \"1.0.2\"\n },\n \"UUID\": \"41ba496f-6bfb-31e7-972e-6b2fab3e7d52\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicONTPolicyModel_Schemas:1.0.2\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Tasks\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Tasks\",\n \"version\": \"1.0.2\"\n },\n \"UUID\": \"c337fda0-0a48-3329-af48-ed710214c092\",\n \"description\": \"Generated description for concept referred to by key \\\"NomadicONTPolicyModel_Tasks:1.0.2\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"Nomadic_ONT\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"Nomadic_ONT\",\n \"version\": \"1.0.2\"\n },\n \"UUID\": \"b375c6f5-19ca-390f-ba19-2a0a49f233af\",\n \"description\": \"Generated description for concept referred to by key \\\"Nomadic_ONT:1.0.2\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ONTRegistrationPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ONTRegistrationPolicy\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"45773f7e-e1f6-3286-8f82-144836629edb\",\n \"description\": \"Generated description for concept referred to by key \\\"ONTRegistrationPolicy:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SDNC_RESOURCE_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SDNC_RESOURCE_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"UUID\": \"c8fe0156-80c7-3e8d-8aa8-56be04fb1147\",\n \"description\": \"Generated description for concept referred to by key \\\"SDNC_RESOURCE_UPDATE:1.0.0\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SdncResourceUpdateTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SdncResourceUpdateTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"db7d3e67-12a8-35c8-b063-bc2a1fd77662\",\n \"description\": \"Generated description for concept referred to by key \\\"SdncResourceUpdateTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"ServiceUpdateStateCpeAuthTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ServiceUpdateStateCpeAuthTask\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"78fa10b8-23e9-3362-893a-0dd7a656c7b6\",\n \"description\": \"Generated description for concept referred to by key \\\"ServiceUpdateStateCpeAuthTask:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleBooleanType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleLongType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"8a4957cf-9493-3a76-8c22-a208e23259af\",\n \"description\": \"Generated description for concept referred to by key \\\"SimpleStringType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"6a8cc68e-dfc8-3403-9c6d-071c886b319c\",\n \"description\": \"Generated description for concept referred to by key \\\"UUIDType:0.0.1\\\"\"\n }\n },\n {\n \"key\": {\n \"name\": \"VirtualControlLoopEventType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"VirtualControlLoopEventType\",\n \"version\": \"0.0.1\"\n },\n \"UUID\": \"15aca887-8f6c-3713-8114-0f49f03adab7\",\n \"description\": \"Generated description for concept referred to by key \\\"VirtualControlLoopEventType:0.0.1\\\"\"\n }\n }\n ]\n }\n },\n \"policies\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Policies\",\n \"version\": \"1.0.2\"\n },\n \"policyMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"CPEAuthenticationPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"CPEAuthenticationPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"INIT\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"CPEAuthenticationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"INIT\"\n },\n \"trigger\": {\n \"name\": \"CPE_Authentication\",\n \"version\": \"1.0.2\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"ServiceUpdateCpeAuthOutPut\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"CPEAuthenticationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"INIT\",\n \"localName\": \"ServiceUpdateCpeAuthOutPut\"\n },\n \"outgoingEvent\": {\n \"name\": \"AAI_CPE_AUTH_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"ServiceUpdateStateCpeAuthTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ServiceUpdateStateCpeAuthTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"CPEAuthenticationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"INIT\",\n \"localName\": \"CPEAuthenticationPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"CPEAuthenticationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"INIT\",\n \"localName\": \"ServiceUpdateCpeAuthOutPut\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"INIT\"\n }\n },\n {\n \"key\": {\n \"name\": \"ONTRegistrationPolicy\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"policyKey\": {\n \"name\": \"ONTRegistrationPolicy\",\n \"version\": \"0.0.1\"\n },\n \"template\": \"Freestyle\",\n \"state\": {\n \"entry\": [\n {\n \"key\": \"AAI_SERVICE_ASSIGN\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"AAI_SERVICE_ASSIGN\"\n },\n \"trigger\": {\n \"name\": \"AAI_SERVICE_ASSIGNED\",\n \"version\": \"1.0.0\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"AAIServiceAssignedOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"AAI_SERVICE_ASSIGN\",\n \"localName\": \"AAIServiceAssignedOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"SDNC_RESOURCE_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"nextState\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SDNC_RES_UPDATE\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"AAIServiceAssignedTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"AAIServiceAssignedTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"AAI_SERVICE_ASSIGN\",\n \"localName\": \"ONTRegistrationPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"AAI_SERVICE_ASSIGN\",\n \"localName\": \"AAIServiceAssignedOutput\"\n }\n }\n }\n ]\n }\n }\n },\n {\n \"key\": \"AAI_SERVICE_CREATE\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"AAI_SERVICE_CREATE\"\n },\n \"trigger\": {\n \"name\": \"AAI_SERVICE_CREATE\",\n \"version\": \"1.0.0\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"AAIServiceCreateTaskOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"AAI_SERVICE_CREATE\",\n \"localName\": \"AAIServiceCreateTaskOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"END_CONTROL_LOOP\",\n \"version\": \"1.0.0\"\n },\n \"nextState\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NOMADIC_ONT_REG_SUCCESS\"\n }\n }\n },\n {\n \"key\": \"SdncResourceUpdateErrorLogOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"AAI_SERVICE_CREATE\",\n \"localName\": \"SdncResourceUpdateErrorLogOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"ERROR_LOG\",\n \"version\": \"1.0.0\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskSelectionLogic\": {\n \"key\": \"TaskSelectionLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. 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 */\\nexecutor.logger.info(\\\"Begin Execution SU2orInitStateSelect.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nvar returnValue = executor.isTrue;\\nvar result = null;\\n\\nvar attachmentPoint = executor.inFields.get(\\\"attachmentPoint\\\");\\nvar NomadicONTContext = executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").get(\\n attachmentPoint);\\n\\nexecutor.logger.info(executor.inFields);\\n\\nresult = NomadicONTContext.get(\\\"result\\\");\\n\\nif (result === \\\"SUCCESS\\\") {\\n executor.subject.getTaskKey(\\\"AAIServiceCreateTask\\\").copyTo(executor.selectedTask);\\n} else {\\n executor.subject.getTaskKey(\\\"SdncResourceUpdateErrorLogOutput\\\").copyTo(\\n executor.selectedTask);\\n onsetFlag = executor.isFalse;\\n}\\n\\nexecutor.logger.info(\\\"State Selected Task:\\\" + executor.selectedTask);\\nexecutor.logger.info(\\\"End Execution SU2orInitStateSelect.js\\\");\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"AAIServiceCreateTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"AAIServiceCreateTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"AAI_SERVICE_CREATE\",\n \"localName\": \"ONTRegistrationPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"AAI_SERVICE_CREATE\",\n \"localName\": \"AAIServiceCreateTaskOutput\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ErrorSdncResourceUpdateTaskLogTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"AAI_SERVICE_CREATE\",\n \"localName\": \"ONTRegistrationPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"AAI_SERVICE_CREATE\",\n \"localName\": \"SdncResourceUpdateErrorLogOutput\"\n }\n }\n }\n ]\n }\n }\n },\n {\n \"key\": \"INIT\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"INIT\"\n },\n \"trigger\": {\n \"name\": \"Nomadic_ONT\",\n \"version\": \"1.0.2\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"BBSCloseLoopEventOutPut\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"INIT\",\n \"localName\": \"BBSCloseLoopEventOutPut\"\n },\n \"outgoingEvent\": {\n \"name\": \"AAI_SERVICE_ASSIGNED\",\n \"version\": \"1.0.0\"\n },\n \"nextState\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"AAI_SERVICE_ASSIGN\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"GetBBSCloseLoopEventTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"GetBBSCloseLoopEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"INIT\",\n \"localName\": \"ONTRegistrationPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"INIT\",\n \"localName\": \"BBSCloseLoopEventOutPut\"\n }\n }\n }\n ]\n }\n }\n },\n {\n \"key\": \"NOMADIC_ONT_REG_SUCCESS\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NOMADIC_ONT_REG_SUCCESS\"\n },\n \"trigger\": {\n \"name\": \"END_CONTROL_LOOP\",\n \"version\": \"1.0.0\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"NomadicEventSuccessOutPut\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NOMADIC_ONT_REG_SUCCESS\",\n \"localName\": \"NomadicEventSuccessOutPut\"\n },\n \"outgoingEvent\": {\n \"name\": \"END_EVENT\",\n \"version\": \"1.0.0\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [],\n \"taskSelectionLogic\": {\n \"key\": \"NULL\",\n \"logicFlavour\": \"UNDEFINED\",\n \"logic\": \"\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"NomadicEventSuccessTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"NomadicEventSuccessTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NOMADIC_ONT_REG_SUCCESS\",\n \"localName\": \"ONTRegistrationPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NOMADIC_ONT_REG_SUCCESS\",\n \"localName\": \"NomadicEventSuccessOutPut\"\n }\n }\n }\n ]\n }\n }\n },\n {\n \"key\": \"SDNC_RES_UPDATE\",\n \"value\": {\n \"stateKey\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"SDNC_RES_UPDATE\"\n },\n \"trigger\": {\n \"name\": \"SDNC_RESOURCE_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"stateOutputs\": {\n \"entry\": [\n {\n \"key\": \"AAIServiceAssignedErrorLogOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SDNC_RES_UPDATE\",\n \"localName\": \"AAIServiceAssignedErrorLogOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"ERROR_LOG\",\n \"version\": \"1.0.0\"\n },\n \"nextState\": {\n \"parentKeyName\": \"NULL\",\n \"parentKeyVersion\": \"0.0.0\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"NULL\"\n }\n }\n },\n {\n \"key\": \"SdncResourceUpdateOutput\",\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SDNC_RES_UPDATE\",\n \"localName\": \"SdncResourceUpdateOutput\"\n },\n \"outgoingEvent\": {\n \"name\": \"AAI_SERVICE_CREATE\",\n \"version\": \"1.0.0\"\n },\n \"nextState\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"NULL\",\n \"localName\": \"AAI_SERVICE_CREATE\"\n }\n }\n }\n ]\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskSelectionLogic\": {\n \"key\": \"TaskSelectionLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. 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 */\\nexecutor.logger.info(\\\"Begin Execution RUorInitStateSelect.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nvar returnValue = executor.isTrue;\\nvar result = null;\\n\\nvar attachmentPoint = executor.inFields.get(\\\"attachmentPoint\\\");\\nvar NomadicONTContext = executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").get(\\n attachmentPoint);\\n\\nresult = NomadicONTContext.get(\\\"result\\\");\\n\\nif (result === \\\"SUCCESS\\\") {\\n executor.subject.getTaskKey(\\\"SdncResourceUpdateTask\\\").copyTo(executor.selectedTask);\\n} else {\\n executor.subject.getTaskKey(\\\"ErrorAAIServiceAssignedLogTask\\\").copyTo(\\n executor.selectedTask);\\n onsetFlag = executor.isFalse;\\n}\\n\\nexecutor.logger.info(\\\"State Selected Task:\\\" + executor.selectedTask);\\nexecutor.logger.info(\\\"End Execution RUorInitStateSelect.js\\\");\"\n },\n \"stateFinalizerLogicMap\": {\n \"entry\": []\n },\n \"defaultTask\": {\n \"name\": \"SdncResourceUpdateTask\",\n \"version\": \"0.0.1\"\n },\n \"taskReferences\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"ErrorAAIServiceAssignedLogTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SDNC_RES_UPDATE\",\n \"localName\": \"ONTRegistrationPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SDNC_RES_UPDATE\",\n \"localName\": \"AAIServiceAssignedErrorLogOutput\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SdncResourceUpdateTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SDNC_RES_UPDATE\",\n \"localName\": \"ONTRegistrationPolicy\"\n },\n \"outputType\": \"DIRECT\",\n \"output\": {\n \"parentKeyName\": \"ONTRegistrationPolicy\",\n \"parentKeyVersion\": \"0.0.1\",\n \"parentLocalName\": \"SDNC_RES_UPDATE\",\n \"localName\": \"SdncResourceUpdateOutput\"\n }\n }\n }\n ]\n }\n }\n }\n ]\n },\n \"firstState\": \"INIT\"\n }\n }\n ]\n }\n },\n \"tasks\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Tasks\",\n \"version\": \"1.0.2\"\n },\n \"taskMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"AAIServiceAssignedTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAIServiceAssignedTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. All rights reserved.\\n * Modifications Copyright (C) 2019 Nordix Foundation.\\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 */\\nload(\\\"nashorn:mozilla_compat.js\\\");\\nimportClass(org.apache.avro.Schema);\\nimportClass(java.io.BufferedReader);\\nimportClass(java.io.IOException);\\nimportClass(java.nio.file.Files);\\nimportClass(java.nio.file.Paths);\\n\\nexecutor.logger.info(\\\"Begin Execution AAIServiceAssignedTask.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nvar attachmentPoint = executor.inFields.get(\\\"attachmentPoint\\\");\\nvar requestID = executor.inFields.get(\\\"requestID\\\");\\nvar serviceInstanceId = executor.inFields.get(\\\"serviceInstanceId\\\");\\n\\nvar NomadicONTContext = executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").get(attachmentPoint);\\nexecutor.logger.info(NomadicONTContext);\\n\\nvar jsonObj;\\nvar aaiUpdateResult = true;\\n\\nvar wbClient = Java.type(\\\"org.onap.policy.apex.examples.bbs.WebClient\\\");\\nvar client = new wbClient();\\n\\n/* Get AAI URL from Configuration file. */\\nvar AAI_URL = \\\"localhost:8080\\\";\\nvar CUSTOMER_ID = requestID;\\nvar SERVICE_INSTANCE_ID = serviceInstanceId;\\nvar AAI_VERSION = \\\"v14\\\";\\nvar resource_version;\\nvar relationship_list;\\nvar HTTP_PROTOCOL = \\\"https://\\\";\\nvar results;\\nvar putUrl;\\nvar service_instance;\\ntry {\\n var br = Files.newBufferedReader(Paths.get(\\\"/home/apexuser/examples/config/ONAPBBS/config.txt\\\"));\\n var line;\\n while ((line = br.readLine()) != null) {\\n if (line.startsWith(\\\"AAI_URL\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_URL = str[str.length - 1];\\n } else if (line.startsWith(\\\"AAI_USERNAME\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_USERNAME = str[str.length - 1];\\n } else if (line.startsWith(\\\"AAI_PASSWORD\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_PASSWORD = str[str.length - 1];\\n } else if (line.startsWith(\\\"AAI_VERSION\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_VERSION = str[str.length - 1];\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n}\\n\\nexecutor.logger.info(\\\"AAI_URL \\\" + AAI_URL);\\n\\n/* Get service instance Id from AAI */\\ntry {\\n var urlGet = HTTP_PROTOCOL + AAI_URL + \\\"/aai/\\\" + AAI_VERSION + \\\"/nodes/service-instances/service-instance/\\\"\\n + SERVICE_INSTANCE_ID + \\\"?format=resource_and_url\\\";\\n\\n executor.logger.info(\\\"Query url\\\" + urlGet);\\n\\n result = client.httpRequest(urlGet, \\\"GET\\\", null, AAI_USERNAME, AAI_PASSWORD, \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlGet + \\\" \\\" + result);\\n jsonObj = JSON.parse(result.toString());\\n\\n executor.logger.info(JSON.stringify(jsonObj, null, 4));\\n /* Retrieve the service instance id */\\n results = jsonObj['results'][0];\\n putUrl = results['url'];\\n service_instance = results['service-instance'];\\n service_instance_id = service_instance['service-instance-id'];\\n resource_version = service_instance['resource-version'];\\n relationship_list = service_instance['relationship-list'];\\n executor.logger.info(\\\"After Parse service_instance \\\" + JSON.stringify(service_instance, null, 4) + \\\"\\\\n url \\\"\\n + putUrl + \\\"\\\\n Service instace Id \\\" + service_instance_id);\\n\\n if (result == \\\"\\\") {\\n aaiUpdateResult = false;\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n aaiUpdateResult = false;\\n}\\n\\n/* BBS Policy updates orchestration status of {{bbs-cfs-service-instance-UUID}} [ active --> assigned ] */\\nvar putUpddateServInstance;\\nputUpddateServInstance = service_instance;\\ntry {\\n if (aaiUpdateResult == true) {\\n putUpddateServInstance[\\\"orchestration-status\\\"] = \\\"active\\\";\\n executor.logger.info(\\\"ready to putAfter Parse \\\" + JSON.stringify(putUpddateServInstance, null, 4));\\n var urlPut = HTTP_PROTOCOL + AAI_URL + putUrl + \\\"?resource_version=\\\" + resource_version;\\n result = client.httpRequest(urlPut, \\\"PUT\\\", JSON.stringify(putUpddateServInstance), AAI_USERNAME, AAI_PASSWORD,\\n \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlPut + \\\" \\\" + result);\\n /* If failure to retrieve data proceed to Failure */\\n if (result != \\\"\\\") {\\n aaiUpdateResult = false;\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n aaiUpdateResult = false;\\n}\\n\\nif (!service_instance.hasOwnProperty('input-parameters') || !service_instance.hasOwnProperty('metadata')) {\\n aaiUpdateResult = false;\\n executor.logger.info(\\\"Validate data failed. input-parameters or metadata is missing\\\");\\n}\\n\\n/* update logical link in pnf */\\nvar oldLinkName = \\\"\\\";\\ntry {\\n if (aaiUpdateResult == true) {\\n var pnfName = \\\"\\\";\\n var pnfResponse;\\n var pnfUpdate;\\n var relationShips = relationship_list[\\\"relationship\\\"];\\n\\n for (var i = 0; i < relationShips.length; i++) {\\n if (relationShips[i][\\\"related-to\\\"] == \\\"pnf\\\") {\\n var relationship_data = relationShips[i][\\\"relationship-data\\\"];\\n for (var j = 0; j < relationship_data.length; j++) {\\n if (relationship_data[j][\\\"relationship-key\\\"] == \\\"pnf.pnf-name\\\") {\\n pnfName = relationship_data[j]['relationship-value'];\\n break;\\n }\\n }\\n }\\n }\\n executor.logger.info(\\\"pnf-name found \\\" + pnfName);\\n\\n /* 1. Get PNF */\\n var urlGetPnf = HTTP_PROTOCOL + AAI_URL + \\\"/aai/\\\" + AAI_VERSION + \\\"/network/pnfs/pnf/\\\" + pnfName;\\n pnfResponse = client.httpRequest(urlGetPnf, \\\"GET\\\", null, AAI_USERNAME, AAI_PASSWORD, \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlGetPnf + \\\" \\\" + pnfResponse);\\n /* If failure to retrieve data proceed to Failure */\\n if (result != \\\"\\\") {\\n aaiUpdateResult = false;\\n }\\n pnfUpdate = JSON.parse(pnfResponse.toString());\\n executor.logger.info(JSON.stringify(pnfUpdate, null, 4));\\n\\n /* 2. Create logical link */\\n var link_name = attachmentPoint;\\n var logicalLink = {\\n \\\"link-name\\\" : link_name,\\n \\\"in-maint\\\" : false,\\n \\\"link-type\\\" : \\\"attachment-point\\\"\\n };\\n var urlNewLogicalLink = HTTP_PROTOCOL + AAI_URL + \\\"/aai/\\\" + AAI_VERSION\\n + \\\"/network/logical-links/logical-link/\\\" + link_name;\\n result = client.httpRequest(urlNewLogicalLink, \\\"PUT\\\", JSON.stringify(logicalLink), AAI_USERNAME, AAI_PASSWORD,\\n \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlNewLogicalLink + \\\" \\\" + result);\\n /* If failure to retrieve data proceed to Failure */\\n if (result != \\\"\\\") {\\n aaiUpdateResult = false;\\n }\\n\\n /* 3. Update pnf with new relation */\\n for (var i = 0; i < pnfUpdate[\\\"relationship-list\\\"][\\\"relationship\\\"].length; i++) {\\n if (pnfUpdate[\\\"relationship-list\\\"][\\\"relationship\\\"][i]['related-to'] == 'logical-link') {\\n pnfUpdate[\\\"relationship-list\\\"][\\\"relationship\\\"][i]['related-link'] = \\\"/aai/\\\" + AAI_VERSION\\n + \\\"/network/logical-links/logical-link/\\\" + link_name;\\n for (var j = 0; j < pnfUpdate[\\\"relationship-list\\\"][\\\"relationship\\\"][i]['relationship-data'].length; j++) {\\n if (pnfUpdate[\\\"relationship-list\\\"][\\\"relationship\\\"][i]['relationship-data'][j]['relationship-key'] == \\\"logical-link.link-name\\\") {\\n oldLinkName = pnfUpdate[\\\"relationship-list\\\"][\\\"relationship\\\"][i]['relationship-data'][j]['relationship-value'];\\n pnfUpdate[\\\"relationship-list\\\"][\\\"relationship\\\"][i]['relationship-data'][j]['relationship-value'] = link_name;\\n break;\\n }\\n }\\n break;\\n }\\n }\\n\\n executor.logger.info(\\\"Put pnf to aai \\\" + JSON.stringify(pnfUpdate, null, 4));\\n var urlPutPnf = HTTP_PROTOCOL + AAI_URL + \\\"/aai/\\\" + AAI_VERSION + \\\"/network/pnfs/pnf/\\\" + pnfName;\\n result = client.httpRequest(urlPutPnf, \\\"PUT\\\", JSON.stringify(pnfUpdate), AAI_USERNAME, AAI_PASSWORD,\\n \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlPutPnf + \\\" \\\" + result);\\n\\n /* If failure to retrieve data proceed to Failure */\\n if (result != \\\"\\\") {\\n aaiUpdateResult = false;\\n }\\n\\n /* Get and Delete the Stale logical link */\\n var oldLinkResult;\\n var linkResult;\\n var urlOldLogicalLink = HTTP_PROTOCOL + AAI_URL + \\\"/aai/\\\" + AAI_VERSION\\n + \\\"/network/logical-links/logical-link/\\\" + oldLinkName;\\n linkResult = client.httpRequest(urlOldLogicalLink, \\\"GET\\\", null, AAI_USERNAME, AAI_PASSWORD, \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlOldLogicalLink + \\\" \\\" + linkResult + \\\" \\\"\\n + linkResult.hasOwnProperty(\\\"link-name\\\"));\\n oldLinkResult = JSON.parse(linkResult.toString());\\n if (oldLinkResult.hasOwnProperty(\\\"link-name\\\") == true) {\\n var res_version = oldLinkResult[\\\"resource-version\\\"];\\n var urlDelOldLogicalLink = urlOldLogicalLink + \\\"?resource-version=\\\" + res_version;\\n executor.logger.info(\\\"Delete called for \\\" + urlDelOldLogicalLink);\\n result = client.httpRequest(urlDelOldLogicalLink, \\\"DELETE\\\", null, AAI_USERNAME, AAI_PASSWORD,\\n \\\"application/json\\\");\\n executor.logger.info(\\\"Delete called for \\\" + urlDelOldLogicalLink + \\\" result \\\" + result);\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n aaiUpdateResult = false;\\n}\\n\\n/* If Success then Fill output schema */\\nif (aaiUpdateResult === true) {\\n executor.outFields.put(\\\"result\\\", \\\"SUCCESS\\\");\\n NomadicONTContext.put(\\\"result\\\", \\\"SUCCESS\\\");\\n NomadicONTContext.put(\\\"aai_message\\\", JSON.stringify(service_instance));\\n NomadicONTContext.put(\\\"url\\\", putUrl);\\n} else {\\n executor.outFields.put(\\\"result\\\", \\\"FAILURE\\\");\\n NomadicONTContext.put(\\\"result\\\", \\\"FAILURE\\\");\\n}\\n\\nexecutor.outFields.put(\\\"requestID\\\", requestID);\\nexecutor.outFields.put(\\\"attachmentPoint\\\", attachmentPoint);\\nexecutor.outFields.put(\\\"serviceInstanceId\\\", executor.inFields.get(\\\"serviceInstanceId\\\"));\\n\\nvar returnValue = executor.isTrue;\\nexecutor.logger.info(executor.outFields);\\nexecutor.logger.info(\\\"End Execution AAIServiceAssignedTask.js\\\");\\n\\n/* Utility functions Begin */\\nfunction IsValidJSONString(str) {\\n try {\\n JSON.parse(str);\\n } catch (e) {\\n return false;\\n }\\n return true;\\n}\\n/* Utility functions End */\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"AAIServiceCreateTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAIServiceCreateTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. All rights reserved.\\n * Modifications Copyright (C) 2019 Nordix Foundation.\\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 */\\nload(\\\"nashorn:mozilla_compat.js\\\");\\nimportClass(org.apache.avro.Schema);\\nimportClass(java.io.BufferedReader);\\nimportClass(java.io.IOException);\\nimportClass(java.nio.file.Files);\\nimportClass(java.nio.file.Paths);\\n\\nexecutor.logger.info(\\\"Begin Execution AAIServiceCreateTask.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nvar attachmentPoint = executor.inFields.get(\\\"attachmentPoint\\\");\\nvar requestID = executor.inFields.get(\\\"requestID\\\");\\nvar serviceInstanceId = executor.inFields.get(\\\"serviceInstanceId\\\");\\n\\nvar NomadicONTContext = executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").get(attachmentPoint);\\nexecutor.logger.info(NomadicONTContext);\\n\\n// Get the AAI URL from configuraiotn file\\nvar AAI_URL = \\\"localhost:8080\\\";\\nvar CUSTOMER_ID = requestID;\\nvar BBS_CFS_SERVICE_TYPE = \\\"BBS-CFS-Access_Test\\\";\\nvar SERVICE_INSTANCE_ID = serviceInstanceId;\\nvar AAI_VERSION = \\\"v14\\\";\\nvar HTTP_PROTOCOL = \\\"https://\\\";\\nvar wbClient = Java.type(\\\"org.onap.policy.apex.examples.bbs.WebClient\\\");\\nvar client = new wbClient();\\nvar AAI_USERNAME = null;\\nvar AAI_PASSWORD = null;\\ntry {\\n var br = Files.newBufferedReader(Paths.get(\\\"/home/apexuser/examples/config/ONAPBBS/config.txt\\\"));\\n // read line by line\\n var line;\\n while ((line = br.readLine()) != null) {\\n if (line.startsWith(\\\"AAI_URL\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_URL = str[str.length - 1];\\n } else if (line.startsWith(\\\"AAI_USERNAME\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_USERNAME = str[str.length - 1];\\n } else if (line.startsWith(\\\"AAI_PASSWORD\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_PASSWORD = str[str.length - 1];\\n } else if (line.startsWith(\\\"AAI_VERSION\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_VERSION = str[str.length - 1];\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n}\\nexecutor.logger.info(\\\"AAI_URL \\\" + AAI_URL);\\nvar aaiUpdateResult = true;\\n/* Get service instance Id from AAI */\\ntry {\\n var urlGet = HTTP_PROTOCOL + AAI_URL + \\\"/aai/\\\" + AAI_VERSION + \\\"/nodes/service-instances/service-instance/\\\"\\n + SERVICE_INSTANCE_ID + \\\"?format=resource_and_url\\\";\\n\\n executor.logger.info(\\\"Query url\\\" + urlGet);\\n\\n result = client.httpRequest(urlGet, \\\"GET\\\", null, AAI_USERNAME, AAI_PASSWORD, \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlGet + \\\" \\\" + result);\\n jsonObj = JSON.parse(result);\\n\\n executor.logger.info(JSON.stringify(jsonObj, null, 4));\\n /* Retrieve the service instance id */\\n results = jsonObj['results'][0];\\n putUrl = results['url'];\\n service_instance = results['service-instance'];\\n executor.logger.info(\\\"After Parse service_instance \\\" + JSON.stringify(service_instance, null, 4) + \\\"\\\\n url \\\"\\n + putUrl + \\\"\\\\n Service instace Id \\\" + SERVICE_INSTANCE_ID);\\n\\n if (result == \\\"\\\") {\\n aaiUpdateResult = false;\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n aaiUpdateResult = false;\\n}\\n\\nvar putUpddateServInstance = service_instance;\\nputUpddateServInstance['orchestration-status'] = \\\"created\\\";\\nexecutor.logger.info(\\\" string\\\" + JSON.stringify(putUpddateServInstance, null, 4));\\nvar resource_version = putUpddateServInstance['resource-version'];\\nvar putUrl = NomadicONTContext.get(\\\"url\\\");\\n\\n/* BBS Policy updates {{bbs-cfs-service-instance-UUID}} orchestration-status [ assigned --> created ] */\\ntry {\\n if (aaiUpdateResult == true) {\\n executor.logger.info(\\\"ready to putAfter Parse \\\" + JSON.stringify(putUpddateServInstance, null, 4));\\n var urlPut = HTTP_PROTOCOL + AAI_URL + putUrl + \\\"?resource_version=\\\" + resource_version;\\n result = client.httpRequest(urlPut, \\\"PUT\\\", JSON.stringify(putUpddateServInstance), AAI_USERNAME, AAI_PASSWORD,\\n \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlPut + \\\" \\\" + result);\\n /* If failure to retrieve data proceed to Failure */\\n if (result != \\\"\\\") {\\n aaiUpdateResult = false;\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n aaiUpdateResult = false;\\n}\\n/* If Success then Fill output schema */\\nif (aaiUpdateResult === true) {\\n NomadicONTContext.put(\\\"result\\\", \\\"SUCCESS\\\");\\n} else {\\n NomadicONTContext.put(\\\"result\\\", \\\"FAILURE\\\");\\n\\n}\\n\\nexecutor.outFields.put(\\\"requestID\\\", requestID);\\nexecutor.outFields.put(\\\"attachmentPoint\\\", attachmentPoint);\\nexecutor.outFields.put(\\\"serviceInstanceId\\\", executor.inFields.get(\\\"serviceInstanceId\\\"));\\n\\nvar returnValue = executor.isTrue;\\nexecutor.logger.info(executor.outFields);\\nexecutor.logger.info(\\\"End Execution AAIServiceCreateTask.js\\\");\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ErrorAAIServiceAssignedLogTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ErrorAAIServiceAssignedLogTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"errorLogParam\",\n \"value\": {\n \"key\": \"errorLogParam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. 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 */\\nexecutor.logger.info(\\\"Begin Execution ErrorServiceUpdateOneLogTask.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nexecutor.logger.info(executor.outFields);\\n\\nvar returnValue = executor.isTrue;\\nexecutor.logger.info(\\\"Begin Execution ErrorServiceUpdateOneLogTask.js\\\");\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ErrorSdncResourceUpdateTaskLogTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ErrorSdncResourceUpdateTaskLogTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"errorLogParam\",\n \"value\": {\n \"key\": \"errorLogParam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. 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 */\\nexecutor.logger.info(\\\"Begin Execution ErrorResourceUpdateLogTask.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nvar returnValue = executor.isTrue;\\nexecutor.logger.info(\\\"End Execution ErrorResourceUpdateLogTask.js\\\");\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"GetBBSCloseLoopEventTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"GetBBSCloseLoopEventTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"VirtualControlLoopEvent\",\n \"value\": {\n \"key\": \"VirtualControlLoopEvent\",\n \"fieldSchemaKey\": {\n \"name\": \"VirtualControlLoopEventType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. 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 */\\nload(\\\"nashorn:mozilla_compat.js\\\");\\n\\nexecutor.logger.info(\\\"Begin Execution GetBBSCloseLoopEventTask.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\nvar returnValue = executor.isTrue;\\n\\nvar clEventType = Java.type(\\n \\\"org.onap.policy.controlloop.VirtualControlLoopEvent\\\");\\nvar clEvent = executor.inFields.get(\\\"VirtualControlLoopEvent\\\");\\nexecutor.logger.info(clEvent.toString());\\nexecutor.logger.info(clEvent.getClosedLoopControlName());\\n\\nvar requestID = clEvent.getRequestId();\\nexecutor.logger.info(\\\"requestID = \\\" + requestID);\\nvar attachmentPoint = null;\\nvar NomadicONTContext = null;\\nvar serviceInstanceId = null;\\n\\nif (clEvent.getAai().get(\\\"attachmentPoint\\\") != null) {\\n attachmentPoint = clEvent.getAai().get(\\\"attachmentPoint\\\");\\n executor.logger.info(\\\"attachmentPoint = \\\" + attachmentPoint);\\n NomadicONTContext = executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").get(\\n attachmentPoint);\\n serviceInstanceId = clEvent.getAai().get(\\n \\\"service-information.hsia-cfs-service-instance-id\\\");\\n executor.logger.info(\\\"serviceInstanceId = \\\" + serviceInstanceId);\\n\\n if (NomadicONTContext == null) {\\n executor.logger.info(\\n \\\"Creating context information for new ONT Device \\\\\\\"\\\" +\\n attachmentPoint.toString() + \\\"\\\\\\\"\\\");\\n\\n NomadicONTContext = executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").getSchemaHelper()\\n .createNewInstance();\\n\\n NomadicONTContext.put(\\\"closedLoopControlName\\\", clEvent.getClosedLoopControlName());\\n NomadicONTContext.put(\\\"closedLoopAlarmStart\\\", clEvent.getClosedLoopAlarmStart()\\n .toEpochMilli());\\n NomadicONTContext.put(\\\"closedLoopEventClient\\\", clEvent.getClosedLoopEventClient());\\n NomadicONTContext.put(\\\"closedLoopEventStatus\\\", clEvent.getClosedLoopEventStatus()\\n .toString());\\n NomadicONTContext.put(\\\"version\\\", clEvent.getVersion());\\n NomadicONTContext.put(\\\"requestID\\\", clEvent.getRequestId().toString());\\n NomadicONTContext.put(\\\"target_type\\\", clEvent.getTargetType().toString());\\n NomadicONTContext.put(\\\"target\\\", clEvent.getTarget());\\n NomadicONTContext.put(\\\"from\\\", clEvent.getFrom());\\n NomadicONTContext.put(\\\"policyScope\\\", \\\"Nomadic ONT\\\");\\n NomadicONTContext.put(\\\"policyName\\\", clEvent.getPolicyName());\\n NomadicONTContext.put(\\\"policyVersion\\\", \\\"1.0.0\\\");\\n NomadicONTContext.put(\\\"notificationTime\\\", java.lang.System.currentTimeMillis());\\n NomadicONTContext.put(\\\"message\\\", \\\"\\\");\\n NomadicONTContext.put(\\\"result\\\", \\\"SUCCESS\\\");\\n var aaiInfo = executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").getSchemaHelper()\\n .createNewSubInstance(\\\"VCPE_AAI_Type\\\");\\n\\n aaiInfo.put(\\\"attachmentPoint\\\", clEvent.getAai().get(\\\"attachmentPoint\\\"));\\n aaiInfo.put(\\\"cvlan\\\", clEvent.getAai().get(\\\"cvlan\\\"));\\n aaiInfo.put(\\\"service_information_hsia_cfs_service_instance_id\\\", clEvent\\n .getAai().get(\\n \\\"service-information.hsia-cfs-service-instance-id\\\"));\\n aaiInfo.put(\\\"svlan\\\", clEvent.getAai().get(\\\"svlan\\\"));\\n aaiInfo.put(\\\"remoteId\\\", clEvent.getAai().get(\\\"remoteId\\\"));\\n\\n\\n NomadicONTContext.put(\\\"AAI\\\", aaiInfo);\\n\\n if (clEvent.getClosedLoopAlarmEnd() != null) {\\n NomadicONTContext.put(\\\"closedLoopAlarmEnd\\\", clEvent.getClosedLoopAlarmEnd()\\n .toEpochMilli());\\n } else {\\n NomadicONTContext.put(\\\"closedLoopAlarmEnd\\\", java.lang.Long.valueOf(\\n 0));\\n }\\n\\n executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").put(attachmentPoint.toString(),\\n NomadicONTContext);\\n executor.logger.info(\\\"Created context information for new vCPE VNF \\\\\\\"\\\" +\\n attachmentPoint.toString() + \\\"\\\\\\\"\\\");\\n }\\n\\n executor.outFields.put(\\\"requestID\\\", requestID);\\n executor.outFields.put(\\\"attachmentPoint\\\", attachmentPoint);\\n executor.outFields.put(\\\"serviceInstanceId\\\", serviceInstanceId);\\n executor.logger.info(executor.outFields);\\n executor.logger.info(\\\"Event Successfully Received and stored in album\\\");\\n}\\nelse\\n{\\n executor.message = \\\"Received NULL attachment-point\\\";\\n returnValue = executor.isFalse;\\n}\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"NomadicEventSuccessTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicEventSuccessTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. 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 */\\nload(\\\"nashorn:mozilla_compat.js\\\");\\nimportClass(org.apache.avro.Schema);\\n\\nexecutor.logger.info(\\\"Begin Execution NomadicEventSuccess.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nvar attachmentPoint = executor.inFields.get(\\\"attachmentPoint\\\");\\nvar NomadicONTContext = executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").get(\\n attachmentPoint);\\n\\nexecutor.logger.info(executor.outFields);\\nexecutor.logger.info(executor.inFields);\\n\\nresult = NomadicONTContext.get(\\\"result\\\");\\n\\nif (result === \\\"SUCCESS\\\") {\\n returnValue = executor.isTrue;\\n executor.outFields.put(\\\"result\\\", \\\"SUCCCESS\\\");\\n executor.logger.info(\\\"BBS policy Execution Done\\\");\\n} else {\\n executor.logger.info(\\\"BBS policy Execution Failed\\\");\\n executor.outFields.put(\\\"result\\\", \\\"FAILURE\\\");\\n returnValue = executor.isFalse;\\n}\\n\\nvar returnValue = executor.isTrue;\\nexecutor.logger.info(\\\"End Execution NomadicEventSuccess.js\\\");\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SdncResourceUpdateTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SdncResourceUpdateTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. 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 */\\nload(\\\"nashorn:mozilla_compat.js\\\");\\nimportClass(org.apache.avro.Schema);\\nimportClass(java.io.BufferedReader);\\nimportClass(java.io.IOException);\\nimportClass(java.nio.file.Files);\\nimportClass(java.nio.file.Paths);\\n\\nimportPackage(org.json.XML);\\n\\nexecutor.logger.info(\\\"Begin Execution SdncResourceUpdateTask.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nvar attachmentPoint = executor.inFields.get(\\\"attachmentPoint\\\");\\nvar requestID = executor.inFields.get(\\\"requestID\\\");\\nvar serviceInstanceId = executor.inFields.get(\\\"serviceInstanceId\\\");\\nvar uuidType = Java.type(\\\"java.util.UUID\\\");\\n\\nvar wbClient = Java.type(\\\"org.onap.policy.apex.examples.bbs.WebClient\\\");\\nvar client = new wbClient();\\n\\nvar NomadicONTContext = executor.getContextAlbum(\\\"NomadicONTContextAlbum\\\").get(attachmentPoint);\\nvar sdncUUID = uuidType.randomUUID();\\nexecutor.logger.info(NomadicONTContext);\\nvar jsonObj;\\nvar aaiUpdateResult = true;\\nvar SDNC_URL = \\\"localhost:8080\\\";\\nvar HTTP_PROTOCOL = \\\"http://\\\"\\nvar SVC_NOTIFICATION_URL;\\nvar putUpddateServInstance = JSON.parse(NomadicONTContext.get(\\\"aai_message\\\"));\\nvar input_param = JSON.parse(putUpddateServInstance['input-parameters']);\\ntry {\\n var br = Files.newBufferedReader(Paths.get(\\\"/home/apexuser/examples/config/ONAPBBS/config.txt\\\"));\\n var line;\\n while ((line = br.readLine()) != null) {\\n if (line.startsWith(\\\"SDNC_URL\\\")) {\\n var str = line.split(\\\"=\\\");\\n SDNC_URL = str[str.length - 1];\\n } else if (line.startsWith(\\\"SVC_NOTIFICATION_URL\\\")) {\\n var str = line.split(\\\"=\\\");\\n SVC_NOTIFICATION_URL = str[str.length - 1];\\n } else if (line.startsWith(\\\"SDNC_USERNAME\\\")) {\\n var str = line.split(\\\"=\\\");\\n SDNC_USERNAME = str[str.length - 1];\\n } else if (line.startsWith(\\\"SDNC_PASSWORD\\\")) {\\n var str = line.split(\\\"=\\\");\\n SDNC_PASSWORD = str[str.length - 1];\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n}\\nexecutor.logger.info(\\\"SDNC_URL \\\" + SDNC_URL);\\n\\nvar result;\\nvar jsonObj;\\nvar sdncUpdateResult = true;\\n\\n/* BBS Policy calls SDN-C GR-API to delete AccessConnectivity VF ID */\\n/* Prepare Data */\\nvar xmlDeleteAccess = \\\"\\\";\\ntry {\\n var br = Files.newBufferedReader(Paths\\n .get(\\\"/home/apexuser/examples/config/ONAPBBS/sdnc_DeleteAccessConnectivityInstance.txt\\\"));\\n var line;\\n while ((line = br.readLine()) != null) {\\n xmlDeleteAccess += line;\\n }\\n\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n}\\n\\n/* BBS Policy calls SDN-C GR-API to delete AccessConnectivity */\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"svc_request_id_value\\\", sdncUUID);\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"svc_notification_url_value\\\", SVC_NOTIFICATION_URL);\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"request_id_value\\\", sdncUUID);\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"service_id_value\\\", sdncUUID);\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"service_instance_id_value\\\", putUpddateServInstance['service-instance-id']);\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"service_type_value\\\", input_param['service']['serviceType']);\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"customer_id_value\\\", input_param['service']['globalSubscriberId']);\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"customer_name_value\\\", input_param['service']['globalSubscriberId']);\\n\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"srv_info_model_inv_uuid_value\\\", getResourceInvariantUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"srv_info_model_custom_uuid_value\\\", getResourceCustomizationUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"srv_info_model_uuid_value\\\", getResourceUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"srv_info_model_name_value\\\", \\\"AccessConnectivity\\\");\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"network_info_model_inv_uuid_value\\\", getResourceInvariantUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"network_info_model_custom_uuid_value\\\", getResourceCustomizationUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"network_info_model_uuid_value\\\", getResourceUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"network_info_model_name_value\\\", \\\"AccessConnectivity\\\");\\n\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"vendor_value\\\",\\n input_param['service']['parameters']['requestInputs']['ont_ont_manufacturer']);\\nxmlDeleteAccess = xmlDeleteAccess.replace(\\\"service_id_value\\\", getMetaValue(\\n putUpddateServInstance['metadata']['metadatum'], 'controller-service-id'));\\n\\n\\ntry {\\n var urlPost1 = HTTP_PROTOCOL + SDNC_URL + \\\"/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation\\\";\\n result = client.httpRequest(urlPost1, \\\"POST\\\", xmlDeleteAccess, SDNC_USERNAME, SDNC_PASSWORD, \\\"application/xml\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlPost1 + \\\" \\\" + result);\\n if (result == \\\"\\\") {\\n sdncUpdateResult = false;\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n sdncUpdateResult = false;\\n}\\n\\n/* BBS Policy calls SDN-C GR-API to create new AccessConnectivity VF */\\n\\n/* Prepare Data */\\nvar xmlCreateAccess = \\\"\\\";\\ntry {\\n var br = Files.newBufferedReader(Paths\\n .get(\\\"/home/apexuser/examples/config/ONAPBBS/sdnc_CreateAccessConnectivityInstance.txt\\\"));\\n var line;\\n while ((line = br.readLine()) != null) {\\n xmlCreateAccess += line;\\n }\\n\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n}\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"svc_request_id_value\\\", sdncUUID);\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"svc_notification_url_value\\\", SVC_NOTIFICATION_URL);\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"request_id_value\\\", requestID);\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"service_id_value\\\", sdncUUID);\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"service_instance_id_value\\\", putUpddateServInstance['service-instance-id']);\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"service_type_value\\\", input_param['service']['serviceType']);\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"customer_id_value\\\", input_param['service']['globalSubscriberId']);\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"customer_name_value\\\", input_param['service']['globalSubscriberId']);\\n\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"srv_info_model_inv_uuid_value\\\", getResourceInvariantUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"srv_info_model_custom_uuid_value\\\", getResourceCustomizationUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"srv_info_model_uuid_value\\\", getResourceUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"srv_info_model_name_value\\\", \\\"AccessConnectivity\\\");\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"network_info_model_inv_uuid_value\\\", getResourceInvariantUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"network_info_model_custom_uuid_value\\\", getResourceCustomizationUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"network_info_model_uuid_value\\\", getResourceUuid(\\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"network_info_model_name_value\\\", \\\"AccessConnectivity\\\");\\n\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"vendor_value\\\",\\n input_param['service']['parameters']['requestInputs']['ont_ont_manufacturer']);\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"ont_sn_value\\\",\\n input_param['service']['parameters']['requestInputs']['ont_ont_serial_num']);\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"s_vlan_value\\\", getMetaValue(putUpddateServInstance['metadata']['metadatum'],\\n 'svlan'));\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"c_vlan_value\\\", getMetaValue(putUpddateServInstance['metadata']['metadatum'],\\n 'cvlan'));\\nxmlCreateAccess = xmlCreateAccess.replace(\\\"remote_id_value\\\", getMetaValue(\\n putUpddateServInstance['metadata']['metadatum'], 'remote-id'));\\n\\n\\ntry {\\n if (sdncUpdateResult == true) {\\n var urlPost2 = HTTP_PROTOCOL + SDNC_URL\\n + \\\"/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation\\\";\\n result = client.httpRequest(urlPost2, \\\"POST\\\", xmlCreateAccess, SDNC_USERNAME, SDNC_PASSWORD, \\\"application/xml\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlPost2 + \\\" \\\" + result);\\n if (result == \\\"\\\") {\\n sdncUpdateResult = false;\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n sdncUpdateResult = false;\\n}\\n\\n/* BBS Policy calls SDN-C GR-API to create change Internet Profile */\\nvar xmlChangeProfile = \\\"\\\";\\ntry {\\n var br = Files.newBufferedReader(Paths\\n .get(\\\"/home/apexuser/examples/config/ONAPBBS/sdnc_ChangeInternetProfileInstance.txt\\\"));\\n var line;\\n while ((line = br.readLine()) != null) {\\n xmlChangeProfile += line;\\n }\\n\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n}\\n\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"svc_request_id_value\\\", sdncUUID);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"svc_notification_url_value\\\", SVC_NOTIFICATION_URL);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"request_id_value\\\", requestID);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"service_id_value\\\", sdncUUID);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"service_instance_id_value\\\", putUpddateServInstance['service-instance-id']);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"service_type_value\\\", input_param['service']['serviceType']);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"customer_id_value\\\", input_param['service']['globalSubscriberId']);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"customer_name_value\\\", input_param['service']['globalSubscriberId']);\\n\\nxmlChangeProfile = xmlCreateAccess.replace(\\\"srv_info_model_inv_uuid_value\\\", getResourceInvariantUuid(\\n input_param['service']['parameters']['resources'], 'InternetProfile'));\\nxmlChangeProfile = xmlCreateAccess.replace(\\\"srv_info_model_custom_uuid_value\\\", getResourceCustomizationUuid(\\n input_param['service']['parameters']['resources'], 'InternetProfile'));\\nxmlChangeProfile = xmlCreateAccess.replace(\\\"srv_info_model_uuid_value\\\", getResourceUuid(\\n input_param['service']['parameters']['resources'], 'InternetProfile'));\\nxmlChangeProfile = xmlCreateAccess.replace(\\\"srv_info_model_name_value\\\", \\\"InternetProfile\\\");\\nxmlChangeProfile = xmlCreateAccess.replace(\\\"network_info_model_inv_uuid_value\\\", getResourceInvariantUuid(\\n input_param['service']['parameters']['resources'], 'InternetProfile'));\\nxmlChangeProfile = xmlCreateAccess.replace(\\\"network_info_model_custom_uuid_value\\\", getResourceCustomizationUuid(\\n input_param['service']['parameters']['resources'], 'InternetProfile'));\\nxmlChangeProfile = xmlCreateAccess.replace(\\\"network_info_model_uuid_value\\\", getResourceUuid(\\n input_param['service']['parameters']['resources'], 'InternetProfile'));\\nxmlChangeProfile = xmlCreateAccess.replace(\\\"network_info_model_name_value\\\", \\\"InternetProfile\\\");\\n\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"vendor_value\\\",\\n input_param['service']['parameters']['requestInputs']['ont_ont_manufacturer']);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"service_id_value\\\", getMetaValue(\\n putUpddateServInstance['metadata']['metadatum'], 'controller-service-id'));\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"remote_id_value\\\", getMetaValue(\\n putUpddateServInstance['metadata']['metadatum'], 'remote-id'));\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"ont_sn_value\\\",\\n input_param['service']['parameters']['requestInputs']['ont_ont_serial_num']);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"service_type_value\\\", input_param['service']['serviceType']);\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"mac_value\\\", getMetaValue(putUpddateServInstance['metadata']['metadatum'],\\n 'rgw-mac-address'));\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"up_speed_value\\\", getMetaValue(\\n putUpddateServInstance['metadata']['metadatum'], 'up-speed'));\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"down_speed_value\\\", getMetaValue(\\n putUpddateServInstance['metadata']['metadatum'], 'down-speed'));\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"s_vlan_value\\\", getMetaValue(\\n putUpddateServInstance['metadata']['metadatum'], 'svlan'));\\nxmlChangeProfile = xmlChangeProfile.replace(\\\"c_vlan_value\\\", getMetaValue(\\n putUpddateServInstance['metadata']['metadatum'], 'cvlan'));\\n\\n\\ntry {\\n if (sdncUpdateResult == true) {\\n var urlPost3 = HTTP_PROTOCOL + SDNC_URL\\n + \\\"/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation\\\";\\n result = client\\n .httpRequest(urlPost3, \\\"POST\\\", xmlChangeProfile, SDNC_USERNAME, SDNC_PASSWORD, \\\"application/xml\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlPost3 + \\\" \\\" + result);\\n if (result == \\\"\\\") {\\n sdncUpdateResult = false;\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n sdncUpdateResult = false;\\n}\\n\\n/* If Success then Fill output schema */\\n\\nif (sdncUpdateResult === true) {\\n NomadicONTContext.put(\\\"result\\\", \\\"SUCCESS\\\");\\n executor.outFields.put(\\\"result\\\", \\\"SUCCESS\\\");\\n} else {\\n NomadicONTContext.put(\\\"result\\\", \\\"FAILURE\\\");\\n executor.outFields.put(\\\"result\\\", \\\"FAILURE\\\");\\n}\\n\\nexecutor.outFields.put(\\\"requestID\\\", requestID);\\nexecutor.outFields.put(\\\"attachmentPoint\\\", attachmentPoint);\\nexecutor.outFields.put(\\\"serviceInstanceId\\\", executor.inFields.get(\\\"serviceInstanceId\\\"));\\n\\nvar returnValue = executor.isTrue;\\nexecutor.logger.info(executor.outFields);\\nexecutor.logger.info(\\\"End Execution SdncResourceUpdateTask.js\\\");\\n\\nfunction getMetaValue(metaJson, metaname) {\\n for (var i = 0; i < metaJson.length; i++) {\\n if (metaJson[i]['metaname'] == metaname) {\\n var metaValue = metaJson[i]['metaval'];\\n return metaValue;\\n }\\n }\\n\\n}\\n\\nfunction getResourceInvariantUuid(resJson, resourceName) {\\n for (var i = 0; i < resJson.length; i++) {\\n if (resJson[i]['resourceName'] == resourceName) {\\n var resValue = resJson[i]['resourceInvariantUuid'];\\n return resValue;\\n }\\n }\\n\\n}\\n\\nfunction getResourceUuid(resJson, resourceName) {\\n for (var i = 0; i < resJson.length; i++) {\\n if (resJson[i]['resourceName'] == resourceName) {\\n var resValue = resJson[i]['resourceUuid'];\\n return resValue;\\n }\\n }\\n\\n}\\n\\nfunction getResourceCustomizationUuid(resJson, resourceName) {\\n for (var i = 0; i < resJson.length; i++) {\\n if (resJson[i]['resourceName'] == resourceName) {\\n var resValue = resJson[i]['resourceCustomizationUuid'];\\n return resValue;\\n }\\n }\\n\\n}\\n\\n/* Utility functions Begin */\\nfunction IsValidJSONString(str) {\\n try {\\n JSON.parse(str);\\n } catch (e) {\\n return false;\\n }\\n return true;\\n}\\n/* Utility functions End */\"\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ServiceUpdateStateCpeAuthTask\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ServiceUpdateStateCpeAuthTask\",\n \"version\": \"0.0.1\"\n },\n \"inputFields\": {\n \"entry\": [\n {\n \"key\": \"VirtualControlLoopEvent\",\n \"value\": {\n \"key\": \"VirtualControlLoopEvent\",\n \"fieldSchemaKey\": {\n \"name\": \"VirtualControlLoopEventType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n },\n \"outputFields\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n },\n \"taskParameters\": {\n \"entry\": []\n },\n \"contextAlbumReference\": [\n {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n }\n ],\n \"taskLogic\": {\n \"key\": \"TaskLogic\",\n \"logicFlavour\": \"JAVASCRIPT\",\n \"logic\": \"/*\\n * ============LICENSE_START=======================================================\\n * Copyright (C) 2019 Huawei. All rights reserved.\\n * Modifications Copyright (C) 2019 Nordix Foundation.\\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 */\\nload(\\\"nashorn:mozilla_compat.js\\\");\\nimportClass(java.io.BufferedReader);\\nimportClass(java.io.IOException);\\nimportClass(java.nio.file.Files);\\nimportClass(java.nio.file.Paths);\\n\\nexecutor.logger.info(\\\"Begin Execution ServiceUpdateStateCpeAuthTask.js\\\");\\nexecutor.logger.info(executor.subject.id);\\nexecutor.logger.info(executor.inFields);\\n\\nvar clEventType = Java.type(\\\"org.onap.policy.controlloop.VirtualControlLoopEvent\\\");\\nvar clEvent = executor.inFields.get(\\\"VirtualControlLoopEvent\\\");\\n\\nvar serviceInstanceId = clEvent.getAai().get(\\\"service-information.hsia-cfs-service-instance-id\\\");\\nvar requestID = clEvent.getRequestId();\\n\\nvar jsonObj;\\nvar aaiUpdateResult = true;\\nvar wbClient = Java.type(\\\"org.onap.policy.apex.examples.bbs.WebClient\\\");\\nvar client = new wbClient();\\nvar oldState = clEvent.getAai().get(\\\"cpe.old-authentication-state\\\");\\nvar newState = clEvent.getAai().get(\\\"cpe.new-authentication-state\\\");\\n/* Get AAI URL from Configuration file. */\\nvar AAI_URL = \\\"localhost:8080\\\";\\nvar CUSTOMER_ID = requestID;\\nvar SERVICE_INSTANCE_ID = serviceInstanceId;\\nvar resource_version;\\nvar HTTP_PROTOCOL = \\\"https://\\\";\\nvar results;\\nvar putUrl;\\nvar service_instance;\\nvar AAI_VERSION = \\\"v14\\\";\\ntry {\\n var br = Files.newBufferedReader(Paths.get(\\\"/home/apexuser/examples/config/ONAPBBS/config.txt\\\"));\\n var line;\\n while ((line = br.readLine()) != null) {\\n if (line.startsWith(\\\"AAI_URL\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_URL = str[str.length - 1];\\n } else if (line.startsWith(\\\"AAI_USERNAME\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_USERNAME = str[str.length - 1];\\n } else if (line.startsWith(\\\"AAI_PASSWORD\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_PASSWORD = str[str.length - 1];\\n } else if (line.startsWith(\\\"AAI_VERSION\\\")) {\\n var str = line.split(\\\"=\\\");\\n AAI_VERSION = str[str.length - 1];\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n}\\n\\nexecutor.logger.info(\\\"AAI_URL=>\\\" + AAI_URL);\\n\\n/* Get service instance Id from AAI */\\ntry {\\n var urlGet = HTTP_PROTOCOL + AAI_URL + \\\"/aai/\\\" + AAI_VERSION + \\\"/nodes/service-instances/service-instance/\\\"\\n + SERVICE_INSTANCE_ID + \\\"?format=resource_and_url\\\"\\n executor.logger.info(\\\"Query url\\\" + urlGet);\\n\\n result = client.httpRequest(urlGet, \\\"GET\\\", null, AAI_USERNAME, AAI_PASSWORD, \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlGet + \\\" \\\" + result);\\n jsonObj = JSON.parse(result);\\n\\n /* Retrieve the service instance id */\\n results = jsonObj['results'][0];\\n putUrl = results[\\\"url\\\"];\\n service_instance = results['service-instance'];\\n resource_version = service_instance['resource-version'];\\n executor.logger.info(\\\"After Parse service_instance \\\" + JSON.stringify(service_instance, null, 4) + \\\"\\\\n url \\\"\\n + putUrl + \\\"\\\\n Service instace Id \\\" + SERVICE_INSTANCE_ID);\\n\\n if (result == \\\"\\\") {\\n aaiUpdateResult = false;\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n aaiUpdateResult = false;\\n}\\n\\n/* BBS Policy updates orchestration status of {{bbs-cfs-service-instance-UUID}} [ active --> assigned ] */\\nvar putUpddateServInstance;\\nputUpddateServInstance = service_instance;\\nif (newState == 'inService') {\\n putUpddateServInstance['orchestration-status'] = \\\"active\\\";\\n} else {\\n putUpddateServInstance['orchestration-status'] = \\\"inActive\\\";\\n}\\ntry {\\n if (aaiUpdateResult == true) {\\n executor.logger.info(\\\"ready to put After Parse \\\" + JSON.stringify(putUpddateServInstance, null, 4));\\n var urlPut = HTTP_PROTOCOL + AAI_URL + putUrl + \\\"?resource_version=\\\" + resource_version;\\n result = client.httpRequest(urlPut, \\\"PUT\\\", JSON.stringify(putUpddateServInstance), AAI_USERNAME, AAI_PASSWORD,\\n \\\"application/json\\\");\\n executor.logger.info(\\\"Data received From \\\" + urlPut + \\\" \\\" + result);\\n /* If failure to retrieve data proceed to Failure */\\n if (result != \\\"\\\") {\\n aaiUpdateResult = false;\\n }\\n }\\n} catch (err) {\\n executor.logger.info(\\\"Failed to retrieve data \\\" + err);\\n aaiUpdateResult = false;\\n}\\n\\nif (aaiUpdateResult == true) {\\n executor.outFields.put(\\\"result\\\", \\\"SUCCCESS\\\");\\n} else {\\n executor.outFields.put(\\\"result\\\", \\\"FAILURE\\\");\\n}\\n\\nexecutor.logger.info(executor.outFields);\\nvar returnValue = executor.isTrue;\\nexecutor.logger.info(\\\"End Execution ServiceUpdateStateCpeAuthTask.js\\\");\"\n }\n }\n }\n ]\n }\n },\n \"events\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Events\",\n \"version\": \"1.0.2\"\n },\n \"eventMap\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"AAI_CPE_AUTH_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAI_CPE_AUTH_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"nameSpace\": \"org.onap.policy.apex.onap.bbs\",\n \"source\": \"APEX\",\n \"target\": \"DCAE\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"AAI_SERVICE_ASSIGNED\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAI_SERVICE_ASSIGNED\",\n \"version\": \"1.0.0\"\n },\n \"nameSpace\": \"org.onap.policy.apex.onap.bbs\",\n \"source\": \"APEX\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"AAI_SERVICE_CREATE\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"AAI_SERVICE_CREATE\",\n \"version\": \"1.0.0\"\n },\n \"nameSpace\": \"org.onap.policy.apex.onap.bbs\",\n \"source\": \"APEX\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"CPE_Authentication\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"CPE_Authentication\",\n \"version\": \"1.0.2\"\n },\n \"nameSpace\": \"org.onap.policy.apex.onap.bbs\",\n \"source\": \"DCAE\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"VirtualControlLoopEvent\",\n \"value\": {\n \"key\": \"VirtualControlLoopEvent\",\n \"fieldSchemaKey\": {\n \"name\": \"VirtualControlLoopEventType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"END_CONTROL_LOOP\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"END_CONTROL_LOOP\",\n \"version\": \"1.0.0\"\n },\n \"nameSpace\": \"org.onap.policy.apex.onap.bbs\",\n \"source\": \"APEX\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"END_EVENT\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"END_EVENT\",\n \"version\": \"1.0.0\"\n },\n \"nameSpace\": \"org.onap.policy.apex.onap.bbs\",\n \"source\": \"APEX\",\n \"target\": \"DCAE\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"ERROR_LOG\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"ERROR_LOG\",\n \"version\": \"1.0.0\"\n },\n \"nameSpace\": \"org.onap.policy.apex.onap.bbs\",\n \"source\": \"APEX\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"errorLogParam\",\n \"value\": {\n \"key\": \"errorLogParam\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"Nomadic_ONT\",\n \"version\": \"1.0.2\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"Nomadic_ONT\",\n \"version\": \"1.0.2\"\n },\n \"nameSpace\": \"org.onap.policy.apex.onap.bbs\",\n \"source\": \"DCAE\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"VirtualControlLoopEvent\",\n \"value\": {\n \"key\": \"VirtualControlLoopEvent\",\n \"fieldSchemaKey\": {\n \"name\": \"VirtualControlLoopEventType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n }\n ]\n }\n }\n },\n {\n \"key\": {\n \"name\": \"SDNC_RESOURCE_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SDNC_RESOURCE_UPDATE\",\n \"version\": \"1.0.0\"\n },\n \"nameSpace\": \"org.onap.policy.apex.onap.bbs\",\n \"source\": \"APEX\",\n \"target\": \"APEX\",\n \"parameter\": {\n \"entry\": [\n {\n \"key\": \"attachmentPoint\",\n \"value\": {\n \"key\": \"attachmentPoint\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"requestID\",\n \"value\": {\n \"key\": \"requestID\",\n \"fieldSchemaKey\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"result\",\n \"value\": {\n \"key\": \"result\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": false\n }\n },\n {\n \"key\": \"serviceInstanceId\",\n \"value\": {\n \"key\": \"serviceInstanceId\",\n \"fieldSchemaKey\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"optional\": true\n }\n }\n ]\n }\n }\n }\n ]\n }\n },\n \"albums\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Albums\",\n \"version\": \"1.0.2\"\n },\n \"albums\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTContextAlbum\",\n \"version\": \"0.0.1\"\n },\n \"scope\": \"policy\",\n \"isWritable\": true,\n \"itemSchema\": {\n \"name\": \"NomadicONTContextType\",\n \"version\": \"0.0.1\"\n }\n }\n }\n ]\n }\n },\n \"schemas\": {\n \"key\": {\n \"name\": \"NomadicONTPolicyModel_Schemas\",\n \"version\": \"1.0.2\"\n },\n \"schemas\": {\n \"entry\": [\n {\n \"key\": {\n \"name\": \"NomadicONTContextType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"NomadicONTContextType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Avro\",\n \"schemaDefinition\": \"{\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"NomadicONTContext\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"AAI\\\",\\n \\\"type\\\": {\\n \\\"type\\\": \\\"record\\\",\\n \\\"name\\\": \\\"VCPE_AAI_Type\\\",\\n \\\"namespace\\\": \\\"org.onap.policy.apex.onap.vcpe\\\",\\n \\\"fields\\\": [\\n {\\n \\\"name\\\": \\\"attachmentPoint\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"service_information_hsia_cfs_service_instance_id\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"cvlan\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"svlan\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"remoteId\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n }\\n },\\n {\\n \\\"name\\\": \\\"closedLoopAlarmStart\\\",\\n \\\"type\\\": \\\"long\\\"\\n },\\n {\\n \\\"name\\\": \\\"closedLoopAlarmEnd\\\",\\n \\\"type\\\": \\\"long\\\"\\n },\\n {\\n \\\"name\\\": \\\"closedLoopControlName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"version\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"requestID\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"closedLoopEventClient\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"closedLoopEventStatus\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"target_type\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"target\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"from\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"policyScope\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"policyName\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"policyVersion\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"notification\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"notificationTime\\\",\\n \\\"type\\\": \\\"long\\\"\\n },\\n {\\n \\\"name\\\": \\\"result\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"message\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"url\\\",\\n \\\"type\\\": \\\"string\\\"\\n },\\n {\\n \\\"name\\\": \\\"aai_message\\\",\\n \\\"type\\\": \\\"string\\\"\\n }\\n ]\\n}\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleBooleanType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.lang.Boolean\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleLongType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.lang.Long\"\n }\n },\n {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"SimpleStringType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.lang.String\"\n }\n },\n {\n \"key\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"UUIDType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"java.util.UUID\"\n }\n },\n {\n \"key\": {\n \"name\": \"VirtualControlLoopEventType\",\n \"version\": \"0.0.1\"\n },\n \"value\": {\n \"key\": {\n \"name\": \"VirtualControlLoopEventType\",\n \"version\": \"0.0.1\"\n },\n \"schemaFlavour\": \"Java\",\n \"schemaDefinition\": \"org.onap.policy.controlloop.VirtualControlLoopEvent\"\n }\n }\n ]\n }\n }\n }\n }\n },\n \"eventOutputParameters\": {\n \"FirstProducer\": {\n \"carrierTechnologyParameters\": {\n \"carrierTechnology\": \"FILE\",\n \"parameters\": {\n \"standardIo\": true\n }\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\"\n }\n }\n },\n \"eventInputParameters\": {\n \"DCAEConsumer\": {\n \"carrierTechnologyParameters\": {\n \"carrierTechnology\": \"RESTCLIENT\",\n \"parameterClassName\": \"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters\",\n \"parameters\": {\n \"url\": \"http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/g1/c1?timeout=60000\"\n }\n },\n \"eventProtocolParameters\": {\n \"eventProtocol\": \"JSON\",\n \"parameters\": {\n \"nameAlias\": \"policyName\",\n \"versionAlias\": \"version\",\n \"sourceAlias\": \"from\",\n \"pojoField\": \"VirtualControlLoopEvent\"\n }\n }\n }\n }\n }\n }\n }\n ]\n }\n}"
+ },
+ "url": {
+ "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies",
+ "host": [
+ "{{POLICY-API-URL}}"
+ ],
+ "path": [
+ "policy",
+ "api",
+ "v1",
+ "policytypes",
+ "onap.policies.controlloop.operational.Apex",
+ "versions",
+ "1.0.0",
+ "policies"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "Fetch Policy",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "GET",
+ "header": [
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "url": {
+ "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies/onap.policies.controlloop.operational.apex.Sampledomain/versions/1.0.0",
+ "host": [
+ "{{POLICY-API-URL}}"
+ ],
+ "path": [
+ "policy",
+ "api",
+ "v1",
+ "policytypes",
+ "onap.policies.controlloop.operational.Apex",
+ "versions",
+ "1.0.0",
+ "policies",
+ "onap.policies.controlloop.operational.apex.Sampledomain",
+ "versions",
+ "1.0.0"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "Simple Deploy Policy",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\r\n \"policies\" : [\r\n {\r\n \"policy-id\": \"operational.apex.sampledomain\",\r\n \"policy-version\": 1\r\n }\r\n ]\r\n}"
+ },
+ "url": {
+ "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/policies",
+ "host": [
+ "{{POLICY-PAP-URL}}"
+ ],
+ "path": [
+ "policy",
+ "pap",
+ "v1",
+ "pdps",
+ "policies"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "BBS: Simple Deploy Policy",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "POST",
+ "header": [
+ {
+ "key": "Content-Type",
+ "type": "text",
+ "value": "application/json"
+ },
+ {
+ "key": "Accept",
+ "type": "text",
+ "value": "application/json"
+ }
+ ],
+ "body": {
+ "mode": "raw",
+ "raw": "{\n \"policies\" : [\n {\n \"policy-id\": \"operational.onapbbs\",\n \"policy-version\": \"1.0.0\"\n }\n ]\n}"
+ },
+ "url": {
+ "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/policies",
+ "host": [
+ "{{POLICY-PAP-URL}}"
+ ],
+ "path": [
+ "policy",
+ "pap",
+ "v1",
+ "pdps",
+ "policies"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "Simple Undeploy Policy",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "DELETE",
+ "header": [
+ {
+ "key": "Accept",
+ "value": "application/json",
+ "type": "text"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "type": "text"
+ }
+ ],
+ "url": {
+ "raw": "{{POLICY-PAP-URL}}/policy/pap/v1/pdps/policies/operational.apex.sampledomain",
+ "host": [
+ "{{POLICY-PAP-URL}}"
+ ],
+ "path": [
+ "policy",
+ "pap",
+ "v1",
+ "pdps",
+ "policies",
+ "operational.apex.sampledomain"
+ ]
+ }
+ },
+ "response": []
+ },
+ {
+ "name": "Delete Policy",
+ "request": {
+ "auth": {
+ "type": "basic",
+ "basic": [
+ {
+ "key": "password",
+ "value": "zb!XztG34",
+ "type": "string"
+ },
+ {
+ "key": "username",
+ "value": "healthcheck",
+ "type": "string"
+ }
+ ]
+ },
+ "method": "DELETE",
+ "header": [
+ {
+ "key": "Accept",
+ "value": "application/json",
+ "type": "text"
+ },
+ {
+ "key": "Content-Type",
+ "value": "application/json",
+ "type": "text"
+ }
+ ],
+ "url": {
+ "raw": "{{POLICY-API-URL}}/policy/api/v1/policytypes/onap.policies.controlloop.operational.Apex/versions/1.0.0/policies/operational.apex.sampledomain/versions/1.0.0",
+ "host": [
+ "{{POLICY-API-URL}}"
+ ],
+ "path": [
+ "policy",
+ "api",
+ "v1",
+ "policytypes",
+ "onap.policies.controlloop.operational.Apex",
+ "versions",
+ "1.0.0",
+ "policies",
+ "operational.apex.sampledomain",
+ "versions",
+ "1.0.0"
+ ]
+ }
+ },
+ "response": []
+ }
+ ],
+ "event": [
+ {
+ "listen": "prerequest",
+ "script": {
+ "id": "1d5a3cc4-4aad-401f-88ec-d93d34a8f716",
+ "type": "text/javascript",
+ "exec": [
+ ""
+ ]
+ }
+ },
+ {
+ "listen": "test",
+ "script": {
+ "id": "87e74581-5ac2-4b43-a75f-3bbc22ecf44e",
+ "type": "text/javascript",
+ "exec": [
+ ""
+ ]
+ }
+ }
+ ],
+ "protocolProfileBehavior": {}
+} \ No newline at end of file
diff --git a/policy/apex/json/bbs_create_policy.json b/policy/apex/json/bbs_create_policy.json
index 099ab20..dccaf37 100644
--- a/policy/apex/json/bbs_create_policy.json
+++ b/policy/apex/json/bbs_create_policy.json
@@ -1,13 +1,16 @@
{
- "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
+ "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
"topology_template": {
"policies": [
{
"operational.onapbbs": {
"type": "onap.policies.controlloop.operational.Apex",
- "typeVersion": "1.0.0",
- "name": "onap.policies.controlloop.operational.apex.onapbbs",
+ "type_version": "1.0.0",
"version": "1.0.0",
+ "metadata": {
+ "policy-id": "operational.onapbbs",
+ "policy-version": "1.0.0"
+ },
"properties": {
"engineServiceParameters": {
"name": "NomadicONTPolicyModelEngine",
@@ -1788,7 +1791,7 @@
"taskLogic": {
"key": "TaskLogic",
"logicFlavour": "JAVASCRIPT",
- "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2019 Huawei. 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 */\nload(\"nashorn:mozilla_compat.js\");\nimportClass(org.apache.avro.Schema);\nimportClass(java.io.BufferedReader);\nimportClass(java.io.IOException);\nimportClass(java.nio.file.Files);\nimportClass(java.nio.file.Paths);\n\nimportPackage(org.json.XML);\n\nexecutor.logger.info(\"Begin Execution SdncResourceUpdateTask.js\");\nexecutor.logger.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar attachmentPoint = executor.inFields.get(\"attachmentPoint\");\nvar requestID = executor.inFields.get(\"requestID\");\nvar serviceInstanceId = executor.inFields.get(\"serviceInstanceId\");\nvar uuidType = Java.type(\"java.util.UUID\");\n\nvar wbClient = Java.type(\"org.onap.policy.apex.examples.bbs.WebClient\");\nvar client = new wbClient();\n\nvar NomadicONTContext = executor.getContextAlbum(\"NomadicONTContextAlbum\").get(attachmentPoint);\nvar sdncUUID = uuidType.randomUUID();\nexecutor.logger.info(NomadicONTContext);\nvar jsonObj;\nvar aaiUpdateResult = true;\nvar SDNC_URL = \"localhost:8080\";\nvar HTTP_PROTOCOL = \"http://\"\nvar SVC_NOTIFICATION_URL;\nvar putUpddateServInstance = JSON.parse(NomadicONTContext.get(\"aai_message\"));\nvar input_param = JSON.parse(putUpddateServInstance['input-parameters']);\ntry {\n var br = Files.newBufferedReader(Paths.get(\"/home/apexuser/examples/config/ONAPBBS/config.txt\"));\n var line;\n while ((line = br.readLine()) != null) {\n if (line.startsWith(\"SDNC_URL\")) {\n var str = line.split(\"=\");\n SDNC_URL = str[str.length - 1];\n } else if (line.startsWith(\"SVC_NOTIFICATION_URL\")) {\n var str = line.split(\"=\");\n SVC_NOTIFICATION_URL = str[str.length - 1];\n } else if (line.startsWith(\"SDNC_USERNAME\")) {\n var str = line.split(\"=\");\n SDNC_USERNAME = str[str.length - 1];\n } else if (line.startsWith(\"SDNC_PASSWORD\")) {\n var str = line.split(\"=\");\n SDNC_PASSWORD = str[str.length - 1];\n }\n }\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n}\nexecutor.logger.info(\"SDNC_URL \" + SDNC_URL);\n\nvar result;\nvar jsonObj;\nvar sdncUpdateResult = true;\n\n/* BBS Policy calls SDN-C GR-API to delete AccessConnectivity VF ID */\n/* Prepare Data */\nvar xmlDeleteAccess = \"\";\ntry {\n var br = Files.newBufferedReader(Paths\n .get(\"/home/apexuser/examples/config/ONAPBBS/sdnc_DeleteAccessConnectivityInstance.txt\"));\n var line;\n while ((line = br.readLine()) != null) {\n xmlDeleteAccess += line;\n }\n\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n}\n\n/* BBS Policy calls SDN-C GR-API to delete AccessConnectivity */\nxmlDeleteAccess = xmlDeleteAccess.replace(\"svc_request_id_value\", sdncUUID);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"svc_notification_url_value\", SVC_NOTIFICATION_URL);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"request_id_value\", sdncUUID);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"service_id_value\", sdncUUID);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"service_instance_id_value\", putUpddateServInstance['service-instance-id']);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"service_type_value\", input_param['service']['serviceType']);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"customer_id_value\", input_param['service']['globalSubscriberId']);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"customer_name_value\", input_param['service']['globalSubscriberId']);\n\nxmlDeleteAccess = xmlDeleteAccess.replace(\"srv_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"srv_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"srv_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"srv_info_model_name_value\", \"AccessConnectivity\");\nxmlDeleteAccess = xmlDeleteAccess.replace(\"network_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"network_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"network_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"network_info_model_name_value\", \"AccessConnectivity\");\n\nxmlDeleteAccess = xmlDeleteAccess.replace(\"vendor_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_manufacturer']);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"service_id_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'controller-service-id'));\n\nexecutor.logger.info(xmlDeleteAccess);\n\ntry {\n var urlPost1 = HTTP_PROTOCOL + SDNC_URL + \"/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation\";\n result = client.httpRequest(urlPost1, \"POST\", xmlDeleteAccess, SDNC_USERNAME, SDNC_PASSWORD, \"application/xml\");\n executor.logger.info(\"Data received From \" + urlPost1 + \" \" + result);\n if (result == \"\") {\n sdncUpdateResult = false;\n }\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n sdncUpdateResult = false;\n}\n\n/* BBS Policy calls SDN-C GR-API to create new AccessConnectivity VF */\n\n/* Prepare Data */\nvar xmlCreateAccess = \"\";\ntry {\n var br = Files.newBufferedReader(Paths\n .get(\"/home/apexuser/examples/config/ONAPBBS/sdnc_CreateAccessConnectivityInstance.txt\"));\n var line;\n while ((line = br.readLine()) != null) {\n xmlCreateAccess += line;\n }\n\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n}\nxmlCreateAccess = xmlCreateAccess.replace(\"svc_request_id_value\", sdncUUID);\nxmlCreateAccess = xmlCreateAccess.replace(\"svc_notification_url_value\", SVC_NOTIFICATION_URL);\nxmlCreateAccess = xmlCreateAccess.replace(\"request_id_value\", requestID);\nxmlCreateAccess = xmlCreateAccess.replace(\"service_id_value\", sdncUUID);\nxmlCreateAccess = xmlCreateAccess.replace(\"service_instance_id_value\", putUpddateServInstance['service-instance-id']);\nxmlCreateAccess = xmlCreateAccess.replace(\"service_type_value\", input_param['service']['serviceType']);\nxmlCreateAccess = xmlCreateAccess.replace(\"customer_id_value\", input_param['service']['globalSubscriberId']);\nxmlCreateAccess = xmlCreateAccess.replace(\"customer_name_value\", input_param['service']['globalSubscriberId']);\n\nxmlCreateAccess = xmlCreateAccess.replace(\"srv_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"srv_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"srv_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"srv_info_model_name_value\", \"AccessConnectivity\");\nxmlCreateAccess = xmlCreateAccess.replace(\"network_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"network_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"network_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"network_info_model_name_value\", \"AccessConnectivity\");\n\nxmlCreateAccess = xmlCreateAccess.replace(\"vendor_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_manufacturer']);\nxmlCreateAccess = xmlCreateAccess.replace(\"ont_sn_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_serial_num']);\nxmlCreateAccess = xmlCreateAccess.replace(\"s_vlan_value\", getMetaValue(putUpddateServInstance['metadata']['metadatum'],\n 'svlan'));\nxmlCreateAccess = xmlCreateAccess.replace(\"c_vlan_value\", getMetaValue(putUpddateServInstance['metadata']['metadatum'],\n 'cvlan'));\nxmlCreateAccess = xmlCreateAccess.replace(\"remote_id_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'remote-id'));\n\nexecutor.logger.info(xmlCreateAccess);\n\ntry {\n if (sdncUpdateResult == true) {\n var urlPost2 = HTTP_PROTOCOL + SDNC_URL\n + \"/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation\";\n result = client.httpRequest(urlPost2, \"POST\", xmlCreateAccess, SDNC_USERNAME, SDNC_PASSWORD, \"application/xml\");\n executor.logger.info(\"Data received From \" + urlPost2 + \" \" + result);\n if (result == \"\") {\n sdncUpdateResult = false;\n }\n }\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n sdncUpdateResult = false;\n}\n\n/* BBS Policy calls SDN-C GR-API to create change Internet Profile */\nvar xmlChangeProfile = \"\";\ntry {\n var br = Files.newBufferedReader(Paths\n .get(\"/home/apexuser/examples/config/ONAPBBS/sdnc_ChangeInternetProfileInstance.txt\"));\n var line;\n while ((line = br.readLine()) != null) {\n xmlChangeProfile += line;\n }\n\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n}\n\nxmlChangeProfile = xmlChangeProfile.replace(\"svc_request_id_value\", sdncUUID);\nxmlChangeProfile = xmlChangeProfile.replace(\"svc_notification_url_value\", SVC_NOTIFICATION_URL);\nxmlChangeProfile = xmlChangeProfile.replace(\"request_id_value\", requestID);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_id_value\", sdncUUID);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_instance_id_value\", putUpddateServInstance['service-instance-id']);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_type_value\", input_param['service']['serviceType']);\nxmlChangeProfile = xmlChangeProfile.replace(\"customer_id_value\", input_param['service']['globalSubscriberId']);\nxmlChangeProfile = xmlChangeProfile.replace(\"customer_name_value\", input_param['service']['globalSubscriberId']);\n\nxmlChangeProfile = xmlChangeProfile.replace(\"srv_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlChangeProfile.replace(\"srv_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlChangeProfile.replace(\"srv_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlChangeProfile.replace(\"srv_info_model_name_value\", \"InternetProfile\");\nxmlChangeProfile = xmlChangeProfile.replace(\"network_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlChangeProfile.replace(\"network_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlChangeProfile.replace(\"network_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlChangeProfile.replace(\"network_info_model_name_value\", \"InternetProfile\");\n\nxmlChangeProfile = xmlChangeProfile.replace(\"vendor_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_manufacturer']);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_id_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'controller-service-id'));\nxmlChangeProfile = xmlChangeProfile.replace(\"remote_id_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'remote-id'));\nxmlChangeProfile = xmlChangeProfile.replace(\"ont_sn_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_serial_num']);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_type_value\", input_param['service']['serviceType']);\nxmlChangeProfile = xmlChangeProfile.replace(\"mac_value\", getMetaValue(putUpddateServInstance['metadata']['metadatum'],\n 'rgw-mac-address'));\nxmlChangeProfile = xmlChangeProfile.replace(\"up_speed_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'up-speed'));\nxmlChangeProfile = xmlChangeProfile.replace(\"down_speed_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'down-speed'));\nxmlChangeProfile = xmlChangeProfile.replace(\"s_vlan_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'svlan'));\nxmlChangeProfile = xmlChangeProfile.replace(\"c_vlan_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'cvlan'));\n\nexecutor.logger.info(xmlChangeProfile);\n\ntry {\n if (sdncUpdateResult == true) {\n var urlPost3 = HTTP_PROTOCOL + SDNC_URL\n + \"/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation\";\n result = client\n .httpRequest(urlPost3, \"POST\", xmlChangeProfile, SDNC_USERNAME, SDNC_PASSWORD, \"application/xml\");\n executor.logger.info(\"Data received From \" + urlPost3 + \" \" + result);\n if (result == \"\") {\n sdncUpdateResult = false;\n }\n }\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n sdncUpdateResult = false;\n}\n\n/* If Success then Fill output schema */\n\nif (sdncUpdateResult === true) {\n NomadicONTContext.put(\"result\", \"SUCCESS\");\n executor.outFields.put(\"result\", \"SUCCESS\");\n} else {\n NomadicONTContext.put(\"result\", \"FAILURE\");\n executor.outFields.put(\"result\", \"FAILURE\");\n}\n\nexecutor.outFields.put(\"requestID\", requestID);\nexecutor.outFields.put(\"attachmentPoint\", attachmentPoint);\nexecutor.outFields.put(\"serviceInstanceId\", executor.inFields.get(\"serviceInstanceId\"));\n\nvar returnValue = executor.isTrue;\nexecutor.logger.info(executor.outFields);\nexecutor.logger.info(\"End Execution SdncResourceUpdateTask.js\");\n\nfunction getMetaValue(metaJson, metaname) {\n for (var i = 0; i < metaJson.length; i++) {\n if (metaJson[i]['metaname'] == metaname) {\n var metaValue = metaJson[i]['metaval'];\n return metaValue;\n }\n }\n\n}\n\nfunction getResourceInvariantUuid(resJson, resourceName) {\n for (var i = 0; i < resJson.length; i++) {\n if (resJson[i]['resourceName'] == resourceName) {\n var resValue = resJson[i]['resourceInvariantUuid'];\n return resValue;\n }\n }\n\n}\n\nfunction getResourceUuid(resJson, resourceName) {\n for (var i = 0; i < resJson.length; i++) {\n if (resJson[i]['resourceName'] == resourceName) {\n var resValue = resJson[i]['resourceUuid'];\n return resValue;\n }\n }\n\n}\n\nfunction getResourceCustomizationUuid(resJson, resourceName) {\n for (var i = 0; i < resJson.length; i++) {\n if (resJson[i]['resourceName'] == resourceName) {\n var resValue = resJson[i]['resourceCustomizationUuid'];\n return resValue;\n }\n }\n\n}\n\n/* Utility functions Begin */\nfunction IsValidJSONString(str) {\n try {\n JSON.parse(str);\n } catch (e) {\n return false;\n }\n return true;\n}\n/* Utility functions End */"
+ "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2019 Huawei. 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 */\nload(\"nashorn:mozilla_compat.js\");\nimportClass(org.apache.avro.Schema);\nimportClass(java.io.BufferedReader);\nimportClass(java.io.IOException);\nimportClass(java.nio.file.Files);\nimportClass(java.nio.file.Paths);\n\nimportPackage(org.json.XML);\n\nexecutor.logger.info(\"Begin Execution SdncResourceUpdateTask.js\");\nexecutor.logger.info(executor.subject.id);\nexecutor.logger.info(executor.inFields);\n\nvar attachmentPoint = executor.inFields.get(\"attachmentPoint\");\nvar requestID = executor.inFields.get(\"requestID\");\nvar serviceInstanceId = executor.inFields.get(\"serviceInstanceId\");\nvar uuidType = Java.type(\"java.util.UUID\");\n\nvar wbClient = Java.type(\"org.onap.policy.apex.examples.bbs.WebClient\");\nvar client = new wbClient();\n\nvar NomadicONTContext = executor.getContextAlbum(\"NomadicONTContextAlbum\").get(attachmentPoint);\nvar sdncUUID = uuidType.randomUUID();\nexecutor.logger.info(NomadicONTContext);\nvar jsonObj;\nvar aaiUpdateResult = true;\nvar SDNC_URL = \"localhost:8080\";\nvar HTTP_PROTOCOL = \"http://\"\nvar SVC_NOTIFICATION_URL;\nvar putUpddateServInstance = JSON.parse(NomadicONTContext.get(\"aai_message\"));\nvar input_param = JSON.parse(putUpddateServInstance['input-parameters']);\ntry {\n var br = Files.newBufferedReader(Paths.get(\"/home/apexuser/examples/config/ONAPBBS/config.txt\"));\n var line;\n while ((line = br.readLine()) != null) {\n if (line.startsWith(\"SDNC_URL\")) {\n var str = line.split(\"=\");\n SDNC_URL = str[str.length - 1];\n } else if (line.startsWith(\"SVC_NOTIFICATION_URL\")) {\n var str = line.split(\"=\");\n SVC_NOTIFICATION_URL = str[str.length - 1];\n } else if (line.startsWith(\"SDNC_USERNAME\")) {\n var str = line.split(\"=\");\n SDNC_USERNAME = str[str.length - 1];\n } else if (line.startsWith(\"SDNC_PASSWORD\")) {\n var str = line.split(\"=\");\n SDNC_PASSWORD = str[str.length - 1];\n }\n }\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n}\nexecutor.logger.info(\"SDNC_URL \" + SDNC_URL);\n\nvar result;\nvar jsonObj;\nvar sdncUpdateResult = true;\n\n/* BBS Policy calls SDN-C GR-API to delete AccessConnectivity VF ID */\n/* Prepare Data */\nvar xmlDeleteAccess = \"\";\ntry {\n var br = Files.newBufferedReader(Paths\n .get(\"/home/apexuser/examples/config/ONAPBBS/sdnc_DeleteAccessConnectivityInstance.txt\"));\n var line;\n while ((line = br.readLine()) != null) {\n xmlDeleteAccess += line;\n }\n\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n}\n\n/* BBS Policy calls SDN-C GR-API to delete AccessConnectivity */\nxmlDeleteAccess = xmlDeleteAccess.replace(\"svc_request_id_value\", sdncUUID);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"svc_notification_url_value\", SVC_NOTIFICATION_URL);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"request_id_value\", sdncUUID);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"service_id_value\", sdncUUID);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"service_instance_id_value\", putUpddateServInstance['service-instance-id']);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"service_type_value\", input_param['service']['serviceType']);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"customer_id_value\", input_param['service']['globalSubscriberId']);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"customer_name_value\", input_param['service']['globalSubscriberId']);\n\nxmlDeleteAccess = xmlDeleteAccess.replace(\"srv_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"srv_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"srv_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"srv_info_model_name_value\", \"AccessConnectivity\");\nxmlDeleteAccess = xmlDeleteAccess.replace(\"network_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"network_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"network_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlDeleteAccess = xmlDeleteAccess.replace(\"network_info_model_name_value\", \"AccessConnectivity\");\n\nxmlDeleteAccess = xmlDeleteAccess.replace(\"vendor_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_manufacturer']);\nxmlDeleteAccess = xmlDeleteAccess.replace(\"service_id_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'controller-service-id'));\n\n\ntry {\n var urlPost1 = HTTP_PROTOCOL + SDNC_URL + \"/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation\";\n result = client.httpRequest(urlPost1, \"POST\", xmlDeleteAccess, SDNC_USERNAME, SDNC_PASSWORD, \"application/xml\");\n executor.logger.info(\"Data received From \" + urlPost1 + \" \" + result);\n if (result == \"\") {\n sdncUpdateResult = false;\n }\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n sdncUpdateResult = false;\n}\n\n/* BBS Policy calls SDN-C GR-API to create new AccessConnectivity VF */\n\n/* Prepare Data */\nvar xmlCreateAccess = \"\";\ntry {\n var br = Files.newBufferedReader(Paths\n .get(\"/home/apexuser/examples/config/ONAPBBS/sdnc_CreateAccessConnectivityInstance.txt\"));\n var line;\n while ((line = br.readLine()) != null) {\n xmlCreateAccess += line;\n }\n\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n}\nxmlCreateAccess = xmlCreateAccess.replace(\"svc_request_id_value\", sdncUUID);\nxmlCreateAccess = xmlCreateAccess.replace(\"svc_notification_url_value\", SVC_NOTIFICATION_URL);\nxmlCreateAccess = xmlCreateAccess.replace(\"request_id_value\", requestID);\nxmlCreateAccess = xmlCreateAccess.replace(\"service_id_value\", sdncUUID);\nxmlCreateAccess = xmlCreateAccess.replace(\"service_instance_id_value\", putUpddateServInstance['service-instance-id']);\nxmlCreateAccess = xmlCreateAccess.replace(\"service_type_value\", input_param['service']['serviceType']);\nxmlCreateAccess = xmlCreateAccess.replace(\"customer_id_value\", input_param['service']['globalSubscriberId']);\nxmlCreateAccess = xmlCreateAccess.replace(\"customer_name_value\", input_param['service']['globalSubscriberId']);\n\nxmlCreateAccess = xmlCreateAccess.replace(\"srv_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"srv_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"srv_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"srv_info_model_name_value\", \"AccessConnectivity\");\nxmlCreateAccess = xmlCreateAccess.replace(\"network_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"network_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"network_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'AccessConnectivity'));\nxmlCreateAccess = xmlCreateAccess.replace(\"network_info_model_name_value\", \"AccessConnectivity\");\n\nxmlCreateAccess = xmlCreateAccess.replace(\"vendor_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_manufacturer']);\nxmlCreateAccess = xmlCreateAccess.replace(\"ont_sn_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_serial_num']);\nxmlCreateAccess = xmlCreateAccess.replace(\"s_vlan_value\", getMetaValue(putUpddateServInstance['metadata']['metadatum'],\n 'svlan'));\nxmlCreateAccess = xmlCreateAccess.replace(\"c_vlan_value\", getMetaValue(putUpddateServInstance['metadata']['metadatum'],\n 'cvlan'));\nxmlCreateAccess = xmlCreateAccess.replace(\"remote_id_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'remote-id'));\n\n\ntry {\n if (sdncUpdateResult == true) {\n var urlPost2 = HTTP_PROTOCOL + SDNC_URL\n + \"/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation\";\n result = client.httpRequest(urlPost2, \"POST\", xmlCreateAccess, SDNC_USERNAME, SDNC_PASSWORD, \"application/xml\");\n executor.logger.info(\"Data received From \" + urlPost2 + \" \" + result);\n if (result == \"\") {\n sdncUpdateResult = false;\n }\n }\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n sdncUpdateResult = false;\n}\n\n/* BBS Policy calls SDN-C GR-API to create change Internet Profile */\nvar xmlChangeProfile = \"\";\ntry {\n var br = Files.newBufferedReader(Paths\n .get(\"/home/apexuser/examples/config/ONAPBBS/sdnc_ChangeInternetProfileInstance.txt\"));\n var line;\n while ((line = br.readLine()) != null) {\n xmlChangeProfile += line;\n }\n\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n}\n\nxmlChangeProfile = xmlChangeProfile.replace(\"svc_request_id_value\", sdncUUID);\nxmlChangeProfile = xmlChangeProfile.replace(\"svc_notification_url_value\", SVC_NOTIFICATION_URL);\nxmlChangeProfile = xmlChangeProfile.replace(\"request_id_value\", requestID);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_id_value\", sdncUUID);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_instance_id_value\", putUpddateServInstance['service-instance-id']);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_type_value\", input_param['service']['serviceType']);\nxmlChangeProfile = xmlChangeProfile.replace(\"customer_id_value\", input_param['service']['globalSubscriberId']);\nxmlChangeProfile = xmlChangeProfile.replace(\"customer_name_value\", input_param['service']['globalSubscriberId']);\n\nxmlChangeProfile = xmlCreateAccess.replace(\"srv_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlCreateAccess.replace(\"srv_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlCreateAccess.replace(\"srv_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlCreateAccess.replace(\"srv_info_model_name_value\", \"InternetProfile\");\nxmlChangeProfile = xmlCreateAccess.replace(\"network_info_model_inv_uuid_value\", getResourceInvariantUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlCreateAccess.replace(\"network_info_model_custom_uuid_value\", getResourceCustomizationUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlCreateAccess.replace(\"network_info_model_uuid_value\", getResourceUuid(\n input_param['service']['parameters']['resources'], 'InternetProfile'));\nxmlChangeProfile = xmlCreateAccess.replace(\"network_info_model_name_value\", \"InternetProfile\");\n\nxmlChangeProfile = xmlChangeProfile.replace(\"vendor_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_manufacturer']);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_id_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'controller-service-id'));\nxmlChangeProfile = xmlChangeProfile.replace(\"remote_id_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'remote-id'));\nxmlChangeProfile = xmlChangeProfile.replace(\"ont_sn_value\",\n input_param['service']['parameters']['requestInputs']['ont_ont_serial_num']);\nxmlChangeProfile = xmlChangeProfile.replace(\"service_type_value\", input_param['service']['serviceType']);\nxmlChangeProfile = xmlChangeProfile.replace(\"mac_value\", getMetaValue(putUpddateServInstance['metadata']['metadatum'],\n 'rgw-mac-address'));\nxmlChangeProfile = xmlChangeProfile.replace(\"up_speed_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'up-speed'));\nxmlChangeProfile = xmlChangeProfile.replace(\"down_speed_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'down-speed'));\nxmlChangeProfile = xmlChangeProfile.replace(\"s_vlan_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'svlan'));\nxmlChangeProfile = xmlChangeProfile.replace(\"c_vlan_value\", getMetaValue(\n putUpddateServInstance['metadata']['metadatum'], 'cvlan'));\n\n\ntry {\n if (sdncUpdateResult == true) {\n var urlPost3 = HTTP_PROTOCOL + SDNC_URL\n + \"/restconf/operations/GENERIC-RESOURCE-API:vnf-topology-operation\";\n result = client\n .httpRequest(urlPost3, \"POST\", xmlChangeProfile, SDNC_USERNAME, SDNC_PASSWORD, \"application/xml\");\n executor.logger.info(\"Data received From \" + urlPost3 + \" \" + result);\n if (result == \"\") {\n sdncUpdateResult = false;\n }\n }\n} catch (err) {\n executor.logger.info(\"Failed to retrieve data \" + err);\n sdncUpdateResult = false;\n}\n\n/* If Success then Fill output schema */\n\nif (sdncUpdateResult === true) {\n NomadicONTContext.put(\"result\", \"SUCCESS\");\n executor.outFields.put(\"result\", \"SUCCESS\");\n} else {\n NomadicONTContext.put(\"result\", \"FAILURE\");\n executor.outFields.put(\"result\", \"FAILURE\");\n}\n\nexecutor.outFields.put(\"requestID\", requestID);\nexecutor.outFields.put(\"attachmentPoint\", attachmentPoint);\nexecutor.outFields.put(\"serviceInstanceId\", executor.inFields.get(\"serviceInstanceId\"));\n\nvar returnValue = executor.isTrue;\nexecutor.logger.info(executor.outFields);\nexecutor.logger.info(\"End Execution SdncResourceUpdateTask.js\");\n\nfunction getMetaValue(metaJson, metaname) {\n for (var i = 0; i < metaJson.length; i++) {\n if (metaJson[i]['metaname'] == metaname) {\n var metaValue = metaJson[i]['metaval'];\n return metaValue;\n }\n }\n\n}\n\nfunction getResourceInvariantUuid(resJson, resourceName) {\n for (var i = 0; i < resJson.length; i++) {\n if (resJson[i]['resourceName'] == resourceName) {\n var resValue = resJson[i]['resourceInvariantUuid'];\n return resValue;\n }\n }\n\n}\n\nfunction getResourceUuid(resJson, resourceName) {\n for (var i = 0; i < resJson.length; i++) {\n if (resJson[i]['resourceName'] == resourceName) {\n var resValue = resJson[i]['resourceUuid'];\n return resValue;\n }\n }\n\n}\n\nfunction getResourceCustomizationUuid(resJson, resourceName) {\n for (var i = 0; i < resJson.length; i++) {\n if (resJson[i]['resourceName'] == resourceName) {\n var resValue = resJson[i]['resourceCustomizationUuid'];\n return resValue;\n }\n }\n\n}\n\n/* Utility functions Begin */\nfunction IsValidJSONString(str) {\n try {\n JSON.parse(str);\n } catch (e) {\n return false;\n }\n return true;\n}\n/* Utility functions End */"
}
}
},
diff --git a/policy/apex/json/bbs_policytypes.json b/policy/apex/json/bbs_policytypes.json
index 69096b6..ba62a17 100644
--- a/policy/apex/json/bbs_policytypes.json
+++ b/policy/apex/json/bbs_policytypes.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
},
diff --git a/policy/apex/json/bbs_simple_deploy.json b/policy/apex/json/bbs_simple_deploy.json
index 138c4ef..d85d2b3 100644
--- a/policy/apex/json/bbs_simple_deploy.json
+++ b/policy/apex/json/bbs_simple_deploy.json
@@ -1,7 +1,7 @@
{
"policies": [
{
- "policy-id": "onap.policies.controlloop.operational.apex.onapbbs",
+ "policy-id": "operational.onapbbs",
"policy-version": "1.0.0"
}
]