diff options
Diffstat (limited to 'tests')
87 files changed, 8404 insertions, 425 deletions
diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/aai-entry.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/aai-entry.json new file mode 100644 index 00000000..b0749966 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/aai-entry.json @@ -0,0 +1,38 @@ +{ + "pnf-name": "NOK6061ZW9", + "pnf-name2": "example-pnf-name2-val-58071", + "pnf-name2-source": "example-pnf-name2-source-val-22408", + "pnf-id": "example-pnf-id-val-55834", + "equip-type": "example-equip-type-val-5497", + "equip-vendor": "example-equip-vendor-val-85730", + "equip-model": "example-equip-model-val-38526", + "management-option": "example-management-option-val-15776", + "ipaddress-v4-oam": "example-ipaddress-v4-oam-val-33556", + "sw-version": "example-sw-version-val-64239", + "in-maint": true, + "frame-id": "example-frame-id-val-76733", + "serial-number": "example-serial-number-val-79366", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-34781", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-29979", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-53703", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-93386", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-92665", + "inv-status": "example-inv-status-val-8477", + "prov-status": "example-prov-status-val-68268", + "nf-role": "example-nf-role-val-68489", + "relationship-list": { + "relationship": [ + { + "related-to": "logical-link", + "relationship-label": "org.onap.relationships.inventory.BridgedTo", + "related-link": "/aai/v14/network/logical-links/logical-link/some-link", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "some-link" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/expected-logical-link.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/expected-logical-link.json new file mode 100644 index 00000000..8bcc5312 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/expected-logical-link.json @@ -0,0 +1,13 @@ +{ + "link-name": "another-link", + "link-type": "attachment-point", + "relationship-list": + { + "relationship": [ + { + "related-link": "/network/pnfs/pnf/NOK6061ZW9", + "relationship-data": [] + } + ] + } +} diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/expected-pnf-ready-event.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/expected-pnf-ready-event.json new file mode 100644 index 00000000..d1787797 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/expected-pnf-ready-event.json @@ -0,0 +1,8 @@ +[ + { + "additionalFields": { + "attachment-point": "another-link" + }, + "correlationId": "NOK6061ZW9" + } +]
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/logical-link.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/logical-link.json new file mode 100644 index 00000000..72b38831 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/logical-link.json @@ -0,0 +1,20 @@ +{ + "link-name": "some-link", + "in-maint": false, + "link-type": "attachment-point", + "resource-version": "1561617000521", + "relationship-list": { + "relationship": [ + { + "related-to": "pnf", + "related-link": "/aai/v11/network/pnfs/pnf/NOK6061ZW9", + "relationship-data": [ + { + "relationship-key": "pnf.pnf-name", + "relationship-value": "NOK6061ZW9" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/ves-event.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/ves-event.json new file mode 100644 index 00000000..ef75a884 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/ves-event.json @@ -0,0 +1,40 @@ +{ + "event": { + "commonEventHeader": { + "startEpochMicrosec": 1540212137393, + "sourceId": "val13", + "eventId": "registration_40212137", + "nfcNamingCode": "oam", + "internalHeaderFields": { + "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC" + }, + "eventType": "pnfRegistration", + "priority": "Normal", + "version": "4.0.1", + "reportingEntityName": "NOK6061ZW9", + "sequence": 0, + "domain": "pnfRegistration", + "lastEpochMicrosec": 1540212137393, + "eventName": "pnfRegistration_Nokia_5gDu", + "vesEventListenerVersion": "7.0.1", + "sourceName": "NOK6061ZW9", + "nfNamingCode": "gNB" + }, + "pnfRegistrationFields": { + "unitType": "val8", + "serialNumber": "6061ZW9", + "pnfRegistrationFieldsVersion": "2.0", + "manufactureDate": "1540212137393", + "modelNumber": "val6", + "lastServiceDate": "1540212137393", + "unitFamily": "BBU", + "vendorName": "Nokia", + "oamV4IpAddress": "val3", + "oamV6IpAddress": "val4", + "softwareVersion": "val7", + "additionalFields": { + "attachment-point": "another-link" + } + } + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/aai-entry.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/aai-entry.json new file mode 100644 index 00000000..b0749966 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/aai-entry.json @@ -0,0 +1,38 @@ +{ + "pnf-name": "NOK6061ZW9", + "pnf-name2": "example-pnf-name2-val-58071", + "pnf-name2-source": "example-pnf-name2-source-val-22408", + "pnf-id": "example-pnf-id-val-55834", + "equip-type": "example-equip-type-val-5497", + "equip-vendor": "example-equip-vendor-val-85730", + "equip-model": "example-equip-model-val-38526", + "management-option": "example-management-option-val-15776", + "ipaddress-v4-oam": "example-ipaddress-v4-oam-val-33556", + "sw-version": "example-sw-version-val-64239", + "in-maint": true, + "frame-id": "example-frame-id-val-76733", + "serial-number": "example-serial-number-val-79366", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-34781", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-29979", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-53703", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-93386", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-92665", + "inv-status": "example-inv-status-val-8477", + "prov-status": "example-prov-status-val-68268", + "nf-role": "example-nf-role-val-68489", + "relationship-list": { + "relationship": [ + { + "related-to": "logical-link", + "relationship-label": "org.onap.relationships.inventory.BridgedTo", + "related-link": "/aai/v14/network/logical-links/logical-link/some-link", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "some-link" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-logical-link.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-logical-link.json new file mode 100644 index 00000000..6dcfdfec --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-logical-link.json @@ -0,0 +1,13 @@ +{ + "link-name": "some-link", + "link-type": "attachment-point", + "relationship-list": + { + "relationship": [ + { + "related-link": "/network/pnfs/pnf/NOK6061ZW9", + "relationship-data": [] + } + ] + } +} diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-pnf-ready-event.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-pnf-ready-event.json new file mode 100644 index 00000000..5a30bec8 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-pnf-ready-event.json @@ -0,0 +1,8 @@ +[ + { + "additionalFields": { + "attachment-point": "some-link" + }, + "correlationId": "NOK6061ZW9" + } +]
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/logical-link.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/logical-link.json new file mode 100644 index 00000000..72b38831 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/logical-link.json @@ -0,0 +1,20 @@ +{ + "link-name": "some-link", + "in-maint": false, + "link-type": "attachment-point", + "resource-version": "1561617000521", + "relationship-list": { + "relationship": [ + { + "related-to": "pnf", + "related-link": "/aai/v11/network/pnfs/pnf/NOK6061ZW9", + "relationship-data": [ + { + "relationship-key": "pnf.pnf-name", + "relationship-value": "NOK6061ZW9" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/ves-event.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/ves-event.json new file mode 100644 index 00000000..fc214556 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/ves-event.json @@ -0,0 +1,40 @@ +{ + "event": { + "commonEventHeader": { + "startEpochMicrosec": 1540212137393, + "sourceId": "val13", + "eventId": "registration_40212137", + "nfcNamingCode": "oam", + "internalHeaderFields": { + "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC" + }, + "eventType": "pnfRegistration", + "priority": "Normal", + "version": "4.0.1", + "reportingEntityName": "NOK6061ZW9", + "sequence": 0, + "domain": "pnfRegistration", + "lastEpochMicrosec": 1540212137393, + "eventName": "pnfRegistration_Nokia_5gDu", + "vesEventListenerVersion": "7.0.1", + "sourceName": "NOK6061ZW9", + "nfNamingCode": "gNB" + }, + "pnfRegistrationFields": { + "unitType": "val8", + "serialNumber": "6061ZW9", + "pnfRegistrationFieldsVersion": "2.0", + "manufactureDate": "1540212137393", + "modelNumber": "val6", + "lastServiceDate": "1540212137393", + "unitFamily": "BBU", + "vendorName": "Nokia", + "oamV4IpAddress": "val3", + "oamV6IpAddress": "val4", + "softwareVersion": "val7", + "additionalFields": { + "attachment-point": "some-link" + } + } + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/re-registration/expected-pnf-update-event.json b/tests/dcaegen2/prh-testcases/assets/re-registration/expected-pnf-update-event.json index 5c77e125..48341b69 100644 --- a/tests/dcaegen2/prh-testcases/assets/re-registration/expected-pnf-update-event.json +++ b/tests/dcaegen2/prh-testcases/assets/re-registration/expected-pnf-update-event.json @@ -1,7 +1,8 @@ [ { "additionalFields": { - "attachment-point": "bbs-link" + "attachment-point": "another-link", + "some-param": "param" }, "correlationId": "NOK6061ZW9" } diff --git a/tests/dcaegen2/prh-testcases/assets/re-registration/expected-logical-link.json b/tests/dcaegen2/prh-testcases/assets/re-registration/logical-link.json index 0e4f6ab1..575b88b0 100644 --- a/tests/dcaegen2/prh-testcases/assets/re-registration/expected-logical-link.json +++ b/tests/dcaegen2/prh-testcases/assets/re-registration/logical-link.json @@ -2,13 +2,12 @@ "link-name": "bbs-link", "in-maint": false, "link-type": "attachment-point", - "relationship-list": - { + "resource-version": "1561617000521", + "relationship-list": { "relationship": [ { "related-to": "pnf", - "relationship-label": "org.onap.relationships.inventory.BridgedTo", - "related-link": "/network/pnfs/pnf/NOK6061ZW9", + "related-link": "/aai/v11/network/pnfs/pnf/NOK6061ZW9", "relationship-data": [ { "relationship-key": "pnf.pnf-name", @@ -18,5 +17,4 @@ } ] } -} - +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/re-registration/ves-event.json b/tests/dcaegen2/prh-testcases/assets/re-registration/ves-event.json index 5de986c5..f02d7343 100644 --- a/tests/dcaegen2/prh-testcases/assets/re-registration/ves-event.json +++ b/tests/dcaegen2/prh-testcases/assets/re-registration/ves-event.json @@ -33,7 +33,8 @@ "oamV6IpAddress": "val4", "softwareVersion": "val7", "additionalFields": { - "attachment-point": "bbs-link" + "attachment-point": "another-link", + "some-param": "param" } } } diff --git a/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/aai-entry-service-instance.json b/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/aai-entry-service-instance.json new file mode 100644 index 00000000..e925e000 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/aai-entry-service-instance.json @@ -0,0 +1,25 @@ +{ + "service-instance-id": "bbs_service", + "service-instance-name": "bbs_service", + "environment-context": "General_Revenue-Bearing", + "workload-context": "Production", + "model-invariant-id": "c71827e7-42fc-46ab-b059-22584c58108b", + "model-version-id": "8efe4a8a-6646-43e2-8807-a376ff22d2e0", + "resource-version": "1554127221722", + "orchestration-status": "non-Active", + "relationship-list": { + "relationship": [ + { + "related-to": "pnf", + "relationship-label": "org.onap.relationships.inventory.ComposedOf", + "related-link": "/aai/v12/network/pnfs/pnf/NOK6061ZW8", + "relationship-data": [ + { + "relationship-key": "pnf.pnf-name", + "relationship-value": "NOK6061ZW8" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/aai-entry.json b/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/aai-entry.json new file mode 100644 index 00000000..802ffd8a --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/aai-entry.json @@ -0,0 +1,52 @@ +{ + "pnf-name": "NOK6061ZW8", + "pnf-name2": "example-pnf-name2-val-58071", + "pnf-name2-source": "example-pnf-name2-source-val-22408", + "pnf-id": "example-pnf-id-val-55834", + "equip-type": "example-equip-type-val-5497", + "equip-vendor": "example-equip-vendor-val-85730", + "equip-model": "example-equip-model-val-38526", + "management-option": "example-management-option-val-15776", + "ipaddress-v4-oam": "example-ipaddress-v4-oam-val-33556", + "sw-version": "example-sw-version-val-64239", + "in-maint": true, + "frame-id": "example-frame-id-val-76733", + "serial-number": "example-serial-number-val-79366", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-34781", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-29979", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-53703", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-93386", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-92665", + "inv-status": "example-inv-status-val-8477", + "prov-status": "example-prov-status-val-68268", + "nf-role": "example-nf-role-val-68489", + "relationship-list": { + "relationship": [ + { + "related-to": "service-instance", + "relationship-label": "org.onap.relationships.inventory.ComposedOf", + "related-link": "/aai/v12/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/service-instances/service-instance/bbs_service", + "relationship-data": [ + { + "relationship-key": "customer.global-customer-id", + "relationship-value": "Demonstration" + }, + { + "relationship-key": "service-subscription.service-type", + "relationship-value": "vFW" + }, + { + "relationship-key": "service-instance.service-instance-id", + "relationship-value": "bbs_service" + } + ], + "related-to-property": [ + { + "property-key": "service-instance.service-instance-name", + "property-value": "bbs_service" + } + ] + } + ] + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/expected-pnf-ready-event.json b/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/expected-pnf-ready-event.json new file mode 100644 index 00000000..7d6c240b --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/expected-pnf-ready-event.json @@ -0,0 +1,5 @@ +[ + { + "correlationId": "NOK6061ZW8" + } +]
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/ves-event.json b/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/ves-event.json new file mode 100644 index 00000000..3a768df2 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/service-instance-non-active/ves-event.json @@ -0,0 +1,37 @@ +{ + "event": { + "commonEventHeader": { + "startEpochMicrosec": 1540212137393, + "sourceId": "val13", + "eventId": "registration_40212137", + "nfcNamingCode": "oam", + "internalHeaderFields": { + "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC" + }, + "eventType": "pnfRegistration", + "priority": "Normal", + "version": "4.0.1", + "reportingEntityName": "NOK6061ZW8", + "sequence": 0, + "domain": "pnfRegistration", + "lastEpochMicrosec": 1540212137393, + "eventName": "pnfRegistration_Nokia_5gDu", + "vesEventListenerVersion": "7.0.1", + "sourceName": "NOK6061ZW8", + "nfNamingCode": "gNB" + }, + "pnfRegistrationFields": { + "unitType": "val8", + "serialNumber": "6061ZW9", + "pnfRegistrationFieldsVersion": "2.0", + "manufactureDate": "1540212137393", + "modelNumber": "val6", + "lastServiceDate": "1540212137393", + "unitFamily": "BBU", + "vendorName": "Nokia", + "oamV4IpAddress": "val3", + "oamV6IpAddress": "val4", + "softwareVersion": "val7" + } + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/aai-entry.json b/tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/aai-entry.json new file mode 100644 index 00000000..1378f58f --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/aai-entry.json @@ -0,0 +1,23 @@ +{ + "pnf-name": "NOK6061ZW8", + "pnf-name2": "example-pnf-name2-val-58071", + "pnf-name2-source": "example-pnf-name2-source-val-22408", + "pnf-id": "example-pnf-id-val-55834", + "equip-type": "example-equip-type-val-5497", + "equip-vendor": "example-equip-vendor-val-85730", + "equip-model": "example-equip-model-val-38526", + "management-option": "example-management-option-val-15776", + "ipaddress-v4-oam": "example-ipaddress-v4-oam-val-33556", + "sw-version": "example-sw-version-val-64239", + "in-maint": true, + "frame-id": "example-frame-id-val-76733", + "serial-number": "example-serial-number-val-79366", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-34781", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-29979", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-53703", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-93386", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-92665", + "inv-status": "example-inv-status-val-8477", + "prov-status": "example-prov-status-val-68268", + "nf-role": "example-nf-role-val-68489" +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/expected-pnf-ready-event.json b/tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/expected-pnf-ready-event.json new file mode 100644 index 00000000..7d6c240b --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/expected-pnf-ready-event.json @@ -0,0 +1,5 @@ +[ + { + "correlationId": "NOK6061ZW8" + } +]
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/ves-event.json b/tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/ves-event.json new file mode 100644 index 00000000..ec8898a6 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/ves-event.json @@ -0,0 +1,35 @@ +{ + "event": { + "commonEventHeader": { + "startEpochMicrosec": 1540212137393, + "sourceId": "val13", + "eventId": "registration_40212137", + "nfcNamingCode": "oam", + "internalHeaderFields": { + "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC" + }, + "eventType": "pnfRegistration", + "priority": "Normal", + "version": "4.0.1", + "reportingEntityName": "NOK6061ZW8", + "sequence": 0, + "domain": "pnfRegistration", + "lastEpochMicrosec": 1540212137393, + "eventName": "pnfRegistration_Nokia_5gDu", + "vesEventListenerVersion": "7.0.1", + "sourceName": "NOK6061ZW8", + "nfNamingCode": "gNB" + }, + "pnfRegistrationFields": { + "unitType": "val8", + "serialNumber": "6061ZW9", + "pnfRegistrationFieldsVersion": "2.0", + "manufactureDate": "1540212137393", + "modelNumber": "val6", + "lastServiceDate": "1540212137393", + "unitFamily": "BBU", + "vendorName": "Nokia", + "softwareVersion": "val7" + } + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/aai-entry.json b/tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/aai-entry.json new file mode 100644 index 00000000..1378f58f --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/aai-entry.json @@ -0,0 +1,23 @@ +{ + "pnf-name": "NOK6061ZW8", + "pnf-name2": "example-pnf-name2-val-58071", + "pnf-name2-source": "example-pnf-name2-source-val-22408", + "pnf-id": "example-pnf-id-val-55834", + "equip-type": "example-equip-type-val-5497", + "equip-vendor": "example-equip-vendor-val-85730", + "equip-model": "example-equip-model-val-38526", + "management-option": "example-management-option-val-15776", + "ipaddress-v4-oam": "example-ipaddress-v4-oam-val-33556", + "sw-version": "example-sw-version-val-64239", + "in-maint": true, + "frame-id": "example-frame-id-val-76733", + "serial-number": "example-serial-number-val-79366", + "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-34781", + "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-29979", + "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-53703", + "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-93386", + "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-92665", + "inv-status": "example-inv-status-val-8477", + "prov-status": "example-prov-status-val-68268", + "nf-role": "example-nf-role-val-68489" +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/expected-pnf-ready-event.json b/tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/expected-pnf-ready-event.json new file mode 100644 index 00000000..7d6c240b --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/expected-pnf-ready-event.json @@ -0,0 +1,5 @@ +[ + { + "correlationId": "NOK6061ZW8" + } +]
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/ves-event.json b/tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/ves-event.json new file mode 100644 index 00000000..e85747f8 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/ves-event.json @@ -0,0 +1,28 @@ +{ + "event": { + "commonEventHeader": { + "startEpochMicrosec": 1540212137393, + "sourceId": "val13", + "eventId": "registration_40212137", + "nfcNamingCode": "oam", + "internalHeaderFields": { + "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC" + }, + "eventType": "pnfRegistration", + "priority": "Normal", + "version": "4.0.1", + "reportingEntityName": "NOK6061ZW8", + "sequence": 0, + "domain": "pnfRegistration", + "lastEpochMicrosec": 1540212137393, + "eventName": "pnfRegistration_Nokia_5gDu", + "vesEventListenerVersion": "7.0.1", + "sourceName": "NOK6061ZW8", + "nfNamingCode": "gNB" + }, + "pnfRegistrationFields": { + "oamV4IpAddress": "val3", + "oamV6IpAddress": "val4" + } + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/prh_config_tests.robot b/tests/dcaegen2/prh-testcases/prh_config_tests.robot index 144504d1..2a6b8154 100644 --- a/tests/dcaegen2/prh-testcases/prh_config_tests.robot +++ b/tests/dcaegen2/prh-testcases/prh_config_tests.robot @@ -1,6 +1,7 @@ *** Settings *** Documentation Tests related to updating PRH app config based on CBS config -Suite Setup Run keywords Create sessions +Suite Setup Create sessions +Suite Teardown Set default PRH CBS config Resource resources/prh_sessions.robot Resource resources/prh_config_library.robot Resource resources/prh_library.robot diff --git a/tests/dcaegen2/prh-testcases/prh_tests.robot b/tests/dcaegen2/prh-testcases/prh_tests.robot index 4e387b91..69ce27dc 100644 --- a/tests/dcaegen2/prh-testcases/prh_tests.robot +++ b/tests/dcaegen2/prh-testcases/prh_tests.robot @@ -1,13 +1,13 @@ *** Settings *** Documentation Integration tests for PRH. ... PRH receive events from DMaaP and produce or not PNF_READY notification depends on required fields in received event. -Suite Setup Run keywords Create Headers AND Create sessions +Suite Setup Run keywords Create Headers AND Create sessions AND Set default PRH CBS config Test Teardown Reset Simulators Test Timeout 2 minutes -Library resources/PrhLibrary.py Resource resources/prh_sessions.robot Resource resources/prh_library.robot +Resource resources/prh_config_library.robot *** Variables *** ${TEST_CASES_DIR} %{WORKSPACE}/tests/dcaegen2/prh-testcases/assets @@ -24,36 +24,51 @@ Simple registration event [Tags] PRH Valid event [Template] Verify PNF ready sent ${TEST_CASES_DIR}/ves-event-without-additional-fields + ${TEST_CASES_DIR}/ves-event-with-missing-IP-addresses + ${TEST_CASES_DIR}/ves-event-with-only-IP-addresses ${TEST_CASES_DIR}/ves-event-with-empty-additional-fields ${TEST_CASES_DIR}/ves-event-with-empty-attachment-point -Should not sent PNF ready when DMaaP event is invalid +Should not send PNF ready when DMaaP event is invalid [Documentation] PRH get from DMaaP event with missing required field [Tags] PRH Invalid event [Template] Verify event with missing required field is logged ${TEST_CASES_DIR}/ves-event-missing-field -Should not sent PNF ready when DMaaP event is not JSON array +Should not send PNF ready when DMaaP event is not JSON array [Documentation] Event from DMaaP is not JSON array [Tags] PRH Invalid event Verify incorrect JSON event is logged ${TEST_CASES_DIR}/ves-event-not-array -Should not sent PNF ready when AAI record doesn't exist +Should not send PNF ready when AAI record doesn't exist [Documentation] PRH get from DMaaP valid event but given PNF doesn't exists in AAI [Tags] PRH Missing AAI record Verify missing AAI record is logged ${TEST_CASES_DIR}/aai-missing-entry -Should not sent PNF ready when AAI is not responding +Should not send PNF ready when AAI is not responding [Documentation] PRH get from DMaaP valid event but AAI is not responding [Tags] PRH AAI not responding Verify AAI not responding is logged ${TEST_CASES_DIR}/aai-not-responding +Should send PNF ready when logical link exists and replace it in AAI + [Documentation] PRH gets event from DMaaP with an attachment point, PNF is related to a logical link in AAI + [Tags] PRH Attachment point + [Template] Verify PNF ready sent and old logical link replaced in AAI + ${TEST_CASES_DIR}/pnf-with-existing-logical-link + ${TEST_CASES_DIR}/pnf-with-different-logical-link + BBS case event - Re-registration - [Documentation] After regitered PNF, PRH reads another one PRH event with registration event + [Documentation] After registered PNF, PRH reads another one PRH event with registration event [Tags] PRH Valid event Re registraiton [Template] Verify PNF re registration ${TEST_CASES_DIR}/re-registration +Should send PNF ready when the associated service instance is non-Active + [Documentation] PNF has a non active service instance, should send PNF_READY event + [Tags] PRH Service instance non active + [Template] Verify PNF ready sent when service instance non active + ${TEST_CASES_DIR}/service-instance-non-active + PRH logging level change [Documentation] ad-hoc PRH logging level change using rest endpoint [Tags] PRH logging level diff --git a/tests/dcaegen2/prh-testcases/prh_tests_with_no_auth.robot b/tests/dcaegen2/prh-testcases/prh_tests_with_no_auth.robot new file mode 100644 index 00000000..afcd0f8a --- /dev/null +++ b/tests/dcaegen2/prh-testcases/prh_tests_with_no_auth.robot @@ -0,0 +1,20 @@ +*** Settings *** +Documentation Integration tests for PRH when cert auth for dmaap and aai is disabled. +Suite Setup Run keywords Create Headers AND Create sessions AND +... Set PRH CBS config from file ${CONFIGS_DIR}/prh-no-auth-config.json +Test Teardown Reset Simulators +Test Timeout 2 minutes + +Resource resources/prh_sessions.robot +Resource resources/prh_library.robot +Resource resources/prh_config_library.robot + +*** Variables *** +${TEST_CASES_DIR} %{WORKSPACE}/tests/dcaegen2/prh-testcases/assets + +*** Test Cases *** +Simple registration event + [Documentation] simple registration scenario when AAI and dmaap cert atuh is disabled + [Tags] PRH Valid event + [Template] Verify PNF ready sent + ${TEST_CASES_DIR}/ves-event-without-additional-fields
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/resources/docker-compose.yml b/tests/dcaegen2/prh-testcases/resources/docker-compose.yml index ca94dfb2..00a2af1d 100644 --- a/tests/dcaegen2/prh-testcases/resources/docker-compose.yml +++ b/tests/dcaegen2/prh-testcases/resources/docker-compose.yml @@ -53,140 +53,23 @@ services: consul-cfg: image: consul:1.0.6 restart: on-failure - command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", '{ - "cbs.updates-interval": 0, - "logging.level.org.onap.dcaegen2.services.prh": "debug", - "logging.level.org.onap.dcaegen2.services.sdk": "debug", - "logging.level.org.onap.dcaegen2.services.prh.controllers.AppInfoController": "off", - "dmaap.dmaapConsumerConfiguration.dmaapUserName":"admin", - "dmaap.dmaapConsumerConfiguration.dmaapUserPassword":"admin", - "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json", - "dmaap.dmaapConsumerConfiguration.consumerId": "c12", - "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12", - "dmaap.dmaapConsumerConfiguration.timeoutMs": -1, - "dmaap.dmaapProducerConfiguration.dmaapUserName":"admin", - "dmaap.dmaapProducerConfiguration.dmaapUserPassword":"admin", - "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json", - "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin", - "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin", - "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json", - "aai.aaiClientConfiguration.pnfUrl":"https://aai:3334/aai/v12/network/pnfs/pnf", - "aai.aaiClientConfiguration.aaiUserName": "DCAE", - "aai.aaiClientConfiguration.aaiUserPassword": "DCAE", - "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true, - "aai.aaiClientConfiguration.aaiServiceInstancePath":"/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}", - "aai.aaiClientConfiguration.aaiHeaders":{ - "X-FromAppId": "prh", - "X-TransactionId": "9999", - "Accept": "application/json", - "Real-Time": "true", - "Authorization": "Basic QUFJOkFBSQ==" - }, - "security.trustStorePath":"/tmp/certs/truststore.jks", - "security.trustStorePasswordPath":"/tmp/certs/truststore.password", - "security.keyStorePath":"/tmp/certs/keystore.p12", - "security.keyStorePasswordPath":"/tmp/certs/keystore.password", - "security.enableAaiCertAuth":true, - "security.enableDmaapCertAuth":true, - - "streams_publishes":{ - "pnf-update":{ - "type": "message_router", - "dmaap_info":{ - "topic_url":"https://dmaap-mr:2223/events/unauthenticated.PNF_UPDATE" - } - }, - "pnf-ready":{ - "type": "message_router", - "dmaap_info":{ - "topic_url":"https://dmaap-mr:2223/events/unauthenticated.PNF_READY" - } - } - }, - "streams_subscribes":{ - "ves-reg-output":{ - "type": "message_router", - "dmaap_info":{ - "topic_url":"https://dmaap-mr:2223/events/unauthenticated.VES_PNFREG_OUTPUT" - } - } - } - }' - ] + command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", "@/prh_configs/prh-config.json"] container_name: consul-cfg + volumes: + - ./prh_configs/:/prh_configs:Z depends_on: - consul consul-cfg-dcae-ves-collector: image: consul:1.0.6 restart: on-failure - command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector",'{ - "collector.dynamic.config.update.frequency": "5", - "event.transform.flag": "0", - "collector.schema.checkflag": "1", - "collector.dmaap.streamid": "fault=ves-fault|syslog=ves-syslog|heartbeat=ves-heartbeat|measurementsForVfScaling=ves-measurement|mobileFlow=ves-mobileflow|other=ves-other|stateChange=ves-statechange|thresholdCrossingAlert=ves-thresholdCrossingAlert|voiceQuality=ves-voicequality|sipSignaling=ves-sipsignaling|notification=ves-notification|pnfRegistration=ves-pnfRegistration", - "collector.service.port": "8080", - "collector.schema.file":"{ - \"v1\":\"./etc/CommonEventFormat_27.2.json\", - \"v2\":\"./etc/CommonEventFormat_27.2.json\", - \"v3\":\"./etc/CommonEventFormat_27.2.json\", - \"v4\":\"./etc/CommonEventFormat_27.2.json\", - \"v5\":\"./etc/CommonEventFormat_28.4.1.json\", - \"v7\":\"./etc/CommonEventFormat_30.0.1.json\" - }", - "collector.keystore.passwordfile": "/opt/app/VESCollector/etc/passwordfile", - "collector.inputQueue.maxPending": "8096", - "streams_publishes":{ - "ves-measurement": { - "type": "message_router", - "dmaap_info": { - "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_MEASUREMENT_OUTPUT/" - } - }, - "ves-fault": { - "type": "message_router", - "dmaap_info": { - "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_FAULT_OUTPUT/" - } - }, - "ves-pnfRegistration": { - "type": "message_router", - "dmaap_info": { - "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT/" - } - }, - "ves-other": { - "type": "message_router", - "dmaap_info": { - "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_OTHER_OUTPUT/" - } - }, - "ves-heartbeat": { - "type": "message_router", - "dmaap_info": { - "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_HEARTBEAT_OUTPUT/" - } - }, - "ves-notification": { - "type": "message_router", - "dmaap_info": { - "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/" - } - } - }, - "collector.service.secure.port": "8443", - "header.authflag": "0", - "collector.keystore.file.location": "/opt/app/VESCollector/etc/keystore", - "collector.keystore.alias": - "dynamically generated", - "services_calls": [], - "header.authlist": "sample1,c2FtcGxlMQ==" - }'] + command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector", "@/prh_configs/dcae-ves-collector-config.json"] container_name: consul-cfg-dcae-ves-collector + volumes: + - ./prh_configs/:/prh_configs:Z depends_on: - consul - cbs: image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4 ports: diff --git a/tests/dcaegen2/prh-testcases/resources/prh_config_library.robot b/tests/dcaegen2/prh-testcases/resources/prh_config_library.robot index 26a62704..78b47824 100644 --- a/tests/dcaegen2/prh-testcases/resources/prh_config_library.robot +++ b/tests/dcaegen2/prh-testcases/resources/prh_config_library.robot @@ -1,16 +1,19 @@ *** Settings *** Documentation Keywords related to checking and updating PRH app config based on CBS config Library RequestsLibrary +Library OperatingSystem Library Collections +*** Variables *** +${CONFIGS_DIR} %{WORKSPACE}/tests/dcaegen2/prh-testcases/resources/prh_configs/ + *** Keywords *** Put key-value to consul - [Arguments] ${key} ${value} - ${prh_config}= Get PRH config from consul - set to dictionary ${prh_config} ${key} ${value} - put request consul_session /v1/kv/dcae-prh json=${prh_config} - Get PRH config from consul prh config in consul after update + [Arguments] ${key} ${value} + ${prh_config}= Get PRH config from consul + set to dictionary ${prh_config} ${key} ${value} + Set PRH config in consul ${prh_config} Get PRH config from consul [Arguments] ${logMessage}=prh config in consul @@ -18,6 +21,21 @@ Get PRH config from consul log ${logMessage}: ${phr_config_response.content} [Return] ${phr_config_response.json()} +Set PRH config in consul + [Arguments] ${prh_config} + put request consul_session /v1/kv/dcae-prh json=${prh_config} + Get PRH config from consul prh config in consul after update + +Set PRH CBS config from file + [Arguments] ${config_file_name} + ${config_file_content}= get file ${config_file_name} + ${config_json}= to json ${config_file_content} + Set PRH config in consul ${config_json} + Force PRH config refresh + +Set default PRH CBS config + Set PRH CBS config from file ${CONFIGS_DIR}/prh-config.json + Force PRH config refresh ${refresh_response}= post request prh_session /actuator/refresh should be equal as integers ${refresh_response.status_code} 200 diff --git a/tests/dcaegen2/prh-testcases/resources/prh_configs/dcae-ves-collector-config.json b/tests/dcaegen2/prh-testcases/resources/prh_configs/dcae-ves-collector-config.json new file mode 100644 index 00000000..d3be7acd --- /dev/null +++ b/tests/dcaegen2/prh-testcases/resources/prh_configs/dcae-ves-collector-config.json @@ -0,0 +1,54 @@ +{ + "collector.dynamic.config.update.frequency": "5", + "event.transform.flag": "0", + "collector.schema.checkflag": "1", + "collector.dmaap.streamid": "fault=ves-fault|syslog=ves-syslog|heartbeat=ves-heartbeat|measurementsForVfScaling=ves-measurement|mobileFlow=ves-mobileflow|other=ves-other|stateChange=ves-statechange|thresholdCrossingAlert=ves-thresholdCrossingAlert|voiceQuality=ves-voicequality|sipSignaling=ves-sipsignaling|notification=ves-notification|pnfRegistration=ves-pnfRegistration", + "collector.service.port": "8080", + "collector.schema.file": "{ \"v1\":\"./etc/CommonEventFormat_27.2.json\", \"v2\":\"./etc/CommonEventFormat_27.2.json\", \"v3\":\"./etc/CommonEventFormat_27.2.json\", \"v4\":\"./etc/CommonEventFormat_27.2.json\", \"v5\":\"./etc/CommonEventFormat_28.4.1.json\", \"v7\":\"./etc/CommonEventFormat_30.0.1.json\" }", + "collector.keystore.passwordfile": "/opt/app/VESCollector/etc/passwordfile", + "collector.inputQueue.maxPending": "8096", + "streams_publishes": { + "ves-measurement": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_MEASUREMENT_OUTPUT/" + } + }, + "ves-fault": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_FAULT_OUTPUT/" + } + }, + "ves-pnfRegistration": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT/" + } + }, + "ves-other": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_OTHER_OUTPUT/" + } + }, + "ves-heartbeat": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://dmaap-mr:2222/events/unauthenticated.SEC_HEARTBEAT_OUTPUT/" + } + }, + "ves-notification": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_NOTIFICATION_OUTPUT/" + } + } + }, + "collector.service.secure.port": "8443", + "header.authflag": "0", + "collector.keystore.file.location": "/opt/app/VESCollector/etc/keystore", + "collector.keystore.alias": "dynamically generated", + "services_calls": [], + "header.authlist": "sample1,c2FtcGxlMQ==" +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/resources/prh_configs/prh-config.json b/tests/dcaegen2/prh-testcases/resources/prh_configs/prh-config.json new file mode 100644 index 00000000..e4c3ba82 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/resources/prh_configs/prh-config.json @@ -0,0 +1,58 @@ +{ + "cbs.updates-interval": 0, + "logging.level.org.onap.dcaegen2.services.prh": "debug", + "logging.level.org.onap.dcaegen2.services.sdk": "debug", + "logging.level.org.onap.dcaegen2.services.prh.controllers.AppInfoController": "off", + "dmaap.dmaapConsumerConfiguration.dmaapUserName": "admin", + "dmaap.dmaapConsumerConfiguration.dmaapUserPassword": "admin", + "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json", + "dmaap.dmaapConsumerConfiguration.consumerId": "c12", + "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12", + "dmaap.dmaapConsumerConfiguration.timeoutMs": -1, + "dmaap.dmaapProducerConfiguration.dmaapUserName": "admin", + "dmaap.dmaapProducerConfiguration.dmaapUserPassword": "admin", + "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json", + "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin", + "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin", + "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json", + "aai.aaiClientConfiguration.pnfUrl": "https://aai:3334/aai/v12/network/pnfs/pnf", + "aai.aaiClientConfiguration.aaiUserName": "DCAE", + "aai.aaiClientConfiguration.aaiUserPassword": "DCAE", + "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true, + "aai.aaiClientConfiguration.aaiServiceInstancePath": "/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}", + "aai.aaiClientConfiguration.aaiHeaders": { + "X-FromAppId": "prh", + "X-TransactionId": "9999", + "Accept": "application/json", + "Real-Time": "true", + "Authorization": "Basic QUFJOkFBSQ==" + }, + "security.trustStorePath": "/tmp/certs/truststore.jks", + "security.trustStorePasswordPath": "/tmp/certs/truststore.password", + "security.keyStorePath": "/tmp/certs/keystore.p12", + "security.keyStorePasswordPath": "/tmp/certs/keystore.password", + "security.enableAaiCertAuth": true, + "security.enableDmaapCertAuth": true, + "streams_publishes": { + "pnf-update": { + "type": "message_router", + "dmaap_info": { + "topic_url": "https://dmaap-mr:2223/events/unauthenticated.PNF_UPDATE" + } + }, + "pnf-ready": { + "type": "message_router", + "dmaap_info": { + "topic_url": "https://dmaap-mr:2223/events/unauthenticated.PNF_READY" + } + } + }, + "streams_subscribes": { + "ves-reg-output": { + "type": "message_router", + "dmaap_info": { + "topic_url": "https://dmaap-mr:2223/events/unauthenticated.VES_PNFREG_OUTPUT" + } + } + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/resources/prh_configs/prh-no-auth-config.json b/tests/dcaegen2/prh-testcases/resources/prh_configs/prh-no-auth-config.json new file mode 100644 index 00000000..a4f87e05 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/resources/prh_configs/prh-no-auth-config.json @@ -0,0 +1,58 @@ +{ + "cbs.updates-interval": 0, + "logging.level.org.onap.dcaegen2.services.prh": "debug", + "logging.level.org.onap.dcaegen2.services.sdk": "debug", + "logging.level.org.onap.dcaegen2.services.prh.controllers.AppInfoController": "off", + "dmaap.dmaapConsumerConfiguration.dmaapUserName": "admin", + "dmaap.dmaapConsumerConfiguration.dmaapUserPassword": "admin", + "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json", + "dmaap.dmaapConsumerConfiguration.consumerId": "c12", + "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDCAE-c12", + "dmaap.dmaapConsumerConfiguration.timeoutMs": -1, + "dmaap.dmaapProducerConfiguration.dmaapUserName": "admin", + "dmaap.dmaapProducerConfiguration.dmaapUserPassword": "admin", + "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/json", + "dmaap.dmaapUpdateProducerConfiguration.dmaapUserName": "admin", + "dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword": "admin", + "dmaap.dmaapUpdateProducerConfiguration.dmaapContentType": "application/json", + "aai.aaiClientConfiguration.pnfUrl": "http://aai:3333/aai/v12/network/pnfs/pnf", + "aai.aaiClientConfiguration.aaiUserName": "DCAE", + "aai.aaiClientConfiguration.aaiUserPassword": "DCAE", + "aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors": true, + "aai.aaiClientConfiguration.aaiServiceInstancePath": "/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}", + "aai.aaiClientConfiguration.aaiHeaders": { + "X-FromAppId": "prh", + "X-TransactionId": "9999", + "Accept": "application/json", + "Real-Time": "true", + "Authorization": "Basic QUFJOkFBSQ==" + }, + "security.trustStorePath": "", + "security.trustStorePasswordPath": "", + "security.keyStorePath": "", + "security.keyStorePasswordPath": "", + "security.enableAaiCertAuth": false, + "security.enableDmaapCertAuth": false, + "streams_publishes": { + "pnf-update": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://dmaap-mr:2222/events/unauthenticated.PNF_UPDATE" + } + }, + "pnf-ready": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://dmaap-mr:2222/events/unauthenticated.PNF_READY" + } + } + }, + "streams_subscribes": { + "ves-reg-output": { + "type": "message_router", + "dmaap_info": { + "topic_url": "http://dmaap-mr:2222/events/unauthenticated.VES_PNFREG_OUTPUT" + } + } + } +}
\ No newline at end of file diff --git a/tests/dcaegen2/prh-testcases/resources/prh_library.robot b/tests/dcaegen2/prh-testcases/resources/prh_library.robot index 3ed377c7..892ee523 100644 --- a/tests/dcaegen2/prh-testcases/resources/prh_library.robot +++ b/tests/dcaegen2/prh-testcases/resources/prh_library.robot @@ -15,6 +15,14 @@ Verify PNF ready sent Wait Until Keyword Succeeds 10x 3000ms Check CBS ready Wait Until Keyword Succeeds 10x 3000ms Check created PNF_READY notification ${expected_pnf_ready_event} +Verify PNF ready sent and old logical link replaced in AAI + [Arguments] ${test_case_directory} + ${logical_link}= Get Data From File ${test_case_directory}/logical-link.json + ${expected_logical_link}= Get Data From File ${test_case_directory}/expected-logical-link.json + Add logical link entry in AAI ${logical_link} + Verify PNF ready sent ${test_case_directory} + Wait Until Keyword Succeeds 10x 3000ms Check created Logical Link ${expected_logical_link} + Verify PNF ready sent and logical link created [Arguments] ${test_case_directory} ${expected_logical_link}= Get Data From File ${test_case_directory}/expected-logical-link.json @@ -63,11 +71,33 @@ Verify PNF re registration Add PNF entry in AAI ${aai_entry} ${service_instance}= Get Data From File ${test_case_directory}/aai-entry-service-instance.json Add service instance entry in AAI ${service_instance} + ${logical_link}= Get Data From File ${test_case_directory}/logical-link.json + Add logical link entry in AAI ${logical_link} ${ves_event}= Get Data From File ${test_case_directory}/ves-event.json Set VES event in DMaaP ${ves_event} ${expected_pnf_update_event}= Get Data From File ${test_case_directory}/expected-pnf-update-event.json Wait Until Keyword Succeeds 10x 3000ms Check created PNF_UPDATE notification ${expected_pnf_update_event} + Wait Until Keyword Succeeds 10x 3000ms Check logical link not modified ${test_case_directory} + +Verify PNF ready sent when service instance non active + [Arguments] ${test_case_directory} + ${pnf_entry}= Get Data From File ${test_case_directory}/aai-entry.json + ${ves_event}= Get Data From File ${test_case_directory}/ves-event.json + ${expected_pnf_ready_event}= Get Data From File ${test_case_directory}/expected-pnf-ready-event.json + ${service_instance}= Get Data From File ${test_case_directory}/aai-entry-service-instance.json + Add PNF entry in AAI ${pnf_entry} + Add service instance entry in AAI ${service_instance} + + Set VES event in DMaaP ${ves_event} + Wait Until Keyword Succeeds 10x 3000ms Check CBS ready + Wait Until Keyword Succeeds 10x 3000ms Check created PNF_READY notification ${expected_pnf_ready_event} + +Check logical link not modified + [Arguments] ${test_case_directory} + ${expected_logical_link}= Get Data From File ${test_case_directory}/logical-link.json + ${existing_logical_link}= Get Request ${aai_session} /verify/logical-link headers=${suite_headers} + Should Be Equal As JSON ${expected_logical_link} ${existing_logical_link.content} Check CBS ready ${resp}= Get Request ${consul_session} /v1/catalog/services @@ -76,21 +106,21 @@ Check CBS ready Dictionary Should Contain Key ${resp.json()} cbs |Consul service catalog should contain CBS entry Check created PNF_READY notification - [Arguments] ${expected_event_pnf_ready_in_dpaap} + [Arguments] ${expected_event_pnf_ready_in_dmaap} ${resp}= Get Request ${dmaap_session} /verify/pnf_ready headers=${suite_headers} Should Be Equal As Strings ${resp.status_code} 200 - Should Be Equal As JSON ${resp.content} ${expected_event_pnf_ready_in_dpaap} + Should Be Equal As JSON ${resp.content} ${expected_event_pnf_ready_in_dmaap} Check created PNF_UPDATE notification - [Arguments] ${expected_event_pnf_update_in_dpaap} + [Arguments] ${expected_event_pnf_update_in_dmaap} ${resp}= Get Request ${dmaap_session} /verify/pnf_update headers=${suite_headers} Log Response from DMaaP: ${resp.content} Should Be Equal As Strings ${resp.status_code} 200 - #Should Be Equal As JSON ${resp.content} ${expected_event_pnf_ready_in_dpaap} + Should Be Equal As JSON ${resp.content} ${expected_event_pnf_update_in_dmaap} Check created Logical Link [Arguments] ${expected_logical_link_in_aai} - ${resp}= Get Request ${aai_session} /verify/created_logical_link headers=${suite_headers} + ${resp}= Get Request ${aai_session} /verify/logical-link headers=${suite_headers} Should Be Equal As Strings ${resp.status_code} 200 Should Be Equal As JSON ${resp.content} ${expected_logical_link_in_aai} @@ -124,6 +154,13 @@ Add service instance entry in AAI ${resp}= Put Request ${aai_session} /setup/add_service_instace headers=${suite_headers} data=${aai_service_instance} Should Be Equal As Strings ${resp.status_code} 200 +Add logical link entry in AAI + [Arguments] ${logical_link} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + Log AAI url ${AAI_SIMULATOR_SETUP_URL} + ${resp}= Put Request ${aai_session} /setup/add_logical_link headers=${suite_headers} data=${logical_link} + Should Be Equal As Strings ${resp.status_code} 200 + Set VES event in DMaaP [Arguments] ${ves_event} ${resp}= Put Request ${dmaap_session} /setup/ves_event headers=${suite_headers} data=${ves_event} diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/AAI.py b/tests/dcaegen2/prh-testcases/resources/simulator/AAI.py index f6d3b1f6..0886434e 100644 --- a/tests/dcaegen2/prh-testcases/resources/simulator/AAI.py +++ b/tests/dcaegen2/prh-testcases/resources/simulator/AAI.py @@ -31,9 +31,9 @@ class AAISetup(BaseHTTPRequestHandler): if re.search('/setup/patched_pnf', self.path): httpServerLib.set_response_200_ok(self, payload = patched_pnf) logger.debug('AAISetup GET /setup/patched_pnf -> 200 OK') - elif re.search('/verify/created_logical_link', self.path): + elif re.search('/verify/logical-link', self.path): httpServerLib.set_response_200_ok(self, payload = created_logical_link) - logger.debug('AAISetup GET /setup/created_logical_link -> 200 OK') + logger.debug('AAISetup GET /verify/logical_link -> 200 OK') else: httpServerLib.set_response_404_not_found(self) logger.info('AAISetup GET ' + self.path + ' -> 404 Not found') @@ -60,6 +60,17 @@ class AAISetup(BaseHTTPRequestHandler): service_instance = json.loads(service_instance_payload) httpServerLib.set_response_200_ok(self) logger.debug('AAISetup PUT /setup/add_service_instace -> 200 OK') + elif re.search('/setup/add_logical_link', self.path): + logical_link_payload = httpServerLib.get_payload(self) + logical_link_name = json.loads(logical_link_payload).get("link-name") + if logical_link_name == None: + raise Exception("Invalid logical link entry, could not extract `link-name`") + + global created_logical_link + created_logical_link = logical_link_payload + + httpServerLib.set_response_200_ok(self) + logger.debug('AAISetup PUT /setup/add_logical_link -> 200 OK') elif re.search('/set_pnf', self.path): pnf_name = httpServerLib.get_payload(self).decode() @@ -105,9 +116,17 @@ class AAIHandler(BaseHTTPRequestHandler): else: httpServerLib.set_response_404_not_found(self) logger.info('AAIHandler GET /aai/v12/network/pnfs/pnf/' + pnf_name + ' -> 404 Not found, actual entries: ' + str(pnf_entries.keys())) - elif re.search('aai/v12/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/service-instances/service-instance/bbs_service', self.path): - httpServerLib.set_response_200_ok(self, payload = service_instance) - logger.debug('AAIHandler GET aai/v12/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/service-instances/service-instance/bbs_service -> 200 OK') + elif re.search('/aai/v12/network/logical-links/logical-link/[^/]*$', self.path): + logical_link_name = basename(self.path) + if json.loads(created_logical_link).get("link-name") == logical_link_name: + httpServerLib.set_response_200_ok(self, payload = created_logical_link) + logger.debug('AAIHandler GET /aai/v12/network/logical-links/logical-link/' + logical_link_name + ' -> 200 OK') + else: + httpServerLib.set_response_404_not_found(self) + logger.info('AAIHandler GET /aai/v12/network/logical-links/logical-link/' + logical_link_name + ' -> 404 Not found, actual link: ' + created_logical_link) + elif re.search('aai/v12/network/pnfs/pnf/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/service-instances/service-instance/bbs_service', self.path): + httpServerLib.set_response_200_ok(self, payload = json.dumps(service_instance).encode('utf-8')) + logger.debug('AAIHandler GET aai/v12/network/pnfs/pnf/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/service-instances/service-instance/bbs_service -> 200 OK') else: httpServerLib.set_response_404_not_found(self) logger.info('AAIHandler GET ' + self.path + ' -> 404 Not found') @@ -152,9 +171,27 @@ class AAIHandler(BaseHTTPRequestHandler): logger.error(e) httpServerLib.set_response_500_server_error(self) + def do_DELETE(self): + try: + if re.search('/aai/v12/network/logical-links/logical-link/[^/]*\?resource-version=\d+$', self.path): + httpServerLib.set_response_200_ok(self) + logical_link_name = re.search('.+?(?=\?)', basename(self.path)).group(0) + + global created_logical_link + if json.loads(created_logical_link).get("link-name") == logical_link_name: + created_logical_link = AAI_RESOURCE_NOT_FOUND + + logger.debug('AAIHandler DELETE /aai/v12/network/logical-links/logical-link/' + logical_link_name + ' -> 200 OK') + else: + httpServerLib.set_response_404_not_found(self) + logger.info('AAIHandler DELETE ' + self.path + ' -> 404 Not found') + except Exception as e: + logger.error(e) + httpServerLib.set_response_500_server_error(self) def _main_(handler_class=AAIHandler, protocol="HTTP/1.0"): handler_class.protocol_version = protocol + httpServerLib.start_http_endpoint(3333, AAIHandler) httpServerLib.start_https_endpoint(3334, AAIHandler, keyfile="certs/aai.key", certfile="certs/aai.crt", ca_certs="certs/root.crt") httpServerLib.start_http_endpoint(3335, AAISetup) while 1: diff --git a/tests/dcaegen2/prh-testcases/resources/simulator/DMaaP.py b/tests/dcaegen2/prh-testcases/resources/simulator/DMaaP.py index 5ec601f6..5d7bd707 100644 --- a/tests/dcaegen2/prh-testcases/resources/simulator/DMaaP.py +++ b/tests/dcaegen2/prh-testcases/resources/simulator/DMaaP.py @@ -125,6 +125,7 @@ class DMaaPHandler(BaseHTTPRequestHandler): def _main_(handler_class=DMaaPHandler, protocol="HTTP/1.0"): handler_class.protocol_version = protocol + httpServerLib.start_http_endpoint(2222, DMaaPHandler) httpServerLib.start_https_endpoint(2223, DMaaPHandler, keyfile="certs/dmaap-mr.key", certfile="certs/dmaap-mr.crt", ca_certs="certs/root.crt") httpServerLib.start_http_endpoint(2224, DmaapSetup) while 1: diff --git a/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json b/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json index 3d096433..0a87dd90 100644 --- a/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json +++ b/tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json @@ -17,7 +17,6690 @@ "id": 45, "instanceCount": 4, "deploymentPort": 12561, - "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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"policies\" : {\r\n \"key\" : {\r\n \"name\" : \"Policies\",\r\n \"version\" : \"0.0.1\"\r\n },\r\n \"policyMap\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\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\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"firstState\" : \"Match\"\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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\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\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"firstState\" : \"Match\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestActCaseSelected\\\", new caseSelectedType(2));\\n\\nexecutor.outFields.put(\\\"TestActStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestActCaseSelected\\\", new caseSelectedType(3));\\n\\nexecutor.outFields.put(\\\"TestActStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestActCaseSelected\\\", new caseSelectedType(0));\\n\\nexecutor.outFields.put(\\\"TestActStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestActCaseSelected\\\", new caseSelectedType(1));\\n\\nexecutor.outFields.put(\\\"TestActStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestDecideCaseSelected\\\", new caseSelectedType(2));\\n\\nexecutor.outFields.put(\\\"TestDecideStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestDecideCaseSelected\\\", new caseSelectedType(3));\\n\\nexecutor.outFields.put(\\\"TestDecideStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestDecideCaseSelected\\\", new caseSelectedType(0));\\n\\nexecutor.outFields.put(\\\"TestDecideStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestDecideCaseSelected\\\", new caseSelectedType(1));\\n\\nexecutor.outFields.put(\\\"TestDecideStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestEstablishCaseSelected\\\", new caseSelectedType(2));\\n\\nexecutor.outFields.put(\\\"TestEstablishStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestEstablishCaseSelected\\\", new caseSelectedType(3));\\n\\nexecutor.outFields.put(\\\"TestEstablishStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestEstablishCaseSelected\\\", new caseSelectedType(0));\\n\\nexecutor.outFields.put(\\\"TestEstablishStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestEstablishCaseSelected\\\", new caseSelectedType(1));\\n\\nexecutor.outFields.put(\\\"TestEstablishStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestMatchCaseSelected\\\", new caseSelectedType(2));\\n\\nexecutor.outFields.put(\\\"TestMatchStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy0ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestMatchCaseSelected\\\", new caseSelectedType(3));\\n\\nexecutor.outFields.put(\\\"TestMatchStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"Policy1ContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestMatchCaseSelected\\\", new caseSelectedType(0));\\n\\nexecutor.outFields.put(\\\"TestMatchStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"outputFields\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"taskParameters\" : {\r\n \"entry\" : [ {\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 \"contextAlbumReference\" : [ {\r\n \"name\" : \"ExternalContextAlbum\",\r\n \"version\" : \"0.0.1\"\r\n }, {\r\n \"name\" : \"GlobalContextAlbum\",\r\n \"version\" : \"0.0.1\"\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.type(\\\"java.lang.Byte\\\");\\nexecutor.outFields.put(\\\"TestMatchCaseSelected\\\", new caseSelectedType(1));\\n\\nexecutor.outFields.put(\\\"TestMatchStateTime\\\", java.lang.System.nanoTime());\\nexecutor.logger.debug(executor.eo);\\n\\nvar returnValue = executor.isTrue;\"\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"albums\" : {\r\n \"key\" : {\r\n \"name\" : \"Context\",\r\n \"version\" : \"0.0.1\"\r\n },\r\n \"albums\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"schemas\" : {\r\n \"key\" : {\r\n \"name\" : \"TestDatatypes\",\r\n \"version\" : \"0.0.1\"\r\n },\r\n \"schemas\" : {\r\n \"entry\" : [ {\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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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 \"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}", + "policy_type_impl": { + "apexPolicyModel" : { + "key" : { + "name" : "SamplePolicyModelJAVASCRIPT", + "version" : "0.0.1" + }, + "keyInformation" : { + "key" : { + "name" : "KeyInformation", + "version" : "0.0.1" + }, + "keyInfoMap" : { + "entry" : [ { + "key" : { + "name" : "Context", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Context", + "version" : "0.0.1" + }, + "UUID" : "ca36bfd8-6042-3633-8c85-89c66507c3bf", + "description" : "Generated description for concept referred to by key \"Context:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "UUID" : "465a81cc-885f-3a4d-bc4e-1508da92b236", + "description" : "Generated description for concept referred to by key \"Event0000:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "UUID" : "36b2d570-fff7-3a4b-bab2-6bf492f5129a", + "description" : "Generated description for concept referred to by key \"Event0001:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "UUID" : "ff6160a7-fb5e-379c-a6d2-2cd28053eacf", + "description" : "Generated description for concept referred to by key \"Event0002:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "UUID" : "5899e216-2abf-3781-abc4-2c257b92721e", + "description" : "Generated description for concept referred to by key \"Event0003:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "UUID" : "7c2692a7-4587-3d09-abf9-d96b339a316f", + "description" : "Generated description for concept referred to by key \"Event0004:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "UUID" : "b696048c-c0b0-34c1-8dbe-32ab6c8bc0c7", + "description" : "Generated description for concept referred to by key \"Event0100:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "UUID" : "edbfa868-2ab2-30fd-8078-4c7f67ca6122", + "description" : "Generated description for concept referred to by key \"Event0101:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "UUID" : "6b6ad2ff-ef63-3f7b-aabb-fba44f8de9d4", + "description" : "Generated description for concept referred to by key \"Event0102:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "UUID" : "c2550912-10d9-3000-8826-377288cd6cb1", + "description" : "Generated description for concept referred to by key \"Event0103:0.0.1\"" + } + }, { + "key" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "UUID" : "f6d75b71-c8a7-3337-a121-88d68c389f5a", + "description" : "Generated description for concept referred to by key \"Event0104:0.0.1\"" + } + }, { + "key" : { + "name" : "Events", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Events", + "version" : "0.0.1" + }, + "UUID" : "0215644c-4531-375c-8335-d558b4de8c03", + "description" : "Generated description for concept referred to by key \"Events:0.0.1\"" + } + }, { + "key" : { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "976a79e7-5c80-3c03-9503-da3f41fec395", + "description" : "Generated description for concept referred to by key \"ExternalContextAlbum:0.0.1\"" + } + }, { + "key" : { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "c95e9e5f-d2c7-3ac7-a205-ea3574530cb7", + "description" : "Generated description for concept referred to by key \"GlobalContextAlbum:0.0.1\"" + } + }, { + "key" : { + "name" : "KeyInformation", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "KeyInformation", + "version" : "0.0.1" + }, + "UUID" : "1ff2f905-685c-3caf-95bc-0bbc90345888", + "description" : "Generated description for concept referred to by key \"KeyInformation:0.0.1\"" + } + }, { + "key" : { + "name" : "Policies", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policies", + "version" : "0.0.1" + }, + "UUID" : "f54c3b2b-be76-31c4-adfc-87c494c06808", + "description" : "Generated description for concept referred to by key \"Policies:0.0.1\"" + } + }, { + "key" : { + "name" : "Policy0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy0", + "version" : "0.0.1" + }, + "UUID" : "3410e939-30ca-32c4-a2d8-c30b6fee6eec", + "description" : "Generated description for concept referred to by key \"Policy0:0.0.1\"" + } + }, { + "key" : { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "e27564c4-3cbf-3db2-9bf3-83ae80a2f907", + "description" : "Generated description for concept referred to by key \"Policy0ContextAlbum:0.0.1\"" + } + }, { + "key" : { + "name" : "Policy1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy1", + "version" : "0.0.1" + }, + "UUID" : "d0b2b585-f344-33b8-af9e-250e7f4cfbce", + "description" : "Generated description for concept referred to by key \"Policy1:0.0.1\"" + } + }, { + "key" : { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + }, + "UUID" : "815d74ae-6fc0-3221-87b9-2bb1dfdfa7f0", + "description" : "Generated description for concept referred to by key \"Policy1ContextAlbum:0.0.1\"" + } + }, { + "key" : { + "name" : "SamplePolicyModelJAVASCRIPT", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "SamplePolicyModelJAVASCRIPT", + "version" : "0.0.1" + }, + "UUID" : "bc8ee312-81ce-3c4a-92d5-4a73b8077148", + "description" : "Generated description for concept referred to by key \"SamplePolicyModelJAVASCRIPT:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "UUID" : "0589ff20-adcc-3ce5-95fe-8d7978ed54ed", + "description" : "Generated description for concept referred to by key \"Task_Act0:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "UUID" : "095b126d-ca8b-32c9-ad52-d744e817a79c", + "description" : "Generated description for concept referred to by key \"Task_Act1:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "UUID" : "3d786b4c-d9ee-3367-ab71-c67271a4ea2f", + "description" : "Generated description for concept referred to by key \"Task_Act2:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "UUID" : "9231753e-20c5-3436-982f-9100340cc570", + "description" : "Generated description for concept referred to by key \"Task_Act3:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "UUID" : "502383d3-483f-3a56-a426-2f0406674c8d", + "description" : "Generated description for concept referred to by key \"Task_Decide0:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "UUID" : "16598106-41c8-3b5a-99c6-5fcf6d1a5ddf", + "description" : "Generated description for concept referred to by key \"Task_Decide1:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "UUID" : "ad3a89f5-e369-3c66-b22c-669f7b3653b8", + "description" : "Generated description for concept referred to by key \"Task_Decide2:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "UUID" : "56815939-1164-3867-9ed1-0a27ff8aafb3", + "description" : "Generated description for concept referred to by key \"Task_Decide3:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "UUID" : "0db0c566-ecd7-3e27-9865-4b82c893abdb", + "description" : "Generated description for concept referred to by key \"Task_Establish0:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "UUID" : "6944a4c1-6201-317c-8d7e-eaa7f2ee0ea0", + "description" : "Generated description for concept referred to by key \"Task_Establish1:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "UUID" : "0f766ea9-11cd-3e7d-a8c8-28c8dee6a85a", + "description" : "Generated description for concept referred to by key \"Task_Establish2:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "UUID" : "c3237a38-cc6d-3418-b1e1-0dc8b4bdcc66", + "description" : "Generated description for concept referred to by key \"Task_Establish3:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "UUID" : "051bcfd5-cf73-3c89-8ee7-ea6e005ec059", + "description" : "Generated description for concept referred to by key \"Task_Match0:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "UUID" : "3754fe19-98f2-34a1-9f45-db31052208d8", + "description" : "Generated description for concept referred to by key \"Task_Match1:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "UUID" : "8c200709-a180-3c8b-916f-275ff49ce194", + "description" : "Generated description for concept referred to by key \"Task_Match2:0.0.1\"" + } + }, { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "UUID" : "a1a879c6-4510-33b0-bbd0-ad6256189a37", + "description" : "Generated description for concept referred to by key \"Task_Match3:0.0.1\"" + } + }, { + "key" : { + "name" : "Tasks", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Tasks", + "version" : "0.0.1" + }, + "UUID" : "a7fab96b-ce1c-37ce-bbb2-556b6db524a5", + "description" : "Generated description for concept referred to by key \"Tasks:0.0.1\"" + } + }, { + "key" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "UUID" : "0a652886-c88d-3f8c-8994-ae9161e7c963", + "description" : "Generated description for concept referred to by key \"TestCase:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem000", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem000", + "version" : "0.0.1" + }, + "UUID" : "8efba9fa-371e-33df-a7d6-88b0284e7fd0", + "description" : "Generated description for concept referred to by key \"TestContextItem000:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem001", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem001", + "version" : "0.0.1" + }, + "UUID" : "3740077c-a2b3-356b-81dc-5ded2118a951", + "description" : "Generated description for concept referred to by key \"TestContextItem001:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem002", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem002", + "version" : "0.0.1" + }, + "UUID" : "b5c7df95-9af5-322f-9ea8-eb440a2bf926", + "description" : "Generated description for concept referred to by key \"TestContextItem002:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem003", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem003", + "version" : "0.0.1" + }, + "UUID" : "b36f0aa5-0fb9-3e2c-8fa2-fddb7fd05f4b", + "description" : "Generated description for concept referred to by key \"TestContextItem003:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem004", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem004", + "version" : "0.0.1" + }, + "UUID" : "093cda11-eaeb-3a46-a5b6-d5e30c00935b", + "description" : "Generated description for concept referred to by key \"TestContextItem004:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem005", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem005", + "version" : "0.0.1" + }, + "UUID" : "569a758d-ba40-37c0-aebb-7ad138df25ac", + "description" : "Generated description for concept referred to by key \"TestContextItem005:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem006", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem006", + "version" : "0.0.1" + }, + "UUID" : "252818d9-b61f-3962-a905-8865fb00fb04", + "description" : "Generated description for concept referred to by key \"TestContextItem006:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem007", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem007", + "version" : "0.0.1" + }, + "UUID" : "fe1a5f7c-c083-377b-a797-752b01fc6c73", + "description" : "Generated description for concept referred to by key \"TestContextItem007:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem008", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem008", + "version" : "0.0.1" + }, + "UUID" : "aa87d007-d07e-3f67-8c6d-0ebc3d85479d", + "description" : "Generated description for concept referred to by key \"TestContextItem008:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem009", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem009", + "version" : "0.0.1" + }, + "UUID" : "126e7a3a-11b6-3f88-9397-c21d8819f859", + "description" : "Generated description for concept referred to by key \"TestContextItem009:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem00A", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00A", + "version" : "0.0.1" + }, + "UUID" : "0e0e3dec-e03d-3379-a87b-1ecd4aa3d8cc", + "description" : "Generated description for concept referred to by key \"TestContextItem00A:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem00B", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00B", + "version" : "0.0.1" + }, + "UUID" : "dbdc98df-3ff4-360c-b8d3-a7a836ac3de6", + "description" : "Generated description for concept referred to by key \"TestContextItem00B:0.0.1\"" + } + }, { + "key" : { + "name" : "TestContextItem00C", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00C", + "version" : "0.0.1" + }, + "UUID" : "32a2f355-77f3-3b25-ace6-7a9c5763a5ad", + "description" : "Generated description for concept referred to by key \"TestContextItem00C:0.0.1\"" + } + }, { + "key" : { + "name" : "TestDatatypes", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestDatatypes", + "version" : "0.0.1" + }, + "UUID" : "3f95472c-973e-30e2-95f1-bf00cbef909a", + "description" : "Generated description for concept referred to by key \"TestDatatypes:0.0.1\"" + } + }, { + "key" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + }, + "UUID" : "610dbbd4-9149-3b3c-9af4-819056f0e169", + "description" : "Generated description for concept referred to by key \"TestExternalContextItem:0.0.1\"" + } + }, { + "key" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + }, + "UUID" : "07fa8f68-55f1-3fd0-81c1-749a379753a7", + "description" : "Generated description for concept referred to by key \"TestGlobalContextItem:0.0.1\"" + } + }, { + "key" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + }, + "UUID" : "d9c93cd1-539e-35c5-aaec-bb711ceb1251", + "description" : "Generated description for concept referred to by key \"TestPolicyContextItem:0.0.1\"" + } + }, { + "key" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "UUID" : "683fe492-7eae-3ac7-9924-bb7850208d05", + "description" : "Generated description for concept referred to by key \"TestSlogan:0.0.1\"" + } + }, { + "key" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "UUID" : "bba25b6f-e3cd-3060-9022-4ef3a79f8eb0", + "description" : "Generated description for concept referred to by key \"TestTemperature:0.0.1\"" + } + }, { + "key" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "UUID" : "97b73937-c344-33c0-924c-4d26b6449564", + "description" : "Generated description for concept referred to by key \"TestTimestamp:0.0.1\"" + } + } ] + } + }, + "policies" : { + "key" : { + "name" : "Policies", + "version" : "0.0.1" + }, + "policyMap" : { + "entry" : [ { + "key" : { + "name" : "Policy0", + "version" : "0.0.1" + }, + "value" : { + "policyKey" : { + "name" : "Policy0", + "version" : "0.0.1" + }, + "template" : "MEDA", + "state" : { + "entry" : [ { + "key" : "Act", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Act" + }, + "trigger" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Act_NULL", + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + }, + "outgoingEvent" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "NULL", + "parentKeyVersion" : "0.0.0", + "parentLocalName" : "NULL", + "localName" : "NULL" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act0_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act1_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act2_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act3_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + } ] + } + } + }, { + "key" : "Decide", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Decide" + }, + "trigger" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Decide_Act", + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + }, + "outgoingEvent" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Act" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide0_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide1_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide2_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide3_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + } ] + } + } + }, { + "key" : "Establish", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Establish" + }, + "trigger" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Establish_Decide", + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + }, + "outgoingEvent" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Decide" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish0_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish1_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish2_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish3_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + } ] + } + } + }, { + "key" : "Match", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Match" + }, + "trigger" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Match_Establish", + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + }, + "outgoingEvent" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Establish" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match0_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match1_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match2_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match3_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + } ] + } + } + } ] + }, + "firstState" : "Match" + } + }, { + "key" : { + "name" : "Policy1", + "version" : "0.0.1" + }, + "value" : { + "policyKey" : { + "name" : "Policy1", + "version" : "0.0.1" + }, + "template" : "MEDA", + "state" : { + "entry" : [ { + "key" : "Act", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Act" + }, + "trigger" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Act_NULL", + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + }, + "outgoingEvent" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "NULL", + "parentKeyVersion" : "0.0.0", + "parentLocalName" : "NULL", + "localName" : "NULL" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act0_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act1_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act2_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + }, { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Task_Act3_DIRECT_Act_NULL" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Act", + "localName" : "Act_NULL" + } + } + } ] + } + } + }, { + "key" : "Decide", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Decide" + }, + "trigger" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Decide_Act", + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + }, + "outgoingEvent" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Act" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide0_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide1_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide2_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + }, { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Task_Decide3_DIRECT_Decide_Act" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Decide", + "localName" : "Decide_Act" + } + } + } ] + } + } + }, { + "key" : "Establish", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Establish" + }, + "trigger" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Establish_Decide", + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + }, + "outgoingEvent" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Decide" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish0_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish1_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish2_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + }, { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Task_Establish3_DIRECT_Establish_Decide" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Establish", + "localName" : "Establish_Decide" + } + } + } ] + } + } + }, { + "key" : "Match", + "value" : { + "stateKey" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Match" + }, + "trigger" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "stateOutputs" : { + "entry" : [ { + "key" : "Match_Establish", + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + }, + "outgoingEvent" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "nextState" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Establish" + } + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskSelectionLogic" : { + "key" : "TaskSelectionLigic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\nvar returnValue = executor.isTrue;" + }, + "stateFinalizerLogicMap" : { + "entry" : [ ] + }, + "defaultTask" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "taskReferences" : { + "entry" : [ { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match0_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match1_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match2_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + }, { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Task_Match3_DIRECT_Match_Establish" + }, + "outputType" : "DIRECT", + "output" : { + "parentKeyName" : "Policy1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "Match", + "localName" : "Match_Establish" + } + } + } ] + } + } + } ] + }, + "firstState" : "Match" + } + } ] + } + }, + "tasks" : { + "key" : { + "name" : "Tasks", + "version" : "0.0.1" + }, + "taskMap" : { + "entry" : [ { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act0", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Act0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Act0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + }, { + "key" : "Parameter2", + "value" : { + "key" : { + "parentKeyName" : "Task_Act0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter2" + }, + "defaultValue" : "DefaultValue2" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act1", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Act1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Act1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act2", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Act2", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Act3", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Act3", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide0", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + }, { + "key" : "Parameter2", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter2" + }, + "defaultValue" : "DefaultValue2" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide1", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide2", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide2", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Decide3", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Decide3", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish0", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + }, { + "key" : "Parameter2", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter2" + }, + "defaultValue" : "DefaultValue2" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish1", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish2", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish2", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Establish3", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Establish3", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match0", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Match0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Match0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + }, { + "key" : "Parameter2", + "value" : { + "key" : { + "parentKeyName" : "Task_Match0", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter2" + }, + "defaultValue" : "DefaultValue2" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match1", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Match1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + }, { + "key" : "Parameter1", + "value" : { + "key" : { + "parentKeyName" : "Task_Match1", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter1" + }, + "defaultValue" : "DefaultValue1" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match2", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Match2", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + }, { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Task_Match3", + "version" : "0.0.1" + }, + "inputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "outputFields" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + }, + "taskParameters" : { + "entry" : [ { + "key" : "Parameter0", + "value" : { + "key" : { + "parentKeyName" : "Task_Match3", + "parentKeyVersion" : "0.0.1", + "parentLocalName" : "NULL", + "localName" : "Parameter0" + }, + "defaultValue" : "DefaultValue0" + } + } ] + }, + "contextAlbumReference" : [ { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + } ], + "taskLogic" : { + "key" : "_TaskLogic", + "logicFlavour" : "JAVASCRIPT", + "logic" : "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = Java.type(\"java.lang.Byte\");\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = Java.type(\"java.util.Date\");\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\nvar returnValue = executor.isTrue;" + } + } + } ] + } + }, + "events" : { + "key" : { + "name" : "Events", + "version" : "0.0.1" + }, + "eventMap" : { + "entry" : [ { + "key" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0000", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Outside", + "target" : "Match", + "parameter" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0001", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Match", + "target" : "Establish", + "parameter" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0002", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Establish", + "target" : "Decide", + "parameter" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0003", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Decide", + "target" : "Act", + "parameter" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0004", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Act", + "target" : "Outside", + "parameter" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0100", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Outside", + "target" : "Match", + "parameter" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0101", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Match", + "target" : "Establish", + "parameter" : { + "entry" : [ { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0102", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Establish", + "target" : "Decide", + "parameter" : { + "entry" : [ { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0103", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Decide", + "target" : "Act", + "parameter" : { + "entry" : [ { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + }, { + "key" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Event0104", + "version" : "0.0.1" + }, + "nameSpace" : "org.onap.policy.apex.sample.events", + "source" : "Act", + "target" : "Outside", + "parameter" : { + "entry" : [ { + "key" : "TestActCaseSelected", + "value" : { + "key" : "TestActCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestActStateTime", + "value" : { + "key" : "TestActStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideCaseSelected", + "value" : { + "key" : "TestDecideCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestDecideStateTime", + "value" : { + "key" : "TestDecideStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishCaseSelected", + "value" : { + "key" : "TestEstablishCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestEstablishStateTime", + "value" : { + "key" : "TestEstablishStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCase", + "value" : { + "key" : "TestMatchCase", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchCaseSelected", + "value" : { + "key" : "TestMatchCaseSelected", + "fieldSchemaKey" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestMatchStateTime", + "value" : { + "key" : "TestMatchStateTime", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestSlogan", + "value" : { + "key" : "TestSlogan", + "fieldSchemaKey" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTemperature", + "value" : { + "key" : "TestTemperature", + "fieldSchemaKey" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "optional" : false + } + }, { + "key" : "TestTimestamp", + "value" : { + "key" : "TestTimestamp", + "fieldSchemaKey" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "optional" : false + } + } ] + } + } + } ] + } + }, + "albums" : { + "key" : { + "name" : "Context", + "version" : "0.0.1" + }, + "albums" : { + "entry" : [ { + "key" : { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "ExternalContextAlbum", + "version" : "0.0.1" + }, + "scope" : "EXTERNAL", + "isWritable" : false, + "itemSchema" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + } + } + }, { + "key" : { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "GlobalContextAlbum", + "version" : "0.0.1" + }, + "scope" : "GLOBAL", + "isWritable" : true, + "itemSchema" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + } + } + }, { + "key" : { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy0ContextAlbum", + "version" : "0.0.1" + }, + "scope" : "APPLICATION", + "isWritable" : true, + "itemSchema" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + } + } + }, { + "key" : { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "Policy1ContextAlbum", + "version" : "0.0.1" + }, + "scope" : "APPLICATION", + "isWritable" : true, + "itemSchema" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + } + } + } ] + } + }, + "schemas" : { + "key" : { + "name" : "TestDatatypes", + "version" : "0.0.1" + }, + "schemas" : { + "entry" : [ { + "key" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestCase", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Byte" + } + }, { + "key" : { + "name" : "TestContextItem000", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem000", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem000" + } + }, { + "key" : { + "name" : "TestContextItem001", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem001", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem001" + } + }, { + "key" : { + "name" : "TestContextItem002", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem002", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem002" + } + }, { + "key" : { + "name" : "TestContextItem003", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem003", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem003" + } + }, { + "key" : { + "name" : "TestContextItem004", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem004", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem004" + } + }, { + "key" : { + "name" : "TestContextItem005", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem005", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem005" + } + }, { + "key" : { + "name" : "TestContextItem006", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem006", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem006" + } + }, { + "key" : { + "name" : "TestContextItem007", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem007", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem007" + } + }, { + "key" : { + "name" : "TestContextItem008", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem008", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem008" + } + }, { + "key" : { + "name" : "TestContextItem009", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem009", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem009" + } + }, { + "key" : { + "name" : "TestContextItem00A", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00A", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00A" + } + }, { + "key" : { + "name" : "TestContextItem00B", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00B", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00B" + } + }, { + "key" : { + "name" : "TestContextItem00C", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestContextItem00C", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestContextItem00C" + } + }, { + "key" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestExternalContextItem", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestExternalContextItem" + } + }, { + "key" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestGlobalContextItem", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestGlobalContextItem" + } + }, { + "key" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestPolicyContextItem", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "org.onap.policy.apex.context.test.concepts.TestPolicyContextItem" + } + }, { + "key" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestSlogan", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.String" + } + }, { + "key" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestTemperature", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Double" + } + }, { + "key" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "value" : { + "key" : { + "name" : "TestTimestamp", + "version" : "0.0.1" + }, + "schemaFlavour" : "Java", + "schemaDefinition" : "java.lang.Long" + } + } ] + } + } + } + }, "engineParameters": { "executorParameters": { "JAVASCRIPT": { diff --git a/tests/policy/engine/Policy-CSIT.robot b/tests/policy/engine/Policy-CSIT.robot index 514cc840..e55ccac8 100644 --- a/tests/policy/engine/Policy-CSIT.robot +++ b/tests/policy/engine/Policy-CSIT.robot @@ -4,8 +4,8 @@ Library String Library HttpLibrary.HTTP LIbrary Process Library BuiltIn +Library ONAPLibrary.Templating Resource policy_interface.robot -Resource json_templater.robot *** Variables *** ${RESOURCE_PATH_CREATE} /pdp/api/createPolicy @@ -13,21 +13,21 @@ ${RESOURCE_PATH_CREATE_PUSH} /pdp/api/pushPolicy ${RESOURCE_PATH_CREATE_DELETE} /pdp/api/deletePolicy ${RESOURCE_PATH_GET_CONFIG} /pdp/api/getConfig ${RESOURCE_PATH_LISTPOLICY} /pdp/api/listPolicy -${CREATE_CONFIG_VFW_TEMPLATE} ${CURDIR}/configpolicy_vFW_R1.template -${CREATE_CONFIG_VDNS_TEMPLATE} ${CURDIR}/configpolicy_vDNS_R1.template -${CREATE_CONFIG_VCPE_TEMPLATE} ${CURDIR}/configpolicy_vCPE_R1.template -${CREATE_OPS_VFW_TEMPLATE} ${CURDIR}/opspolicy_VFW_R1.template -${CREATE_OOF_HPA_TEMPLATE} ${CURDIR}/oofpolicy_HPA_R1.template -${CREATE_SDNC_VFW_TEMPLATE} ${CURDIR}/sdncnamingpolicy_vFW.template -${CREATE_SDNC_VPG_TEMPLATE} ${CURDIR}/sdncnamingpolicy_vPG.template -${PUSH_POLICY_TEMPLATE} ${CURDIR}/pushpolicy.template -${MULTIPLE_PUSH_POLICY_TEMPLATE} ${CURDIR}/multiple_pushpolicy.template -${MULTIPLE_UNPUSH_POLICY_TEMPLATE} ${CURDIR}/multiple_unpushpolicy.template -${CREATE_OPS_VDNS_TEMPLATE} ${CURDIR}/opspolicy_VDNS_R1.template -${DEL_POLICY_TEMPLATE} ${CURDIR}/deletepolicy.template -${GETCONFIG_TEMPLATE} ${CURDIR}/getconfigpolicy.template -${GETOOF_TEMPLATE} ${CURDIR}/getoofpolicy.template -${LISTPOLICY_TEMPLATE} ${CURDIR}/listpolicy.template +${CREATE_CONFIG_VFW_TEMPLATE} configpolicy_vFW_R1.jinja +${CREATE_CONFIG_VDNS_TEMPLATE} configpolicy_vDNS_R1.jinja +${CREATE_CONFIG_VCPE_TEMPLATE} configpolicy_vCPE_R1.jinja +${CREATE_OPS_VFW_TEMPLATE} opspolicy_VFW_R1.jinja +${CREATE_OOF_HPA_TEMPLATE} oofpolicy_HPA_R1.jinja +${CREATE_SDNC_VFW_TEMPLATE} sdncnamingpolicy_vFW.jinja +${CREATE_SDNC_VPG_TEMPLATE} sdncnamingpolicy_vPG.jinja +${PUSH_POLICY_TEMPLATE} pushpolicy.jinja +${MULTIPLE_PUSH_POLICY_TEMPLATE} multiple_pushpolicy.jinja +${MULTIPLE_UNPUSH_POLICY_TEMPLATE} multiple_unpushpolicy.jinja +${CREATE_OPS_VDNS_TEMPLATE} opspolicy_VDNS_R1.jinja +${DEL_POLICY_TEMPLATE} deletepolicy.jinja +${GETCONFIG_TEMPLATE} getconfigpolicy.jinja +${GETOOF_TEMPLATE} getoofpolicy.jinja +${LISTPOLICY_TEMPLATE} listpolicy.jinja ${CONFIG_POLICY_VFW_NAME} vFirewall ${CONFIG_POLICY_VFW_TYPE} MicroService ${CONFIG_POLICY_VDNS_NAME} vLoadBalancer @@ -51,8 +51,8 @@ ${MULTIPLE_PUSH_POLICY_NAME2} com.testBase2 ${MULTIPLE_PUSH_POLICY_NAME3} com.testBase3 ${file_path} ../testsuite/robot/assets/templates/ControlLoopDemo__closedLoopControlName.drl ${RESOURCE_PATH_UPLOAD} /pdp/api/policyEngineImport?importParametersJson=%7B%22serviceName%22%3A%22Manyu456%22%2C%20%22serviceType%22%3A%22BRMSPARAM%22%7D -${CREATE_OPS_VCPE_TEMPLATE} ${CURDIR}/opspolicy_vCPE_R1.template -${CREATE_OPS_VOLTE_TEMPLATE} ${CURDIR}/opspolicy_vOLTE_R1.template +${CREATE_OPS_VCPE_TEMPLATE} opspolicy_vCPE_R1.jinja +${CREATE_OPS_VOLTE_TEMPLATE} opspolicy_vOLTE_R1.jinja *** Test Cases *** @@ -173,19 +173,21 @@ HPA Policy Tests Get Configs VFW Policy [Documentation] Get Config Policy for VFW + Create Environment policy ${CURDIR} ${getconfigpolicy}= Catenate .*${CONFIG_POLICY_VFW_NAME}* ${configpolicy_name}= Create Dictionary config_policy_name=${getconfigpolicy} - ${output} = Fill JSON Template File ${GETCONFIG_TEMPLATE} ${configpolicy_name} + ${output} = Apply Template policy ${GETCONFIG_TEMPLATE} ${configpolicy_name} ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} Should Be Equal As Strings ${get_resp.status_code} 200 Create OOF HPA Policy [Documentation] Create OOF Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_HPA ${OOF_POLICY_HPA_NAME}= Set Test Variable ${policyname1} ${hpapolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_OOF_HPA_TEMPLATE} ${hpapolicy} + ${output} = Apply Template policy ${CREATE_OOF_HPA_TEMPLATE} ${hpapolicy} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Log ${put_resp} Should Be Equal As Strings ${put_resp.status_code} 200 @@ -193,41 +195,45 @@ Create OOF HPA Policy Get OOF HPA Policy [Documentation] Get OOF Policy for HPA + Create Environment policy ${CURDIR} ${gethpapolicy}= Catenate .*${OOF_POLICY_HPA_NAME}* ${hpapolicy_name}= Create Dictionary oof_policy_name=${gethpapolicy} - ${output} = Fill JSON Template File ${GETOOF_TEMPLATE} ${hpapolicy_name} + ${output} = Apply Template policy ${GETOOF_TEMPLATE} ${hpapolicy_name} ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} Should Be Equal As Strings ${get_resp.status_code} 200 Create Config VFW Policy [Documentation] Create Config Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_vFirewall ${CONFIG_POLICY_VFW_NAME}= Set Test Variable ${policyname1} ${configpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_CONFIG_VFW_TEMPLATE} ${configpolicy} + ${output} = Apply Template policy ${CREATE_CONFIG_VFW_TEMPLATE} ${configpolicy} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 [Return] ${policyname1} Create VPG SDNC Naming Policy [Documentation] Create VPG SDNC Naming Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_ONAP_vPG_Naming ${SDNC_POLICY_VPG_NAME}= Set Test Variable ${policyname1} ${sdncpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_SDNC_VPG_TEMPLATE} ${sdncpolicy} + ${output} = Apply Template policy ${CREATE_SDNC_VPG_TEMPLATE} ${sdncpolicy} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 [Return] ${policyname1} Create VFW SDNC Naming Policy [Documentation] Create VFW SDNC Naming Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_ONAP_vFW_Naming ${SDNC_POLICY_VFW_NAME}= Set Test Variable ${policyname1} ${sdncpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_SDNC_VFW_TEMPLATE} ${sdncpolicy} + ${output} = Apply Template policy ${CREATE_SDNC_VFW_TEMPLATE} ${sdncpolicy} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 [Return] ${policyname1} @@ -241,11 +247,12 @@ Create Policy Name Create Ops VFW Policy [Documentation] Create Operational Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_vFirewall ${OPS_POLICY_VFW_NAME}= Set Test Variable ${policyname1} ${dict}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_OPS_VFW_TEMPLATE} ${dict} + ${output} = Apply Template policy ${CREATE_OPS_VFW_TEMPLATE} ${dict} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Log ${put_resp} Should Be Equal As Strings ${put_resp.status_code} 200 @@ -254,72 +261,80 @@ Create Ops VFW Policy Push Ops Policy [Documentation] Push Ops Policy [Arguments] ${policyname} ${policytype} + Create Environment policy ${CURDIR} ${dict}= Create Dictionary policy_name=${policyname} policy_type=${policytype} - ${output} = Fill JSON Template File ${PUSH_POLICY_TEMPLATE} ${dict} + ${output} = Apply Template policy ${PUSH_POLICY_TEMPLATE} ${dict} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE_PUSH} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 Push Config Policy [Documentation] Push Config Policy [Arguments] ${policyname} ${policytype} + Create Environment policy ${CURDIR} ${dict}= Create Dictionary policy_name=${policyname} policy_type=${policytype} - ${output} = Fill JSON Template File ${PUSH_POLICY_TEMPLATE} ${dict} + ${output} = Apply Template policy ${PUSH_POLICY_TEMPLATE} ${dict} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE_PUSH} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 Delete Ops Policy [Documentation] Delete Config Policy [Arguments] ${policy_name} + Create Environment policy ${CURDIR} ${policyname3}= Catenate com.Config_BRMS_Param_${policyname}.1.xml ${dict}= Create Dictionary policy_name=${policyname3} - ${output} = Fill JSON Template ${DEL_POLICY_TEMPLATE} ${dict} + ${output} = Apply Template policy ${DEL_POLICY_TEMPLATE} ${dict} ${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 Delete Config Policy [Documentation] Delete Ops Policy [Arguments] ${policy_name} + Create Environment policy ${CURDIR} ${policyname3}= Catenate com.Config_MS_com.${policy_name}.1.xml ${dict}= Create Dictionary policy_name=${policyname3} - ${output} = Fill JSON Template ${DEL_POLICY_TEMPLATE} ${dict} + ${output} = Apply Template policy ${DEL_POLICY_TEMPLATE} ${dict} ${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 Delete OOF Policy [Documentation] Delete OOF Policy [Arguments] ${policy_name} + Create Environment policy ${CURDIR} ${policyname3}= Catenate com.Config_OOF_${policy_name}.1.xml ${dict}= Create Dictionary policy_name=${policyname3} - ${output} = Fill JSON Template ${DEL_POLICY_TEMPLATE} ${dict} + ${output} = Apply Template policy ${DEL_POLICY_TEMPLATE} ${dict} ${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 Get Configs VDNS Policy [Documentation] Get Config Policy for VDNS + Create Environment policy ${CURDIR} ${getconfigpolicy}= Catenate .*${CONFIG_POLICY_VDNS_NAME}* ${configpolicy_name}= Create Dictionary config_policy_name=${getconfigpolicy} - ${output} = Fill JSON Template File ${GETCONFIG_TEMPLATE} ${configpolicy_name} + ${output} = Apply Template policy ${GETCONFIG_TEMPLATE} ${configpolicy_name} ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} Should Be Equal As Strings ${get_resp.status_code} 200 Create Config VDNS Policy [Documentation] Create Config Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_vLoadBalancer ${CONFIG_POLICY_VDNS_NAME}= Set Test Variable ${policyname1} ${configpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_CONFIG_VDNS_TEMPLATE} ${configpolicy} + ${output} = Apply Template policy ${CREATE_CONFIG_VDNS_TEMPLATE} ${configpolicy} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 [Return] ${policyname1} Create Ops VDNS Policy [Documentation] Create Operational Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_vLoadBalancer ${OPS_POLICY_VDNS_NAME}= Set Test Variable ${policyname1} ${dict}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_OPS_VDNS_TEMPLATE} ${dict} + ${output} = Apply Template policy ${CREATE_OPS_VDNS_TEMPLATE} ${dict} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Log ${put_resp} Should Be Equal As Strings ${put_resp.status_code} 200 @@ -327,30 +342,33 @@ Create Ops VDNS Policy Create Config VCPE Policy [Documentation] Create Config Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_vCPE ${CONFIG_POLICY_VCPE_NAME}= Set Test Variable ${policyname1} ${configpolicy}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_CONFIG_VCPE_TEMPLATE} ${configpolicy} + ${output} = Apply Template policy ${CREATE_CONFIG_VCPE_TEMPLATE} ${configpolicy} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 [Return] ${policyname1} Get Configs VCPE Policy [Documentation] Get Config Policy for VCPE + Create Environment policy ${CURDIR} ${getconfigpolicy}= Catenate .*${CONFIG_POLICY_VCPE_NAME}* ${configpolicy_name}= Create Dictionary config_policy_name=${getconfigpolicy} - ${output} = Fill JSON Template File ${GETCONFIG_TEMPLATE} ${configpolicy_name} + ${output} = Apply Template policy ${GETCONFIG_TEMPLATE} ${configpolicy_name} ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} Should Be Equal As Strings ${get_resp.status_code} 200 Create Ops vCPE Policy [Documentation] Create Operational Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_vCPE ${OPS_POLICY_VCPE_NAME}= Set Test Variable ${policyname1} ${dict}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_OPS_VCPE_TEMPLATE} ${dict} + ${output} = Apply Template policy ${CREATE_OPS_VCPE_TEMPLATE} ${dict} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Log ${put_resp} Should Be Equal As Strings ${put_resp.status_code} 200 @@ -358,10 +376,11 @@ Create Ops vCPE Policy Create Ops VolTE Policy [Documentation] Create Operational Policy + Create Environment policy ${CURDIR} ${randompolicyname} = Create Policy Name ${policyname1}= Catenate com.${randompolicyname}_VoLTE ${dict}= Create Dictionary policy_name=${policyname1} - ${output} = Fill JSON Template File ${CREATE_OPS_VOLTE_TEMPLATE} ${dict} + ${output} = Apply Template policy ${CREATE_OPS_VOLTE_TEMPLATE} ${dict} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE} ${output} Log ${put_resp} Should Be Equal As Strings ${put_resp.status_code} 200 @@ -380,24 +399,27 @@ Upload DRL file ListPolicy test [Documentation] Listing Config Policies [Arguments] ${policy_name} + Create Environment policy ${CURDIR} ${dict}= Create Dictionary policy_name=${policy_name} - ${output} = Fill JSON Template File ${LISTPOLICY_TEMPLATE} ${dict} + ${output} = Apply Template policy ${LISTPOLICY_TEMPLATE} ${dict} ${put_resp} = policy_interface.Run Policy Post Request ${RESOURCE_PATH_LISTPOLICY} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 Push Multiple Policy test [Documentation] Push Multiple Policy [Arguments] ${policyname1} ${policyname2} ${policyname3} ${policytype} + Create Environment policy ${CURDIR} ${dict}= Create Dictionary policy_name1=${policyname1} policy_name2=${policyname2} policy_name3=${policyname3} policy_type=${policytype} - ${output} = Fill JSON Template File ${MULTIPLE_PUSH_POLICY_TEMPLATE} ${dict} + ${output} = Apply Template policy ${MULTIPLE_PUSH_POLICY_TEMPLATE} ${dict} ${put_resp} = Run Policy Put Request ${RESOURCE_PATH_CREATE_PUSH} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 Delete Multiple Policy test [Documentation] Delete Multiple Policy [Arguments] ${policyname1} ${policyname2} ${policyname3} ${policytype} + Create Environment policy ${CURDIR} ${dict}= Create Dictionary policy_name1=${policyname1} policy_name2=${policyname2} policy_name3=${policyname3} policy_type=${policytype} - ${output} = Fill JSON Template File ${MULTIPLE_UNPUSH_POLICY_TEMPLATE} ${dict} + ${output} = Apply Template policy ${MULTIPLE_UNPUSH_POLICY_TEMPLATE} ${dict} ${put_resp} = Run Policy Delete Request ${RESOURCE_PATH_CREATE_DELETE} ${output} Should Be Equal As Strings ${put_resp.status_code} 200 diff --git a/tests/policy/engine/configpolicy_vCPE.template b/tests/policy/engine/configpolicy_vCPE.template deleted file mode 100644 index e3e3a2d0..00000000 --- a/tests/policy/engine/configpolicy_vCPE.template +++ /dev/null @@ -1,6 +0,0 @@ -{ -"configBody": "{ \"service\": \"policy_tosca_tca\", \"location\": \"SampleServiceLocation\", \"uuid\": \"test\", \"policyName\": \"MicroServicevCPE\", \"description\": \"MicroService vCPE Policy\", \"configName\": \"SampleConfigName\", \"templateVersion\": \"OpenSource.version.1\", \"version\": \"1.0.0\", \"priority\": \"1\", \"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop\", \"riskType\": \"SampleRiskType\", \"riskLevel\": \"1\", \"guard\": \"False\", \"content\": { \"policyVersion\": \"v0.0.1\", \"threshholds\": [{ \"severity\": \"MAJOR\", \"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta\", \"thresholdValue\": \"0\", \"closedLoopEventStatus\": \"ABATED\", \"closedLoopControlName\": \"CL-vCPEvGMUX-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241ABA1\", \"version\": \"1.0.2\", \"direction\": \"EQUAL\" }, { \"severity\": \"CRITICAL\", \"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta\", \"thresholdValue\": \"1000\", \"closedLoopEventStatus\": \"ONSET\", \"closedLoopControlName\": \"CL-vCPEvGMUX-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241ABA1\", \"version\": \"1.0.2\", \"direction\": \"GREATER_OR_EQUAL\" }], \"policyName\": \"DCAE.Config_tca-hi-lo\", \"controlLoopSchemaType\": \"VM\", \"policyScope\": \"DCAE\", \"eventName\": \"vCPEvGMUXPacketLoss\" } }", -"policyConfigType": "MicroService", -"policyName": "${policy_name}", -"ecompName": "DCAE" -} diff --git a/tests/policy/engine/configpolicy_vCPE_R1.template b/tests/policy/engine/configpolicy_vCPE_R1.jinja index 77653c3f..6bcd74fe 100644 --- a/tests/policy/engine/configpolicy_vCPE_R1.template +++ b/tests/policy/engine/configpolicy_vCPE_R1.jinja @@ -1,7 +1,7 @@ { "configBody": "{ \"service\": \"tca_policy\", \"location\": \"SampleServiceLocation\", \"uuid\": \"test\", \"policyName\": \"MicroServicevCPE\", \"description\": \"MicroService vCPE Policy\", \"configName\": \"SampleConfigName\", \"templateVersion\": \"OpenSource.version.1\", \"version\": \"1.1.0\", \"priority\": \"1\", \"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"riskType\": \"SampleRiskType\", \"riskLevel\": \"1\", \"guard\": \"False\", \"content\": { \"policyVersion\": \"v0.0.1\", \"threshholds\": [{ \"severity\": \"MAJOR\", \"fieldPath\": \"$$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\", \"thresholdValue\": \"0\", \"closedLoopEventStatus\": \"ABATED\", \"closedLoopControlName\": \"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"version\": \"1.0.2\", \"direction\": \"EQUAL\" }, { \"severity\": \"CRITICAL\", \"fieldPath\": \"$$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\", \"thresholdValue\": \"0\", \"closedLoopEventStatus\": \"ONSET\", \"closedLoopControlName\": \"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"version\": \"1.0.2\", \"direction\": \"GREATER\" }], \"policyName\": \"DCAE.Config_tca-hi-lo\", \"controlLoopSchemaType\": \"VNF\", \"policyScope\": \"DCAE\", \"eventName\": \"Measurement_vGMUX\" } }", "policyConfigType": "MicroService", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "onapName": "DCAE", "priority": "5" } diff --git a/tests/policy/engine/configpolicy_vDNS.template b/tests/policy/engine/configpolicy_vDNS.template deleted file mode 100644 index ab1d2e0d..00000000 --- a/tests/policy/engine/configpolicy_vDNS.template +++ /dev/null @@ -1,6 +0,0 @@ -{ -"configBody": "{\"service\": \"policy_tosca_tca\",\"location\": \"TestMSLocation\",\"uuid\": \"/services/cdap-tca-hi-lo/instances/dfw1/configuration/metricsPerFunctionalRole/vLoadBalancer\",\"policyName\": \"vLoadBalancer\",\"description\": \"vLoadBalancer\",\"configName\": \"TestConfigName\",\"templateVersion\": \"1607\",\"version\": \"8.7.6.5\",\"priority\": \"1\",\"policyScope\": \"resource=TestResource,service=TestService,type=TestType,closedLoopControlName=TestClosedLoop\",\"riskType\": \"test\",\"riskLevel\": \"2\",\"guard\": \"False\",\"content\": {\"policyVersion\": \"v0.0.1\",\"threshholds\": [{\"severity\": \"MAJOR\",\"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\": \"500\",\"closedLoopControlName\": \"CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1A\",\"version\": \"1.0.2\",\"direction\": \"LESS_OR_EQUAL\"}, {\"severity\": \"CRITICAL\",\"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\": \"5000\",\"closedLoopControlName\": \"CL-LBAL-HIGH-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B\",\"version\": \"1.0.2\",\"direction\": \"GREATER_OR_EQUAL\"}],\"policyName\": \"configuration.ae.microservice.tca.xml\",\"functionalRole\": \"ClosedLoop_F5-d925ed73-8231-4d02-9545-db4e101f88f8\"}}", -"policyConfigType": "MicroService", -"policyName": "${policy_name}", -"ecompName": "DCAE" -}
\ No newline at end of file diff --git a/tests/policy/engine/configpolicy_vDNS_R1.template b/tests/policy/engine/configpolicy_vDNS_R1.jinja index 185a7c72..a2c3eeb9 100644 --- a/tests/policy/engine/configpolicy_vDNS_R1.template +++ b/tests/policy/engine/configpolicy_vDNS_R1.jinja @@ -1,7 +1,7 @@ { "configBody": "{ \"service\": \"tca_policy\", \"location\": \"SampleServiceLocation\", \"uuid\": \"test\", \"policyName\": \"MicroServicevDNS\", \"description\": \"MicroService vDNS Policy\", \"configName\": \"SampleConfigName\", \"templateVersion\": \"OpenSource.version.1\", \"version\": \"1.1.0\", \"priority\": \"1\", \"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\", \"riskType\": \"SampleRiskType\", \"riskLevel\": \"1\", \"guard\": \"False\", \"content\": { \"policyVersion\": \"v0.0.1\", \"threshholds\": [{ \"severity\": \"CRITICAL\", \"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\", \"thresholdValue\": \"300\", \"closedLoopEventStatus\": \"ONSET\", \"closedLoopControlName\": \"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\", \"version\": \"1.0.2\", \"direction\": \"GREATER_OR_EQUAL\" }], \"policyName\": \"DCAE.Config_tca-hi-lo\", \"controlLoopSchemaType\": \"VM\", \"policyScope\": \"DCAE\", \"eventName\": \"vLoadBalancer\" } }", "policyConfigType": "MicroService", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "onapName": "DCAE", "priority": "5" } diff --git a/tests/policy/engine/configpolicy_vFW.template b/tests/policy/engine/configpolicy_vFW.template deleted file mode 100644 index 39e99e7b..00000000 --- a/tests/policy/engine/configpolicy_vFW.template +++ /dev/null @@ -1,6 +0,0 @@ -{ -"configBody": "{\"service\": \"policy_tosca_tca\",\"location\": \"Ravi\",\"uuid\": \"/services/cdap-tca-hi-lo/instances/dfw1/configuration/metricsPerFunctionalRole/vFireWall\",\"policyName\": \"vFireWall\",\"description\": \"vFireWall\",\"configName\": \"TestConfigName\",\"templateVersion\": \"1607\",\"version\": \"8.7.6.5\",\"priority\": \"1\",\"policyScope\": \"resource=TestResource,service=TestService,type=TestType,closedLoopControlName=TestClosedLoop\",\"riskType\": \"test\",\"riskLevel\": \"2\",\"guard\": \"False\",\"content\": {\"policyVersion\": \"v0.0.1\",\"threshholds\": [{\"severity\": \"MAJOR\",\"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\": \"4000\",\"closedLoopControlName\": \"CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8\",\"version\": \"1.0.2\",\"direction\": \"LESS_OR_EQUAL\"}, {\"severity\": \"CRITICAL\",\"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated\",\"thresholdValue\": \"20000\",\"closedLoopControlName\": \"CL-FRWL-HIGH-TRAFFIC-SIG-EA36FE84-9342-5E13-A656-EC5F21309A09\",\"version\": \"1.0.2\",\"direction\": \"GREATER_OR_EQUAL\"}],\"policyName\": \"configuration.ae.microservice.tca.xml\",\"functionalRole\": \"ClosedLoop_F5-d925ed73-8231-4d02-9545-db4e101f88f8\"}}", -"policyConfigType": "MicroService", -"policyName": "${policy_name}", -"ecompName": "DCAE" -}
\ No newline at end of file diff --git a/tests/policy/engine/configpolicy_vFW_R1.template b/tests/policy/engine/configpolicy_vFW_R1.jinja index 067ed07f..b843a0b0 100644 --- a/tests/policy/engine/configpolicy_vFW_R1.template +++ b/tests/policy/engine/configpolicy_vFW_R1.jinja @@ -1,7 +1,7 @@ { "configBody": "{\"service\": \"tca_policy\",\"location\": \"SampleServiceLocation\",\"uuid\": \"test\",\"policyName\": \"MicroServicevFirewall\",\"description\": \"MicroService vFirewall Policy\",\"configName\": \"SampleConfigName\",\"templateVersion\": \"OpenSource.version.1\",\"version\": \"1.1.0\",\"priority\": \"1\",\"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"riskType\": \"SampleRiskType\",\"riskLevel\": \"1\",\"guard\": \"False\",\"content\": {\"policyVersion\": \"v0.0.1\",\"threshholds\": [{\"severity\": \"MAJOR\",\"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\": \"300\",\"closedLoopEventStatus\": \"ONSET\",\"closedLoopControlName\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\": \"1.0.2\",\"direction\": \"LESS_OR_EQUAL\"}, {\"severity\": \"CRITICAL\",\"fieldPath\": \"$$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\": \"700\",\"closedLoopEventStatus\": \"ONSET\",\"closedLoopControlName\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\": \"1.0.2\",\"direction\": \"GREATER_OR_EQUAL\"}],\"policyName\": \"DCAE.Config_tca-hi-lo\",\"controlLoopSchemaType\": \"VNF\",\"policyScope\": \"DCAE\",\"eventName\": \"vFirewallBroadcastPackets\"}}", "policyConfigType": "MicroService", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "onapName": "DCAE", "priority": "5" } diff --git a/tests/policy/engine/createpolicy.template b/tests/policy/engine/createpolicy.jinja index 7c693e84..bbb1f1ad 100644 --- a/tests/policy/engine/createpolicy.template +++ b/tests/policy/engine/createpolicy.jinja @@ -1,6 +1,6 @@ { "policyConfigType": "BRMS_PARAM", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "policyDescription": "Create BRMS Param policy", "attributes": { "RULE": { diff --git a/tests/policy/engine/deletepolicy.template b/tests/policy/engine/deletepolicy.jinja index 55510102..73c5badf 100644 --- a/tests/policy/engine/deletepolicy.template +++ b/tests/policy/engine/deletepolicy.jinja @@ -1,5 +1,5 @@ { "pdpGroup": "default", "policyComponent": "PDP", - "policyName": "${policy_name}" + "policyName": "{{policy_name}}" } diff --git a/tests/policy/engine/getconfigpolicy.template b/tests/policy/engine/getconfigpolicy.jinja index 611e65d0..11e8cae6 100644 --- a/tests/policy/engine/getconfigpolicy.template +++ b/tests/policy/engine/getconfigpolicy.jinja @@ -3,6 +3,6 @@ }, "configName" : ".*", "ecompName" : "DCAE", - "policyName" : "${config_policy_name}", + "policyName" : "{{config_policy_name}}", "unique" : false }
\ No newline at end of file diff --git a/tests/policy/engine/getoofpolicy.template b/tests/policy/engine/getoofpolicy.jinja index 37fe0471..3c7dd755 100644 --- a/tests/policy/engine/getoofpolicy.template +++ b/tests/policy/engine/getoofpolicy.jinja @@ -1,6 +1,6 @@ { "configAttributes" : { }, - "policyName" : "${oof_policy_name}", + "policyName" : "{{oof_policy_name}}", "unique" : false } diff --git a/tests/policy/engine/json_templater.robot b/tests/policy/engine/json_templater.robot deleted file mode 100644 index a1cc7e35..00000000 --- a/tests/policy/engine/json_templater.robot +++ /dev/null @@ -1,21 +0,0 @@ -*** Settings *** -Documentation This resource is filling out json string templates and returning the json back -Library RequestsLibrary -Library eteutils/StringTemplater.py -Library OperatingSystem -Resource global_properties.robot - -*** Keywords *** -Fill JSON Template - [Documentation] Runs substitution on template to return a filled in json - [Arguments] ${json} ${arguments} - ${returned_string}= Template String ${json} ${arguments} - ${returned_json}= To Json ${returned_string} - [Return] ${returned_json} - -Fill JSON Template File - [Documentation] Runs substitution on template to return a filled in json - [Arguments] ${json_file} ${arguments} - ${json}= OperatingSystem.Get File ${json_file} - ${returned_json}= Fill JSON Template ${json} ${arguments} - [Return] ${returned_json}
\ No newline at end of file diff --git a/tests/policy/engine/listpolicy.jinja b/tests/policy/engine/listpolicy.jinja new file mode 100644 index 00000000..ce2d3df0 --- /dev/null +++ b/tests/policy/engine/listpolicy.jinja @@ -0,0 +1,3 @@ +{ + "policyName": "{{policy_name}}" +} diff --git a/tests/policy/engine/listpolicy.template b/tests/policy/engine/listpolicy.template deleted file mode 100644 index aef17a23..00000000 --- a/tests/policy/engine/listpolicy.template +++ /dev/null @@ -1,3 +0,0 @@ -{ - "policyName": "${policy_name}" -} diff --git a/tests/policy/engine/multiple_pushpolicy.jinja b/tests/policy/engine/multiple_pushpolicy.jinja new file mode 100644 index 00000000..bda0da08 --- /dev/null +++ b/tests/policy/engine/multiple_pushpolicy.jinja @@ -0,0 +1,5 @@ +{ + "policyName":"{{policy_name1}},{{policy_name2}},{{policy_name3}}", + "policyType":"{{policy_type}}", + "pdpGroup":"default" +} diff --git a/tests/policy/engine/multiple_pushpolicy.template b/tests/policy/engine/multiple_pushpolicy.template deleted file mode 100644 index 5f20b647..00000000 --- a/tests/policy/engine/multiple_pushpolicy.template +++ /dev/null @@ -1,5 +0,0 @@ -{ - "policyName":"${policy_name1},${policy_name2},${policy_name3}", - "policyType":"${policy_type}", - "pdpGroup":"default" -} diff --git a/tests/policy/engine/multiple_unpushpolicy.jinja b/tests/policy/engine/multiple_unpushpolicy.jinja new file mode 100644 index 00000000..55fb8810 --- /dev/null +++ b/tests/policy/engine/multiple_unpushpolicy.jinja @@ -0,0 +1,6 @@ +{ + "policyName": "{{policy_name1}},{{policy_name2}},{{policy_name3}}", + "policyType": "{{policy_type}}", + "policyComponent": "PDP", + "pdpGroup": "default" +} diff --git a/tests/policy/engine/multiple_unpushpolicy.template b/tests/policy/engine/multiple_unpushpolicy.template deleted file mode 100644 index afee7aeb..00000000 --- a/tests/policy/engine/multiple_unpushpolicy.template +++ /dev/null @@ -1,6 +0,0 @@ -{ - "policyName": "${policy_name1},${policy_name2},${policy_name3}", - "policyType": "${policy_type}", - "policyComponent": "PDP", - "pdpGroup": "default" -} diff --git a/tests/policy/engine/oofpolicy_HPA_R1.template b/tests/policy/engine/oofpolicy_HPA_R1.jinja index 3a170b20..6834ceb6 100644 --- a/tests/policy/engine/oofpolicy_HPA_R1.template +++ b/tests/policy/engine/oofpolicy_HPA_R1.jinja @@ -1,6 +1,6 @@ { "configBody": "{\"service\":\"hpaPolicy\",\"policyName\":\"testWorkingTOSCA\",\"description\":\"testing\",\"templateVersion\":\"OpenSource.version.1\",\"version\":\"CSIT\",\"priority\":\"5\",\"riskType\":\"SampleRiskType\",\"riskLevel\":\"3\",\"guard\":\"False\",\"content\":{\"identity\":\"testIdentity\",\"policyScope\":[\"test1\",\"test2\",\"test3\"],\"policyType\":\"hpaPolicy\",\"resources\":\"testResources1\",\"flavorFeatures\":[{\"flavorLabel\":\"testFlavor\",\"flavorProperties\":[{\"score\":\"testScore\",\"featureAttributes\":[{\"unit\":\"testUnit\",\"attribute\":\"teatFeatureAttribute\",\"value\":\"testValue\",\"operator\":\"any\"}],\"mandatory\":\"testMandatory\",\"hpaFeature\":\"testHAPFeature\",\"architecture\":\"testArch\"}]}]}}", "policyConfigType": "Optimization", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "onapName": "OOF" } diff --git a/tests/policy/engine/opspolicy_VDNS.template b/tests/policy/engine/opspolicy_VDNS.template deleted file mode 100644 index 801773d5..00000000 --- a/tests/policy/engine/opspolicy_VDNS.template +++ /dev/null @@ -1,26 +0,0 @@ -{ - "policyConfigType": "BRMS_PARAM", - "policyName": "${policy_name}", - "policyDescription": "Create BRMS Param policy for vLB", - "attributes": { - "MATCHING": { - "controller": "vDNS" - }, - "RULE": { - "templateName": "ControlLoopDemo__closedLoopControlName", - "closedLoopControlName": "CL-DNS-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8", - "policyVersion": "v1.0", - "actor": "MSO", - "aaiNamedQueryUUID": "4ff56a54-9e3f-46b7-a337-07a1d3c6b469", - "aaiURL": "https://aai.api.simpledemo.openecomp.org:8443/aai/search/named-query", - "aaiUsername": "POLICY", - "aaiPassword": "POLICY", - "msoURL": "http://vm1.mso.simpledemo.openecomp.org:8080/ecomp/mso/infra", - "msoUsername": "InfraPortalClient", - "msoPassword": "password11", - "aaiPatternMatch": 0, - "notificationTopic": "POLICY-CL-MGT", - "appcTopic": "APPC-CL" - } - } -}
\ No newline at end of file diff --git a/tests/policy/engine/opspolicy_VDNS_R1.template b/tests/policy/engine/opspolicy_VDNS_R1.jinja index 92627cc2..8b1e6d2d 100644 --- a/tests/policy/engine/opspolicy_VDNS_R1.template +++ b/tests/policy/engine/opspolicy_VDNS_R1.jinja @@ -1,6 +1,6 @@ { "policyConfigType": "BRMS_PARAM", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "policyDescription": "BRMS Param vDNS policy", "policyScope": "com", "attributes": { diff --git a/tests/policy/engine/opspolicy_VFW.template b/tests/policy/engine/opspolicy_VFW.template deleted file mode 100644 index 224f5cf4..00000000 --- a/tests/policy/engine/opspolicy_VFW.template +++ /dev/null @@ -1,24 +0,0 @@ -{ - "policyConfigType": "BRMS_PARAM", - "policyName": "${policy_name}", - "policyDescription": "Create BRMS Param policy for vFW", - "attributes": { - "RULE": { - "templateName": "ControlLoopDemo__closedLoopControlName", - "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a", - "policyVersion": "v1.0", - "aaiNamedQueryUUID": "null", - "aaiPassword": "null", - "aaiURL": "null", - "actor": "APPC", - "appcTopic": "APPC-CL", - "msoPassword": "null", - "msoURL": "null", - "msoUsername": "null", - "aaiUsername": "null", - "notificationTopic": "POLICY-CL-MGT", - "aaiPatternMatch": 1 - } - } -} - diff --git a/tests/policy/engine/opspolicy_VFW_R1.template b/tests/policy/engine/opspolicy_VFW_R1.jinja index a93063f7..0a6977df 100644 --- a/tests/policy/engine/opspolicy_VFW_R1.template +++ b/tests/policy/engine/opspolicy_VFW_R1.jinja @@ -1,6 +1,6 @@ { "policyConfigType": "BRMS_PARAM", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "policyDescription": "BRMS Param vFirewall policy", "policyScope": "com", "attributes": { diff --git a/tests/policy/engine/opspolicy_vCPE.template b/tests/policy/engine/opspolicy_vCPE.template deleted file mode 100644 index c17a1bc6..00000000 --- a/tests/policy/engine/opspolicy_vCPE.template +++ /dev/null @@ -1,16 +0,0 @@ -{ - "policyConfigType": "BRMS_PARAM", - "policyName": "${policy_name}", - "policyDescription": "BRMS Param vCPE policy", - "policyScope": "com", - "attributes": { - "MATCHING": { - "controller" : "amsterdam" - }, - "RULE": { - "templateName": "ClosedLoopControlName", - "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", - "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard" - } - } -}
\ No newline at end of file diff --git a/tests/policy/engine/opspolicy_vCPE_R1.template b/tests/policy/engine/opspolicy_vCPE_R1.jinja index 36695daa..a04a0c1e 100644 --- a/tests/policy/engine/opspolicy_vCPE_R1.template +++ b/tests/policy/engine/opspolicy_vCPE_R1.jinja @@ -1,6 +1,6 @@ { "policyConfigType": "BRMS_PARAM", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "policyDescription": "BRMS Param vCPE policy", "policyScope": "com", "attributes": { diff --git a/tests/policy/engine/opspolicy_vOLTE.template b/tests/policy/engine/opspolicy_vOLTE.template deleted file mode 100644 index e43a3e6f..00000000 --- a/tests/policy/engine/opspolicy_vOLTE.template +++ /dev/null @@ -1,16 +0,0 @@ -{ - "policyConfigType": "BRMS_PARAM", - "policyName": "${policy_name}", - "policyDescription": "BRMS Param VOLTE policy", - "policyScope": "com", - "attributes": { - "MATCHING": { - "controller" : "amsterdam" - }, - "RULE": { - "templateName": "ClosedLoopControlName", - "closedLoopControlName": "ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b", - "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+VFC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard" - } - } -}
\ No newline at end of file diff --git a/tests/policy/engine/opspolicy_vOLTE_R1.template b/tests/policy/engine/opspolicy_vOLTE_R1.jinja index ff5fc42c..67119659 100644 --- a/tests/policy/engine/opspolicy_vOLTE_R1.template +++ b/tests/policy/engine/opspolicy_vOLTE_R1.jinja @@ -1,6 +1,6 @@ { "policyConfigType": "BRMS_PARAM", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "policyDescription": "BRMS Param VOLTE policy", "policyScope": "com", "attributes": { diff --git a/tests/policy/engine/pushpolicy.jinja b/tests/policy/engine/pushpolicy.jinja new file mode 100644 index 00000000..a1faaede --- /dev/null +++ b/tests/policy/engine/pushpolicy.jinja @@ -0,0 +1,5 @@ +{ + "policyName":"{{policy_name}}", + "policyType":"{{policy_type}}", + "pdpGroup":"default" +}
\ No newline at end of file diff --git a/tests/policy/engine/pushpolicy.template b/tests/policy/engine/pushpolicy.template deleted file mode 100644 index 7e236e3d..00000000 --- a/tests/policy/engine/pushpolicy.template +++ /dev/null @@ -1,5 +0,0 @@ -{ - "policyName":"${policy_name}", - "policyType":"${policy_type}", - "pdpGroup":"default" -}
\ No newline at end of file diff --git a/tests/policy/engine/sdncnamingpolicy_vFW.template b/tests/policy/engine/sdncnamingpolicy_vFW.jinja index d9c773d1..a012d59c 100644 --- a/tests/policy/engine/sdncnamingpolicy_vFW.template +++ b/tests/policy/engine/sdncnamingpolicy_vFW.jinja @@ -1,6 +1,6 @@ { "configBody": "{\"service\":\"SDNC-GenerateName\",\"version\":\"CSIT\",\"content\":{\"policy-instance-name\":\"ONAP_VFW_NAMING_TIMESTAMP\",\"naming-models\":[{\"naming-properties\":[{\"property-name\":\"AIC_CLOUD_REGION\"},{\"property-name\":\"nfRole\"},{\"property-name\":\"TIMESTAMP\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNF\",\"nfRole\":\"vFW\",\"naming-recipe\":\"AIC_CLOUD_REGION|DELIMITER|nfRole|DELIMITER|TIMESTAMP\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"ENTIRETY\",\"start-value\":\"001\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}},{\"property-name\":\"NFC_NAMING_CODE\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNFC\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|NFC_NAMING_CODE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"},{\"property-name\":\"VF_MODULE_LABEL\"},{\"property-name\":\"VF_MODULE_TYPE\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"PRECEEDING\",\"start-value\":\"01\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}}],\"naming-type\":\"VF-MODULE\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|VF_MODULE_LABEL|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"}],\"naming-type\":\"KEY\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"protected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"protected_private_net_id\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"unprotected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"unprotected_private_net_id\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"}]}}", - "policyName": "${policy_name}", + "policyName": "{{policy_name}}", "policyConfigType": "MicroService", "onapName": "SDNC", "riskLevel": "4", diff --git a/tests/policy/engine/sdncnamingpolicy_vPG.template b/tests/policy/engine/sdncnamingpolicy_vPG.jinja index 9bae20a1..9aa4f505 100644 --- a/tests/policy/engine/sdncnamingpolicy_vPG.template +++ b/tests/policy/engine/sdncnamingpolicy_vPG.jinja @@ -1,6 +1,6 @@ { - "configBody": "{\"service\":\"SDNC-GenerateName\",\"version\":\"CSIT\",\"content\":{\"policy-instance-name\":\"ONAP_VPG_NAMING_TIMESTAMP\",\"naming-models\":[{\"naming-properties\":[{\"property-name\":\"AIC_CLOUD_REGION\"},{\"property-name\":\"nfRole\"},{\"property-name\":\"TIMESTAMP\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNF\",\"nfRole\":\"vPG\",\"naming-recipe\":\"AIC_CLOUD_REGION|DELIMITER|nfRole|DELIMITER|TIMESTAMP\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"ENTIRETY\",\"start-value\":\"001\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}},{\"property-name\":\"NFC_NAMING_CODE\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNFC\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|NFC_NAMING_CODE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"},{\"property-name\":\"VF_MODULE_LABEL\"},{\"property-name\":\"VF_MODULE_TYPE\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"PRECEEDING\",\"start-value\":\"01\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}}],\"naming-type\":\"VF-MODULE\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|VF_MODULE_LABEL|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"}],\"naming-type\":\"KEY\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"protected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"protected_private_net_id\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"unprotected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"unprotected_private_net_id\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"}]}}", "policyName": "${policy_name}", - "policyName": "${policy_name}", + "configBody": "{\"service\":\"SDNC-GenerateName\",\"version\":\"CSIT\",\"content\":{\"policy-instance-name\":\"ONAP_VPG_NAMING_TIMESTAMP\",\"naming-models\":[{\"naming-properties\":[{\"property-name\":\"AIC_CLOUD_REGION\"},{\"property-name\":\"nfRole\"},{\"property-name\":\"TIMESTAMP\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNF\",\"nfRole\":\"vPG\",\"naming-recipe\":\"AIC_CLOUD_REGION|DELIMITER|nfRole|DELIMITER|TIMESTAMP\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"ENTIRETY\",\"start-value\":\"001\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}},{\"property-name\":\"NFC_NAMING_CODE\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNFC\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|NFC_NAMING_CODE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"},{\"property-name\":\"VF_MODULE_LABEL\"},{\"property-name\":\"VF_MODULE_TYPE\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"PRECEEDING\",\"start-value\":\"01\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}}],\"naming-type\":\"VF-MODULE\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|VF_MODULE_LABEL|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"}],\"naming-type\":\"KEY\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"protected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"protected_private_net_id\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"unprotected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"unprotected_private_net_id\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"}]}}", "policyName": "{{policy_name}}", + "policyName": "{{policy_name}}", "policyConfigType": "MicroService", "onapName": "SDNC", "riskLevel": "4", diff --git a/tests/portal/testsuites/json_templater.robot b/tests/portal/testsuites/json_templater.robot deleted file mode 100644 index 01eba480..00000000 --- a/tests/portal/testsuites/json_templater.robot +++ /dev/null @@ -1,21 +0,0 @@ -*** Settings *** -Documentation This resource is filling out json string templates and returning the json back -Library RequestsLibrary -Library eteutils/StringTemplater.py -Library OperatingSystem -#Resource global_properties.robot - -*** Keywords *** -Fill JSON Template - [Documentation] Runs substitution on template to return a filled in json - [Arguments] ${json} ${arguments} - ${returned_string}= Template String ${json} ${arguments} - ${returned_json}= To Json ${returned_string} - [Return] ${returned_json} - -Fill JSON Template File - [Documentation] Runs substitution on template to return a filled in json - [Arguments] ${json_file} ${arguments} - ${json}= OperatingSystem.Get File ${json_file} - ${returned_json}= Fill JSON Template ${json} ${arguments} - [Return] ${returned_json}
\ No newline at end of file diff --git a/tests/portal/testsuites/test1.robot b/tests/portal/testsuites/test1.robot index d3196f83..93316548 100644 --- a/tests/portal/testsuites/test1.robot +++ b/tests/portal/testsuites/test1.robot @@ -2,15 +2,13 @@ Documentation This is RobotFrame work script Library ExtendedSelenium2Library Library OperatingSystem -Library eteutils/RequestsClientCert.py Library RequestsLibrary Library ONAPLibrary.Utilities +Library ONAPLibrary.Templating Library DateTime Library Collections -Library eteutils/StringTemplater.py Library String Library XvfbRobot -Resource json_templater.robot *** Variables *** ${PORTAL_URL} http://portal.api.simpledemo.onap.org:8989 @@ -63,7 +61,7 @@ ${GLOBAL_BUILD_NUMBER} 0 ${GLOBAL_VM_PRIVATE_KEY} ${EXECDIR}/robot/assets/keys/robot_ssh_private_key.pvt ${jira} jira ${RESOURCE_PATH} ONAPPORTAL/auxapi/ticketevent -${portal_Template} ${CURDIR}/portal.template +${portal_Template} portal.template ${Result} FALSE ${td_id} 0 @@ -1097,7 +1095,8 @@ Enhanced Notification on ONAP Portal Notification on ONAP Portal [Documentation] Create Config portal ${configportal}= Create Dictionary jira_id=${jira} - ${output} = Fill JSON Template File ${portal_Template} ${configportal} + Create Environment portal ${CURDIR} + ${output} = Apply Template portal ${portal_Template} ${configportal} ${post_resp} = Enhanced Notification on ONAP Portal ${RESOURCE_PATH} ${output} Should Be Equal As Strings ${post_resp.status_code} 200 diff --git a/tests/so/vnfm_adapter/vnfm_adapter_test.robot b/tests/so/vnfm_adapter/vnfm_adapter_test.robot new file mode 100644 index 00000000..d0c7034f --- /dev/null +++ b/tests/so/vnfm_adapter/vnfm_adapter_test.robot @@ -0,0 +1,16 @@ +*** Settings *** +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json + +*** Variables *** + + +*** Test Cases *** + +Healthcheck + Create Session refrepo http://${REPO_IP}:9092 + &{headers}= Create Dictionary Authorization=Basic dm5mbTpwYXNzd29yZDEk== Content-Type=application/json + ${resp}= Get Request refrepo /manage/health headers=${headers} + Run Keyword If '${resp.status_code}' == 'UP' log to console \nexecuted with expected result diff --git a/tests/usecases/5G-config-over-netconf/5g_config_over_netconf.robot b/tests/usecases/5G-config-over-netconf/5g_config_over_netconf.robot new file mode 100644 index 00000000..c6e06596 --- /dev/null +++ b/tests/usecases/5G-config-over-netconf/5g_config_over_netconf.robot @@ -0,0 +1,69 @@ +*** Settings *** +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json +Library String + +*** Variables *** +${SDNC_KEYSTORE_CONFIG_PATH} /config/netconf-keystore:keystore +${SDNC_MOUNT_PATH} /config/network-topology:network-topology/topology/topology-netconf/node/netopeer2 +${PNFSIM_MOUNT_PATH} /config/network-topology:network-topology/topology/topology-netconf/node/netopeer2/yang-ext:mount/mynetconf:netconflist +${BP_UPLOAD_URL} /api/v1/execution-service/upload +${BP_PROCESS_URL} /api/v1/execution-service/process +${BP_ARCHIVE_PATH} ${CURDIR}/data/blueprint_archive.zip + + + *** Test Cases *** + Test SDNC Keystore + [Documentation] Checking keystore after SDNC installation + Create Session sdnc http://localhost:8282/restconf + &{headers}= Create Dictionary Authorization=Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ== Content-Type=application/json Accept=application/json + ${resp}= Get Request sdnc ${SDNC_KEYSTORE_CONFIG_PATH} headers=${headers} + Should Be Equal As Strings ${resp.status_code} 200 + ${keystoreContent}= Convert To String ${resp.content} + Log to console ************************* + Log to console ${resp.content} + Log to console ************************* + + Test BP-PROC upload blueprint archive + [Documentation] Upload Blueprint archive to BP processor + Create Session blueprint http://localhost:8000 + ${bp_archive}= Get Binary File ${BP_ARCHIVE_PATH} + &{bp_file}= create Dictionary file ${bp_archive} + &{headers}= Create Dictionary Authorization=Basic Y2NzZGthcHBzOmNjc2RrYXBwcw== + ${resp}= Post Request blueprint ${BP_UPLOAD_URL} files=${bp_file} headers=${headers} + Should Be Equal As Strings ${resp.status_code} 200 + + Test BP-PROC CONFIG-ASSIGN + [Documentation] Send config-assign request to BP-Proc + Create Session blueprint http://localhost:8000 + ${config-assign}= Get File ${CURDIR}${/}data${/}config-assign.json + Log to console ${config-assign} + &{headers}= Create Dictionary Authorization=Basic Y2NzZGthcHBzOmNjc2RrYXBwcw== Content-Type=application/json Accept=application/json + ${resp}= Post Request blueprint ${BP_PROCESS_URL} data=${config-assign} headers=${headers} + Should Be Equal As Strings ${resp.status_code} 200 + + Test BP-PROC CONFIG-DEPLOY + [Documentation] Send config-deploy request to BP-Proc + Create Session blueprint http://localhost:8000 + ${config-deploy}= Get File ${CURDIR}${/}data${/}config-deploy.json + Log to console ${config-deploy} + &{headers}= Create Dictionary Authorization=Basic Y2NzZGthcHBzOmNjc2RrYXBwcw== Content-Type=application/json Accept=application/json + ${resp}= Post Request blueprint ${BP_PROCESS_URL} data=${config-deploy} headers=${headers} + Should Be Equal As Strings ${resp.status_code} 200 + + Test PNF Configuration update + [Documentation] Checking PNF configuration params + Create Session sdnc http://localhost:8282/restconf + ${mount}= Get File ${CURDIR}${/}data${/}mount.xml + Log to console ${mount} + &{headers}= Create Dictionary Authorization=Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ== Content-Type=application/xml Accept=application/xml + ${resp}= Put Request sdnc ${SDNC_MOUNT_PATH} data=${mount} headers=${headers} + Should Be Equal As Strings ${resp.status_code} 201 + Sleep 10 + &{headers1}= Create Dictionary Authorization=Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ== Content-Type=application/json Accept=application/json + ${resp1}= Get Request sdnc ${PNFSIM_MOUNT_PATH} headers=${headers1} + Should Be Equal As Strings ${resp1.status_code} 200 + Log to console ${resp1.content} + Should Contain ${resp1.text} {"netconf-id":30,"netconf-param":3000} diff --git a/tests/usecases/5G-config-over-netconf/_init_.robot b/tests/usecases/5G-config-over-netconf/_init_.robot new file mode 100644 index 00000000..d7353060 --- /dev/null +++ b/tests/usecases/5G-config-over-netconf/_init_.robot @@ -0,0 +1,2 @@ +1 *** Settings *** +2 Documentation SDNC - keystorecheck diff --git a/tests/usecases/5G-config-over-netconf/data/config-assign.json b/tests/usecases/5G-config-over-netconf/data/config-assign.json new file mode 100644 index 00000000..12c3865f --- /dev/null +++ b/tests/usecases/5G-config-over-netconf/data/config-assign.json @@ -0,0 +1,25 @@ +{ + "actionIdentifiers": { + "actionName": "config-assign", + "blueprintName": "configuration_over_restconf", + "blueprintVersion": "1.0.0", + "mode": "sync" + }, + "commonHeader": { + "originatorId": "sdnc", + "requestId": "123456-1000", + "subRequestId": "sub-123456-1000" + }, + "payload": { + "config-assign-request": { + "resolution-key": "RES-KEY reskey", + "config-assign-properties": { + "service-instance-id": "siid_1234", + "pnf-id": "pnf-simulator", + "pnf-ipv4-address": "pnfaddr", + "service-model-uuid": "service-model-uuid", + "pnf-customization-uuid": "pnf-customization-uuid" + } + } + } +} diff --git a/tests/usecases/5G-config-over-netconf/data/config-deploy.json b/tests/usecases/5G-config-over-netconf/data/config-deploy.json new file mode 100644 index 00000000..546fdc78 --- /dev/null +++ b/tests/usecases/5G-config-over-netconf/data/config-deploy.json @@ -0,0 +1,25 @@ +{ + "actionIdentifiers": { + "actionName": "config-deploy", + "blueprintName": "configuration_over_restconf", + "blueprintVersion": "1.0.0", + "mode": "sync" + }, + "commonHeader": { + "originatorId": "sdnc", + "requestId": "123456-1000", + "subRequestId": "sub-123456-1000" + }, + "payload": { + "config-deploy-request": { + "resolution-key": "RES-KEY reskey", + "config-deploy-properties": { + "service-instance-id": "siid_1234", + "pnf-id": "pnf-simulator", + "pnf-ipv4-address": "pnfaddr", + "service-model-uuid": "service-model-uuid", + "pnf-customization-uuid": "pnf-customization-uuid" + } + } + } +} diff --git a/tests/usecases/5G-config-over-netconf/data/mount.xml b/tests/usecases/5G-config-over-netconf/data/mount.xml new file mode 100644 index 00000000..108369bc --- /dev/null +++ b/tests/usecases/5G-config-over-netconf/data/mount.xml @@ -0,0 +1,14 @@ +<node xmlns="urn:TBD:params:xml:ns:yang:network-topology"> + <node-id>netopeer2</node-id> + <key-based xmlns="urn:opendaylight:netconf-node-topology"> + <key-id xmlns="urn:opendaylight:netconf-node-topology">ODL_private_key_0</key-id> + <username xmlns="urn:opendaylight:netconf-node-topology">netconf</username> + </key-based> + <host xmlns="urn:opendaylight:netconf-node-topology">pnfaddr</host> + <port xmlns="urn:opendaylight:netconf-node-topology">6513</port> + <tcp-only xmlns="urn:opendaylight:netconf-node-topology">false</tcp-only> + <protocol xmlns="urn:opendaylight:netconf-node-topology"> + <name xmlns="urn:opendaylight:netconf-node-topology">TLS</name> + </protocol> + <max-connection-attempts xmlns="urn:opendaylight:netconf-node-topology">2</max-connection-attempts> +</node> diff --git a/tests/vfc/nfvo-catalog/IndividualNSDescriptor.robot b/tests/vfc/nfvo-catalog/IndividualNSDescriptor.robot new file mode 100644 index 00000000..4c1e5b7d --- /dev/null +++ b/tests/vfc/nfvo-catalog/IndividualNSDescriptor.robot @@ -0,0 +1,66 @@ +*** Settings *** +Resource ../../common.robot +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json +Library HttpLibrary.HTTP + +*** Variables *** +${catalog_port} 8806 +${ns_descriptors_url} /api/nsd/v1/ns_descriptors + +#json files +${request_json} ${SCRIPTS}/../tests/vfc/nfvo-catalog/jsons/CreateNsdInfoRequest.json + +#global variables +${nsdId} + +*** Test Cases *** +Create new Network Service Descriptor Resource + Log Create new Network Service Descriptor Resource + [Documentation] The objective is to test the creation of a new Create new Network Service Descriptor resource + ${json_value}= json_from_file ${request_json} + ${json_string}= string_from_json ${json_value} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + Set Request Body ${json_string} + ${resp}= Post Request web_session ${ns_descriptors_url} ${json_string} + Should Be Equal As Strings 201 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings CREATED ${response_json['nsdOnboardingState']} + ${nsdId}= Convert To String ${response_json['id']} + Set Global Variable ${nsdId} + +GET Individual Network Service Descriptor Information + Log GET Individual Network Service Descriptor Information + [Documentation] The objective is to test the retrieval of an individual Network Service Descriptor information + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Get Request web_session ${ns_descriptors_url}/${nsdId} + Should Be Equal As Strings 200 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings ${nsdId} ${response_json['id']} + +POST Individual Network Service Descriptor - Method not implemented + Log POST Individual Network Service Descriptor - Method not implemented + [Documentation] The objective is to test that POST method is not allowed to create a new Network Service Descriptor + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Post Request web_session ${ns_descriptors_url}/${nsdId} + Should Be Equal As Strings 405 ${resp.status_code} + +PUT Individual Network Service Descriptor - Method not implemented + Log PUT Individual Network Service Descriptor - Method not implemented + [Documentation] The objective is to test that PUT method is not allowed to modify a new Network Service Descriptor + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Put Request web_session ${ns_descriptors_url}/${nsdId} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE Network Service Descriptor + Log DELETE Network Service Descriptor + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${ns_descriptors_url}/${nsdId} + Should Be Equal As Strings 204 ${resp.status_code} diff --git a/tests/vfc/nfvo-catalog/IndividualSubscription.robot b/tests/vfc/nfvo-catalog/IndividualSubscription.robot new file mode 100644 index 00000000..342ce3d1 --- /dev/null +++ b/tests/vfc/nfvo-catalog/IndividualSubscription.robot @@ -0,0 +1,80 @@ +*** Settings *** +Resource ../../common.robot +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json +Library HttpLibrary.HTTP + +*** Variables *** +@{return_ok_list}= 200 201 202 204 +${catalog_port} 8806 +${subscriptions_url} /api/vnfpkgm/v1/subscriptions + +#json files +${vnf_subscription_json} ${SCRIPTS}/../tests/vfc/nfvo-catalog/jsons/vnf_subscription.json + +#global variables +${subscriptionId} + +*** Test Cases *** +Create new VNF Package subscription for pre-condition + Log Create new VNF Package subscription for pre-condition + ${json_value}= json_from_file ${vnf_subscription_json} + ${json_string}= string_from_json ${json_value} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + Set Request Body ${json_string} + ${resp}= Post Request web_session ${subscriptions_url} ${json_string} + ${responese_code}= Convert To String ${resp.status_code} + List Should Contain Value ${return_ok_list} ${responese_code} + ${response_json} json.loads ${resp.content} + ${callback_uri}= Convert To String ${response_json['callbackUri']} + Should Be Equal ${callback_uri} http://127.0.0.1:${catalog_port}/api/catalog/v1/callback_sample + ${subscriptionId}= Convert To String ${response_json['id']} + Set Global Variable ${subscriptionId} + +GET Individual VNF Package Subscription + Log GET Individual VNF Package Subscription + [Documentation] The objective is to test the retrieval of individual VNF package subscription + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Get Request web_session ${subscriptions_url}/${subscriptionId} + Should Be Equal As Strings 200 ${resp.status_code} + ${response_json} json.loads ${resp.content} + ${callback_uri}= Convert To String ${response_json['callbackUri']} + Should Be Equal ${callback_uri} http://127.0.0.1:${catalog_port}/api/catalog/v1/callback_sample + Should Be Equal As Strings ${subscriptionId} ${response_json['id']} + +POST Individual VNF Package Subscription - Method not implemented + Log POST Individual VNF Package Subscription - Method not implemented + [Documentation] The objective is to test that POST method is not allowed to create a new VNF Package Subscription + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Post Request web_session ${subscriptions_url}/${subscriptionId} + Should Be Equal As Strings 405 ${resp.status_code} + +PUT Individual VNF Package Subscription - Method not implemented + Log PUT Individual VNF Package Subscription - Method not implemented + [Documentation] The objective is to test that PUT method is not allowed to update an existing VNF Package subscription + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Put Request web_session ${subscriptions_url}/${subscriptionId} + Should Be Equal As Strings 405 ${resp.status_code} + +PATCH Individual VNF Package Subscription - Method not implemented + Log PATCH Individual VNF Package Subscription - Method not implemented + [Documentation] The objective is to test that PATCH method is not allowed to modify an existing VNF Package subscription + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Patch Request web_session ${subscriptions_url}/${subscriptionId} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE Individual VNF Package Subscription + Log DELETE Individual VNF Package Subscription + [Documentation] The objective is to test the deletion of an individual VNF package subscription + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${subscriptions_url}/${subscriptionId} + ${responese_code}= Convert To String ${resp.status_code} + List Should Contain Value ${return_ok_list} ${responese_code} diff --git a/tests/vfc/nfvo-catalog/IndividualVNFPackage.robot b/tests/vfc/nfvo-catalog/IndividualVNFPackage.robot new file mode 100644 index 00000000..4c35a39e --- /dev/null +++ b/tests/vfc/nfvo-catalog/IndividualVNFPackage.robot @@ -0,0 +1,68 @@ +*** Settings *** +Resource ../../common.robot +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json +Library HttpLibrary.HTTP + +*** Variables *** +${catalog_port} 8806 +${vnf_packages_url} /api/vnfpkgm/v1/vnf_packages + +#json files +${request_json} ${SCRIPTS}/../tests/vfc/nfvo-catalog/jsons/CreateVnfPkgInfoRequest.json + + +#global variables +${packageId} + +*** Test Cases *** +Create new VNF Package Resource for pre-condition + Log Create new VNF Package Resource for pre-condition + ${json_value}= json_from_file ${request_json} + ${json_string}= string_from_json ${json_value} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + Set Request Body ${json_string} + ${resp}= Post Request web_session ${vnf_packages_url} ${json_string} + Should Be Equal As Strings 201 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings CREATED ${response_json['onboardingState']} + ${packageId}= Convert To String ${response_json['id']} + Set Global Variable ${packageId} + +GET Individual VNF Package + Log GET Individual VNF Package + [Documentation] The objective is to test the retrieval of an individual VNF package information + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Get Request web_session ${vnf_packages_url}/${packageId} + Should Be Equal As Strings 200 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings ${packageId} ${response_json['id']} + Should Be Equal As Strings DISABLED ${response_json['operationalState']} + +PUT Individual VNF Package - Method not implemented + Log PUT Individual VNF Package - Method not implemented + [Documentation] The objective is to test that PUT method is not allowed to modify a VNF Package + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Put Request web_session ${vnf_packages_url}/${packageId} + Should Be Equal As Strings 405 ${resp.status_code} + +POST Individual VNF Package - Method not implemented + Log POST Individual VNF Package - Method not implemented + [Documentation] The objective is to test that POST method is not allowed to create new VNF Package + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Post Request web_session ${vnf_packages_url}/${packageId} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE Individual VNF Package + Log DELETE Individual VNF Package + [Documentation] The objective is to test the deletion of an individual VNF Package + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${vnf_packages_url}/${packageId} + Should Be Equal As Strings 204 ${resp.status_code} diff --git a/tests/vfc/nfvo-catalog/NSDescriptors.robot b/tests/vfc/nfvo-catalog/NSDescriptors.robot new file mode 100644 index 00000000..a76f7869 --- /dev/null +++ b/tests/vfc/nfvo-catalog/NSDescriptors.robot @@ -0,0 +1,74 @@ +*** Settings *** +Resource ../../common.robot +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json +Library HttpLibrary.HTTP + +*** Variables *** +${catalog_port} 8806 +${ns_descriptors_url} /api/nsd/v1/ns_descriptors + +#json files +${request_json} ${SCRIPTS}/../tests/vfc/nfvo-catalog/jsons/CreateNsdInfoRequest.json + +#global variables +${nsdId} + +*** Test Cases *** +Create new Network Service Descriptor Resource + Log Create new Network Service Descriptor Resource + [Documentation] The objective is to test the creation of a new Create new Network Service Descriptor resource + ${json_value}= json_from_file ${request_json} + ${json_string}= string_from_json ${json_value} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + Set Request Body ${json_string} + ${resp}= Post Request web_session ${ns_descriptors_url} ${json_string} + Should Be Equal As Strings 201 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings CREATED ${response_json['nsdOnboardingState']} + ${nsdId}= Convert To String ${response_json['id']} + Set Global Variable ${nsdId} + +GET all Network Service Descriptors Information + Log GET all Network Service Descriptors Information + [Documentation] The objective is to test the retrieval of all the Network Service Descriptors information + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Get Request web_session ${ns_descriptors_url} + Should Be Equal As Strings 200 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings ${nsdId} ${response_json[0]['id']} + +PUT all Network Service Descriptors - Method not implemented + Log PUT all Network Service Descriptors - Method not implemented + [Documentation] The objective is to test that PUT method is not allowed to modify existing Network Service Descriptors + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Put Request web_session ${ns_descriptors_url} + Should Be Equal As Strings 405 ${resp.status_code} + +PATCH all Network Service Descriptors - Method not implemented + Log PATCH all Network Service Descriptors - Method not implemented + [Documentation] The objective is to test that PATCH method is not allowed to update existing Network Service Descriptors + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Patch Request web_session ${ns_descriptors_url} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE all Network Service Descriptors - Method not implemented + Log DELETE all Network Service Descriptors - Method not implemented + [Documentation] The objective is to test that DELETE method is not allowed to delete existing Network Service Descriptors + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${ns_descriptors_url} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE Network Service Descriptor + Log DELETE Network Service Descriptor + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${ns_descriptors_url}/${nsdId} + Should Be Equal As Strings 204 ${resp.status_code} diff --git a/tests/vfc/nfvo-catalog/PNFDescriptors.robot b/tests/vfc/nfvo-catalog/PNFDescriptors.robot new file mode 100644 index 00000000..4c5e79e9 --- /dev/null +++ b/tests/vfc/nfvo-catalog/PNFDescriptors.robot @@ -0,0 +1,74 @@ +*** Settings *** +Resource ../../common.robot +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json +Library HttpLibrary.HTTP + +*** Variables *** +${catalog_port} 8806 +${pnf_descriptors_url} /api/nsd/v1/pnf_descriptors + +#json files +${request_json} ${SCRIPTS}/../tests/vfc/nfvo-catalog/jsons/CreatePnfdInfoRequest.json + +#global variables +${pnfdId} + +*** Test Cases *** +Create new PNF Descriptor Resource + Log Create new PNF Descriptor Resource + [Documentation] The objective is to test the creation of a new Create new PNF Descriptor resource + ${json_value}= json_from_file ${request_json} + ${json_string}= string_from_json ${json_value} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + Set Request Body ${json_string} + ${resp}= Post Request web_session ${pnf_descriptors_url} ${json_string} + Should Be Equal As Strings 201 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings CREATED ${response_json['pnfdOnboardingState']} + ${pnfdId}= Convert To String ${response_json['id']} + Set Global Variable ${pnfdId} + +GET all PNF Descriptors Information + Log GET all PNF Descriptors Information + [Documentation] The objective is to test the retrieval of all the PNF Descriptors information + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Get Request web_session ${pnf_descriptors_url} + Should Be Equal As Strings 200 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings ${pnfdId} ${response_json[0]['id']} + +PUT all PNF Descriptors - Method not implemented + Log PUT all PNF Descriptors - Method not implemented + [Documentation] The objective is to test that PUT method is not allowed to modify existing PNF Descriptors + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Put Request web_session ${pnf_descriptors_url} + Should Be Equal As Strings 405 ${resp.status_code} + +PATCH all PNF Descriptors - Method not implemented + Log PATCH all PNF Descriptors - Method not implemented + [Documentation] The objective is to test that PATCH method is not allowed to update existing PNF Descriptors + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Patch Request web_session ${pnf_descriptors_url} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE all PNF Descriptors - Method not implemented + Log DELETE all PNF Descriptors - Method not implemented + [Documentation] The objective is to test that DELETE method is not allowed to delete existing PNF Descriptors + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${pnf_descriptors_url} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE PNF Descriptor + Log DELETE PNF Descriptor + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${pnf_descriptors_url}/${pnfdId} + Should Be Equal As Strings 204 ${resp.status_code} diff --git a/tests/vfc/nfvo-catalog/Subscriptions.robot b/tests/vfc/nfvo-catalog/Subscriptions.robot new file mode 100644 index 00000000..a1d00221 --- /dev/null +++ b/tests/vfc/nfvo-catalog/Subscriptions.robot @@ -0,0 +1,87 @@ +*** Settings *** +Resource ../../common.robot +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json +Library HttpLibrary.HTTP + +*** Variables *** +@{return_ok_list}= 200 201 202 204 +${catalog_port} 8806 +${subscriptions_url} /api/vnfpkgm/v1/subscriptions + +#json files +${vnf_subscription_json} ${SCRIPTS}/../tests/vfc/nfvo-catalog/jsons/vnf_subscription.json + +#global variables +${subscriptionId} + +*** Test Cases *** +Create new VNF Package subscription + Log Create new VNF Package subscription + [Documentation] The objective is to test the creation of a new VNF package subscription + ${json_value}= json_from_file ${vnf_subscription_json} + ${json_string}= string_from_json ${json_value} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + Set Request Body ${json_string} + ${resp}= Post Request web_session ${subscriptions_url} ${json_string} + ${responese_code}= Convert To String ${resp.status_code} + List Should Contain Value ${return_ok_list} ${responese_code} + ${response_json} json.loads ${resp.content} + ${callback_uri}= Convert To String ${response_json['callbackUri']} + Should Be Equal ${callback_uri} http://127.0.0.1:${catalog_port}/api/catalog/v1/callback_sample + ${subscriptionId}= Convert To String ${response_json['id']} + Set Global Variable ${subscriptionId} + +Create duplicated VNF Package subscription + Log Create duplicated VNF Package subscription + [Documentation] The objective is to test the attempt of a creation of a duplicated VNF package subscription + ${json_value}= json_from_file ${vnf_subscription_json} + ${json_string}= string_from_json ${json_value} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + Set Request Body ${json_string} + ${resp}= Post Request web_session ${subscriptions_url} ${json_string} + Should Be Equal As Strings 303 ${resp.status_code} + +GET All VNF Package Subscriptions + Log GET All VNF Package Subscriptions + [Documentation] The objective is to test the retrieval of all VNF package subscriptions + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Get Request web_session ${subscriptions_url} + Should Be Equal As Strings 200 ${resp.status_code} + +PUT VNF Package Subscriptions - Method not implemented + Log PUT VNF Package Subscriptions - Method not implemented + [Documentation] The objective is to test that PUT method is not allowed to modify VNF package subscriptions + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Put Request web_session ${subscriptions_url} + Should Be Equal As Strings 405 ${resp.status_code} + +PATCH VNF Package Subscriptions - Method not implemented + Log PATCH VNF Package Subscriptions - Method not implemented + [Documentation] The objective is to test that PATCH method is not allowed to update VNF package subscriptions + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Patch Request web_session ${subscriptions_url} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE VNF Package Subscriptions - Method not implemented + Log DELETE VNF Package Subscriptions - Method not implemented + [Documentation] The objective is to test that DELETE method is not allowed to delete VNF package subscriptions + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${subscriptions_url} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE VNF Package Subscription + Log DELETE VNF Package Subscription + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${subscriptions_url}/${subscriptionId} + ${responese_code}= Convert To String ${resp.status_code} + List Should Contain Value ${return_ok_list} ${responese_code} diff --git a/tests/vfc/nfvo-catalog/VNFPackageContent.robot b/tests/vfc/nfvo-catalog/VNFPackageContent.robot new file mode 100644 index 00000000..7c794b22 --- /dev/null +++ b/tests/vfc/nfvo-catalog/VNFPackageContent.robot @@ -0,0 +1,97 @@ +*** Settings *** +Resource ../../common.robot +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json +Library HttpLibrary.HTTP + +*** Variables *** +${catalog_port} 8806 +${vnf_packages_url} /api/vnfpkgm/v1/vnf_packages + +#json files +${request_json} ${SCRIPTS}/../tests/vfc/nfvo-catalog/jsons/CreateVnfPkgInfoRequest.json +${request_csar} ${SCRIPTS}/../tests/vfc/nfvo-catalog/files/vgw.csar + + +#global variables +${packageId} + +*** Test Cases *** +Create new VNF Package Resource for pre-condition + Log Create new VNF Package Resource for pre-condition + ${json_value}= json_from_file ${request_json} + ${json_string}= string_from_json ${json_value} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + Set Request Body ${json_string} + ${resp}= Post Request web_session ${vnf_packages_url} ${json_string} + Should Be Equal As Strings 201 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings CREATED ${response_json['onboardingState']} + ${packageId}= Convert To String ${response_json['id']} + Set Global Variable ${packageId} + +Upload VNF Package Content + Log Upload VNF Package Content + [Documentation] The objective is to test the upload of a VNF Package Content in Zip format. + Create Session web_session http://${CATALOG_IP}:${catalog_port} + ${headers} Create Dictionary Accept=application/json + &{fileParts}= Create Dictionary + Create Multi Part ${fileParts} file ${request_csar} + Log ${fileParts} + ${resp}= Put Request web_session ${vnf_packages_url}/${packageId}/package_content files=${fileParts} headers=${headers} + Log ${resp.status_code} + Should Be Equal As Strings 202 ${resp.status_code} + Log Received 202 Accepted as expected + +GET Individual VNF Package Content + Log GET Individual VNF Package Content + [Documentation] The objective is to test the retrieval of an individual VNF package content + ${headers} Create Dictionary Content-Type=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Get Request web_session ${vnf_packages_url}/${packageId}/package_content + Should Be Equal As Strings 200 ${resp.status_code} + +Check Postcondition + Log Check Postcondition + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Get Request web_session ${vnf_packages_url}/${packageId} + Should Be Equal As Strings 200 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings ONBOARDED ${response_json['onboardingState']} + +POST Individual VNF Package Content - Method not implemented + Log POST Individual VNF Package Content - Method not implemented + [Documentation] The objective is to test that POST method is not allowed to create new VNF Package content + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Post Request web_session ${vnf_packages_url}/${packageId}/package_content + Should Be Equal As Strings 405 ${resp.status_code} + +PATCH Individual VNF Package Content - Method not implemented + Log PATCH Individual VNF Package Content - Method not implemented + [Documentation] The objective is to test that PATCH method is not allowed to update a VNF Package content + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Patch Request web_session ${vnf_packages_url}/${packageId}/package_content + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE Individual VNF Package Content - Method not implemented + Log DELETE Individual VNF Package Content - Method not implemented + [Documentation] The objective is to test that DELETE method is not allowed to delete a VNF Package content + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${vnf_packages_url}/${packageId}/package_content + Should Be Equal As Strings 405 ${resp.status_code} + +*** Keywords *** +Create Multi Part + [Arguments] ${addTo} ${partName} ${filePath} ${contentType}=${None} ${content}=${None} + ${fileData}= Run Keyword If '''${content}''' != '''${None}''' Set Variable ${content} + ... ELSE Get Binary File ${filePath} + ${fileDir} ${fileName}= Split Path ${filePath} + ${partData}= Create List ${fileName} ${fileData} ${contentType} + Set To Dictionary ${addTo} ${partName}=${partData}
\ No newline at end of file diff --git a/tests/vfc/nfvo-catalog/VNFPackages.robot b/tests/vfc/nfvo-catalog/VNFPackages.robot new file mode 100644 index 00000000..52e50045 --- /dev/null +++ b/tests/vfc/nfvo-catalog/VNFPackages.robot @@ -0,0 +1,74 @@ +*** Settings *** +Resource ../../common.robot +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json +Library HttpLibrary.HTTP + +*** Variables *** +${catalog_port} 8806 +${vnf_packages_url} /api/vnfpkgm/v1/vnf_packages + +#json files +${request_json} ${SCRIPTS}/../tests/vfc/nfvo-catalog/jsons/CreateVnfPkgInfoRequest.json + +#global variables +${packageId} + +*** Test Cases *** +Create new VNF Package Resource + Log Create new VNF Package Resource + [Documentation] The objective is to test the creation of a new VNF Package Resource + ${json_value}= json_from_file ${request_json} + ${json_string}= string_from_json ${json_value} + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + Set Request Body ${json_string} + ${resp}= Post Request web_session ${vnf_packages_url} ${json_string} + Should Be Equal As Strings 201 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings CREATED ${response_json['onboardingState']} + ${packageId}= Convert To String ${response_json['id']} + Set Global Variable ${packageId} + +GET all VNF Packages + Log GET all VNF Packages + [Documentation] The objective is to test the retrieval of all the available VNF packages information + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Get Request web_session ${vnf_packages_url} + Should Be Equal As Strings 200 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings ${packageId} ${response_json[0]['id']} + +PUT all VNF Packages - Method not implemented + Log PUT all VNF Packages - Method not implemented + [Documentation] The objective is to test that PUT method is not allowed to modify existing VNF Packages + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Put Request web_session ${vnf_packages_url} + Should Be Equal As Strings 405 ${resp.status_code} + +PATCH all VNF Packages - Method not implemented + Log PATCH all VNF Packages - Method not implemented + [Documentation] The objective is to test that PATCH method is not allowed to update existing VNF Packages + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Patch Request web_session ${vnf_packages_url} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE all VNF Packages - Method not implemented + Log DELETE all VNF Packages - Method not implemented + [Documentation] The objective is to test that DELETE method is not allowed to delete existing VNF Packages + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${vnf_packages_url} + Should Be Equal As Strings 405 ${resp.status_code} + +DELETE VNF Package + Log DELETE VNF Package + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} + ${resp}= Delete Request web_session ${vnf_packages_url}/${packageId} + Should Be Equal As Strings 204 ${resp.status_code} diff --git a/tests/vfc/nfvo-catalog/files/vgw.csar b/tests/vfc/nfvo-catalog/files/vgw.csar Binary files differnew file mode 100644 index 00000000..79e0d201 --- /dev/null +++ b/tests/vfc/nfvo-catalog/files/vgw.csar diff --git a/tests/vfc/nfvo-catalog/jsons/CreateNsdInfoRequest.json b/tests/vfc/nfvo-catalog/jsons/CreateNsdInfoRequest.json new file mode 100644 index 00000000..b3086d7f --- /dev/null +++ b/tests/vfc/nfvo-catalog/jsons/CreateNsdInfoRequest.json @@ -0,0 +1,3 @@ +{ + "userDefinedData": {} +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-catalog/jsons/CreatePnfdInfoRequest.json b/tests/vfc/nfvo-catalog/jsons/CreatePnfdInfoRequest.json new file mode 100644 index 00000000..b3086d7f --- /dev/null +++ b/tests/vfc/nfvo-catalog/jsons/CreatePnfdInfoRequest.json @@ -0,0 +1,3 @@ +{ + "userDefinedData": {} +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-catalog/jsons/CreateVnfPkgInfoRequest.json b/tests/vfc/nfvo-catalog/jsons/CreateVnfPkgInfoRequest.json new file mode 100644 index 00000000..87845130 --- /dev/null +++ b/tests/vfc/nfvo-catalog/jsons/CreateVnfPkgInfoRequest.json @@ -0,0 +1,3 @@ +{ + "userDefinedData": {} +}
\ No newline at end of file diff --git a/tests/vfc/nfvo-catalog/test.robot b/tests/vfc/nfvo-catalog/test.robot index af7b8874..1390e9fb 100644 --- a/tests/vfc/nfvo-catalog/test.robot +++ b/tests/vfc/nfvo-catalog/test.robot @@ -7,60 +7,39 @@ Library json Library HttpLibrary.HTTP *** Variables *** -@{return_ok_list}= 200 201 202 204 ${catalog_port} 8806 -${queryswagger_url} /api/catalog/v1/swagger.json -${queryVNFPackage_url} /api/catalog/v1/vnfpackages -${queryNSPackages_url} /api/catalog/v1/nspackages -${healthcheck_url} /api/catalog/v1/health_check -${create_subs_url} /api/vnfpkgm/v1/subscriptions -${delete_subs_url} /api/vnfpkgm/v1/subscriptions - -#json files -${vnf_subscription_json} ${SCRIPTS}/../tests/vfc/nfvo-catalog/jsons/vnf_subscription.json - -#global variables -${subscriptionId} +${cataloghealthcheck_url} /api/catalog/v1/health_check +${vnfpkgmhealthcheck_url} /api/vnfpkgm/v1/health_check +${nsdhealthcheck_url} /api/nsd/v1/health_check +${parserhealthcheck_url} /api/parser/v1/health_check *** Test Cases *** -GetVNFPackages - ${headers} Create Dictionary Content-Type=application/json Accept=application/json - Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} - ${resp}= Get Request web_session ${queryVNFPackage_url} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - -CatalogHealthCheckTest +Check Health Catalog + Log Check Health Catalog [Documentation] check health for catalog by MSB - ${headers} Create Dictionary Content-Type=application/json Accept=application/json - Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} - ${resp}= Get Request web_session ${healthcheck_url} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - ${response_json} json.loads ${resp.content} - ${health_status}= Convert To String ${response_json['status']} - Should Be Equal ${health_status} active + Check Health ${cataloghealthcheck_url} -CreateVnfSubscriptionTest - [Documentation] Create Vnf Subscription function test - ${json_value}= json_from_file ${vnf_subscription_json} - ${json_string}= string_from_json ${json_value} - ${headers} Create Dictionary Content-Type=application/json Accept=application/json - Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} - Set Request Body ${json_string} - ${resp}= Post Request web_session ${create_subs_url} ${json_string} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} - ${response_json} json.loads ${resp.content} - ${callback_uri}= Convert To String ${response_json['callbackUri']} - Should Be Equal ${callback_uri} http://127.0.0.1:${catalog_port}/api/catalog/v1/callback_sample - ${subscriptionId}= Convert To String ${response_json['id']} - Set Global Variable ${subscriptionId} +Check Health Vnfpkgm + Log Check Health Vnfpkgm + [Documentation] check health for Vnfpkgm by MSB + Check Health ${vnfpkgmhealthcheck_url} + +Check Health Nsd + Log Check Health Nsd + [Documentation] check health for Nsd by MSB + Check Health ${nsdhealthcheck_url} + +Check Health Parser + Log Check Health Parser + [Documentation] check health for Parser by MSB + Check Health ${parserhealthcheck_url} -DeleteVnfSubscriptionTest - [Documentation] Delete Vnf Subscription function test +*** Keywords *** +Check Health + [Arguments] ${url} ${headers} Create Dictionary Content-Type=application/json Accept=application/json Create Session web_session http://${CATALOG_IP}:${catalog_port} headers=${headers} - ${resp}= Delete Request web_session ${delete_subs_url}/${subscriptionId} - ${responese_code}= Convert To String ${resp.status_code} - List Should Contain Value ${return_ok_list} ${responese_code} + ${resp}= Get Request web_session ${url} + Should Be Equal As Strings 200 ${resp.status_code} + ${response_json} json.loads ${resp.content} + Should Be Equal As Strings active ${response_json['status']} |