aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plans/policy/apex-pdp/setup.sh15
-rw-r--r--plans/policy/api/setup.sh10
-rw-r--r--plans/policy/distribution/setup.sh22
-rwxr-xr-xplans/policy/drools-applications/setup.sh8
-rw-r--r--plans/policy/pap/setup.sh11
-rw-r--r--plans/policy/xacml-pdp/setup.sh17
-rw-r--r--plans/so/integration-etsi-testing/.gitignore20
-rw-r--r--plans/so/integration-etsi-testing/docker-compose.yml34
-rwxr-xr-xplans/so/integration-etsi-testing/settings.xml171
-rwxr-xr-xplans/so/integration-etsi-testing/setup.sh113
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/package/docker/pom.xml100
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/Dockerfile.so-simulator-base-image31
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/configs/logging/logback-spring.xml46
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/scripts/start-app.sh56
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/package/pom.xml18
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/pom.xml64
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/sdc-simulator/pom.xml36
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/Constant.java26
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/SdcSimulatorApplication.java35
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/SdcSimulatorController.java49
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/resources/application.yaml5
-rw-r--r--plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/test/java/org/onap/so/sdc/simulator/SdcSimulatorControllerTest.java66
-rwxr-xr-xplans/so/integration-etsi-testing/teardown.sh22
-rw-r--r--plans/so/integration-etsi-testing/testplan.txt2
-rw-r--r--plans/so/vnfm_adapter/docker-compose.yml18
-rw-r--r--plans/so/vnfm_adapter/setup.sh31
-rw-r--r--plans/so/vnfm_adapter/teardown.sh22
-rw-r--r--plans/so/vnfm_adapter/testplan.txt3
-rwxr-xr-xplans/usecases/5G-config-over-netconf/certs/certs.properties2
-rw-r--r--plans/usecases/5G-config-over-netconf/setup.sh205
-rw-r--r--plans/usecases/5G-config-over-netconf/teardown.sh33
-rw-r--r--plans/usecases/5G-config-over-netconf/testplan.txt4
-rwxr-xr-xplans/vfc-gvnfm-vnfres/sanity-check/setup.sh2
-rw-r--r--plans/vfc-nfvo-catalog/sanity-check/testplan.txt8
-rw-r--r--plans/vfc-nfvo-driver-vnfm-gvnfm/sanity-check/setup.sh2
-rw-r--r--scripts/policy/config/policy-csit.conf2
-rw-r--r--scripts/policy/docker-compose-api.yml6
-rw-r--r--scripts/policy/docker-compose-drools-apps.yml8
-rw-r--r--scripts/policy/docker-compose-pap.yml8
-rw-r--r--scripts/policy/policy-apex-pdp/docker-compose-apex.yml10
-rw-r--r--scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml8
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/aai-entry.json38
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/expected-logical-link.json13
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/expected-pnf-ready-event.json8
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/logical-link.json20
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-different-logical-link/ves-event.json40
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/aai-entry.json38
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-logical-link.json13
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-pnf-ready-event.json8
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/logical-link.json20
-rw-r--r--tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/ves-event.json40
-rw-r--r--tests/dcaegen2/prh-testcases/assets/re-registration/expected-pnf-update-event.json3
-rw-r--r--tests/dcaegen2/prh-testcases/assets/re-registration/logical-link.json (renamed from tests/dcaegen2/prh-testcases/assets/re-registration/expected-logical-link.json)10
-rw-r--r--tests/dcaegen2/prh-testcases/assets/re-registration/ves-event.json3
-rw-r--r--tests/dcaegen2/prh-testcases/assets/service-instance-non-active/aai-entry-service-instance.json25
-rw-r--r--tests/dcaegen2/prh-testcases/assets/service-instance-non-active/aai-entry.json52
-rw-r--r--tests/dcaegen2/prh-testcases/assets/service-instance-non-active/expected-pnf-ready-event.json5
-rw-r--r--tests/dcaegen2/prh-testcases/assets/service-instance-non-active/ves-event.json37
-rw-r--r--tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/aai-entry.json23
-rw-r--r--tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/expected-pnf-ready-event.json5
-rw-r--r--tests/dcaegen2/prh-testcases/assets/ves-event-with-missing-IP-addresses/ves-event.json35
-rw-r--r--tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/aai-entry.json23
-rw-r--r--tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/expected-pnf-ready-event.json5
-rw-r--r--tests/dcaegen2/prh-testcases/assets/ves-event-with-only-IP-addresses/ves-event.json28
-rw-r--r--tests/dcaegen2/prh-testcases/prh_config_tests.robot3
-rw-r--r--tests/dcaegen2/prh-testcases/prh_tests.robot29
-rw-r--r--tests/dcaegen2/prh-testcases/prh_tests_with_no_auth.robot20
-rw-r--r--tests/dcaegen2/prh-testcases/resources/docker-compose.yml129
-rw-r--r--tests/dcaegen2/prh-testcases/resources/prh_config_library.robot28
-rw-r--r--tests/dcaegen2/prh-testcases/resources/prh_configs/dcae-ves-collector-config.json54
-rw-r--r--tests/dcaegen2/prh-testcases/resources/prh_configs/prh-config.json58
-rw-r--r--tests/dcaegen2/prh-testcases/resources/prh_configs/prh-no-auth-config.json58
-rw-r--r--tests/dcaegen2/prh-testcases/resources/prh_library.robot47
-rw-r--r--tests/dcaegen2/prh-testcases/resources/simulator/AAI.py47
-rw-r--r--tests/dcaegen2/prh-testcases/resources/simulator/DMaaP.py1
-rw-r--r--tests/policy/apex-pdp/data/onap.policies.controlloop.operational.Apex.tosca.json6685
-rw-r--r--tests/policy/engine/Policy-CSIT.robot102
-rw-r--r--tests/policy/engine/configpolicy_vCPE.template6
-rw-r--r--tests/policy/engine/configpolicy_vCPE_R1.jinja (renamed from tests/policy/engine/configpolicy_vCPE_R1.template)2
-rw-r--r--tests/policy/engine/configpolicy_vDNS.template6
-rw-r--r--tests/policy/engine/configpolicy_vDNS_R1.jinja (renamed from tests/policy/engine/configpolicy_vDNS_R1.template)2
-rw-r--r--tests/policy/engine/configpolicy_vFW.template6
-rw-r--r--tests/policy/engine/configpolicy_vFW_R1.jinja (renamed from tests/policy/engine/configpolicy_vFW_R1.template)2
-rw-r--r--tests/policy/engine/createpolicy.jinja (renamed from tests/policy/engine/createpolicy.template)2
-rw-r--r--tests/policy/engine/deletepolicy.jinja (renamed from tests/policy/engine/deletepolicy.template)2
-rw-r--r--tests/policy/engine/getconfigpolicy.jinja (renamed from tests/policy/engine/getconfigpolicy.template)2
-rw-r--r--tests/policy/engine/getoofpolicy.jinja (renamed from tests/policy/engine/getoofpolicy.template)2
-rw-r--r--tests/policy/engine/json_templater.robot21
-rw-r--r--tests/policy/engine/listpolicy.jinja3
-rw-r--r--tests/policy/engine/listpolicy.template3
-rw-r--r--tests/policy/engine/multiple_pushpolicy.jinja5
-rw-r--r--tests/policy/engine/multiple_pushpolicy.template5
-rw-r--r--tests/policy/engine/multiple_unpushpolicy.jinja6
-rw-r--r--tests/policy/engine/multiple_unpushpolicy.template6
-rw-r--r--tests/policy/engine/oofpolicy_HPA_R1.jinja (renamed from tests/policy/engine/oofpolicy_HPA_R1.template)2
-rw-r--r--tests/policy/engine/opspolicy_VDNS.template26
-rw-r--r--tests/policy/engine/opspolicy_VDNS_R1.jinja (renamed from tests/policy/engine/opspolicy_VDNS_R1.template)2
-rw-r--r--tests/policy/engine/opspolicy_VFW.template24
-rw-r--r--tests/policy/engine/opspolicy_VFW_R1.jinja (renamed from tests/policy/engine/opspolicy_VFW_R1.template)2
-rw-r--r--tests/policy/engine/opspolicy_vCPE.template16
-rw-r--r--tests/policy/engine/opspolicy_vCPE_R1.jinja (renamed from tests/policy/engine/opspolicy_vCPE_R1.template)2
-rw-r--r--tests/policy/engine/opspolicy_vOLTE.template16
-rw-r--r--tests/policy/engine/opspolicy_vOLTE_R1.jinja (renamed from tests/policy/engine/opspolicy_vOLTE_R1.template)2
-rw-r--r--tests/policy/engine/pushpolicy.jinja5
-rw-r--r--tests/policy/engine/pushpolicy.template5
-rw-r--r--tests/policy/engine/sdncnamingpolicy_vFW.jinja (renamed from tests/policy/engine/sdncnamingpolicy_vFW.template)2
-rw-r--r--tests/policy/engine/sdncnamingpolicy_vPG.jinja (renamed from tests/policy/engine/sdncnamingpolicy_vPG.template)4
-rw-r--r--tests/portal/testsuites/json_templater.robot21
-rw-r--r--tests/portal/testsuites/test1.robot9
-rw-r--r--tests/so/vnfm_adapter/vnfm_adapter_test.robot16
-rw-r--r--tests/usecases/5G-config-over-netconf/5g_config_over_netconf.robot69
-rw-r--r--tests/usecases/5G-config-over-netconf/_init_.robot2
-rw-r--r--tests/usecases/5G-config-over-netconf/data/config-assign.json25
-rw-r--r--tests/usecases/5G-config-over-netconf/data/config-deploy.json25
-rw-r--r--tests/usecases/5G-config-over-netconf/data/mount.xml14
-rw-r--r--tests/vfc/nfvo-catalog/IndividualNSDescriptor.robot66
-rw-r--r--tests/vfc/nfvo-catalog/IndividualSubscription.robot80
-rw-r--r--tests/vfc/nfvo-catalog/IndividualVNFPackage.robot68
-rw-r--r--tests/vfc/nfvo-catalog/NSDescriptors.robot74
-rw-r--r--tests/vfc/nfvo-catalog/PNFDescriptors.robot74
-rw-r--r--tests/vfc/nfvo-catalog/Subscriptions.robot87
-rw-r--r--tests/vfc/nfvo-catalog/VNFPackageContent.robot97
-rw-r--r--tests/vfc/nfvo-catalog/VNFPackages.robot74
-rw-r--r--tests/vfc/nfvo-catalog/files/vgw.csarbin0 -> 23182 bytes
-rw-r--r--tests/vfc/nfvo-catalog/jsons/CreateNsdInfoRequest.json3
-rw-r--r--tests/vfc/nfvo-catalog/jsons/CreatePnfdInfoRequest.json3
-rw-r--r--tests/vfc/nfvo-catalog/jsons/CreateVnfPkgInfoRequest.json3
-rw-r--r--tests/vfc/nfvo-catalog/test.robot77
128 files changed, 9724 insertions, 454 deletions
diff --git a/plans/policy/apex-pdp/setup.sh b/plans/policy/apex-pdp/setup.sh
index 1e61726b..22e813df 100644
--- a/plans/policy/apex-pdp/setup.sh
+++ b/plans/policy/apex-pdp/setup.sh
@@ -19,6 +19,10 @@
#
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
+source ${SCRIPTS}/policy/config/policy-csit.conf
+export POLICY_MARIADB_VER
+echo ${GERRIT_BRANCH}
+echo ${POLICY_MARIADB_VER}
echo "Uninstall docker-py and reinstall docker."
pip uninstall -y docker-py
@@ -53,7 +57,7 @@ ${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn -v
cd ..
git clone http://gerrit.onap.org/r/oparent
-git clone --depth 1 https://gerrit.onap.org/r/policy/models -b master
+git clone --depth 1 https://gerrit.onap.org/r/policy/models -b ${GERRIT_BRANCH}
cd models/models-sim/models-sim-dmaap
${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn clean install -DskipTests --settings ${WORK_DIR}/oparent/settings.xml
bash ./src/main/package/docker/docker_build.sh
@@ -61,6 +65,15 @@ cd ${WORKSPACE}
rm -rf ${WORK_DIR}
sleep 3
+sudo apt-get -y install libxml2-utils
+export POLICY_API_VERSION="$(curl -q --silent https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+export POLICY_PAP_VERSION="$(curl -q --silent https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+export POLICY_APEX_PDP_VERSION="$(curl -q --silent https://git.onap.org/policy/apex-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+
+echo ${POLICY_API_VERSION}
+echo ${POLICY_PAP_VERSION}
+echo ${POLICY_APEX_PDP_VERSION}
+
# Adding this waiting container due to race condition between pap and mariadb
docker-compose -f ${WORKSPACE}/scripts/policy/policy-apex-pdp/docker-compose-apex.yml run --rm start_dependencies
diff --git a/plans/policy/api/setup.sh b/plans/policy/api/setup.sh
index 6168085e..91e1edee 100644
--- a/plans/policy/api/setup.sh
+++ b/plans/policy/api/setup.sh
@@ -17,11 +17,21 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
+# Select branch
+source ${SCRIPTS}/policy/config/policy-csit.conf
+export POLICY_MARIADB_VER
+echo ${GERRIT_BRANCH}
+echo ${POLICY_MARIADB_VER}
+
echo "Uninstall docker-py and reinstall docker."
pip uninstall -y docker-py
pip uninstall -y docker
pip install -U docker==2.7.0
+
+sudo apt-get -y install libxml2-utils
+export POLICY_API_VERSION="$(curl -q --silent https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+echo ${POLICY_API_VERSION}
# Adding this waiting container to avoid race condition between api and mariadb containers.
docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-api.yml run --rm start_dependencies
diff --git a/plans/policy/distribution/setup.sh b/plans/policy/distribution/setup.sh
index 40a15d12..a7c0a8da 100644
--- a/plans/policy/distribution/setup.sh
+++ b/plans/policy/distribution/setup.sh
@@ -16,16 +16,24 @@
#
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
+# Select branch
+source ${SCRIPTS}/policy/config/policy-csit.conf
+echo ${GERRIT_BRANCH}
-docker run -d --name policy-distribution -p 6969:6969 -it nexus3.onap.org:10001/onap/policy-distribution:2.1.0-SNAPSHOT-latest
+sudo apt-get -y install libxml2-utils
+export POLICY_DISTRIBUTION_VERSION="$(curl -q --silent https://git.onap.org/policy/distribution/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+echo ${POLICY_DISTRIBUTION_VERSION}
+docker run -d --name policy-distribution -p 6969:6969 -it nexus3.onap.org:10001/onap/policy-distribution:${POLICY_DISTRIBUTION_VERSION}
POLICY_DISTRIBUTION_IP=`get-instance-ip.sh policy-distribution`
echo DISTRIBUTION IP IS ${POLICY_DISTRIBUTION_IP}
-# Wait for initialization
-for i in {1..10}; do
- curl -sS ${POLICY_DISTRIBUTION_IP}:6969 && break
- echo sleep $i
- sleep $i
-done
+
+${SCRIPTS}/policy/wait_for_port.sh ${POLICY_DISTRIBUTION_IP} 6969
+rc=$?
+if [[ $rc != 0 ]]; then
+ echo "cannot open ${POLICY_DISTRIBUTION_IP} 6969"
+ docker logs policy-distribution
+ exit $rc
+fi
ROBOT_VARIABLES="-v POLICY_DISTRIBUTION_IP:${POLICY_DISTRIBUTION_IP}"
diff --git a/plans/policy/drools-applications/setup.sh b/plans/policy/drools-applications/setup.sh
index 24422a63..e2ca7893 100755
--- a/plans/policy/drools-applications/setup.sh
+++ b/plans/policy/drools-applications/setup.sh
@@ -16,12 +16,20 @@
#
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
+source ${SCRIPTS}/policy/config/policy-csit.conf
+export POLICY_MARIADB_VER
+echo ${GERRIT_BRANCH}
+echo ${POLICY_MARIADB_VER}
echo "Uninstall docker-py and reinstall docker."
pip uninstall -y docker-py
pip uninstall -y docker
pip install -U docker==2.7.0
+sudo apt-get -y install libxml2-utils
+export POLICY_DROOLS_APPS_VERSION="$(curl -q --silent https://git.onap.org/policy/drools-applications/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+echo ${POLICY_DRROLS_APPS_VERSION}
+
docker login -u docker -p docker nexus3.onap.org:10001
# Adding this waiting container to avoid race condition between api and mariadb containers.
diff --git a/plans/policy/pap/setup.sh b/plans/policy/pap/setup.sh
index 8bd3f0ac..0f1ab746 100644
--- a/plans/policy/pap/setup.sh
+++ b/plans/policy/pap/setup.sh
@@ -18,11 +18,22 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
+source ${SCRIPTS}/policy/config/policy-csit.conf
+export POLICY_MARIADB_VER
+echo ${GERRIT_BRANCH}
+echo ${POLICY_MARIADB_VER}
+
echo "Uninstall docker-py and reinstall docker."
pip uninstall -y docker-py
pip uninstall -y docker
pip install -U docker==2.7.0
+
+sudo apt-get -y install libxml2-utils
+export POLICY_API_VERSION="$(curl -q --silent https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+export POLICY_PAP_VERSION="$(curl -q --silent https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+echo ${POLICY_API_VERSION}
+echo ${POLICY_PAP_VERSION}
# Adding this waiting container due to race condition between pap and mariadb
docker-compose -f ${WORKSPACE}/scripts/policy/docker-compose-pap.yml run --rm start_dependencies
diff --git a/plans/policy/xacml-pdp/setup.sh b/plans/policy/xacml-pdp/setup.sh
index 24fc2d7c..1d4325bd 100644
--- a/plans/policy/xacml-pdp/setup.sh
+++ b/plans/policy/xacml-pdp/setup.sh
@@ -17,6 +17,11 @@
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
+source ${SCRIPTS}/policy/config/policy-csit.conf
+export POLICY_MARIADB_VER
+echo ${GERRIT_BRANCH}
+echo ${POLICY_MARIADB_VER}
+
echo "Uninstall docker-py and reinstall docker."
pip uninstall -y docker-py
pip uninstall -y docker
@@ -50,7 +55,7 @@ ${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn -v
cd ..
git clone http://gerrit.onap.org/r/oparent
-git clone --depth 1 https://gerrit.onap.org/r/policy/models -b master
+git clone --depth 1 https://gerrit.onap.org/r/policy/models -b ${GERRIT_BRANCH}
cd models/models-sim/models-sim-dmaap
${WORK_DIR}/maven/apache-maven-3.3.9/bin/mvn clean install -DskipTests --settings ${WORK_DIR}/oparent/settings.xml
bash ./src/main/package/docker/docker_build.sh
@@ -58,6 +63,16 @@ cd ${WORKSPACE}
rm -rf ${WORK_DIR}
sleep 3
+
+
+sudo apt-get -y install libxml2-utils
+export POLICY_API_VERSION="$(curl -q --silent https://git.onap.org/policy/api/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+export POLICY_PAP_VERSION="$(curl -q --silent https://git.onap.org/policy/pap/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+export POLICY_XACML_PDP_VERSION="$(curl -q --silent https://git.onap.org/policy/xacml-pdp/plain/pom.xml?h=${GERRIT_BRANCH} | xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' -)"
+
+echo ${POLICY_API_VERSION}
+echo ${POLICY_PAP_VERSION}
+echo ${POLICY_XACML_PDP_VERSION}
# Adding this waiting container due to race condition between pap and mariadb
docker-compose -f ${WORKSPACE}/scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml run --rm start_dependencies
diff --git a/plans/so/integration-etsi-testing/.gitignore b/plans/so/integration-etsi-testing/.gitignore
new file mode 100644
index 00000000..675e83ca
--- /dev/null
+++ b/plans/so/integration-etsi-testing/.gitignore
@@ -0,0 +1,20 @@
+target
+**/.settings
+**/.classpath
+**/.project
+**/.buildpath
+**/.factorypath
+**/.springBeans
+.idea
+.checkstyle
+.DS_Store
+.*~
+*.iml
+*.class
+*.swp
+*.log
+*.tmp
+**/bin/
+/.metadata/
+temp/
+**/temp/**
diff --git a/plans/so/integration-etsi-testing/docker-compose.yml b/plans/so/integration-etsi-testing/docker-compose.yml
new file mode 100644
index 00000000..d725596e
--- /dev/null
+++ b/plans/so/integration-etsi-testing/docker-compose.yml
@@ -0,0 +1,34 @@
+version: '3'
+services:
+################################################################################
+ sdc-simulator:
+ image: simulators/sdc-simulator:latest
+ ports:
+ - "9991:9991"
+ environment:
+ - APP=SDC-SIMULATOR
+ - JVM_ARGS=-Xms64m -Xmx512m
+ hostname:
+ sdc-simulator
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+################################################################################
+ VNFM-adapter:
+ image: nexus3.onap.org:10001/onap/so/vnfm-adapter:1.4.4
+ ports:
+ - "9092:9092"
+ environment:
+ - APP=VNFM-adapter
+ - JVM_ARGS=-Xms64m -Xmx512m
+ hostname:
+ vnfm-adapter-test
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+################################################################################
+
diff --git a/plans/so/integration-etsi-testing/settings.xml b/plans/so/integration-etsi-testing/settings.xml
new file mode 100755
index 00000000..5db52989
--- /dev/null
+++ b/plans/so/integration-etsi-testing/settings.xml
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2016-2018 Huawei Technologies Co., Ltd. and others. All rights reserved.
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
+
+<localRepository>${user.home}/.m2/repository</localRepository>
+ <profiles>
+ <profile>
+ <id>onap-settings</id>
+ <properties>
+ <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
+ <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload>
+ <onap.nexus.rawrepo.baseurl.download>https://nexus.onap.org/service/local/repositories/raw/content</onap.nexus.rawrepo.baseurl.download>
+ <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
+
+ <!-- properties for Nexus Docker registry -->
+ <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
+ <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
+ <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
+ <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
+ </properties>
+ </profile>
+ <profile>
+ <id>onap-snapshots</id>
+ <repositories>
+ <repository>
+ <id>onap-snapshots</id>
+ <name>onap-snapshots</name>
+ <url>https://nexus.onap.org/content/repositories/snapshots/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>onap-snapshots</id>
+ <name>onap-snapshots</name>
+ <url>https://nexus.onap.org/content/repositories/snapshots/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ <profile>
+ <id>onap-releases</id>
+ <repositories>
+ <repository>
+ <id>onap-releases</id>
+ <name>onap-releases</name>
+ <url>https://nexus.onap.org/content/repositories/releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>onap-releases</id>
+ <name>onap-releases</name>
+ <url>https://nexus.onap.org/content/repositories/releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ <profile>
+ <id>onap-public</id>
+ <repositories>
+ <repository>
+ <id>central</id>
+ <url>http://repo1.maven.org/maven2/</url>
+ </repository>
+ <repository>
+ <id>onap-public</id>
+ <name>onap-public</name>
+ <url>https://nexus.onap.org/content/repositories/public/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>central</id>
+ <url>http://repo1.maven.org/maven2/</url>
+ </pluginRepository>
+ <pluginRepository>
+ <id>onap-public</id>
+ <name>onap-public</name>
+ <url>https://nexus.onap.org/content/repositories/public/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ <profile>
+ <!-- Configure this profile if you have a local nexus cache -->
+ <id>local-public</id>
+ <repositories>
+ <repository>
+ <id>local-public</id>
+ <name>local-public</name>
+ <url>http://nexus-proxy:8081/nexus/content/repositories/public/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>local-public</id>
+ <name>local-public</name>
+ <url>http://nexus-proxy:8081/nexus/content/repositories/public/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ </profiles>
+
+ <activeProfiles>
+ <activeProfile>onap-settings</activeProfile>
+ <activeProfile>onap-snapshots</activeProfile>
+ <activeProfile>onap-releases</activeProfile>
+ <activeProfile>onap-public</activeProfile>
+ <!-- <activeProfile>local-public</activeProfile> -->
+ </activeProfiles>
+
+</settings>
+
diff --git a/plans/so/integration-etsi-testing/setup.sh b/plans/so/integration-etsi-testing/setup.sh
new file mode 100755
index 00000000..25e7ee76
--- /dev/null
+++ b/plans/so/integration-etsi-testing/setup.sh
@@ -0,0 +1,113 @@
+#!/bin/bash
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# @author Waqas Ikram (waqas.ikram@est.tech)
+
+MAVEN_VERSION_DIR="apache-maven-3.3.9"
+MAVEN_TAR_FILE="$MAVEN_VERSION_DIR-bin.tar.gz"
+MAVEN_TAR_LOCATION="http://apache.claz.org/maven/maven-3/3.3.9/binaries/$MAVEN_TAR_FILE"
+
+SCRIPT_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+SCRIPT_NAME=$(basename $0)
+TEMP_DIR_PATH=$SCRIPT_HOME/temp
+
+MAVEN_DIR=$TEMP_DIR_PATH/maven
+INSTALLED_MAVEN_DIR=$MAVEN_DIR/$MAVEN_VERSION_DIR
+MVN=$INSTALLED_MAVEN_DIR/bin/mvn
+MVN_VERSION="$MVN -v"
+MVN_SETTINGS_XML="$SCRIPT_HOME/settings.xml"
+MVN_CLEAN_INSTALL="$MVN clean install"
+SIMULATOR_MAVEN_PROJECT_POM="$SCRIPT_HOME/so-simulators/pom.xml"
+
+echo "Running $SCRIPT_HOME/$SCRIPT_NAME ..."
+
+if [[ ! "$TEMP_DIR_PATH" || ! -d "$TEMP_DIR_PATH" ]]; then
+ echo "Creating temporary directory $TEMP_DIR_PATH"
+ mkdir $TEMP_DIR_PATH
+
+ if [ $? -ne 0 ]; then
+ echo "Could not create $TEMP_DIR_PATH"
+ exit 1
+ fi
+
+fi
+echo "Will use ${TEMP_DIR_PATH} directory"
+
+if [[ ! "$MAVEN_DIR" || ! -d "$MAVEN_DIR" ]]; then
+ echo "Creating temporary maven directory $MAVEN_DIR"
+ mkdir $MAVEN_DIR
+
+ if [ $? -ne 0 ]; then
+ echo "Could not create $MAVEN_DIR"
+ exit 1
+ fi
+fi
+echo "Will use ${MAVEN_DIR} directory for maven install"
+
+if [[ ! "$INSTALLED_MAVEN_DIR" || ! -d "$INSTALLED_MAVEN_DIR" ]]; then
+ echo "Installing maven ..."
+ cd $MAVEN_DIR
+
+ CURL=`which curl`
+ if [[ ! "$CURL" ]]; then
+ echo "curl command is not installed"
+ echo "Unable to execute test plan"
+ exit 1
+ fi
+ curl -O $MAVEN_TAR_LOCATION
+
+ TAR=`which tar`
+ if [[ ! "$TAR" ]]; then
+ echo "tar command is not installed"
+ echo "Unable to execute test plan"
+ exit 1
+ fi
+
+ tar -xzvf apache-maven-3.3.9-bin.tar.gz
+
+ echo "Finished installing maven ..."
+fi
+
+echo "Maven installed under directory $INSTALLED_MAVEN_DIR"
+
+$MVN_VERSION
+
+if [ $? -ne 0 ]; then
+ echo "Unable to run mvn -v command"
+ exit 1
+fi
+
+cd $SCRIPT_HOME
+
+echo "Will build simulator project using $MVN_CLEAN_INSTALL -f $SIMULATOR_MAVEN_PROJECT_POM --settings $MVN_SETTINGS_XML"
+$MVN_CLEAN_INSTALL -f $SIMULATOR_MAVEN_PROJECT_POM --settings $MVN_SETTINGS_XML
+
+export NEXUS_DOCKER_REPO_MSO=nexus3.onap.org:10001
+export TAG=1.4.0-STAGING-latest
+
+docker-compose up -d
+
+echo "Sleeping for 2m"
+sleep 2m
+
+REPO_IP='127.0.0.1'
+ROBOT_VARIABLES="-v REPO_IP:${REPO_IP}"
+
+echo "Finished executing $SCRIPT_HOME/$SCRIPT_NAME"
diff --git a/plans/so/integration-etsi-testing/so-simulators/package/docker/pom.xml b/plans/so/integration-etsi-testing/so-simulators/package/docker/pom.xml
new file mode 100644
index 00000000..873fa2ab
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/package/docker/pom.xml
@@ -0,0 +1,100 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>package</artifactId>
+ <groupId>org.onap.so.simulators</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>docker</artifactId>
+ <packaging>pom</packaging>
+ <name>${project.artifactId}</name>
+
+ <build>
+ <finalName>${project.artifactId}-${project.version}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.28.0</version>
+
+ <configuration>
+ <verbose>true</verbose>
+ <apiVersion>1.23</apiVersion>
+ <pullRegistry>${docker.pull.registry}</pullRegistry>
+ <pushRegistry>${docker.push.registry}</pushRegistry>
+
+ <images>
+ <image>
+ <name>simulators/sdc-simulator</name>
+ <build>
+ <cleanup>try</cleanup>
+ <dockerFileDir>docker-files</dockerFileDir>
+ <dockerFile>Dockerfile.so-simulator-base-image</dockerFile>
+ <tags>
+ <tag>${project.version}</tag>
+ </tags>
+ <assembly>
+ <inline>
+ <dependencySets>
+ <dependencySet>
+ <includes>
+ <include>org.onap.so.simulators:sdc-simulator</include>
+ </includes>
+ <outputFileNameMapping>app.jar</outputFileNameMapping>
+ </dependencySet>
+ </dependencySets>
+ </inline>
+ </assembly>
+ </build>
+ </image>
+ </images>
+ </configuration>
+
+ <executions>
+ <execution>
+ <id>clean-images</id>
+ <phase>pre-clean</phase>
+ <goals>
+ <goal>remove</goal>
+ </goals>
+ <configuration>
+ <removeAll>true</removeAll>
+ </configuration>
+ </execution>
+
+ <execution>
+ <id>generate-images</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+
+
+ </executions>
+
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.8</version>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.onap.so.simulators</groupId>
+ <artifactId>sdc-simulator</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+
+</project>
diff --git a/plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/Dockerfile.so-simulator-base-image b/plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/Dockerfile.so-simulator-base-image
new file mode 100644
index 00000000..f6f0fc9b
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/Dockerfile.so-simulator-base-image
@@ -0,0 +1,31 @@
+FROM docker.io/openjdk:8-jdk-alpine
+
+ARG http_proxy
+ARG https_proxy
+ENV HTTP_PROXY=$http_proxy
+ENV HTTPS_PROXY=$https_proxy
+ENV http_proxy=$HTTP_PROXY
+ENV https_proxy=$HTTPS_PROXY
+
+# Update the package list and upgrade installed packages
+RUN apk update && apk upgrade
+
+# Install commonly needed tools
+RUN apk --no-cache add curl netcat-openbsd sudo nss
+
+# Create 'so' user
+RUN addgroup -g 1000 so && adduser -S -u 1000 -G so -s /bin/sh so
+
+RUN mkdir /app && mkdir /app/config && mkdir /app/logs
+
+COPY maven/app.jar /app
+COPY configs/logging/logback-spring.xml /app
+COPY scripts/start-app.sh /app
+
+RUN chown -R so:so /app && chmod 700 /app/*.sh
+
+# Springboot configuration (required)
+VOLUME /app/config
+
+WORKDIR /app
+CMD ["/app/start-app.sh"]
diff --git a/plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/configs/logging/logback-spring.xml b/plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/configs/logging/logback-spring.xml
new file mode 100644
index 00000000..13c91879
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/configs/logging/logback-spring.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+
+ <property name="LOGS" value="./logs" />
+
+ <appender name="Console"
+ class="ch.qos.logback.core.ConsoleAppender">
+ <layout class="ch.qos.logback.classic.PatternLayout">
+ <Pattern>
+ %black(%d{ISO8601}) %highlight(%-5level) [%blue(%t)] %yellow(%C{1.}): %msg%n%throwable
+ </Pattern>
+ </layout>
+ </appender>
+
+ <appender name="RollingFile"
+ class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>${logs_dir:-.}/spring-boot-logger.log</file>
+ <encoder
+ class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
+ <Pattern>%d %p %C{1.} [%t] %m%n</Pattern>
+ </encoder>
+
+ <rollingPolicy
+ class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <!-- rollover daily and when the file reaches 10 MegaBytes -->
+ <fileNamePattern>${logs_dir:-.}/archived/spring-boot-logger-%d{yyyy-MM-dd}.%i.log
+ </fileNamePattern>
+ <timeBasedFileNamingAndTriggeringPolicy
+ class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
+ <maxFileSize>10MB</maxFileSize>
+ </timeBasedFileNamingAndTriggeringPolicy>
+ </rollingPolicy>
+ </appender>
+
+ <!-- LOG everything at INFO level -->
+ <root level="info">
+ <appender-ref ref="RollingFile" />
+ <appender-ref ref="Console" />
+ </root>
+
+ <logger name="org.onap" level="trace" additivity="false">
+ <appender-ref ref="RollingFile" />
+ <appender-ref ref="Console" />
+ </logger>
+
+</configuration>
diff --git a/plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/scripts/start-app.sh b/plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/scripts/start-app.sh
new file mode 100644
index 00000000..0ab3d27f
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/package/docker/src/main/docker/docker-files/scripts/start-app.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# @author Waqas Ikram (waqas.ikram@est.tech)
+
+touch /app/app.jar
+
+if [ -z "$APP" ]; then
+ echo "CONFIG ERROR: APP environment variable not set"
+ exit 1
+fi
+
+echo "Starting $APP simulator ... "
+
+if [ -z "${CONFIG_PATH}" ]; then
+ export CONFIG_PATH=/app/config/override.yaml
+fi
+
+if [ -z "${LOG_PATH}" ]; then
+ export LOG_PATH="logs/${APP}"
+fi
+
+if [ "${SSL_DEBUG}" = "log" ]; then
+ export SSL_DEBUG="-Djavax.net.debug=all"
+else
+ export SSL_DEBUG=
+fi
+
+
+jvmargs="${JVM_ARGS} -Dlogs_dir=${LOG_PATH} -Dlogging.config=/app/logback-spring.xml -Dspring.config.additional-location=$CONFIG_PATH ${SSL_DEBUG} ${DISABLE_SNI}"
+
+echo "JVM Arguments: ${jvmargs}"
+
+java ${jvmargs} -jar app.jar
+rc=$?
+
+echo "Application exiting with status code $rc"
+
+exit $rc
diff --git a/plans/so/integration-etsi-testing/so-simulators/package/pom.xml b/plans/so/integration-etsi-testing/so-simulators/package/pom.xml
new file mode 100644
index 00000000..e486ce7e
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/package/pom.xml
@@ -0,0 +1,18 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>so-simulators</artifactId>
+ <groupId>org.onap.so.simulators</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>package</artifactId>
+ <packaging>pom</packaging>
+ <name>${project.artifactId}</name>
+ <modules>
+ <module>docker</module>
+ </modules>
+
+
+</project>
diff --git a/plans/so/integration-etsi-testing/so-simulators/pom.xml b/plans/so/integration-etsi-testing/so-simulators/pom.xml
new file mode 100644
index 00000000..feca047f
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/pom.xml
@@ -0,0 +1,64 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.onap.so.simulators</groupId>
+ <artifactId>so-simulators</artifactId>
+
+ <packaging>pom</packaging>
+ <name>${project.artifactId}</name>
+ <version>1.0-SNAPSHOT</version>
+
+ <properties>
+ <jax.ws.rs>2.1</jax.ws.rs>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
+ </properties>
+
+ <modules>
+ <module>sdc-simulator</module>
+ <module>package</module>
+ </modules>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-parent</artifactId>
+ <version>2.0.5.RELEASE</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-web</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-tomcat</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-test</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-aop</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.ws.rs</groupId>
+ <artifactId>javax.ws.rs-api</artifactId>
+ <version>${jax.ws.rs}</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/pom.xml b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/pom.xml
new file mode 100644
index 00000000..6a1baccf
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/pom.xml
@@ -0,0 +1,36 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>so-simulators</artifactId>
+ <groupId>org.onap.so.simulators</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>sdc-simulator</artifactId>
+ <name>${project.artifactId}</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ <configuration>
+ <mainClass>org.onap.so.sdc.simulator.SdcSimulatorApplication</mainClass>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>repackage</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/Constant.java b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/Constant.java
new file mode 100644
index 00000000..c4e9c468
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/Constant.java
@@ -0,0 +1,26 @@
+/*
+ * ============LICENSE_START======================================================= Copyright (C) 2019 Nordix
+ * Foundation. ================================================================================ Licensed under the
+ * Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may
+ * obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
+ * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0 ============LICENSE_END=========================================================
+ */
+
+package org.onap.so.sdc.simulator;
+
+/**
+ * @author Waqas Ikram (waqas.ikram@est.tech)
+ */
+public class Constant {
+
+ public static final String BASE_URL = "/sdc/simulator/v1";
+
+ private Constant() {}
+}
diff --git a/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/SdcSimulatorApplication.java b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/SdcSimulatorApplication.java
new file mode 100644
index 00000000..6bcd04d8
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/SdcSimulatorApplication.java
@@ -0,0 +1,35 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2019 Nordix Foundation.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.so.sdc.simulator;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+/**
+ * @author Waqas Ikram (waqas.ikram@est.tech)
+ */
+@SpringBootApplication
+public class SdcSimulatorApplication extends SpringBootServletInitializer {
+ public static void main(final String[] args) {
+ SpringApplication.run(SdcSimulatorApplication.class, args);
+ }
+}
diff --git a/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/SdcSimulatorController.java b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/SdcSimulatorController.java
new file mode 100644
index 00000000..12e179f8
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/java/org/onap/so/sdc/simulator/SdcSimulatorController.java
@@ -0,0 +1,49 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2019 Nordix Foundation.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.so.sdc.simulator;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.http.HttpStatus;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseStatus;
+import org.springframework.web.bind.annotation.RestController;
+import javax.ws.rs.core.MediaType;
+
+/**
+ * @author Waqas Ikram (waqas.ikram@est.tech)
+ */
+@RestController
+@RequestMapping(path = Constant.BASE_URL, produces = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON)
+public class SdcSimulatorController {
+
+ private static final Logger LOGGER = LoggerFactory.getLogger(SdcSimulatorController.class);
+
+ @GetMapping(value = "/healthcheck")
+ @ResponseStatus(code = HttpStatus.OK)
+ public String healthCheck() {
+ LOGGER.info("Running health check ...");
+ return "healthy";
+ }
+
+
+}
diff --git a/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/resources/application.yaml b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/resources/application.yaml
new file mode 100644
index 00000000..f1e63b10
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/main/resources/application.yaml
@@ -0,0 +1,5 @@
+server:
+ port: 9991
+ tomcat:
+ max-threads: 50
+ssl-enable: false
diff --git a/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/test/java/org/onap/so/sdc/simulator/SdcSimulatorControllerTest.java b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/test/java/org/onap/so/sdc/simulator/SdcSimulatorControllerTest.java
new file mode 100644
index 00000000..e0d44e93
--- /dev/null
+++ b/plans/so/integration-etsi-testing/so-simulators/sdc-simulator/src/test/java/org/onap/so/sdc/simulator/SdcSimulatorControllerTest.java
@@ -0,0 +1,66 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2019 Nordix Foundation.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.so.sdc.simulator;
+
+import static org.junit.Assert.assertEquals;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
+import org.springframework.boot.test.web.client.TestRestTemplate;
+import org.springframework.boot.web.server.LocalServerPort;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpMethod;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
+import org.springframework.test.context.ActiveProfiles;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+
+/**
+ * @author Waqas Ikram (waqas.ikram@est.tech)
+ */
+@RunWith(SpringJUnit4ClassRunner.class)
+@ActiveProfiles("test")
+@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
+public class SdcSimulatorControllerTest {
+
+ @LocalServerPort
+ private int port;
+
+ @Autowired
+ private TestRestTemplate restTemplate;
+
+ @Test
+ public void testHealthCheck() {
+ final HttpHeaders headers = new HttpHeaders();
+ headers.setContentType(MediaType.APPLICATION_JSON);
+
+ final HttpEntity<?> request = new HttpEntity<>(headers);
+ final String url = "http://localhost:" + port + Constant.BASE_URL + "/healthcheck";
+ final ResponseEntity<String> object = restTemplate.exchange(url, HttpMethod.GET, request, String.class);
+
+ assertEquals("healthy", object.getBody());
+
+ }
+
+}
diff --git a/plans/so/integration-etsi-testing/teardown.sh b/plans/so/integration-etsi-testing/teardown.sh
new file mode 100755
index 00000000..8b778a57
--- /dev/null
+++ b/plans/so/integration-etsi-testing/teardown.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+
+docker-compose down
diff --git a/plans/so/integration-etsi-testing/testplan.txt b/plans/so/integration-etsi-testing/testplan.txt
new file mode 100644
index 00000000..94b5442d
--- /dev/null
+++ b/plans/so/integration-etsi-testing/testplan.txt
@@ -0,0 +1,2 @@
+# Test suites are relative paths under [integration/csit.git]/tests/.
+# Place the suites in run order.
diff --git a/plans/so/vnfm_adapter/docker-compose.yml b/plans/so/vnfm_adapter/docker-compose.yml
new file mode 100644
index 00000000..95195710
--- /dev/null
+++ b/plans/so/vnfm_adapter/docker-compose.yml
@@ -0,0 +1,18 @@
+version: '3'
+services:
+################################################################################
+ VNFM-adapter:
+ image: nexus3.onap.org:10001/onap/so/vnfm-adapter:1.4.4
+ ports:
+ - "9092:9092"
+ environment:
+ - APP=VNFM-adapter
+ - JVM_ARGS=-Xms64m -Xmx512m
+ hostname:
+ vnfm-adapter-test
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+################################################################################
diff --git a/plans/so/vnfm_adapter/setup.sh b/plans/so/vnfm_adapter/setup.sh
new file mode 100644
index 00000000..518358b2
--- /dev/null
+++ b/plans/so/vnfm_adapter/setup.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+
+export NEXUS_DOCKER_REPO_MSO=nexus3.onap.org:10001
+export TAG=1.4.0-STAGING-latest
+
+docker-compose pull
+docker-compose up -d
+
+sleep 2m
+
+REPO_IP='127.0.0.1'
+ROBOT_VARIABLES="-v REPO_IP:${REPO_IP}"
diff --git a/plans/so/vnfm_adapter/teardown.sh b/plans/so/vnfm_adapter/teardown.sh
new file mode 100644
index 00000000..8b778a57
--- /dev/null
+++ b/plans/so/vnfm_adapter/teardown.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+
+docker-compose down
diff --git a/plans/so/vnfm_adapter/testplan.txt b/plans/so/vnfm_adapter/testplan.txt
new file mode 100644
index 00000000..823990af
--- /dev/null
+++ b/plans/so/vnfm_adapter/testplan.txt
@@ -0,0 +1,3 @@
+# Test suites are relative paths under [integration/csit.git]/tests/.
+# Place the suites in run order.
+so/vnfm_adapter/vnfm_adapter_test.robot
diff --git a/plans/usecases/5G-config-over-netconf/certs/certs.properties b/plans/usecases/5G-config-over-netconf/certs/certs.properties
new file mode 100755
index 00000000..f8f3fa72
--- /dev/null
+++ b/plans/usecases/5G-config-over-netconf/certs/certs.properties
@@ -0,0 +1,2 @@
+keys0.zip
+*****
diff --git a/plans/usecases/5G-config-over-netconf/setup.sh b/plans/usecases/5G-config-over-netconf/setup.sh
new file mode 100644
index 00000000..a30a7b45
--- /dev/null
+++ b/plans/usecases/5G-config-over-netconf/setup.sh
@@ -0,0 +1,205 @@
+#!/bin/bash
+#
+# Copyright 2016-2017 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Modifications copyright (c) 2017 AT&T Intellectual Property
+#
+# Place the scripts in run order:
+SCRIPTS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+source ${WORKSPACE}/scripts/sdnc/script1.sh
+export DOCKER_SDNC_TAG=1.5.2
+export NEXUS_USERNAME=docker
+export NEXUS_PASSWD=docker
+export NEXUS_DOCKER_REPO=nexus3.onap.org:10001
+export DMAAP_TOPIC=AUTO
+export DOCKER_IMAGE_VERSION=1.5.2
+export CCSDK_DOCKER_IMAGE_VERSION=0.4-STAGING-latest
+export CCSDK_DOCKER_BP_IMAGE_VERSION=0.4.5
+REQUEST_DATA_PATH=$WORKSPACE/tests/usecases/5G-config-over-netconf/data
+
+export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
+
+if [ "$MTU" == "" ]; then
+ export MTU="1450"
+fi
+
+# Clone SDNC repo to get docker-compose for SDNC
+mkdir -p $WORKSPACE/archives/integration
+cd $WORKSPACE/archives
+git clone -b master --single-branch --depth=1 http://gerrit.onap.org/r/integration.git integration
+cd $WORKSPACE/archives/integration
+git pull
+#cd $WORKSPACE/archives/integration/test/mocks/pnfsimulator
+#sed -i 's/nexus3.onap.org:10003\/onap\/pnf-simulator:4.0.0-SNAPSHOT/nexus3.onap.org:10001\/onap\/pnf-simulator:latest/' docker-compose.yml
+HOST_IP_ADDR=localhost
+# Clone SDNC repo to get docker-compose for SDNC
+mkdir -p $WORKSPACE/archives/sdnc
+cd $WORKSPACE/archives
+git clone -b master --single-branch --depth=1 http://gerrit.onap.org/r/sdnc/oam.git sdnc
+cd $WORKSPACE/archives/sdnc
+git pull
+unset http_proxy https_proxy
+
+sed -i "s/DMAAP_TOPIC_ENV=.*/DMAAP_TOPIC_ENV="AUTO"/g" docker-compose.yml
+docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
+
+docker pull $NEXUS_DOCKER_REPO/onap/sdnc-image:$DOCKER_SDNC_TAG
+docker tag $NEXUS_DOCKER_REPO/onap/sdnc-image:$DOCKER_SDNC_TAG onap/sdnc-image:latest
+
+docker pull $NEXUS_DOCKER_REPO/onap/sdnc-ansible-server-image:$DOCKER_IMAGE_VERSION
+docker tag $NEXUS_DOCKER_REPO/onap/sdnc-ansible-server-image:$DOCKER_IMAGE_VERSION onap/sdnc-ansible-server-image:latest
+
+docker pull $NEXUS_DOCKER_REPO/onap/ccsdk-dgbuilder-image:$CCSDK_DOCKER_IMAGE_VERSION
+docker tag $NEXUS_DOCKER_REPO/onap/ccsdk-dgbuilder-image:$CCSDK_DOCKER_IMAGE_VERSION onap/ccsdk-dgbuilder-image:latest
+
+docker pull $NEXUS_DOCKER_REPO/onap/admportal-sdnc-image:$DOCKER_IMAGE_VERSION
+docker tag $NEXUS_DOCKER_REPO/onap/admportal-sdnc-image:$DOCKER_IMAGE_VERSION onap/admportal-sdnc-image:latest
+
+docker pull $NEXUS_DOCKER_REPO/onap/sdnc-ueb-listener-image:$DOCKER_IMAGE_VERSION
+docker tag $NEXUS_DOCKER_REPO/onap/sdnc-ueb-listener-image:$DOCKER_IMAGE_VERSION onap/sdnc-ueb-listener-image:latest
+
+docker pull $NEXUS_DOCKER_REPO/onap/sdnc-dmaap-listener-image:$DOCKER_IMAGE_VERSION
+docker tag $NEXUS_DOCKER_REPO/onap/sdnc-dmaap-listener-image:$DOCKER_IMAGE_VERSION onap/sdnc-dmaap-listener-image:latest
+
+docker pull $NEXUS_DOCKER_REPO/onap/ccsdk-blueprintsprocessor:$CCSDK_DOCKER_BP_IMAGE_VERSION
+docker tag $NEXUS_DOCKER_REPO/onap/ccsdk-blueprintsprocessor:$CCSDK_DOCKER_BP_IMAGE_VERSION onap/ccsdk-blueprintsprocessor:latest
+
+
+CERT_SUBPATH=plans/sdnc/sdnc_netconf_tls_post_deploy/certs
+export SDNC_CERT_PATH=${WORKSPACE}/${CERT_SUBPATH}
+
+cd $WORKSPACE/archives/sdnc/installation/src/main/yaml
+sed -i 's/sdnc_controller_container/sdnc_controller_container\n volumes: \n - $SDNC_CERT_PATH:\/opt\/opendaylight\/current\/certs/' docker-compose.yml
+# start SDNC containers with docker compose and configuration from docker-compose.yml
+docker-compose up -d
+
+cd $WORKSPACE/archives/integration/test/mocks/pnfsimulator
+./simulator.sh start&
+
+# WAIT 10 minutes maximum and test every 5 seconds if SDNC is up using HealthCheck API
+TIME_OUT=1000
+INTERVAL=30
+TIME=0
+while [ "$TIME" -lt "$TIME_OUT" ]; do
+ response=$(curl --write-out '%{http_code}' --silent --output /dev/null -H "Authorization: Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==" -X POST -H "X-FromAppId: csit-sdnc" -H "X-TransactionId: csit-sdnc" -H "Accept: application/json" -H "Content-Type: application/json" http://localhost:8282/restconf/operations/SLI-API:healthcheck ); echo $response
+
+ if [ "$response" == "200" ]; then
+ echo SDNC started in $TIME seconds
+ break;
+ fi
+
+ echo Sleep: $INTERVAL seconds before testing if SDNC is up. Total wait time up now is: $TIME seconds. Timeout is: $TIME_OUT seconds
+ sleep $INTERVAL
+ TIME=$(($TIME+$INTERVAL))
+done
+
+export LOCAL_IP=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+')
+sed -i "s/pnfaddr/$LOCAL_IP/g" $REQUEST_DATA_PATH/mount.xml
+
+if [ "$TIME" -ge "$TIME_OUT" ]; then
+ echo TIME OUT: Docker containers not started in $TIME_OUT seconds... Could cause problems for testing activities...
+fi
+
+#sleep 800
+
+TIME_OUT=1500
+INTERVAL=60
+TIME=0
+while [ "$TIME" -lt "$TIME_OUT" ]; do
+docker exec sdnc_controller_container rm -f /opt/opendaylight/current/etc/host.key
+response=$(docker exec sdnc_controller_container /opt/opendaylight/current/bin/client system:start-level)
+docker exec sdnc_controller_container rm -f /opt/opendaylight/current/etc/host.key
+
+ if [ "$response" == "Level 100" ] ; then
+ echo SDNC karaf started in $TIME seconds
+ break;
+ fi
+
+ echo Sleep: $INTERVAL seconds before testing if SDNC is up. Total wait time up now is: $TIME seconds. Timeout is: $TIME_OUT seconds
+ sleep $INTERVAL
+ TIME=$(($TIME+$INTERVAL))
+done
+
+if [ "$TIME" -ge "$TIME_OUT" ]; then
+ echo TIME OUT: karaf session not started in $TIME_OUT seconds... Could cause problems for testing activities...
+fi
+
+response=$(docker exec sdnc_controller_container /opt/opendaylight/current/bin/client system:start-level)
+
+ if [ "$response" == "Level 100" ] ; then
+ num_failed_bundles=$(docker exec sdnc_controller_container /opt/opendaylight/current/bin/client bundle:list | grep Failure | wc -l)
+ failed_bundles=$(docker exec sdnc_controller_container /opt/opendaylight/current/bin/client bundle:list | grep Failure)
+ echo There is/are $num_failed_bundles failed bundles out of $num_bundles installed bundles.
+ fi
+
+if [ "$num_failed_bundles" -ge 1 ]; then
+ echo "The following bundle(s) are in a failed state: "
+ echo " $failed_bundles"
+fi
+
+########################################## blueprintsprocessor setup ##########################################################
+
+mkdir -p $WORKSPACE/archives/cds
+cd $WORKSPACE/archives
+
+git clone -b master --single-branch --depth=1 http://gerrit.onap.org/r/ccsdk/cds.git cds
+cd $WORKSPACE/archives/cds
+git pull
+unset http_proxy https_proxy
+cd $WORKSPACE/archives/cds/ms/blueprintsprocessor/distribution/src/main/dc/
+
+############# update ip of sdnc in docker-compose###########
+SDNC_CONTAINER=$(docker ps -a -q --filter="name=sdnc_controller_container")
+SDNC_CONTAINER_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $SDNC_CONTAINER)
+echo " " >> docker-compose.yaml
+echo " extra_hosts:" >> docker-compose.yaml
+echo " - 'sdnc:$LOCAL_IP'" >> docker-compose.yaml
+#############################################################
+
+docker-compose up &
+sleep 10
+################# Check state of BP ####################
+BP_CONTAINER=$(docker ps -a -q --filter="name=bp-rest")
+CCSDK_MARIADB=$(docker ps -a -q --filter="name=ccsdk-mariadb")
+for i in {1..10}; do
+if [ $(docker inspect --format '{{ .State.Running }}' $BP_CONTAINER) ] && \
+[ $(docker inspect --format '{{ .State.Running }}' $CCSDK_MARIADB) ]
+then
+ echo "Blueprint proc Service Running"
+ break
+else
+ echo sleep $i
+ sleep $i
+fi
+done
+
+########## update pnf simulator ip in config deploy request ########
+
+NETOPEER_CONTAINER=$(docker ps -a -q --filter="name=netopeer")
+NETOPEER_CONTAINER_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $SDNC_CONTAINER)
+RES_KEY=$(uuidgen -r)
+sed -i "s/pnfaddr/$LOCAL_IP/g" $REQUEST_DATA_PATH/config-deploy.json
+sed -i "s/pnfaddr/$LOCAL_IP/g" $REQUEST_DATA_PATH/config-assign.json
+
+sed -i "s/reskey/$RES_KEY/g" $REQUEST_DATA_PATH/config-deploy.json
+sed -i "s/reskey/$RES_KEY/g" $REQUEST_DATA_PATH/config-assign.json
+
+####################################################################
+# Sleep additional 3 minutes (180 secs) to give application time to finish
+sleep 150
+
+
+# Pass any variables required by Robot test suites in ROBOT_VARIABLES
+ROBOT_VARIABLES="-v SCRIPTS:${SCRIPTS}"
diff --git a/plans/usecases/5G-config-over-netconf/teardown.sh b/plans/usecases/5G-config-over-netconf/teardown.sh
new file mode 100644
index 00000000..2e120e74
--- /dev/null
+++ b/plans/usecases/5G-config-over-netconf/teardown.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+# Copyright 2016-2017 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Modifications copyright (c) 2017 AT&T Intellectual Property
+#
+
+kill-instance.sh sdnc_controller_container
+kill-instance.sh sdnc_dgbuilder_container
+kill-instance.sh sdnc_portal_container
+kill-instance.sh sdnc_db_container
+kill-instance.sh sdnc_ueblistener_container
+kill-instance.sh sdnc_dmaaplistener_container
+kill-instance.sh sdnc_ansible_container
+kill-instance.sh netopeer
+kill-instance.sh sftp-server
+kill-instance.sh ftpes-server-vsftpd
+kill-instance.sh ftpes-server-pure-ftpd
+kill-instance.sh bp-rest
+kill-instance.sh ccsdk-mariadb
+# $WORKSPACE/archives/appc deleted with archives folder when tests starts so we keep it at the end for debugging
diff --git a/plans/usecases/5G-config-over-netconf/testplan.txt b/plans/usecases/5G-config-over-netconf/testplan.txt
new file mode 100644
index 00000000..40610081
--- /dev/null
+++ b/plans/usecases/5G-config-over-netconf/testplan.txt
@@ -0,0 +1,4 @@
+# Test suites are relative paths under [integration/csit.git]/tests/.
+# Place the suites in run order.
+usecases/5G-config-over-netconf
+
diff --git a/plans/vfc-gvnfm-vnfres/sanity-check/setup.sh b/plans/vfc-gvnfm-vnfres/sanity-check/setup.sh
index 11b86c78..e2ab2594 100755
--- a/plans/vfc-gvnfm-vnfres/sanity-check/setup.sh
+++ b/plans/vfc-gvnfm-vnfres/sanity-check/setup.sh
@@ -78,6 +78,8 @@ done
docker cp vfc-vnfres:/service/vfc/gvnfm/vnfres/res/res/pub/config/config.py ./
cat config.py
+docker logs vfc-vnfres
+
docker cp vfc-vnfres:/service/vfc/gvnfm/vnfres/res/logs/runtime_res.log ./
cat runtime_res.log
diff --git a/plans/vfc-nfvo-catalog/sanity-check/testplan.txt b/plans/vfc-nfvo-catalog/sanity-check/testplan.txt
index 3c5f813a..b324d229 100644
--- a/plans/vfc-nfvo-catalog/sanity-check/testplan.txt
+++ b/plans/vfc-nfvo-catalog/sanity-check/testplan.txt
@@ -1,3 +1,11 @@
# Test suites are relative paths under [integration/csit.git]/tests/.
# Place the suites in run order.
vfc/nfvo-catalog/test.robot
+vfc/nfvo-catalog/Subscriptions.robot
+vfc/nfvo-catalog/IndividualSubscription.robot
+vfc/nfvo-catalog/VNFPackages.robot
+vfc/nfvo-catalog/IndividualVNFPackage.robot
+vfc/nfvo-catalog/VNFPackageContent.robot
+vfc/nfvo-catalog/PNFDescriptors.robot
+vfc/nfvo-catalog/NSDescriptors.robot
+vfc/nfvo-catalog/IndividualNSDescriptor.robot
diff --git a/plans/vfc-nfvo-driver-vnfm-gvnfm/sanity-check/setup.sh b/plans/vfc-nfvo-driver-vnfm-gvnfm/sanity-check/setup.sh
index 8b21b898..56e1f91d 100644
--- a/plans/vfc-nfvo-driver-vnfm-gvnfm/sanity-check/setup.sh
+++ b/plans/vfc-nfvo-driver-vnfm-gvnfm/sanity-check/setup.sh
@@ -52,6 +52,8 @@ for i in {1..10}; do
sleep $i
done
+docker logs vfc-gvnfmdriver
+
docker cp vfc-gvnfmdriver:/service/vfc/nfvo/driver/vnfm/gvnfm/gvnfmadapter/logs/runtime_gvnfmdriver.log ./
cat runtime_gvnfmdriver.log
diff --git a/scripts/policy/config/policy-csit.conf b/scripts/policy/config/policy-csit.conf
new file mode 100644
index 00000000..aa5f9396
--- /dev/null
+++ b/scripts/policy/config/policy-csit.conf
@@ -0,0 +1,2 @@
+GERRIT_BRANCH=master
+POLICY_MARIADB_VER=10.2.25
diff --git a/scripts/policy/docker-compose-api.yml b/scripts/policy/docker-compose-api.yml
index 5cf5a27c..1bab1894 100644
--- a/scripts/policy/docker-compose-api.yml
+++ b/scripts/policy/docker-compose-api.yml
@@ -17,7 +17,7 @@ networks:
driver: bridge
services:
mariadb:
- image: mariadb:10.2.14
+ image: mariadb:${POLICY_MARIADB_VER}
container_name: mariadb
hostname: mariadb
command: ['--lower-case-table-names=1', '--wait_timeout=28800']
@@ -27,9 +27,9 @@ services:
ports:
- "3306:3306"
api:
- image: nexus3.onap.org:10001/onap/policy-api
+ image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
container_name: policy-api
- depends_on:
+ depends_on:
- mariadb
hostname: policy-api
ports:
diff --git a/scripts/policy/docker-compose-drools-apps.yml b/scripts/policy/docker-compose-drools-apps.yml
index a42c2996..14a2161f 100644
--- a/scripts/policy/docker-compose-drools-apps.yml
+++ b/scripts/policy/docker-compose-drools-apps.yml
@@ -14,20 +14,20 @@
version: '2'
services:
mariadb:
- image: mariadb:10.2.14
+ image: mariadb:${POLICY_MARIADB_VER}
container_name: mariadb
hostname: mariadb
command: ['--lower-case-table-names=1', '--wait_timeout=28800']
- env_file:
+ env_file:
- ${WORKSPACE}/scripts/policy/config/db/db.conf
volumes:
- ${WORKSPACE}/scripts/policy/config/db:/docker-entrypoint-initdb.d
expose:
- 3306
drools:
- image: nexus3.onap.org:10001/onap/policy-pdpd-cl:1.4-SNAPSHOT-latest
+ image: nexus3.onap.org:10001/onap/policy-pdpd-cl:${POLICY_DROOLS_APPS_VERSION}
container_name: drools
- depends_on:
+ depends_on:
- mariadb
hostname: drools
expose:
diff --git a/scripts/policy/docker-compose-pap.yml b/scripts/policy/docker-compose-pap.yml
index 383e1bc8..970f1168 100644
--- a/scripts/policy/docker-compose-pap.yml
+++ b/scripts/policy/docker-compose-pap.yml
@@ -17,7 +17,7 @@ networks:
driver: bridge
services:
mariadb:
- image: mariadb:10.2.14
+ image: mariadb:${POLICY_MARIADB_VER}
container_name: mariadb
hostname: mariadb
command: ['--lower-case-table-names=1', '--wait_timeout=28800']
@@ -27,15 +27,15 @@ services:
ports:
- "3306:3306"
pap:
- image: nexus3.onap.org:10001/onap/policy-pap
+ image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
container_name: policy-pap
- depends_on:
+ depends_on:
- mariadb
hostname: policy-pap
ports:
- "6969:6969"
api:
- image: nexus3.onap.org:10001/onap/policy-api
+ image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
container_name: policy-api
depends_on:
- mariadb
diff --git a/scripts/policy/policy-apex-pdp/docker-compose-apex.yml b/scripts/policy/policy-apex-pdp/docker-compose-apex.yml
index c6578dda..b7ba21c8 100644
--- a/scripts/policy/policy-apex-pdp/docker-compose-apex.yml
+++ b/scripts/policy/policy-apex-pdp/docker-compose-apex.yml
@@ -18,7 +18,7 @@ networks:
driver: bridge
services:
mariadb:
- image: mariadb:10.2.14
+ image: mariadb:${POLICY_MARIADB_VER}
container_name: mariadb
hostname: mariadb
command: ['--lower-case-table-names=1', '--wait_timeout=28800']
@@ -34,7 +34,7 @@ services:
ports:
- "3904:3904"
pap:
- image: nexus3.onap.org:10001/onap/policy-pap
+ image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
container_name: policy-pap
depends_on:
- mariadb
@@ -42,20 +42,20 @@ services:
hostname: policy-pap
api:
- image: nexus3.onap.org:10001/onap/policy-api
+ image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
container_name: policy-api
depends_on:
- mariadb
hostname: policy-api
apex:
- image: nexus3.onap.org:10001/onap/policy-apex-pdp
+ image: nexus3.onap.org:10001/onap/policy-apex-pdp:${POLICY_APEX_PDP_VERSION}
container_name: policy-apex-pdp
depends_on:
- mariadb
- message-router
- pap
hostname: policy-apex-pdp
- command: ['/opt/app/policy/apex-pdp/bin/apexOnapPf.sh', '-c', '/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json', '-p', '/opt/app/policy/apex-pdp/etc/onappf/config/topic.properties']
+ command: ['/opt/app/policy/apex-pdp/bin/apexOnapPf.sh', '-c', '/opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json']
ports:
- "6969:6969"
diff --git a/scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml b/scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml
index 96a4b122..af1cbaee 100644
--- a/scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml
+++ b/scripts/policy/policy-xacml-pdp/docker-compose-pdpx.yml
@@ -21,7 +21,7 @@ networks:
driver: bridge
services:
mariadb:
- image: mariadb:10.2.14
+ image: mariadb:${POLICY_MARIADB_VER}
container_name: mariadb
hostname: mariadb
command: ['--lower-case-table-names=1', '--wait_timeout=28800']
@@ -37,20 +37,20 @@ services:
ports:
- "3904:3904"
pap:
- image: nexus3.onap.org:10001/onap/policy-pap
+ image: nexus3.onap.org:10001/onap/policy-pap:${POLICY_PAP_VERSION}
container_name: policy-pap
depends_on:
- mariadb
- message-router
hostname: policy-pap
api:
- image: nexus3.onap.org:10001/onap/policy-api
+ image: nexus3.onap.org:10001/onap/policy-api:${POLICY_API_VERSION}
container_name: policy-api
depends_on:
- mariadb
hostname: policy-api
xacml-pdp:
- image: nexus3.onap.org:10001/onap/policy-xacml-pdp
+ image: nexus3.onap.org:10001/onap/policy-xacml-pdp:${POLICY_XACML_PDP_VERSION}
container_name: policy-xacml-pdp
depends_on:
- mariadb
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
new file mode 100644
index 00000000..79e0d201
--- /dev/null
+++ b/tests/vfc/nfvo-catalog/files/vgw.csar
Binary files differ
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']}