Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on prd-ubuntu1804-docker-8c-8g-17885 (ubuntu1804-docker-8c-8g) in workspace /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-MQ8mB7Ai2AXB/agent.2112 SSH_AGENT_PID=2114 [ssh-agent] Started. Running ssh-add (command line suppressed) Identity added: /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp@tmp/private_key_11594372359581657034.key (/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp@tmp/private_key_11594372359581657034.key) [ssh-agent] Using credentials onap-jobbuiler (Gerrit user) The recommended git tool is: NONE using credential onap-jenkins-ssh Wiping out workspace first. Cloning the remote Git repository Cloning repository git://cloud.onap.org/mirror/policy/docker.git > git init /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp # timeout=10 Fetching upstream changes from git://cloud.onap.org/mirror/policy/docker.git > git --version # timeout=10 > git --version # 'git version 2.17.1' using GIT_SSH to set credentials Gerrit user Verifying host key using manually-configured host key entries > git fetch --tags --progress -- git://cloud.onap.org/mirror/policy/docker.git +refs/heads/*:refs/remotes/origin/* # timeout=30 > git config remote.origin.url git://cloud.onap.org/mirror/policy/docker.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/london^{commit} # timeout=10 Checking out Revision e830ea142a4b760cf152d9db92c451d74b2da1f2 (refs/remotes/origin/london) > git config core.sparsecheckout # timeout=10 > git checkout -f e830ea142a4b760cf152d9db92c451d74b2da1f2 # timeout=30 Commit message: "Make update to allow local image to be used in Nordix" > git rev-list --no-walk e830ea142a4b760cf152d9db92c451d74b2da1f2 # timeout=10 provisioning config files... copy managed file [npmrc] to file:/home/jenkins/.npmrc copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash /tmp/jenkins5914797077213722206.sh ---> python-tools-install.sh Setup pyenv: * system (set by /opt/pyenv/version) * 3.8.13 (set by /opt/pyenv/version) * 3.9.13 (set by /opt/pyenv/version) * 3.10.6 (set by /opt/pyenv/version) lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-0mDw lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-0mDw/bin to PATH Generating Requirements File Python 3.10.6 pip 24.0 from /tmp/venv-0mDw/lib/python3.10/site-packages/pip (python 3.10) appdirs==1.4.4 argcomplete==3.2.3 aspy.yaml==1.3.0 attrs==23.2.0 autopage==0.5.2 beautifulsoup4==4.12.3 boto3==1.34.69 botocore==1.34.69 bs4==0.0.2 cachetools==5.3.3 certifi==2024.2.2 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 cliff==4.6.0 cmd2==2.4.3 cryptography==3.3.2 debtcollector==3.0.0 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.14 distlib==0.3.8 dnspython==2.6.1 docker==4.2.2 dogpile.cache==1.3.2 email_validator==2.1.1 filelock==3.13.1 future==1.0.0 gitdb==4.0.11 GitPython==3.1.42 google-auth==2.29.0 httplib2==0.22.0 identify==2.5.35 idna==3.6 importlib-resources==1.5.0 iso8601==2.1.0 Jinja2==3.1.3 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==2.4 jsonschema==4.21.1 jsonschema-specifications==2023.12.1 keystoneauth1==5.6.0 kubernetes==29.0.0 lftools==0.37.10 lxml==5.1.0 MarkupSafe==2.1.5 msgpack==1.0.8 multi_key_dict==2.0.3 munch==4.0.0 netaddr==1.2.1 netifaces==0.11.0 niet==1.4.2 nodeenv==1.8.0 oauth2client==4.1.3 oauthlib==3.2.2 openstacksdk==3.0.0 os-client-config==2.1.0 os-service-types==1.7.0 osc-lib==3.0.1 oslo.config==9.4.0 oslo.context==5.5.0 oslo.i18n==6.3.0 oslo.log==5.5.0 oslo.serialization==5.4.0 oslo.utils==7.1.0 packaging==24.0 pbr==6.0.0 platformdirs==4.2.0 prettytable==3.10.0 pyasn1==0.5.1 pyasn1-modules==0.3.0 pycparser==2.21 pygerrit2==2.0.15 PyGithub==2.3.0 pyinotify==0.9.6 PyJWT==2.8.0 PyNaCl==1.5.0 pyparsing==2.4.7 pyperclip==1.8.2 pyrsistent==0.20.0 python-cinderclient==9.5.0 python-dateutil==2.9.0.post0 python-heatclient==3.5.0 python-jenkins==1.8.2 python-keystoneclient==5.4.0 python-magnumclient==4.4.0 python-novaclient==18.6.0 python-openstackclient==6.6.0 python-swiftclient==4.5.0 PyYAML==6.0.1 referencing==0.34.0 requests==2.31.0 requests-oauthlib==2.0.0 requestsexceptions==1.4.0 rfc3986==2.0.0 rpds-py==0.18.0 rsa==4.9 ruamel.yaml==0.18.6 ruamel.yaml.clib==0.2.8 s3transfer==0.10.1 simplejson==3.19.2 six==1.16.0 smmap==5.0.1 soupsieve==2.5 stevedore==5.2.0 tabulate==0.9.0 toml==0.10.2 tomlkit==0.12.4 tqdm==4.66.2 typing_extensions==4.10.0 tzdata==2024.1 urllib3==1.26.18 virtualenv==20.25.1 wcwidth==0.2.13 websocket-client==1.7.0 wrapt==1.16.0 xdg==6.0.0 xmltodict==0.13.0 yq==3.2.3 [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content SET_JDK_VERSION=openjdk17 GIT_URL="git://cloud.onap.org/mirror" [EnvInject] - Variables injected successfully. [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/sh /tmp/jenkins6957885942265063911.sh ---> update-java-alternatives.sh ---> Updating Java version ---> Ubuntu/Debian system detected update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/java to provide /usr/bin/java (java) in manual mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in manual mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64 to provide /usr/lib/jvm/java-openjdk (java_sdk_openjdk) in manual mode openjdk version "17.0.4" 2022-07-19 OpenJDK Runtime Environment (build 17.0.4+8-Ubuntu-118.04) OpenJDK 64-Bit Server VM (build 17.0.4+8-Ubuntu-118.04, mixed mode, sharing) JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties file path '/tmp/java.env' [EnvInject] - Variables injected successfully. [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/sh -xe /tmp/jenkins4726734803953485856.sh + /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/run-project-csit.sh apex-pdp + set +u + save_set + RUN_CSIT_SAVE_SET=ehxB + RUN_CSIT_SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:pipefail:xtrace + '[' 1 -eq 0 ']' + '[' -z /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp ']' + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/scripts:/bin + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/scripts:/bin + export SCRIPTS=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts + SCRIPTS=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts + export ROBOT_VARIABLES= + ROBOT_VARIABLES= + export PROJECT=apex-pdp + PROJECT=apex-pdp + cd /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp + rm -rf /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/archives/apex-pdp + mkdir -p /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/archives/apex-pdp + source_safely /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/prepare-robot-env.sh + '[' -z /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/prepare-robot-env.sh ']' + relax_set + set +e + set +o pipefail + . /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/prepare-robot-env.sh ++ '[' -z /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp ']' +++ mktemp -d ++ ROBOT_VENV=/tmp/tmp.mNtFkIgiqq ++ echo ROBOT_VENV=/tmp/tmp.mNtFkIgiqq +++ python3 --version ++ echo 'Python version is: Python 3.6.9' Python version is: Python 3.6.9 ++ python3 -m venv --clear /tmp/tmp.mNtFkIgiqq ++ source /tmp/tmp.mNtFkIgiqq/bin/activate +++ deactivate nondestructive +++ '[' -n '' ']' +++ '[' -n '' ']' +++ '[' -n /bin/bash -o -n '' ']' +++ hash -r +++ '[' -n '' ']' +++ unset VIRTUAL_ENV +++ '[' '!' nondestructive = nondestructive ']' +++ VIRTUAL_ENV=/tmp/tmp.mNtFkIgiqq +++ export VIRTUAL_ENV +++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/scripts:/bin +++ PATH=/tmp/tmp.mNtFkIgiqq/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/scripts:/bin +++ export PATH +++ '[' -n '' ']' +++ '[' -z '' ']' +++ _OLD_VIRTUAL_PS1= +++ '[' 'x(tmp.mNtFkIgiqq) ' '!=' x ']' +++ PS1='(tmp.mNtFkIgiqq) ' +++ export PS1 +++ '[' -n /bin/bash -o -n '' ']' +++ hash -r ++ set -exu ++ python3 -m pip install -qq --upgrade 'pip<=23.0' 'setuptools<=66.1.1' ++ echo 'Installing Python Requirements' Installing Python Requirements ++ python3 -m pip install -qq -r /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/pylibs.txt ++ python3 -m pip -qq freeze bcrypt==4.0.1 beautifulsoup4==4.12.3 bitarray==2.9.2 certifi==2024.2.2 cffi==1.15.1 charset-normalizer==2.0.12 cryptography==40.0.2 decorator==5.1.1 elasticsearch==7.17.9 elasticsearch-dsl==7.4.1 enum34==1.1.10 idna==3.6 importlib-resources==5.4.0 ipaddr==2.2.0 isodate==0.6.1 jmespath==0.10.0 jsonpatch==1.32 jsonpath-rw==1.4.0 jsonpointer==2.3 lxml==5.1.0 netaddr==0.8.0 netifaces==0.11.0 odltools==0.1.28 paramiko==3.4.0 pkg_resources==0.0.0 ply==3.11 pyang==2.6.0 pyangbind==0.8.1 pycparser==2.21 pyhocon==0.3.60 PyNaCl==1.5.0 pyparsing==3.1.2 python-dateutil==2.9.0.post0 regex==2023.8.8 requests==2.27.1 robotframework==6.1.1 robotframework-httplibrary==0.4.2 robotframework-pythonlibcore==3.0.0 robotframework-requests==0.9.4 robotframework-selenium2library==3.0.0 robotframework-seleniumlibrary==5.1.3 robotframework-sshlibrary==3.8.0 scapy==2.5.0 scp==0.14.5 selenium==3.141.0 six==1.16.0 soupsieve==2.3.2.post1 urllib3==1.26.18 waitress==2.0.0 WebOb==1.8.7 WebTest==3.0.0 zipp==3.6.0 ++ mkdir -p /tmp/tmp.mNtFkIgiqq/src/onap ++ rm -rf /tmp/tmp.mNtFkIgiqq/src/onap/testsuite ++ python3 -m pip install -qq --upgrade --extra-index-url=https://nexus3.onap.org/repository/PyPi.staging/simple 'robotframework-onap==0.6.0.*' --pre ++ echo 'Uninstall docker-py and reinstall docker.' Uninstall docker-py and reinstall docker. ++ python3 -m pip uninstall -y -qq docker ++ python3 -m pip install -U -qq docker ++ python3 -m pip -qq freeze bcrypt==4.0.1 beautifulsoup4==4.12.3 bitarray==2.9.2 certifi==2024.2.2 cffi==1.15.1 charset-normalizer==2.0.12 cryptography==40.0.2 decorator==5.1.1 deepdiff==5.7.0 dnspython==2.2.1 docker==5.0.3 elasticsearch==7.17.9 elasticsearch-dsl==7.4.1 enum34==1.1.10 future==1.0.0 idna==3.6 importlib-resources==5.4.0 ipaddr==2.2.0 isodate==0.6.1 Jinja2==3.0.3 jmespath==0.10.0 jsonpatch==1.32 jsonpath-rw==1.4.0 jsonpointer==2.3 kafka-python==2.0.2 lxml==5.1.0 MarkupSafe==2.0.1 more-itertools==5.0.0 netaddr==0.8.0 netifaces==0.11.0 odltools==0.1.28 ordered-set==4.0.2 paramiko==3.4.0 pbr==6.0.0 pkg_resources==0.0.0 ply==3.11 protobuf==3.19.6 pyang==2.6.0 pyangbind==0.8.1 pycparser==2.21 pyhocon==0.3.60 PyNaCl==1.5.0 pyparsing==3.1.2 python-dateutil==2.9.0.post0 PyYAML==6.0.1 regex==2023.8.8 requests==2.27.1 robotframework==6.1.1 robotframework-httplibrary==0.4.2 robotframework-onap==0.6.0.dev105 robotframework-pythonlibcore==3.0.0 robotframework-requests==0.9.4 robotframework-selenium2library==3.0.0 robotframework-seleniumlibrary==5.1.3 robotframework-sshlibrary==3.8.0 robotlibcore-temp==1.0.2 scapy==2.5.0 scp==0.14.5 selenium==3.141.0 six==1.16.0 soupsieve==2.3.2.post1 urllib3==1.26.18 waitress==2.0.0 WebOb==1.8.7 websocket-client==1.3.1 WebTest==3.0.0 zipp==3.6.0 ++ uname ++ grep -q Linux ++ sudo apt-get -y -qq install libxml2-utils + load_set + _setopts=ehuxB ++ echo braceexpand:hashall:interactive-comments:nounset:xtrace ++ tr : ' ' + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o braceexpand + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o hashall + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o interactive-comments + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o nounset + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o xtrace ++ echo ehuxB ++ sed 's/./& /g' + for i in $(echo "$_setopts" | sed 's/./& /g') + set +e + for i in $(echo "$_setopts" | sed 's/./& /g') + set +h + for i in $(echo "$_setopts" | sed 's/./& /g') + set +u + for i in $(echo "$_setopts" | sed 's/./& /g') + set +x + source_safely /tmp/tmp.mNtFkIgiqq/bin/activate + '[' -z /tmp/tmp.mNtFkIgiqq/bin/activate ']' + relax_set + set +e + set +o pipefail + . /tmp/tmp.mNtFkIgiqq/bin/activate ++ deactivate nondestructive ++ '[' -n /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/scripts:/bin ']' ++ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/scripts:/bin ++ export PATH ++ unset _OLD_VIRTUAL_PATH ++ '[' -n '' ']' ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r ++ '[' -n '' ']' ++ unset VIRTUAL_ENV ++ '[' '!' nondestructive = nondestructive ']' ++ VIRTUAL_ENV=/tmp/tmp.mNtFkIgiqq ++ export VIRTUAL_ENV ++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/scripts:/bin ++ PATH=/tmp/tmp.mNtFkIgiqq/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/scripts:/bin ++ export PATH ++ '[' -n '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1='(tmp.mNtFkIgiqq) ' ++ '[' 'x(tmp.mNtFkIgiqq) ' '!=' x ']' ++ PS1='(tmp.mNtFkIgiqq) (tmp.mNtFkIgiqq) ' ++ export PS1 ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r + load_set + _setopts=hxB ++ echo braceexpand:hashall:interactive-comments:xtrace ++ tr : ' ' + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o braceexpand + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o hashall + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o interactive-comments + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o xtrace ++ echo hxB ++ sed 's/./& /g' + for i in $(echo "$_setopts" | sed 's/./& /g') + set +h + for i in $(echo "$_setopts" | sed 's/./& /g') + set +x + export TEST_PLAN_DIR=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests + TEST_PLAN_DIR=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests + export TEST_OPTIONS= + TEST_OPTIONS= ++ mktemp -d + WORKDIR=/tmp/tmp.eGCs7ITusJ + cd /tmp/tmp.eGCs7ITusJ + docker login -u docker -p docker nexus3.onap.org:10001 WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded + SETUP=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/setup-apex-pdp.sh + '[' -f /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/setup-apex-pdp.sh ']' + echo 'Running setup script /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/setup-apex-pdp.sh' Running setup script /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/setup-apex-pdp.sh + source_safely /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/setup-apex-pdp.sh + '[' -z /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/setup-apex-pdp.sh ']' + relax_set + set +e + set +o pipefail + . /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/setup-apex-pdp.sh ++ source /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/setup-pap.sh +++ source /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/node-templates.sh ++++ '[' -z /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp ']' +++++ awk -F= '$1 == "defaultbranch" { print $2 }' /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/.gitreview ++++ GERRIT_BRANCH=london ++++ echo GERRIT_BRANCH=london GERRIT_BRANCH=london ++++ rm -rf /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models ++++ mkdir /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models ++++ git clone -b london --single-branch https://github.com/onap/policy-models.git /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models Cloning into '/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models'... ++++ export DATA=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/policies ++++ DATA=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/policies ++++ export NODETEMPLATES=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/nodetemplates ++++ NODETEMPLATES=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/nodetemplates ++++ sed -e 's!Measurement_vGMUX!ADifferentValue!' /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/policies/vCPE.policy.monitoring.input.tosca.json ++++ sed -e 's!"version": "1.0.0"!"version": "2.0.0"!' -e 's!"policy-version": 1!"policy-version": 2!' /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/policies/vCPE.policy.monitoring.input.tosca.json +++ source /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/compose/start-compose.sh apex-pdp --grafana ++++ '[' -z /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp ']' ++++ COMPOSE_FOLDER=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/compose ++++ grafana=false ++++ gui=false ++++ [[ 2 -gt 0 ]] ++++ key=apex-pdp ++++ case $key in ++++ echo apex-pdp apex-pdp ++++ component=apex-pdp ++++ shift ++++ [[ 1 -gt 0 ]] ++++ key=--grafana ++++ case $key in ++++ grafana=true ++++ shift ++++ [[ 0 -gt 0 ]] ++++ cd /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/compose ++++ echo 'Configuring docker compose...' Configuring docker compose... ++++ source export-ports.sh ++++ source get-versions.sh ++++ '[' -z apex-pdp ']' ++++ '[' -n apex-pdp ']' ++++ '[' apex-pdp == logs ']' ++++ '[' true = true ']' ++++ echo 'Starting apex-pdp application with Grafana' Starting apex-pdp application with Grafana ++++ docker-compose up -d apex-pdp grafana Creating network "compose_default" with the default driver Pulling mariadb (nexus3.onap.org:10001/mariadb:10.10.2)... 10.10.2: Pulling from mariadb Digest: sha256:bfc25a68e113de43d0d112f5a7126df8e278579c3224e3923359e1c1d8d5ce6e Status: Downloaded newer image for nexus3.onap.org:10001/mariadb:10.10.2 Pulling simulator (nexus3.onap.org:10001/onap/policy-models-simulator:2.8.2)... 2.8.2: Pulling from onap/policy-models-simulator Digest: sha256:d66832c0ea151ba3a6622530fc8ba7ebb3a79651d6a55d9acec30da670ff0918 Status: Downloaded newer image for nexus3.onap.org:10001/onap/policy-models-simulator:2.8.2 Pulling policy-db-migrator (nexus3.onap.org:10001/onap/policy-db-migrator:2.6.2)... 2.6.2: Pulling from onap/policy-db-migrator Digest: sha256:a003c74f917627b7a14203f69b616fd4ffbb9c75689a5da0efcd611ad2535297 Status: Downloaded newer image for nexus3.onap.org:10001/onap/policy-db-migrator:2.6.2 Pulling api (nexus3.onap.org:10001/onap/policy-api:2.8.2)... 2.8.2: Pulling from onap/policy-api Digest: sha256:217c303960fc98a3dbef0c32dcca2beb777ec0b98b821daa59093c76f331177d Status: Downloaded newer image for nexus3.onap.org:10001/onap/policy-api:2.8.2 Pulling pap (nexus3.onap.org:10001/onap/policy-pap:2.8.2)... 2.8.2: Pulling from onap/policy-pap Digest: sha256:d2eee0e6e5254e8fda6295374b394f8dc21ab45215be3b68875b0218cb01e8e6 Status: Downloaded newer image for nexus3.onap.org:10001/onap/policy-pap:2.8.2 Pulling apex-pdp (nexus3.onap.org:10001/onap/policy-apex-pdp:2.9.2)... 2.9.2: Pulling from onap/policy-apex-pdp Digest: sha256:d5acb51c95329c5991fd1cd76afe88a8b2c1da85f5ae6a9cb26613f887c5088c Status: Downloaded newer image for nexus3.onap.org:10001/onap/policy-apex-pdp:2.9.2 Pulling prometheus (nexus3.onap.org:10001/prom/prometheus:latest)... latest: Pulling from prom/prometheus Digest: sha256:5ccad477d0057e62a7cd1981ffcc43785ac10c5a35522dc207466ff7e7ec845f Status: Downloaded newer image for nexus3.onap.org:10001/prom/prometheus:latest Pulling grafana (nexus3.onap.org:10001/grafana/grafana:latest)... latest: Pulling from grafana/grafana Digest: sha256:753bbb971071480d6630d3aa0d55345188c02f39456664f67c1ea443593638d0 Status: Downloaded newer image for nexus3.onap.org:10001/grafana/grafana:latest Creating simulator ... Creating mariadb ... Creating prometheus ... Creating simulator ... done Creating mariadb ... done Creating policy-db-migrator ... Creating prometheus ... done Creating grafana ... Creating policy-db-migrator ... done Creating policy-api ... Creating grafana ... done Creating policy-api ... done Creating policy-pap ... Creating policy-pap ... done Creating policy-apex-pdp ... Creating policy-apex-pdp ... done ++++ echo 'Prometheus server: http://localhost:30259' Prometheus server: http://localhost:30259 ++++ echo 'Grafana server: http://localhost:30269' Grafana server: http://localhost:30269 ++++ cd /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp +++ sleep 10 +++ unset http_proxy https_proxy +++ bash /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/wait_for_rest.sh localhost 30003 Waiting for REST to come up on localhost port 30003... NAMES STATUS policy-apex-pdp Up 10 seconds policy-pap Up 11 seconds policy-api Up 12 seconds grafana Up 13 seconds mariadb Up 16 seconds prometheus Up 15 seconds simulator Up 17 seconds NAMES STATUS policy-apex-pdp Up 15 seconds policy-pap Up 16 seconds policy-api Up 17 seconds grafana Up 18 seconds mariadb Up 21 seconds prometheus Up 20 seconds simulator Up 23 seconds NAMES STATUS policy-apex-pdp Up 20 seconds policy-pap Up 21 seconds policy-api Up 22 seconds grafana Up 23 seconds mariadb Up 26 seconds prometheus Up 25 seconds simulator Up 28 seconds NAMES STATUS policy-apex-pdp Up 25 seconds policy-pap Up 26 seconds policy-api Up 27 seconds grafana Up 28 seconds mariadb Up 32 seconds prometheus Up 30 seconds simulator Up 33 seconds NAMES STATUS policy-apex-pdp Up 30 seconds policy-pap Up 31 seconds policy-api Up 32 seconds grafana Up 33 seconds mariadb Up 37 seconds prometheus Up 35 seconds simulator Up 38 seconds NAMES STATUS policy-apex-pdp Up 35 seconds policy-pap Up 36 seconds policy-api Up 37 seconds grafana Up 38 seconds mariadb Up 42 seconds prometheus Up 41 seconds simulator Up 43 seconds NAMES STATUS policy-apex-pdp Up 40 seconds policy-pap Up 41 seconds policy-api Up 42 seconds grafana Up 43 seconds mariadb Up 47 seconds prometheus Up 46 seconds simulator Up 48 seconds NAMES STATUS policy-apex-pdp Up 45 seconds policy-pap Up 46 seconds policy-api Up 47 seconds grafana Up 49 seconds mariadb Up 52 seconds prometheus Up 51 seconds simulator Up 53 seconds NAMES STATUS policy-apex-pdp Up 50 seconds policy-pap Up 51 seconds policy-api Up 53 seconds grafana Up 54 seconds mariadb Up 57 seconds prometheus Up 56 seconds simulator Up 58 seconds +++ export 'SUITES=pap-test.robot pap-slas.robot' +++ SUITES='pap-test.robot pap-slas.robot' +++ ROBOT_VARIABLES='-v POLICY_PAP_IP:localhost:30003 -v POLICY_API_IP:localhost:30002 -v PROMETHEUS_IP:localhost:30259 -v DATA:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/policies -v NODETEMPLATES:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/nodetemplates' ++ bash /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/scripts/wait_for_rest.sh localhost 30001 Waiting for REST to come up on localhost port 30001... NAMES STATUS policy-apex-pdp Up 50 seconds policy-pap Up 51 seconds policy-api Up 53 seconds grafana Up 54 seconds mariadb Up 57 seconds prometheus Up 56 seconds simulator Up 58 seconds ++ export DMAAP_IP=localhost:30904 ++ DMAAP_IP=localhost:30904 ++ export 'SUITES=apex-pdp-test.robot apex-slas.robot' ++ SUITES='apex-pdp-test.robot apex-slas.robot' ++ ROBOT_VARIABLES='-v POLICY_PAP_IP:localhost:30003 -v POLICY_API_IP:localhost:30002 -v PROMETHEUS_IP:localhost:30259 -v DATA:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/policies -v NODETEMPLATES:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/nodetemplates -v APEX_IP:localhost:30001 -v DMAAP_IP:localhost:30904 -v APEX_EVENTS_IP:localhost:23324' + load_set + _setopts=hxB ++ echo braceexpand:hashall:interactive-comments:xtrace ++ tr : ' ' + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o braceexpand + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o hashall + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o interactive-comments + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o xtrace ++ echo hxB ++ sed 's/./& /g' + for i in $(echo "$_setopts" | sed 's/./& /g') + set +h + for i in $(echo "$_setopts" | sed 's/./& /g') + set +x + docker_stats + tee /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/archives/apex-pdp/_sysinfo-1-after-setup.txt ++ uname -s + '[' Linux == Darwin ']' + sh -c 'top -bn1 | head -3' top - 02:53:26 up 4 min, 0 users, load average: 4.42, 1.85, 0.72 Tasks: 201 total, 1 running, 121 sleeping, 0 stopped, 0 zombie %Cpu(s): 13.8 us, 3.3 sy, 0.0 ni, 78.2 id, 4.7 wa, 0.0 hi, 0.1 si, 0.1 st + echo + sh -c 'free -h' total used free shared buff/cache available Mem: 31G 3.8G 22G 1.2M 4.8G 27G Swap: 1.0G 0B 1.0G + echo + docker ps --format 'table {{ .Names }}\t{{ .Status }}' NAMES STATUS policy-apex-pdp Up 51 seconds policy-pap Up 52 seconds policy-api Up 53 seconds grafana Up 54 seconds mariadb Up 57 seconds prometheus Up 56 seconds simulator Up 59 seconds + echo + docker stats --no-stream CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS 2f4fc902610d policy-apex-pdp 1.48% 276.4MiB / 31.41GiB 0.86% 12.8kB / 13.8kB 0B / 0B 46 7005227723e6 policy-pap 0.64% 1.089GiB / 31.41GiB 3.47% 65.6kB / 56.5kB 0B / 156MB 57 a292ba266028 policy-api 0.14% 1.203GiB / 31.41GiB 3.83% 1.04MB / 740kB 0B / 0B 51 5f717ba099bc grafana 0.05% 59.8MiB / 31.41GiB 0.19% 19.1kB / 3.53kB 0B / 24.7MB 16 c1120a858538 mariadb 0.02% 102MiB / 31.41GiB 0.32% 1.05MB / 1.25MB 11MB / 47.5MB 38 064ff4af568c prometheus 0.00% 18.81MiB / 31.41GiB 0.06% 1.64kB / 474B 86kB / 0B 13 ef130d13b4c6 simulator 0.65% 267.6MiB / 31.41GiB 0.83% 18.9kB / 22.3kB 131kB / 0B 96 + echo + cd /tmp/tmp.eGCs7ITusJ + echo 'Reading the testplan:' Reading the testplan: + echo 'apex-pdp-test.robot apex-slas.robot' + egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' + sed 's|^|/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/|' + cat testplan.txt /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-pdp-test.robot /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-slas.robot ++ xargs + SUITES='/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-pdp-test.robot /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-slas.robot' + echo 'ROBOT_VARIABLES=-v POLICY_PAP_IP:localhost:30003 -v POLICY_API_IP:localhost:30002 -v PROMETHEUS_IP:localhost:30259 -v DATA:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/policies -v NODETEMPLATES:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/nodetemplates -v APEX_IP:localhost:30001 -v DMAAP_IP:localhost:30904 -v APEX_EVENTS_IP:localhost:23324' ROBOT_VARIABLES=-v POLICY_PAP_IP:localhost:30003 -v POLICY_API_IP:localhost:30002 -v PROMETHEUS_IP:localhost:30259 -v DATA:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/policies -v NODETEMPLATES:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/nodetemplates -v APEX_IP:localhost:30001 -v DMAAP_IP:localhost:30904 -v APEX_EVENTS_IP:localhost:23324 + echo 'Starting Robot test suites /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-pdp-test.robot /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-slas.robot ...' Starting Robot test suites /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-pdp-test.robot /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-slas.robot ... + relax_set + set +e + set +o pipefail + python3 -m robot.run -N apex-pdp -v WORKSPACE:/tmp -v POLICY_PAP_IP:localhost:30003 -v POLICY_API_IP:localhost:30002 -v PROMETHEUS_IP:localhost:30259 -v DATA:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/policies -v NODETEMPLATES:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models/models-examples/src/main/resources/nodetemplates -v APEX_IP:localhost:30001 -v DMAAP_IP:localhost:30904 -v APEX_EVENTS_IP:localhost:23324 /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-pdp-test.robot /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/resources/tests/apex-slas.robot ============================================================================== apex-pdp ============================================================================== apex-pdp.Apex-Pdp-Test ============================================================================== Healthcheck :: Runs Apex PDP Health check | PASS | ------------------------------------------------------------------------------ ExecuteApexSampleDomainPolicy | PASS | ------------------------------------------------------------------------------ ExecuteApexTestPnfPolicy | PASS | ------------------------------------------------------------------------------ ExecuteApexTestVnfPolicy | PASS | ------------------------------------------------------------------------------ ExecuteApexTestPnfPolicyWithMetadataSet | PASS | ------------------------------------------------------------------------------ Metrics :: Verify policy-apex-pdp is exporting prometheus metrics | PASS | ------------------------------------------------------------------------------ apex-pdp.Apex-Pdp-Test | PASS | 6 tests, 6 passed, 0 failed ============================================================================== apex-pdp.Apex-Slas ============================================================================== Healthcheck :: Runs Apex PDP Health check | PASS | ------------------------------------------------------------------------------ ValidatePolicyExecutionAndEventRateLowComplexity :: Validate that ... | PASS | ------------------------------------------------------------------------------ ValidatePolicyExecutionAndEventRateModerateComplexity :: Validate ... | PASS | ------------------------------------------------------------------------------ ValidatePolicyExecutionAndEventRateHighComplexity :: Validate that... | PASS | ------------------------------------------------------------------------------ WaitForPrometheusServer :: Sleep time to wait for Prometheus serve... | PASS | ------------------------------------------------------------------------------ ValidatePolicyExecutionTimes :: Validate policy execution times us... | PASS | ------------------------------------------------------------------------------ apex-pdp.Apex-Slas | PASS | 6 tests, 6 passed, 0 failed ============================================================================== apex-pdp | PASS | 12 tests, 12 passed, 0 failed ============================================================================== Output: /tmp/tmp.eGCs7ITusJ/output.xml Log: /tmp/tmp.eGCs7ITusJ/log.html Report: /tmp/tmp.eGCs7ITusJ/report.html + RESULT=0 + load_set + _setopts=hxB ++ tr : ' ' ++ echo braceexpand:hashall:interactive-comments:xtrace + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o braceexpand + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o hashall + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o interactive-comments + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o xtrace ++ echo hxB ++ sed 's/./& /g' + for i in $(echo "$_setopts" | sed 's/./& /g') + set +h + for i in $(echo "$_setopts" | sed 's/./& /g') + set +x + echo 'RESULT: 0' RESULT: 0 + exit 0 + on_exit + rc=0 + [[ -n /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp ]] + docker ps --format 'table {{ .Names }}\t{{ .Status }}' NAMES STATUS policy-apex-pdp Up 4 minutes policy-pap Up 4 minutes policy-api Up 4 minutes grafana Up 4 minutes mariadb Up 4 minutes prometheus Up 4 minutes simulator Up 4 minutes + docker_stats ++ uname -s + '[' Linux == Darwin ']' + sh -c 'top -bn1 | head -3' top - 02:56:47 up 8 min, 0 users, load average: 0.67, 1.15, 0.66 Tasks: 188 total, 1 running, 119 sleeping, 0 stopped, 0 zombie %Cpu(s): 9.7 us, 2.1 sy, 0.0 ni, 84.5 id, 3.6 wa, 0.0 hi, 0.0 si, 0.1 st + echo + sh -c 'free -h' total used free shared buff/cache available Mem: 31G 4.3G 22G 1.2M 4.8G 26G Swap: 1.0G 0B 1.0G + echo + docker ps --format 'table {{ .Names }}\t{{ .Status }}' NAMES STATUS policy-apex-pdp Up 4 minutes policy-pap Up 4 minutes policy-api Up 4 minutes grafana Up 4 minutes mariadb Up 4 minutes prometheus Up 4 minutes simulator Up 4 minutes + echo + docker stats --no-stream CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS 2f4fc902610d policy-apex-pdp 2.15% 492.9MiB / 31.41GiB 1.53% 504kB / 161kB 0B / 487kB 128 7005227723e6 policy-pap 0.33% 1.206GiB / 31.41GiB 3.84% 12.5MB / 2.82MB 0B / 156MB 66 a292ba266028 policy-api 0.28% 1.24GiB / 31.41GiB 3.95% 9.5MB / 3.19MB 0B / 0B 57 5f717ba099bc grafana 0.08% 55.69MiB / 31.41GiB 0.17% 19.9kB / 4.48kB 0B / 24.7MB 16 c1120a858538 mariadb 0.02% 103.9MiB / 31.41GiB 0.32% 4.85MB / 19.5MB 11MB / 48.1MB 28 064ff4af568c prometheus 0.00% 22.42MiB / 31.41GiB 0.07% 227kB / 12.7kB 86kB / 0B 13 ef130d13b4c6 simulator 0.39% 378.7MiB / 31.41GiB 1.18% 505kB / 1.44MB 131kB / 0B 108 + echo + source_safely /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/compose/stop-compose.sh + '[' -z /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/compose/stop-compose.sh ']' + relax_set + set +e + set +o pipefail + . /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/compose/stop-compose.sh ++ echo 'Shut down started!' Shut down started! ++ '[' -z /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp ']' ++ COMPOSE_FOLDER=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/compose ++ cd /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/compose ++ source export-ports.sh ++ source get-versions.sh ++ echo 'Collecting logs from docker compose containers...' Collecting logs from docker compose containers... ++ docker-compose logs ++ cat docker_compose.log Attaching to policy-apex-pdp, policy-pap, policy-api, grafana, policy-db-migrator, mariadb, prometheus, simulator policy-apex-pdp | Waiting for mariadb port 3306... policy-apex-pdp | mariadb (172.17.0.3:3306) open policy-apex-pdp | Waiting for message-router port 3904... policy-apex-pdp | message-router (172.17.0.4:3904) open policy-apex-pdp | Waiting for pap port 6969... policy-apex-pdp | pap (172.17.0.8:6969) open policy-apex-pdp | apexApps.sh: running application 'onappf' with command 'java -Dlogback.configurationFile=/opt/app/policy/apex-pdp/etc/logback.xml -cp /opt/app/policy/apex-pdp/etc:/opt/app/policy/apex-pdp/etc/hazelcast:/opt/app/policy/apex-pdp/etc/infinispan:/opt/app/policy/apex-pdp/lib/* -Djavax.net.ssl.keyStore=/opt/app/policy/apex-pdp/etc/ssl/policy-keystore -Djavax.net.ssl.keyStorePassword=Pol1cy_0nap -Djavax.net.ssl.trustStore=/opt/app/policy/apex-pdp/etc/ssl/policy-truststore -Djavax.net.ssl.trustStorePassword=Pol1cy_0nap -Dlogback.configurationFile=/opt/app/policy/apex-pdp/etc/logback.xml -Dhazelcast.config=/opt/app/policy/apex-pdp/etc/hazelcast.xml -Dhazelcast.mancenter.enabled=false org.onap.policy.apex.services.onappf.ApexStarterMain -c /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json' policy-apex-pdp | [2024-03-25T02:53:22.327+00:00|INFO|ApexStarterMain|main] In ApexStarter with parameters [-c, /opt/app/policy/apex-pdp/etc/onappf/config/OnapPfConfig.json] policy-apex-pdp | [2024-03-25T02:53:22.980+00:00|INFO|SingleThreadedDmaapTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=3aa23aff-999e-4586-abad-fba41e277daa, consumerInstance=policy-apex-pdp, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: INITTED policy-apex-pdp | [2024-03-25T02:53:23.086+00:00|INFO|ServiceManager|main] service manager starting policy-apex-pdp | [2024-03-25T02:53:23.086+00:00|INFO|ServiceManager|main] service manager starting topics policy-apex-pdp | [2024-03-25T02:53:23.094+00:00|INFO|SingleThreadedBusTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=3aa23aff-999e-4586-abad-fba41e277daa, consumerInstance=policy-apex-pdp, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: starting policy-apex-pdp | [2024-03-25T02:53:23.095+00:00|INFO|SingleThreadedDmaapTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=3aa23aff-999e-4586-abad-fba41e277daa, consumerInstance=policy-apex-pdp, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: INITTED policy-apex-pdp | [2024-03-25T02:53:23.104+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:53:23.096+00:00|INFO|InlineBusTopicSink|main] InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=fc8b4470-f99c-4779-b5b2-296b803a0a8c, alive=false, publisher=null]]: starting policy-apex-pdp | [2024-03-25T02:53:23.115+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.123+00:00|INFO|InlineDmaapTopicSink|main] InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=fc8b4470-f99c-4779-b5b2-296b803a0a8c, alive=false, publisher=CambriaPublisherWrapper []]]: DMAAP SINK created policy-apex-pdp | [2024-03-25T02:53:23.123+00:00|INFO|ServiceManager|main] service manager starting set alive policy-apex-pdp | [2024-03-25T02:53:23.123+00:00|INFO|ServiceManager|main] service manager starting register pdp status context object policy-apex-pdp | [2024-03-25T02:53:23.167+00:00|INFO|ServiceManager|main] service manager starting topic sinks policy-apex-pdp | [2024-03-25T02:53:23.168+00:00|INFO|ServiceManager|main] service manager starting Pdp Status publisher policy-apex-pdp | [2024-03-25T02:53:23.179+00:00|INFO|ServiceManager|main] service manager starting Register pdp update listener policy-apex-pdp | [2024-03-25T02:53:23.181+00:00|INFO|ServiceManager|main] service manager starting Register pdp state change request dispatcher policy-apex-pdp | [2024-03-25T02:53:23.181+00:00|INFO|ServiceManager|main] service manager starting Message Dispatcher policy-apex-pdp | [2024-03-25T02:53:23.181+00:00|INFO|TopicBase|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=3aa23aff-999e-4586-abad-fba41e277daa, consumerInstance=policy-apex-pdp, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=true, locked=false, uebThread=Thread[DMAAP-source-POLICY-PDP-PAP,5,main], topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: registering org.onap.policy.common.endpoints.listeners.MessageTypeDispatcher@3d08f3f5 policy-apex-pdp | [2024-03-25T02:53:23.181+00:00|INFO|SingleThreadedBusTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=3aa23aff-999e-4586-abad-fba41e277daa, consumerInstance=policy-apex-pdp, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=true, locked=false, uebThread=Thread[DMAAP-source-POLICY-PDP-PAP,5,main], topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: register: start not attempted policy-apex-pdp | [2024-03-25T02:53:23.182+00:00|INFO|ServiceManager|main] service manager starting Create REST server policy-apex-pdp | [2024-03-25T02:53:23.205+00:00|WARN|PdpMessageHandler|Timer-0] not registered: object:engine/apex/handler policy-apex-pdp | [2024-03-25T02:53:23.252+00:00|INFO|OrderedServiceImpl|Timer-0] ***** OrderedServiceImpl implementers: policy-apex-pdp | [] policy-apex-pdp | [2024-03-25T02:53:23.254+00:00|INFO|network|Timer-0] [OUT|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"pdpType":"apex","state":"PASSIVE","healthy":"HEALTHY","description":"Pdp Heartbeat","statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.218738Z","pdpGroupName":"defaultGroup","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"messageName":"PDP_STATUS","requestId":"575881ea-18ce-4e2f-a9c1-df6f9c943347","timestampMs":1711335203182,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup"} policy-apex-pdp | [2024-03-25T02:53:23.273+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 16 ms policy-apex-pdp | [2024-03-25T02:53:23.286+00:00|INFO|HttpClient|pool-2-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.368+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.371+00:00|INFO|HttpClient|pool-2-thread-1] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.416+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"pdpType":"apex","state":"PASSIVE","healthy":"HEALTHY","description":"Pdp Heartbeat","statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.218738Z","pdpGroupName":"defaultGroup","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"messageName":"PDP_STATUS","requestId":"575881ea-18ce-4e2f-a9c1-df6f9c943347","timestampMs":1711335203182,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup"} policy-apex-pdp | [2024-03-25T02:53:23.420+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] cambria reply ok (128 ms):{"serverTimeMs":0,"count":1} policy-apex-pdp | [2024-03-25T02:53:23.426+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS policy-apex-pdp | [2024-03-25T02:53:23.426+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:53:23.427+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.655+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.660+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","pdpHeartbeatIntervalMs":120000,"policiesToBeDeployed":[],"messageName":"PDP_UPDATE","requestId":"785069ca-7625-46ce-9b32-da2e861548de","timestampMs":1711335203525,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | [2024-03-25T02:53:23.696+00:00|WARN|PdpMessageHandler|DMAAP-source-POLICY-PDP-PAP] not registered: object:engine/apex/handler policy-apex-pdp | [2024-03-25T02:53:23.697+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [OUT|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"pdpType":"apex","state":"PASSIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.697085Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"785069ca-7625-46ce-9b32-da2e861548de","responseStatus":"SUCCESS","responseMessage":"Pdp update successful."},"messageName":"PDP_STATUS","requestId":"e6630c73-cf95-4a86-a6e0-2de730ced6f9","timestampMs":1711335203696,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | [2024-03-25T02:53:23.698+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:53:23.698+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.723+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 25 ms policy-apex-pdp | [2024-03-25T02:53:23.723+00:00|INFO|HttpClient|pool-2-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.728+00:00|INFO|HttpClient|pool-2-thread-1] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.729+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.730+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"pdpType":"apex","state":"PASSIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.697085Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"785069ca-7625-46ce-9b32-da2e861548de","responseStatus":"SUCCESS","responseMessage":"Pdp update successful."},"messageName":"PDP_STATUS","requestId":"e6630c73-cf95-4a86-a6e0-2de730ced6f9","timestampMs":1711335203696,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | [2024-03-25T02:53:23.731+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS policy-apex-pdp | [2024-03-25T02:53:23.733+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] cambria reply ok (10 ms):{"serverTimeMs":0,"count":1} policy-apex-pdp | [2024-03-25T02:53:23.733+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:53:23.733+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.756+00:00|INFO|ServiceManager|main] service manager starting Rest Server policy-apex-pdp | [2024-03-25T02:53:23.756+00:00|INFO|ServiceManager|main] service manager starting policy-apex-pdp | [2024-03-25T02:53:23.756+00:00|INFO|ServiceManager|main] service manager starting REST RestServerParameters mariadb | 2024-03-25 02:52:28+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.10.2+maria~ubu2204 started. mariadb | 2024-03-25 02:52:28+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' mariadb | 2024-03-25 02:52:28+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.10.2+maria~ubu2204 started. mariadb | 2024-03-25 02:52:28+00:00 [Note] [Entrypoint]: Initializing database files mariadb | 2024-03-25 2:52:29 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required) mariadb | 2024-03-25 2:52:29 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF mariadb | 2024-03-25 2:52:29 0 [Warning] 'default-authentication-plugin' is MySQL 5.6 / 5.7 compatible option. To be implemented in later versions. mariadb | mariadb | mariadb | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER ! mariadb | To do so, start the server, then issue the following command: mariadb | mariadb | '/usr/bin/mysql_secure_installation' mariadb | mariadb | which will also give you the option of removing the test mariadb | databases and anonymous user created by default. This is mariadb | strongly recommended for production servers. mariadb | mariadb | See the MariaDB Knowledgebase at https://mariadb.com/kb mariadb | mariadb | Please report any problems at https://mariadb.org/jira mariadb | mariadb | The latest information about MariaDB is available at https://mariadb.org/. mariadb | mariadb | Consider joining MariaDB's strong and vibrant community: mariadb | https://mariadb.org/get-involved/ mariadb | mariadb | 2024-03-25 02:52:30+00:00 [Note] [Entrypoint]: Database files initialized mariadb | 2024-03-25 02:52:30+00:00 [Note] [Entrypoint]: Starting temporary server mariadb | 2024-03-25 02:52:30+00:00 [Note] [Entrypoint]: Waiting for server startup mariadb | 2024-03-25 2:52:30 0 [Note] mariadbd (server 10.10.2-MariaDB-1:10.10.2+maria~ubu2204) starting as process 94 ... mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: Number of transaction pools: 1 mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions mariadb | 2024-03-25 2:52:30 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts) mariadb | 2024-03-25 2:52:30 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required) mariadb | 2024-03-25 2:52:30 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: Completed initialization of buffer pool mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes) mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: 128 rollback segments are active. mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ... mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB. mariadb | 2024-03-25 2:52:30 0 [Note] InnoDB: log sequence number 46590; transaction id 14 mariadb | 2024-03-25 2:52:30 0 [Note] Plugin 'FEEDBACK' is disabled. mariadb | 2024-03-25 2:52:30 0 [Warning] 'default-authentication-plugin' is MySQL 5.6 / 5.7 compatible option. To be implemented in later versions. mariadb | 2024-03-25 2:52:30 0 [Warning] 'user' entry 'root@mariadb' ignored in --skip-name-resolve mode. mariadb | 2024-03-25 2:52:30 0 [Warning] 'proxies_priv' entry '@% root@mariadb' ignored in --skip-name-resolve mode. mariadb | 2024-03-25 2:52:30 0 [Note] mariadbd: ready for connections. mariadb | Version: '10.10.2-MariaDB-1:10.10.2+maria~ubu2204' socket: '/run/mysqld/mysqld.sock' port: 0 mariadb.org binary distribution mariadb | 2024-03-25 02:52:31+00:00 [Note] [Entrypoint]: Temporary server started. mariadb | 2024-03-25 02:52:33+00:00 [Note] [Entrypoint]: Creating user policy_user mariadb | 2024-03-25 02:52:33+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation) mariadb | mariadb | 2024-03-25 02:52:33+00:00 [Warn] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/db.conf mariadb | mariadb | 2024-03-25 02:52:33+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/db.sh mariadb | #!/bin/bash -xv mariadb | # Copyright 2019,2021 AT&T Intellectual Property. All rights reserved policy-apex-pdp | [2024-03-25T02:53:23.756+00:00|INFO|JettyServletServer|main] JettyJerseyServer [Jerseyservlets={/metrics=io.prometheus.client.exporter.MetricsServlet-77b325b3==io.prometheus.client.exporter.MetricsServlet@b6ebb84a{jsp=null,order=-1,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /*=org.glassfish.jersey.servlet.ServletContainer-4102b1b1==org.glassfish.jersey.servlet.ServletContainer@679f86ab{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /=io.swagger.jersey.config.JerseyJaxrsConfig-547e29a4==io.swagger.jersey.config.JerseyJaxrsConfig@9b518e1a{jsp=null,order=2,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=swagger-6969, toString()=JettyServletServer(name=RestServerParameters, host=0.0.0.0, port=6969, sniHostCheck=false, user=policyadmin, password=zb!XztG34, contextPath=/, jettyServer=Server@bf71cec{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@22d6cac2{/,null,STOPPED}, connector=RestServerParameters@73393584{HTTP/1.1, (http/1.1)}{0.0.0.0:6969}, jettyThread=null, servlets={/metrics=io.prometheus.client.exporter.MetricsServlet-77b325b3==io.prometheus.client.exporter.MetricsServlet@b6ebb84a{jsp=null,order=-1,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /*=org.glassfish.jersey.servlet.ServletContainer-4102b1b1==org.glassfish.jersey.servlet.ServletContainer@679f86ab{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /=io.swagger.jersey.config.JerseyJaxrsConfig-547e29a4==io.swagger.jersey.config.JerseyJaxrsConfig@9b518e1a{jsp=null,order=2,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-apex-pdp | [2024-03-25T02:53:23.787+00:00|INFO|ServiceManager|main] service manager started policy-apex-pdp | [2024-03-25T02:53:23.787+00:00|INFO|ServiceManager|main] service manager started policy-apex-pdp | [2024-03-25T02:53:23.787+00:00|INFO|ApexStarterMain|main] Started policy-apex-pdp service successfully. policy-apex-pdp | [2024-03-25T02:53:23.790+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.790+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","state":"ACTIVE","messageName":"PDP_STATE_CHANGE","requestId":"addcf1b1-662b-4ca2-be67-dd35881b741e","timestampMs":1711335203529,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | [2024-03-25T02:53:23.798+00:00|WARN|PdpMessageHandler|DMAAP-source-POLICY-PDP-PAP] not registered: object:engine/apex/handler policy-apex-pdp | [2024-03-25T02:53:23.798+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [OUT|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpStateChange","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.798094Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"addcf1b1-662b-4ca2-be67-dd35881b741e","responseStatus":"SUCCESS","responseMessage":"State changed to active. No policies found."},"messageName":"PDP_STATUS","requestId":"6a7c654e-7e7c-437e-a877-09e26132fc6f","timestampMs":1711335203797,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | [2024-03-25T02:53:23.798+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:53:23.798+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.788+00:00|INFO|JettyServletServer|RestServerParameters-6969] JettyJerseyServer [Jerseyservlets={/metrics=io.prometheus.client.exporter.MetricsServlet-77b325b3==io.prometheus.client.exporter.MetricsServlet@b6ebb84a{jsp=null,order=-1,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /*=org.glassfish.jersey.servlet.ServletContainer-4102b1b1==org.glassfish.jersey.servlet.ServletContainer@679f86ab{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /=io.swagger.jersey.config.JerseyJaxrsConfig-547e29a4==io.swagger.jersey.config.JerseyJaxrsConfig@9b518e1a{jsp=null,order=2,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=swagger-6969, toString()=JettyServletServer(name=RestServerParameters, host=0.0.0.0, port=6969, sniHostCheck=false, user=policyadmin, password=zb!XztG34, contextPath=/, jettyServer=Server@bf71cec{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@22d6cac2{/,null,STOPPED}, connector=RestServerParameters@73393584{HTTP/1.1, (http/1.1)}{0.0.0.0:6969}, jettyThread=Thread[RestServerParameters-6969,5,main], servlets={/metrics=io.prometheus.client.exporter.MetricsServlet-77b325b3==io.prometheus.client.exporter.MetricsServlet@b6ebb84a{jsp=null,order=-1,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /*=org.glassfish.jersey.servlet.ServletContainer-4102b1b1==org.glassfish.jersey.servlet.ServletContainer@679f86ab{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /=io.swagger.jersey.config.JerseyJaxrsConfig-547e29a4==io.swagger.jersey.config.JerseyJaxrsConfig@9b518e1a{jsp=null,order=2,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-apex-pdp | [2024-03-25T02:53:23.823+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 25 ms policy-apex-pdp | [2024-03-25T02:53:23.823+00:00|INFO|HttpClient|pool-2-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.829+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.830+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpStateChange","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.798094Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"addcf1b1-662b-4ca2-be67-dd35881b741e","responseStatus":"SUCCESS","responseMessage":"State changed to active. No policies found."},"messageName":"PDP_STATUS","requestId":"6a7c654e-7e7c-437e-a877-09e26132fc6f","timestampMs":1711335203797,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | [2024-03-25T02:53:23.830+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS policy-apex-pdp | [2024-03-25T02:53:23.830+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:53:23.830+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.831+00:00|INFO|HttpClient|pool-2-thread-1] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.831+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] cambria reply ok (8 ms):{"serverTimeMs":0,"count":1} policy-apex-pdp | [2024-03-25T02:53:23.888+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.888+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","pdpHeartbeatIntervalMs":120000,"policiesToBeDeployed":[],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"68cc4673-2240-4c92-8b65-d8c26501165a","timestampMs":1711335203833,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | [2024-03-25T02:53:23.891+00:00|WARN|PdpMessageHandler|DMAAP-source-POLICY-PDP-PAP] not registered: object:engine/apex/handler policy-apex-pdp | [2024-03-25T02:53:23.891+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [OUT|DMAAP|POLICY-PDP-PAP] grafana | logger=settings t=2024-03-25T02:52:31.957238728Z level=info msg="Starting Grafana" version=10.4.1 commit=d94d597d847c05085542c29dfad6b3f469cc77e1 branch=v10.4.x compiled=2024-03-25T02:52:31Z grafana | logger=settings t=2024-03-25T02:52:31.958409141Z level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini grafana | logger=settings t=2024-03-25T02:52:31.958463221Z level=info msg="Config loaded from" file=/etc/grafana/grafana.ini grafana | logger=settings t=2024-03-25T02:52:31.958501282Z level=info msg="Config overridden from command line" arg="default.paths.data=/var/lib/grafana" grafana | logger=settings t=2024-03-25T02:52:31.958559742Z level=info msg="Config overridden from command line" arg="default.paths.logs=/var/log/grafana" grafana | logger=settings t=2024-03-25T02:52:31.958610683Z level=info msg="Config overridden from command line" arg="default.paths.plugins=/var/lib/grafana/plugins" grafana | logger=settings t=2024-03-25T02:52:31.958677274Z level=info msg="Config overridden from command line" arg="default.paths.provisioning=/etc/grafana/provisioning" grafana | logger=settings t=2024-03-25T02:52:31.958729294Z level=info msg="Config overridden from command line" arg="default.log.mode=console" grafana | logger=settings t=2024-03-25T02:52:31.958770885Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_DATA=/var/lib/grafana" grafana | logger=settings t=2024-03-25T02:52:31.958814035Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_LOGS=/var/log/grafana" grafana | logger=settings t=2024-03-25T02:52:31.958869116Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins" grafana | logger=settings t=2024-03-25T02:52:31.958940676Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning" grafana | logger=settings t=2024-03-25T02:52:31.959035107Z level=info msg=Target target=[all] grafana | logger=settings t=2024-03-25T02:52:31.959090688Z level=info msg="Path Home" path=/usr/share/grafana grafana | logger=settings t=2024-03-25T02:52:31.959184849Z level=info msg="Path Data" path=/var/lib/grafana grafana | logger=settings t=2024-03-25T02:52:31.959227689Z level=info msg="Path Logs" path=/var/log/grafana grafana | logger=settings t=2024-03-25T02:52:31.95931575Z level=info msg="Path Plugins" path=/var/lib/grafana/plugins grafana | logger=settings t=2024-03-25T02:52:31.959380611Z level=info msg="Path Provisioning" path=/etc/grafana/provisioning grafana | logger=settings t=2024-03-25T02:52:31.959435992Z level=info msg="App mode production" grafana | logger=sqlstore t=2024-03-25T02:52:31.960162951Z level=info msg="Connecting to DB" dbtype=sqlite3 grafana | logger=sqlstore t=2024-03-25T02:52:31.960233331Z level=info msg="Creating SQLite database file" path=/var/lib/grafana/grafana.db grafana | logger=migrator t=2024-03-25T02:52:31.961349323Z level=info msg="Starting DB migrations" grafana | logger=migrator t=2024-03-25T02:52:31.962845291Z level=info msg="Executing migration" id="create migration_log table" grafana | logger=migrator t=2024-03-25T02:52:31.963866312Z level=info msg="Migration successfully executed" id="create migration_log table" duration=1.022571ms grafana | logger=migrator t=2024-03-25T02:52:31.967585983Z level=info msg="Executing migration" id="create user table" grafana | logger=migrator t=2024-03-25T02:52:31.968554565Z level=info msg="Migration successfully executed" id="create user table" duration=959.392µs grafana | logger=migrator t=2024-03-25T02:52:31.971607499Z level=info msg="Executing migration" id="add unique index user.login" grafana | logger=migrator t=2024-03-25T02:52:31.972476628Z level=info msg="Migration successfully executed" id="add unique index user.login" duration=868.439µs grafana | logger=migrator t=2024-03-25T02:52:31.977560575Z level=info msg="Executing migration" id="add unique index user.email" grafana | logger=migrator t=2024-03-25T02:52:31.978402214Z level=info msg="Migration successfully executed" id="add unique index user.email" duration=841.349µs grafana | logger=migrator t=2024-03-25T02:52:31.981339917Z level=info msg="Executing migration" id="drop index UQE_user_login - v1" grafana | logger=migrator t=2024-03-25T02:52:31.982220497Z level=info msg="Migration successfully executed" id="drop index UQE_user_login - v1" duration=880.87µs grafana | logger=migrator t=2024-03-25T02:52:31.985230842Z level=info msg="Executing migration" id="drop index UQE_user_email - v1" grafana | logger=migrator t=2024-03-25T02:52:31.98602226Z level=info msg="Migration successfully executed" id="drop index UQE_user_email - v1" duration=790.408µs grafana | logger=migrator t=2024-03-25T02:52:31.99052335Z level=info msg="Executing migration" id="Rename table user to user_v1 - v1" grafana | logger=migrator t=2024-03-25T02:52:31.993048618Z level=info msg="Migration successfully executed" id="Rename table user to user_v1 - v1" duration=2.525068ms grafana | logger=migrator t=2024-03-25T02:52:31.996092582Z level=info msg="Executing migration" id="create user table v2" grafana | logger=migrator t=2024-03-25T02:52:31.997026984Z level=info msg="Migration successfully executed" id="create user table v2" duration=939.182µs grafana | logger=migrator t=2024-03-25T02:52:32.000064397Z level=info msg="Executing migration" id="create index UQE_user_login - v2" grafana | logger=migrator t=2024-03-25T02:52:32.000874386Z level=info msg="Migration successfully executed" id="create index UQE_user_login - v2" duration=809.769µs grafana | logger=migrator t=2024-03-25T02:52:32.005691601Z level=info msg="Executing migration" id="create index UQE_user_email - v2" grafana | logger=migrator t=2024-03-25T02:52:32.00654478Z level=info msg="Migration successfully executed" id="create index UQE_user_email - v2" duration=852.959µs grafana | logger=migrator t=2024-03-25T02:52:32.009241241Z level=info msg="Executing migration" id="copy data_source v1 to v2" policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.891050Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"68cc4673-2240-4c92-8b65-d8c26501165a","responseStatus":"SUCCESS","responseMessage":"Pdp already updated"},"messageName":"PDP_STATUS","requestId":"cdf93ee4-cf94-4c57-8b10-443eabc8386e","timestampMs":1711335203890,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | [2024-03-25T02:53:23.891+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:53:23.891+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.923+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 32 ms policy-apex-pdp | [2024-03-25T02:53:23.923+00:00|INFO|HttpClient|pool-2-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... policy-apex-pdp | [2024-03-25T02:53:23.930+00:00|INFO|HttpClient|pool-2-thread-1] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.930+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] cambria reply ok (7 ms):{"serverTimeMs":0,"count":1} policy-apex-pdp | [2024-03-25T02:53:23.930+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:23.931+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.891050Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"68cc4673-2240-4c92-8b65-d8c26501165a","responseStatus":"SUCCESS","responseMessage":"Pdp already updated"},"messageName":"PDP_STATUS","requestId":"cdf93ee4-cf94-4c57-8b10-443eabc8386e","timestampMs":1711335203890,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | [2024-03-25T02:53:23.932+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS policy-apex-pdp | [2024-03-25T02:53:23.933+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:53:23.933+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | WARNING: An illegal reflective access operation has occurred policy-apex-pdp | WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/opt/app/policy/apex-pdp/lib/jaxb-impl-2.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) policy-apex-pdp | WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector policy-apex-pdp | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations policy-apex-pdp | WARNING: All illegal access operations will be denied in a future release policy-apex-pdp | [2024-03-25T02:53:25.268+00:00|INFO|GsonMessageBodyHandler|RestServerParameters-6969] Using GSON for REST calls policy-apex-pdp | [2024-03-25T02:53:25.277+00:00|INFO|YamlMessageBodyHandler|RestServerParameters-6969] Accepting YAML for REST calls policy-apex-pdp | [2024-03-25T02:53:26.171+00:00|INFO|RequestLog|qtp614580607-31] 172.17.0.1 - - [25/Mar/2024:02:53:26 +0000] "GET / HTTP/1.1" 401 497 "-" "curl/7.58.0" policy-apex-pdp | [2024-03-25T02:53:29.438+00:00|INFO|RequestLog|qtp614580607-27] 172.17.0.1 - policyadmin [25/Mar/2024:02:53:29 +0000] "GET /policy/apex-pdp/v1/healthcheck?null HTTP/1.1" 200 109 "-" "python-requests/2.27.1" policy-apex-pdp | [2024-03-25T02:53:32.169+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:32.262+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:32.009753377Z level=info msg="Migration successfully executed" id="copy data_source v1 to v2" duration=509.726µs grafana | logger=migrator t=2024-03-25T02:52:32.013104934Z level=info msg="Executing migration" id="Drop old table user_v1" grafana | logger=migrator t=2024-03-25T02:52:32.014033095Z level=info msg="Migration successfully executed" id="Drop old table user_v1" duration=927.511µs grafana | logger=migrator t=2024-03-25T02:52:32.017022699Z level=info msg="Executing migration" id="Add column help_flags1 to user table" grafana | logger=migrator t=2024-03-25T02:52:32.01878603Z level=info msg="Migration successfully executed" id="Add column help_flags1 to user table" duration=1.763521ms grafana | logger=migrator t=2024-03-25T02:52:32.023616454Z level=info msg="Executing migration" id="Update user table charset" grafana | logger=migrator t=2024-03-25T02:52:32.023769305Z level=info msg="Migration successfully executed" id="Update user table charset" duration=153.621µs grafana | logger=migrator t=2024-03-25T02:52:32.027161224Z level=info msg="Executing migration" id="Add last_seen_at column to user" grafana | logger=migrator t=2024-03-25T02:52:32.028922634Z level=info msg="Migration successfully executed" id="Add last_seen_at column to user" duration=1.76226ms grafana | logger=migrator t=2024-03-25T02:52:32.057405707Z level=info msg="Executing migration" id="Add missing user data" grafana | logger=migrator t=2024-03-25T02:52:32.058052825Z level=info msg="Migration successfully executed" id="Add missing user data" duration=650.058µs grafana | logger=migrator t=2024-03-25T02:52:32.061449503Z level=info msg="Executing migration" id="Add is_disabled column to user" grafana | logger=migrator t=2024-03-25T02:52:32.063498116Z level=info msg="Migration successfully executed" id="Add is_disabled column to user" duration=2.049903ms mariadb | # Modifications Copyright (c) 2022 Nordix Foundation. mariadb | # mariadb | # Licensed under the Apache License, Version 2.0 (the "License"); mariadb | # you may not use this file except in compliance with the License. mariadb | # You may obtain a copy of the License at mariadb | # mariadb | # http://www.apache.org/licenses/LICENSE-2.0 mariadb | # mariadb | # Unless required by applicable law or agreed to in writing, software mariadb | # distributed under the License is distributed on an "AS IS" BASIS, mariadb | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. mariadb | # See the License for the specific language governing permissions and mariadb | # limitations under the License. mariadb | mariadb | for db in migration pooling policyadmin operationshistory clampacm policyclamp mariadb | do mariadb | mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "CREATE DATABASE IF NOT EXISTS ${db};" mariadb | mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "GRANT ALL PRIVILEGES ON \`${db}\`.* TO '${MYSQL_USER}'@'%' ;" mariadb | done mariadb | + for db in migration pooling policyadmin operationshistory clampacm policyclamp mariadb | + mysql -uroot -psecret --execute 'CREATE DATABASE IF NOT EXISTS migration;' mariadb | + mysql -uroot -psecret --execute 'GRANT ALL PRIVILEGES ON `migration`.* TO '\''policy_user'\''@'\''%'\'' ;' mariadb | + for db in migration pooling policyadmin operationshistory clampacm policyclamp mariadb | + mysql -uroot -psecret --execute 'CREATE DATABASE IF NOT EXISTS pooling;' mariadb | + mysql -uroot -psecret --execute 'GRANT ALL PRIVILEGES ON `pooling`.* TO '\''policy_user'\''@'\''%'\'' ;' mariadb | + for db in migration pooling policyadmin operationshistory clampacm policyclamp mariadb | + mysql -uroot -psecret --execute 'CREATE DATABASE IF NOT EXISTS policyadmin;' mariadb | + mysql -uroot -psecret --execute 'GRANT ALL PRIVILEGES ON `policyadmin`.* TO '\''policy_user'\''@'\''%'\'' ;' mariadb | + for db in migration pooling policyadmin operationshistory clampacm policyclamp mariadb | + mysql -uroot -psecret --execute 'CREATE DATABASE IF NOT EXISTS operationshistory;' mariadb | + mysql -uroot -psecret --execute 'GRANT ALL PRIVILEGES ON `operationshistory`.* TO '\''policy_user'\''@'\''%'\'' ;' mariadb | + for db in migration pooling policyadmin operationshistory clampacm policyclamp mariadb | + mysql -uroot -psecret --execute 'CREATE DATABASE IF NOT EXISTS clampacm;' mariadb | + mysql -uroot -psecret --execute 'GRANT ALL PRIVILEGES ON `clampacm`.* TO '\''policy_user'\''@'\''%'\'' ;' mariadb | + for db in migration pooling policyadmin operationshistory clampacm policyclamp mariadb | + mysql -uroot -psecret --execute 'CREATE DATABASE IF NOT EXISTS policyclamp;' mariadb | + mysql -uroot -psecret --execute 'GRANT ALL PRIVILEGES ON `policyclamp`.* TO '\''policy_user'\''@'\''%'\'' ;' mariadb | grafana | logger=migrator t=2024-03-25T02:52:32.068834526Z level=info msg="Executing migration" id="Add index user.login/user.email" grafana | logger=migrator t=2024-03-25T02:52:32.069710757Z level=info msg="Migration successfully executed" id="Add index user.login/user.email" duration=876.561µs grafana | logger=migrator t=2024-03-25T02:52:32.072569829Z level=info msg="Executing migration" id="Add is_service_account column to user" grafana | logger=migrator t=2024-03-25T02:52:32.074555201Z level=info msg="Migration successfully executed" id="Add is_service_account column to user" duration=1.983322ms grafana | logger=migrator t=2024-03-25T02:52:32.07789079Z level=info msg="Executing migration" id="Update is_service_account column to nullable" grafana | logger=migrator t=2024-03-25T02:52:32.0885347Z level=info msg="Migration successfully executed" id="Update is_service_account column to nullable" duration=10.643619ms grafana | logger=migrator t=2024-03-25T02:52:32.091782887Z level=info msg="Executing migration" id="Add uid column to user" grafana | logger=migrator t=2024-03-25T02:52:32.092690097Z level=info msg="Migration successfully executed" id="Add uid column to user" duration=906.96µs grafana | logger=migrator t=2024-03-25T02:52:32.097412411Z level=info msg="Executing migration" id="Update uid column values for users" grafana | logger=migrator t=2024-03-25T02:52:32.097672614Z level=info msg="Migration successfully executed" id="Update uid column values for users" duration=255.743µs grafana | logger=migrator t=2024-03-25T02:52:32.100730679Z level=info msg="Executing migration" id="Add unique index user_uid" grafana | logger=migrator t=2024-03-25T02:52:32.102450938Z level=info msg="Migration successfully executed" id="Add unique index user_uid" duration=1.719309ms grafana | logger=migrator t=2024-03-25T02:52:32.106466964Z level=info msg="Executing migration" id="update login field with orgid to allow for multiple service accounts with same name across orgs" grafana | logger=migrator t=2024-03-25T02:52:32.106907378Z level=info msg="Migration successfully executed" id="update login field with orgid to allow for multiple service accounts with same name across orgs" duration=442.764µs grafana | logger=migrator t=2024-03-25T02:52:32.112557182Z level=info msg="Executing migration" id="create temp user table v1-7" grafana | logger=migrator t=2024-03-25T02:52:32.113435232Z level=info msg="Migration successfully executed" id="create temp user table v1-7" duration=879.51µs grafana | logger=migrator t=2024-03-25T02:52:32.116387896Z level=info msg="Executing migration" id="create index IDX_temp_user_email - v1-7" grafana | logger=migrator t=2024-03-25T02:52:32.117483459Z level=info msg="Migration successfully executed" id="create index IDX_temp_user_email - v1-7" duration=1.091363ms grafana | logger=migrator t=2024-03-25T02:52:32.120474973Z level=info msg="Executing migration" id="create index IDX_temp_user_org_id - v1-7" grafana | logger=migrator t=2024-03-25T02:52:32.121472234Z level=info msg="Migration successfully executed" id="create index IDX_temp_user_org_id - v1-7" duration=996.651µs grafana | logger=migrator t=2024-03-25T02:52:32.126313359Z level=info msg="Executing migration" id="create index IDX_temp_user_code - v1-7" grafana | logger=migrator t=2024-03-25T02:52:32.1273327Z level=info msg="Migration successfully executed" id="create index IDX_temp_user_code - v1-7" duration=1.018641ms grafana | logger=migrator t=2024-03-25T02:52:32.130613287Z level=info msg="Executing migration" id="create index IDX_temp_user_status - v1-7" grafana | logger=migrator t=2024-03-25T02:52:32.131661959Z level=info msg="Migration successfully executed" id="create index IDX_temp_user_status - v1-7" duration=1.044982ms grafana | logger=migrator t=2024-03-25T02:52:32.134640733Z level=info msg="Executing migration" id="Update temp_user table charset" grafana | logger=migrator t=2024-03-25T02:52:32.134758804Z level=info msg="Migration successfully executed" id="Update temp_user table charset" duration=117.441µs grafana | logger=migrator t=2024-03-25T02:52:32.138907771Z level=info msg="Executing migration" id="drop index IDX_temp_user_email - v1" grafana | logger=migrator t=2024-03-25T02:52:32.139791482Z level=info msg="Migration successfully executed" id="drop index IDX_temp_user_email - v1" duration=884.231µs grafana | logger=migrator t=2024-03-25T02:52:32.144688487Z level=info msg="Executing migration" id="drop index IDX_temp_user_org_id - v1" grafana | logger=migrator t=2024-03-25T02:52:32.146400587Z level=info msg="Migration successfully executed" id="drop index IDX_temp_user_org_id - v1" duration=1.71797ms grafana | logger=migrator t=2024-03-25T02:52:32.150028717Z level=info msg="Executing migration" id="drop index IDX_temp_user_code - v1" grafana | logger=migrator t=2024-03-25T02:52:32.150972779Z level=info msg="Migration successfully executed" id="drop index IDX_temp_user_code - v1" duration=945.002µs grafana | logger=migrator t=2024-03-25T02:52:32.157227739Z level=info msg="Executing migration" id="drop index IDX_temp_user_status - v1" grafana | logger=migrator t=2024-03-25T02:52:32.158971409Z level=info msg="Migration successfully executed" id="drop index IDX_temp_user_status - v1" duration=1.75038ms grafana | logger=migrator t=2024-03-25T02:52:32.16257524Z level=info msg="Executing migration" id="Rename table temp_user to temp_user_tmp_qwerty - v1" grafana | logger=migrator t=2024-03-25T02:52:32.176343686Z level=info msg="Migration successfully executed" id="Rename table temp_user to temp_user_tmp_qwerty - v1" duration=13.761876ms grafana | logger=migrator t=2024-03-25T02:52:32.179874416Z level=info msg="Executing migration" id="create temp_user v2" grafana | logger=migrator t=2024-03-25T02:52:32.18113883Z level=info msg="Migration successfully executed" id="create temp_user v2" duration=1.264964ms grafana | logger=migrator t=2024-03-25T02:52:32.184657581Z level=info msg="Executing migration" id="create index IDX_temp_user_email - v2" grafana | logger=migrator t=2024-03-25T02:52:32.185663392Z level=info msg="Migration successfully executed" id="create index IDX_temp_user_email - v2" duration=1.004841ms grafana | logger=migrator t=2024-03-25T02:52:32.190679939Z level=info msg="Executing migration" id="create index IDX_temp_user_org_id - v2" grafana | logger=migrator t=2024-03-25T02:52:32.191501448Z level=info msg="Migration successfully executed" id="create index IDX_temp_user_org_id - v2" duration=820.789µs grafana | logger=migrator t=2024-03-25T02:52:32.194643144Z level=info msg="Executing migration" id="create index IDX_temp_user_code - v2" grafana | logger=migrator t=2024-03-25T02:52:32.1960569Z level=info msg="Migration successfully executed" id="create index IDX_temp_user_code - v2" duration=1.413276ms grafana | logger=migrator t=2024-03-25T02:52:32.199175505Z level=info msg="Executing migration" id="create index IDX_temp_user_status - v2" grafana | logger=migrator t=2024-03-25T02:52:32.20051295Z level=info msg="Migration successfully executed" id="create index IDX_temp_user_status - v2" duration=1.331885ms grafana | logger=migrator t=2024-03-25T02:52:32.205503937Z level=info msg="Executing migration" id="copy temp_user v1 to v2" grafana | logger=migrator t=2024-03-25T02:52:32.206037153Z level=info msg="Migration successfully executed" id="copy temp_user v1 to v2" duration=532.216µs grafana | logger=migrator t=2024-03-25T02:52:32.2092545Z level=info msg="Executing migration" id="drop temp_user_tmp_qwerty" grafana | logger=migrator t=2024-03-25T02:52:32.210461083Z level=info msg="Migration successfully executed" id="drop temp_user_tmp_qwerty" duration=1.209653ms mariadb | mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "FLUSH PRIVILEGES;" mariadb | + mysql -uroot -psecret --execute 'FLUSH PRIVILEGES;' mariadb | mysql -u"${MYSQL_USER}" -p"${MYSQL_PASSWORD}" -f policyclamp < /tmp/policy-clamp-create-tables.sql mariadb | + mysql -upolicy_user -ppolicy_user -f policyclamp mariadb | mariadb | 2024-03-25 02:52:34+00:00 [Note] [Entrypoint]: Stopping temporary server mariadb | 2024-03-25 2:52:34 0 [Note] mariadbd (initiated by: unknown): Normal shutdown mariadb | 2024-03-25 2:52:34 0 [Note] InnoDB: FTS optimize thread exiting. mariadb | 2024-03-25 2:52:34 0 [Note] InnoDB: Starting shutdown... mariadb | 2024-03-25 2:52:34 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool mariadb | 2024-03-25 2:52:34 0 [Note] InnoDB: Buffer pool(s) dump completed at 240325 2:52:34 mariadb | 2024-03-25 2:52:34 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1" mariadb | 2024-03-25 2:52:34 0 [Note] InnoDB: Shutdown completed; log sequence number 347319; transaction id 298 mariadb | 2024-03-25 2:52:34 0 [Note] mariadbd: Shutdown complete mariadb | mariadb | 2024-03-25 02:52:34+00:00 [Note] [Entrypoint]: Temporary server stopped mariadb | mariadb | 2024-03-25 02:52:34+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up. mariadb | mariadb | 2024-03-25 2:52:35 0 [Note] mariadbd (server 10.10.2-MariaDB-1:10.10.2+maria~ubu2204) starting as process 1 ... mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: Number of transaction pools: 1 mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions mariadb | 2024-03-25 2:52:35 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts) mariadb | 2024-03-25 2:52:35 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOSYS: check seccomp filters, and the kernel version (newer than 5.1 required) mariadb | 2024-03-25 2:52:35 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: Completed initialization of buffer pool mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes) mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: 128 rollback segments are active. mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ... mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB. mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: log sequence number 347319; transaction id 299 mariadb | 2024-03-25 2:52:35 0 [Note] Plugin 'FEEDBACK' is disabled. mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool mariadb | 2024-03-25 2:52:35 0 [Warning] 'default-authentication-plugin' is MySQL 5.6 / 5.7 compatible option. To be implemented in later versions. mariadb | 2024-03-25 2:52:35 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work. mariadb | 2024-03-25 2:52:35 0 [Note] Server socket created on IP: '0.0.0.0'. mariadb | 2024-03-25 2:52:35 0 [Note] Server socket created on IP: '::'. mariadb | 2024-03-25 2:52:35 0 [Note] mariadbd: ready for connections. mariadb | Version: '10.10.2-MariaDB-1:10.10.2+maria~ubu2204' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution mariadb | 2024-03-25 2:52:35 0 [Note] InnoDB: Buffer pool(s) load completed at 240325 2:52:35 mariadb | 2024-03-25 2:52:35 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'unauthenticated' host: '172.17.0.5' (This connection closed normally without authentication) mariadb | 2024-03-25 2:52:35 15 [Warning] Aborted connection 15 to db: 'unconnected' user: 'unauthenticated' host: '172.17.0.7' (This connection closed normally without authentication) mariadb | 2024-03-25 2:52:36 26 [Warning] Aborted connection 26 to db: 'unconnected' user: 'unauthenticated' host: '172.17.0.8' (This connection closed normally without authentication) mariadb | 2024-03-25 2:52:36 30 [Warning] Aborted connection 30 to db: 'unconnected' user: 'unauthenticated' host: '172.17.0.9' (This connection closed normally without authentication) grafana | logger=migrator t=2024-03-25T02:52:32.213897662Z level=info msg="Executing migration" id="Set created for temp users that will otherwise prematurely expire" grafana | logger=migrator t=2024-03-25T02:52:32.214428268Z level=info msg="Migration successfully executed" id="Set created for temp users that will otherwise prematurely expire" duration=530.806µs grafana | logger=migrator t=2024-03-25T02:52:32.219208242Z level=info msg="Executing migration" id="create star table" grafana | logger=migrator t=2024-03-25T02:52:32.220075582Z level=info msg="Migration successfully executed" id="create star table" duration=868.35µs grafana | logger=migrator t=2024-03-25T02:52:32.22336008Z level=info msg="Executing migration" id="add unique index star.user_id_dashboard_id" grafana | logger=migrator t=2024-03-25T02:52:32.224735325Z level=info msg="Migration successfully executed" id="add unique index star.user_id_dashboard_id" duration=1.380625ms grafana | logger=migrator t=2024-03-25T02:52:32.22780158Z level=info msg="Executing migration" id="create org table v1" grafana | logger=migrator t=2024-03-25T02:52:32.228642549Z level=info msg="Migration successfully executed" id="create org table v1" duration=840.419µs grafana | logger=migrator t=2024-03-25T02:52:32.231544642Z level=info msg="Executing migration" id="create index UQE_org_name - v1" grafana | logger=migrator t=2024-03-25T02:52:32.232299541Z level=info msg="Migration successfully executed" id="create index UQE_org_name - v1" duration=752.579µs grafana | logger=migrator t=2024-03-25T02:52:32.237346518Z level=info msg="Executing migration" id="create org_user table v1" grafana | logger=migrator t=2024-03-25T02:52:32.238183228Z level=info msg="Migration successfully executed" id="create org_user table v1" duration=836.55µs grafana | logger=migrator t=2024-03-25T02:52:32.240854868Z level=info msg="Executing migration" id="create index IDX_org_user_org_id - v1" grafana | logger=migrator t=2024-03-25T02:52:32.241622157Z level=info msg="Migration successfully executed" id="create index IDX_org_user_org_id - v1" duration=765.449µs grafana | logger=migrator t=2024-03-25T02:52:32.244406248Z level=info msg="Executing migration" id="create index UQE_org_user_org_id_user_id - v1" grafana | logger=migrator t=2024-03-25T02:52:32.245146636Z level=info msg="Migration successfully executed" id="create index UQE_org_user_org_id_user_id - v1" duration=742.918µs grafana | logger=migrator t=2024-03-25T02:52:32.248188581Z level=info msg="Executing migration" id="create index IDX_org_user_user_id - v1" grafana | logger=migrator t=2024-03-25T02:52:32.249769549Z level=info msg="Migration successfully executed" id="create index IDX_org_user_user_id - v1" duration=1.581588ms grafana | logger=migrator t=2024-03-25T02:52:32.25511462Z level=info msg="Executing migration" id="Update org table charset" grafana | logger=migrator t=2024-03-25T02:52:32.255273402Z level=info msg="Migration successfully executed" id="Update org table charset" duration=158.971µs grafana | logger=migrator t=2024-03-25T02:52:32.25778826Z level=info msg="Executing migration" id="Update org_user table charset" grafana | logger=migrator t=2024-03-25T02:52:32.257938672Z level=info msg="Migration successfully executed" id="Update org_user table charset" duration=155.192µs grafana | logger=migrator t=2024-03-25T02:52:32.260929996Z level=info msg="Executing migration" id="Migrate all Read Only Viewers to Viewers" grafana | logger=migrator t=2024-03-25T02:52:32.261183508Z level=info msg="Migration successfully executed" id="Migrate all Read Only Viewers to Viewers" duration=252.962µs grafana | logger=migrator t=2024-03-25T02:52:32.264066941Z level=info msg="Executing migration" id="create dashboard table" grafana | logger=migrator t=2024-03-25T02:52:32.264979661Z level=info msg="Migration successfully executed" id="create dashboard table" duration=913.84µs grafana | logger=migrator t=2024-03-25T02:52:32.269645975Z level=info msg="Executing migration" id="add index dashboard.account_id" grafana | logger=migrator t=2024-03-25T02:52:32.270682006Z level=info msg="Migration successfully executed" id="add index dashboard.account_id" duration=1.035491ms grafana | logger=migrator t=2024-03-25T02:52:32.273524518Z level=info msg="Executing migration" id="add unique index dashboard_account_id_slug" grafana | logger=migrator t=2024-03-25T02:52:32.274618631Z level=info msg="Migration successfully executed" id="add unique index dashboard_account_id_slug" duration=1.094183ms grafana | logger=migrator t=2024-03-25T02:52:32.277718046Z level=info msg="Executing migration" id="create dashboard_tag table" grafana | logger=migrator t=2024-03-25T02:52:32.278542025Z level=info msg="Migration successfully executed" id="create dashboard_tag table" duration=823.279µs grafana | logger=migrator t=2024-03-25T02:52:32.281714061Z level=info msg="Executing migration" id="add unique index dashboard_tag.dasboard_id_term" grafana | logger=migrator t=2024-03-25T02:52:32.283182218Z level=info msg="Migration successfully executed" id="add unique index dashboard_tag.dasboard_id_term" duration=1.466657ms grafana | logger=migrator t=2024-03-25T02:52:32.288301267Z level=info msg="Executing migration" id="drop index UQE_dashboard_tag_dashboard_id_term - v1" grafana | logger=migrator t=2024-03-25T02:52:32.289767593Z level=info msg="Migration successfully executed" id="drop index UQE_dashboard_tag_dashboard_id_term - v1" duration=1.466727ms grafana | logger=migrator t=2024-03-25T02:52:32.293009749Z level=info msg="Executing migration" id="Rename table dashboard to dashboard_v1 - v1" grafana | logger=migrator t=2024-03-25T02:52:32.305026046Z level=info msg="Migration successfully executed" id="Rename table dashboard to dashboard_v1 - v1" duration=12.016477ms grafana | logger=migrator t=2024-03-25T02:52:32.309202173Z level=info msg="Executing migration" id="create dashboard v2" grafana | logger=migrator t=2024-03-25T02:52:32.310321076Z level=info msg="Migration successfully executed" id="create dashboard v2" duration=1.118953ms grafana | logger=migrator t=2024-03-25T02:52:32.315641776Z level=info msg="Executing migration" id="create index IDX_dashboard_org_id - v2" grafana | logger=migrator t=2024-03-25T02:52:32.316315734Z level=info msg="Migration successfully executed" id="create index IDX_dashboard_org_id - v2" duration=673.998µs grafana | logger=migrator t=2024-03-25T02:52:32.31949708Z level=info msg="Executing migration" id="create index UQE_dashboard_org_id_slug - v2" grafana | logger=migrator t=2024-03-25T02:52:32.320187528Z level=info msg="Migration successfully executed" id="create index UQE_dashboard_org_id_slug - v2" duration=690.098µs grafana | logger=migrator t=2024-03-25T02:52:32.323452505Z level=info msg="Executing migration" id="copy dashboard v1 to v2" grafana | logger=migrator t=2024-03-25T02:52:32.323814909Z level=info msg="Migration successfully executed" id="copy dashboard v1 to v2" duration=361.404µs grafana | logger=migrator t=2024-03-25T02:52:32.3300222Z level=info msg="Executing migration" id="drop table dashboard_v1" grafana | logger=migrator t=2024-03-25T02:52:32.331025161Z level=info msg="Migration successfully executed" id="drop table dashboard_v1" duration=999.331µs grafana | logger=migrator t=2024-03-25T02:52:32.334063645Z level=info msg="Executing migration" id="alter dashboard.data to mediumtext v1" grafana | logger=migrator t=2024-03-25T02:52:32.334322798Z level=info msg="Migration successfully executed" id="alter dashboard.data to mediumtext v1" duration=259.753µs grafana | logger=migrator t=2024-03-25T02:52:32.337780927Z level=info msg="Executing migration" id="Add column updated_by in dashboard - v2" grafana | logger=migrator t=2024-03-25T02:52:32.340887393Z level=info msg="Migration successfully executed" id="Add column updated_by in dashboard - v2" duration=3.106945ms grafana | logger=migrator t=2024-03-25T02:52:32.345522525Z level=info msg="Executing migration" id="Add column created_by in dashboard - v2" grafana | logger=migrator t=2024-03-25T02:52:32.347643169Z level=info msg="Migration successfully executed" id="Add column created_by in dashboard - v2" duration=2.120504ms grafana | logger=migrator t=2024-03-25T02:52:32.350628673Z level=info msg="Executing migration" id="Add column gnetId in dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.352527235Z level=info msg="Migration successfully executed" id="Add column gnetId in dashboard" duration=1.898172ms grafana | logger=migrator t=2024-03-25T02:52:32.355222406Z level=info msg="Executing migration" id="Add index for gnetId in dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.356157276Z level=info msg="Migration successfully executed" id="Add index for gnetId in dashboard" duration=924.68µs grafana | logger=migrator t=2024-03-25T02:52:32.361063182Z level=info msg="Executing migration" id="Add column plugin_id in dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.364280618Z level=info msg="Migration successfully executed" id="Add column plugin_id in dashboard" duration=3.224366ms grafana | logger=migrator t=2024-03-25T02:52:32.367474864Z level=info msg="Executing migration" id="Add index for plugin_id in dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.368425025Z level=info msg="Migration successfully executed" id="Add index for plugin_id in dashboard" duration=949.371µs grafana | logger=migrator t=2024-03-25T02:52:32.371239717Z level=info msg="Executing migration" id="Add index for dashboard_id in dashboard_tag" grafana | logger=migrator t=2024-03-25T02:52:32.372135508Z level=info msg="Migration successfully executed" id="Add index for dashboard_id in dashboard_tag" duration=895.64µs grafana | logger=migrator t=2024-03-25T02:52:32.376889321Z level=info msg="Executing migration" id="Update dashboard table charset" grafana | logger=migrator t=2024-03-25T02:52:32.376998382Z level=info msg="Migration successfully executed" id="Update dashboard table charset" duration=108.261µs grafana | logger=migrator t=2024-03-25T02:52:32.379722563Z level=info msg="Executing migration" id="Update dashboard_tag table charset" grafana | logger=migrator t=2024-03-25T02:52:32.379827164Z level=info msg="Migration successfully executed" id="Update dashboard_tag table charset" duration=104.131µs grafana | logger=migrator t=2024-03-25T02:52:32.382633146Z level=info msg="Executing migration" id="Add column folder_id in dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.38479706Z level=info msg="Migration successfully executed" id="Add column folder_id in dashboard" duration=2.159624ms grafana | logger=migrator t=2024-03-25T02:52:32.389858998Z level=info msg="Executing migration" id="Add column isFolder in dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.392006853Z level=info msg="Migration successfully executed" id="Add column isFolder in dashboard" duration=2.149825ms grafana | logger=migrator t=2024-03-25T02:52:32.398058861Z level=info msg="Executing migration" id="Add column has_acl in dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.400343697Z level=info msg="Migration successfully executed" id="Add column has_acl in dashboard" duration=2.284796ms grafana | logger=migrator t=2024-03-25T02:52:32.403052668Z level=info msg="Executing migration" id="Add column uid in dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.405171331Z level=info msg="Migration successfully executed" id="Add column uid in dashboard" duration=2.118563ms grafana | logger=migrator t=2024-03-25T02:52:32.410564133Z level=info msg="Executing migration" id="Update uid column values in dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.411068919Z level=info msg="Migration successfully executed" id="Update uid column values in dashboard" duration=505.726µs grafana | logger=migrator t=2024-03-25T02:52:32.420999691Z level=info msg="Executing migration" id="Add unique index dashboard_org_id_uid" grafana | logger=migrator t=2024-03-25T02:52:32.422379308Z level=info msg="Migration successfully executed" id="Add unique index dashboard_org_id_uid" duration=1.379356ms grafana | logger=migrator t=2024-03-25T02:52:32.425877797Z level=info msg="Executing migration" id="Remove unique index org_id_slug" grafana | logger=migrator t=2024-03-25T02:52:32.426677866Z level=info msg="Migration successfully executed" id="Remove unique index org_id_slug" duration=799.369µs grafana | logger=migrator t=2024-03-25T02:52:32.429565288Z level=info msg="Executing migration" id="Update dashboard title length" grafana | logger=migrator t=2024-03-25T02:52:32.42967878Z level=info msg="Migration successfully executed" id="Update dashboard title length" duration=113.442µs grafana | logger=migrator t=2024-03-25T02:52:32.434615436Z level=info msg="Executing migration" id="Add unique index for dashboard_org_id_title_folder_id" grafana | logger=migrator t=2024-03-25T02:52:32.436257355Z level=info msg="Migration successfully executed" id="Add unique index for dashboard_org_id_title_folder_id" duration=1.639529ms grafana | logger=migrator t=2024-03-25T02:52:32.439395631Z level=info msg="Executing migration" id="create dashboard_provisioning" grafana | logger=migrator t=2024-03-25T02:52:32.440690895Z level=info msg="Migration successfully executed" id="create dashboard_provisioning" duration=1.294694ms grafana | logger=migrator t=2024-03-25T02:52:32.44381447Z level=info msg="Executing migration" id="Rename table dashboard_provisioning to dashboard_provisioning_tmp_qwerty - v1" grafana | logger=migrator t=2024-03-25T02:52:32.449323772Z level=info msg="Migration successfully executed" id="Rename table dashboard_provisioning to dashboard_provisioning_tmp_qwerty - v1" duration=5.508472ms grafana | logger=migrator t=2024-03-25T02:52:32.453135896Z level=info msg="Executing migration" id="create dashboard_provisioning v2" grafana | logger=migrator t=2024-03-25T02:52:32.454014526Z level=info msg="Migration successfully executed" id="create dashboard_provisioning v2" duration=878.07µs grafana | logger=migrator t=2024-03-25T02:52:32.456744287Z level=info msg="Executing migration" id="create index IDX_dashboard_provisioning_dashboard_id - v2" grafana | logger=migrator t=2024-03-25T02:52:32.457693527Z level=info msg="Migration successfully executed" id="create index IDX_dashboard_provisioning_dashboard_id - v2" duration=948.9µs grafana | logger=migrator t=2024-03-25T02:52:32.460874394Z level=info msg="Executing migration" id="create index IDX_dashboard_provisioning_dashboard_id_name - v2" grafana | logger=migrator t=2024-03-25T02:52:32.461787695Z level=info msg="Migration successfully executed" id="create index IDX_dashboard_provisioning_dashboard_id_name - v2" duration=911.081µs grafana | logger=migrator t=2024-03-25T02:52:32.465444456Z level=info msg="Executing migration" id="copy dashboard_provisioning v1 to v2" grafana | logger=migrator t=2024-03-25T02:52:32.465917581Z level=info msg="Migration successfully executed" id="copy dashboard_provisioning v1 to v2" duration=472.725µs grafana | logger=migrator t=2024-03-25T02:52:32.469047036Z level=info msg="Executing migration" id="drop dashboard_provisioning_tmp_qwerty" grafana | logger=migrator t=2024-03-25T02:52:32.469986128Z level=info msg="Migration successfully executed" id="drop dashboard_provisioning_tmp_qwerty" duration=938.872µs grafana | logger=migrator t=2024-03-25T02:52:32.473043322Z level=info msg="Executing migration" id="Add check_sum column" grafana | logger=migrator t=2024-03-25T02:52:32.475936275Z level=info msg="Migration successfully executed" id="Add check_sum column" duration=2.892983ms grafana | logger=migrator t=2024-03-25T02:52:32.47992013Z level=info msg="Executing migration" id="Add index for dashboard_title" grafana | logger=migrator t=2024-03-25T02:52:32.480778979Z level=info msg="Migration successfully executed" id="Add index for dashboard_title" duration=858.72µs grafana | logger=migrator t=2024-03-25T02:52:32.484376261Z level=info msg="Executing migration" id="delete tags for deleted dashboards" grafana | logger=migrator t=2024-03-25T02:52:32.484623773Z level=info msg="Migration successfully executed" id="delete tags for deleted dashboards" duration=247.632µs grafana | logger=migrator t=2024-03-25T02:52:32.487535487Z level=info msg="Executing migration" id="delete stars for deleted dashboards" grafana | logger=migrator t=2024-03-25T02:52:32.487783269Z level=info msg="Migration successfully executed" id="delete stars for deleted dashboards" duration=247.323µs grafana | logger=migrator t=2024-03-25T02:52:32.491680323Z level=info msg="Executing migration" id="Add index for dashboard_is_folder" grafana | logger=migrator t=2024-03-25T02:52:32.493267491Z level=info msg="Migration successfully executed" id="Add index for dashboard_is_folder" duration=1.584918ms grafana | logger=migrator t=2024-03-25T02:52:32.496760381Z level=info msg="Executing migration" id="Add isPublic for dashboard" grafana | logger=migrator t=2024-03-25T02:52:32.500528603Z level=info msg="Migration successfully executed" id="Add isPublic for dashboard" duration=3.767432ms grafana | logger=migrator t=2024-03-25T02:52:32.504145455Z level=info msg="Executing migration" id="create data_source table" grafana | logger=migrator t=2024-03-25T02:52:32.505307117Z level=info msg="Migration successfully executed" id="create data_source table" duration=1.161442ms grafana | logger=migrator t=2024-03-25T02:52:32.509654307Z level=info msg="Executing migration" id="add index data_source.account_id" grafana | logger=migrator t=2024-03-25T02:52:32.511477167Z level=info msg="Migration successfully executed" id="add index data_source.account_id" duration=1.82259ms grafana | logger=migrator t=2024-03-25T02:52:32.514844957Z level=info msg="Executing migration" id="add unique index data_source.account_id_name" grafana | logger=migrator t=2024-03-25T02:52:32.515889018Z level=info msg="Migration successfully executed" id="add unique index data_source.account_id_name" duration=1.044552ms grafana | logger=migrator t=2024-03-25T02:52:32.519112374Z level=info msg="Executing migration" id="drop index IDX_data_source_account_id - v1" grafana | logger=migrator t=2024-03-25T02:52:32.520078055Z level=info msg="Migration successfully executed" id="drop index IDX_data_source_account_id - v1" duration=964.751µs grafana | logger=migrator t=2024-03-25T02:52:32.523839398Z level=info msg="Executing migration" id="drop index UQE_data_source_account_id_name - v1" grafana | logger=migrator t=2024-03-25T02:52:32.524751668Z level=info msg="Migration successfully executed" id="drop index UQE_data_source_account_id_name - v1" duration=911.87µs grafana | logger=migrator t=2024-03-25T02:52:32.527929794Z level=info msg="Executing migration" id="Rename table data_source to data_source_v1 - v1" grafana | logger=migrator t=2024-03-25T02:52:32.534356318Z level=info msg="Migration successfully executed" id="Rename table data_source to data_source_v1 - v1" duration=6.429914ms grafana | logger=migrator t=2024-03-25T02:52:32.537647065Z level=info msg="Executing migration" id="create data_source table v2" grafana | logger=migrator t=2024-03-25T02:52:32.538780427Z level=info msg="Migration successfully executed" id="create data_source table v2" duration=1.133562ms grafana | logger=migrator t=2024-03-25T02:52:32.542661872Z level=info msg="Executing migration" id="create index IDX_data_source_org_id - v2" grafana | logger=migrator t=2024-03-25T02:52:32.543678253Z level=info msg="Migration successfully executed" id="create index IDX_data_source_org_id - v2" duration=1.016351ms grafana | logger=migrator t=2024-03-25T02:52:32.546824179Z level=info msg="Executing migration" id="create index UQE_data_source_org_id_name - v2" grafana | logger=migrator t=2024-03-25T02:52:32.54784349Z level=info msg="Migration successfully executed" id="create index UQE_data_source_org_id_name - v2" duration=1.019101ms grafana | logger=migrator t=2024-03-25T02:52:32.551135528Z level=info msg="Executing migration" id="Drop old table data_source_v1 #2" grafana | logger=migrator t=2024-03-25T02:52:32.551724154Z level=info msg="Migration successfully executed" id="Drop old table data_source_v1 #2" duration=587.966µs grafana | logger=migrator t=2024-03-25T02:52:32.555946752Z level=info msg="Executing migration" id="Add column with_credentials" grafana | logger=migrator t=2024-03-25T02:52:32.558310809Z level=info msg="Migration successfully executed" id="Add column with_credentials" duration=2.363557ms grafana | logger=migrator t=2024-03-25T02:52:32.561480245Z level=info msg="Executing migration" id="Add secure json data column" grafana | logger=migrator t=2024-03-25T02:52:32.564015004Z level=info msg="Migration successfully executed" id="Add secure json data column" duration=2.533999ms grafana | logger=migrator t=2024-03-25T02:52:32.567482013Z level=info msg="Executing migration" id="Update data_source table charset" grafana | logger=migrator t=2024-03-25T02:52:32.567587454Z level=info msg="Migration successfully executed" id="Update data_source table charset" duration=105.571µs grafana | logger=migrator t=2024-03-25T02:52:32.571794112Z level=info msg="Executing migration" id="Update initial version to 1" grafana | logger=migrator t=2024-03-25T02:52:32.572137156Z level=info msg="Migration successfully executed" id="Update initial version to 1" duration=343.704µs grafana | logger=migrator t=2024-03-25T02:52:32.576992961Z level=info msg="Executing migration" id="Add read_only data column" grafana | logger=migrator t=2024-03-25T02:52:32.579618571Z level=info msg="Migration successfully executed" id="Add read_only data column" duration=2.62553ms grafana | logger=migrator t=2024-03-25T02:52:32.58304188Z level=info msg="Executing migration" id="Migrate logging ds to loki ds" grafana | logger=migrator t=2024-03-25T02:52:32.583724087Z level=info msg="Migration successfully executed" id="Migrate logging ds to loki ds" duration=685.848µs grafana | logger=migrator t=2024-03-25T02:52:32.587268607Z level=info msg="Executing migration" id="Update json_data with nulls" grafana | logger=migrator t=2024-03-25T02:52:32.587544231Z level=info msg="Migration successfully executed" id="Update json_data with nulls" duration=274.724µs grafana | logger=migrator t=2024-03-25T02:52:32.592098032Z level=info msg="Executing migration" id="Add uid column" grafana | logger=migrator t=2024-03-25T02:52:32.594706112Z level=info msg="Migration successfully executed" id="Add uid column" duration=2.60791ms grafana | logger=migrator t=2024-03-25T02:52:32.597978749Z level=info msg="Executing migration" id="Update uid value" policy-apex-pdp | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"MyApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"policy_type_impl":{"apexPolicyModel":{"key":{"name":"SamplePolicyModelJAVASCRIPT","version":"0.0.1"},"keyInformation":{"key":{"name":"KeyInformation","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"Context","version":"0.0.1"},"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Act1","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Act0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Task_Act0_DIRECT_Act_NULL"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Act_NULL"}}},{"key":{"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Decide3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide0_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide1_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide2_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide3_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}}]}}},{"key":"Establish","value":{"stateKey":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"},"trigger":{"name":"Event0001","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Establish_Decide","value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"},"outgoingEvent":{"name":"Event0002","version":"0.0.1"},"nextState":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Decide"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Establish2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish0_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish1_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish2_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish3_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}}]}}},{"key":"Match","value":{"stateKey":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Match"},"trigger":{"name":"Event0000","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Match_Establish","value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"},"outgoingEvent":{"name":"Event0001","version":"0.0.1"},"nextState":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"}}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Match0","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Match0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match0_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match1_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match2_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match3_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}}]}}}]},"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Act0","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Act0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Task_Act0_DIRECT_Act_NULL"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Act_NULL"}}},{"key":{"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Decide3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide0_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide1_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide2_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide3_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}}]}}},{"key":"Establish","value":{"stateKey":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"},"trigger":{"name":"Event0101","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Establish_Decide","value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"},"outgoingEvent":{"name":"Event0102","version":"0.0.1"},"nextState":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Decide"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Establish1","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish0_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish1_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish2_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish3_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}}]}}},{"key":"Match","value":{"stateKey":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Match"},"trigger":{"name":"Event0100","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Match_Establish","value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"},"outgoingEvent":{"name":"Event0101","version":"0.0.1"},"nextState":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Match3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Match0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match0_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match1_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match2_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act1","version":"0.0.1"},"value":{"key":{"name":"Task_Act1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act2","version":"0.0.1"},"value":{"key":{"name":"Task_Act2","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act3","version":"0.0.1"},"value":{"key":{"name":"Task_Act3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"name":"Task_Decide0","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"name":"Task_Decide1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Decide1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}},{"key":"Parameter1","value":{"key":{"parentKeyName":"Task_Decide1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter1"},"defaultValue":"DefaultValue1"}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"name":"Task_Decide3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"name":"Task_Establish0","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"name":"Task_Establish1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Establish1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}},{"key":"Parameter1","value":{"key":{"parentKeyName":"Task_Establish1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter1"},"defaultValue":"DefaultValue1"}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"name":"Task_Establish3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Establish3","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"name":"Task_Match1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"name":"Task_Match2","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match3","version":"0.0.1"},"value":{"key":{"name":"Task_Match3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}}]}},"events":{"key":{"name":"Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"Event0000","version":"0.0.1"},"value":{"key":{"name":"Event0000","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.sample.events","source":"Outside","target":"Match","parameter":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]}}},{"key":{"name":"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":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}}}},"eventInputParameters":{"FirstConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTSERVER","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters","parameters":{"standalone":true,"host":"0.0.0.0","port":23324}},"eventProtocolParameters":{"eventProtocol":"JSON"},"synchronousMode":true,"synchronousPeer":"FirstProducer","synchronousTimeout":2000}},"eventOutputParameters":{"FirstProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTSERVER","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"synchronousMode":true,"synchronousPeer":"FirstConsumer","synchronousTimeout":2000}}},"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0","metadata":{"policy-id":"onap.policies.native.apex.Sampledomain","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"d5f6a2ce-ecbf-42a1-af72-3b5888ffa087","timestampMs":1711335211861,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:32.598289062Z level=info msg="Migration successfully executed" id="Update uid value" duration=305.043µs grafana | logger=migrator t=2024-03-25T02:52:32.601410577Z level=info msg="Executing migration" id="Add unique index datasource_org_id_uid" policy-apex-pdp | [2024-03-25T02:53:32.308+00:00|WARN|Registry|DMAAP-source-POLICY-PDP-PAP] replacing previously registered: object:apex/tosca/policy/list policy-apex-pdp | [2024-03-25T02:53:32.359+00:00|INFO|ApexEngineHandler|DMAAP-source-POLICY-PDP-PAP] Starting apex engine for policy onap.policies.native.apex.Sampledomain 1.0.0 policy-api | Waiting for mariadb port 3306... policy-db-migrator | Waiting for mariadb port 3306... grafana | logger=migrator t=2024-03-25T02:52:32.60249176Z level=info msg="Migration successfully executed" id="Add unique index datasource_org_id_uid" duration=1.081123ms grafana | logger=migrator t=2024-03-25T02:52:32.606599006Z level=info msg="Executing migration" id="add unique index datasource_org_id_is_default" policy-pap | Waiting for mariadb port 3306... policy-apex-pdp | [2024-03-25T02:53:32.473+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine MyApexEngine-0:0.0.1 . policy-api | mariadb (172.17.0.3:3306) open simulator | Policy simulator config file: /opt/app/policy/simulators/etc/mounted/simParameters.json policy-db-migrator | nc: connect to mariadb port 3306 (tcp) failed: Connection refused prometheus | ts=2024-03-25T02:52:29.627Z caller=main.go:573 level=info msg="No time or size retention was set so using the default time retention" duration=15d grafana | logger=migrator t=2024-03-25T02:52:32.607547088Z level=info msg="Migration successfully executed" id="add unique index datasource_org_id_is_default" duration=948.072µs policy-pap | mariadb (172.17.0.3:3306) open policy-apex-pdp | [2024-03-25T02:53:32.473+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine MyApexEngine-1:0.0.1 . policy-api | Waiting for policy-db-migrator port 6824... simulator | overriding logback.xml policy-db-migrator | nc: connect to mariadb port 3306 (tcp) failed: Connection refused prometheus | ts=2024-03-25T02:52:29.627Z caller=main.go:617 level=info msg="Starting Prometheus Server" mode=server version="(version=2.51.0, branch=HEAD, revision=c05c15512acb675e3f6cd662a6727854e93fc024)" grafana | logger=migrator t=2024-03-25T02:52:32.61127874Z level=info msg="Executing migration" id="create api_key table" policy-pap | Waiting for message-router port 3904... policy-apex-pdp | [2024-03-25T02:53:32.474+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine MyApexEngine-2:0.0.1 . policy-api | policy-db-migrator (172.17.0.5:6824) open simulator | 2024-03-25 02:52:27,963 INFO replacing 'HOST_NAME' with simulator in /opt/app/policy/simulators/etc/mounted/simParameters.json policy-db-migrator | nc: connect to mariadb port 3306 (tcp) failed: Connection refused prometheus | ts=2024-03-25T02:52:29.627Z caller=main.go:622 level=info build_context="(go=go1.22.1, platform=linux/amd64, user=root@b5723e458358, date=20240319-10:54:45, tags=netgo,builtinassets,stringlabels)" grafana | logger=migrator t=2024-03-25T02:52:32.612285931Z level=info msg="Migration successfully executed" id="create api_key table" duration=1.007121ms policy-pap | message-router (172.17.0.4:3904) open policy-apex-pdp | [2024-03-25T02:53:32.474+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine MyApexEngine-3:0.0.1 . policy-api | Policy api config file: /opt/app/policy/api/etc/apiParameters.yaml simulator | 2024-03-25 02:52:28,120 INFO org.onap.policy.models.simulators starting policy-db-migrator | nc: connect to mariadb port 3306 (tcp) failed: Connection refused prometheus | ts=2024-03-25T02:52:29.627Z caller=main.go:623 level=info host_details="(Linux 4.15.0-192-generic #203-Ubuntu SMP Wed Aug 10 17:40:03 UTC 2022 x86_64 prometheus (none))" grafana | logger=migrator t=2024-03-25T02:52:32.61562245Z level=info msg="Executing migration" id="add index api_key.account_id" policy-pap | Waiting for api port 6969... policy-apex-pdp | [2024-03-25T02:53:32.474+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] APEX service created. policy-api | simulator | 2024-03-25 02:52:28,120 INFO org.onap.policy.models.simulators starting DMaaP provider policy-db-migrator | nc: connect to mariadb port 3306 (tcp) failed: Connection refused prometheus | ts=2024-03-25T02:52:29.627Z caller=main.go:624 level=info fd_limits="(soft=1048576, hard=1048576)" grafana | logger=migrator t=2024-03-25T02:52:32.616729522Z level=info msg="Migration successfully executed" id="add index api_key.account_id" duration=1.106372ms policy-pap | api (172.17.0.7:6969) open policy-apex-pdp | [2024-03-25T02:53:32.655+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine MyApexEngine-0:0.0.1 policy-api | . ____ _ __ _ _ simulator | 2024-03-25 02:52:28,122 INFO service manager starting policy-db-migrator | Connection to mariadb 3306 port [tcp/mysql] succeeded! prometheus | ts=2024-03-25T02:52:29.627Z caller=main.go:625 level=info vm_limits="(soft=unlimited, hard=unlimited)" grafana | logger=migrator t=2024-03-25T02:52:32.620826378Z level=info msg="Executing migration" id="add index api_key.key" policy-pap | Policy pap config file: /opt/app/policy/pap/etc/papParameters.yaml policy-apex-pdp | [2024-03-25T02:53:32.726+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine MyApexEngine-1:0.0.1 policy-api | /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ simulator | 2024-03-25 02:52:28,122 INFO service manager starting Topic Sweeper policy-db-migrator | 314 blocks prometheus | ts=2024-03-25T02:52:29.633Z caller=web.go:568 level=info component=web msg="Start listening for connections" address=0.0.0.0:9090 prometheus | ts=2024-03-25T02:52:29.634Z caller=main.go:1129 level=info msg="Starting TSDB ..." grafana | logger=migrator t=2024-03-25T02:52:32.621899901Z level=info msg="Migration successfully executed" id="add index api_key.key" duration=1.072802ms policy-apex-pdp | [2024-03-25T02:53:32.730+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine MyApexEngine-2:0.0.1 policy-api | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ simulator | 2024-03-25 02:52:28,123 INFO service manager started policy-db-migrator | Preparing upgrade release version: 0800 prometheus | ts=2024-03-25T02:52:29.636Z caller=tls_config.go:313 level=info component=web msg="Listening on" address=[::]:9090 prometheus | ts=2024-03-25T02:52:29.636Z caller=tls_config.go:316 level=info component=web msg="TLS is disabled." http2=false address=[::]:9090 grafana | logger=migrator t=2024-03-25T02:52:32.624857624Z level=info msg="Executing migration" id="add index api_key.account_id_name" policy-apex-pdp | [2024-03-25T02:53:32.731+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine MyApexEngine-3:0.0.1 policy-api | \\/ ___)| |_)| | | | | || (_| | ) ) ) ) simulator | 2024-03-25 02:52:28,123 INFO org.onap.policy.models.simulators starting CDS gRPC Server Properties policy-db-migrator | Preparing upgrade release version: 0900 prometheus | ts=2024-03-25T02:52:29.654Z caller=head.go:616 level=info component=tsdb msg="Replaying on-disk memory mappable chunks if any" prometheus | ts=2024-03-25T02:52:29.654Z caller=head.go:698 level=info component=tsdb msg="On-disk memory mappable chunks replay completed" duration=3.69µs grafana | logger=migrator t=2024-03-25T02:52:32.626129528Z level=info msg="Migration successfully executed" id="add index api_key.account_id_name" duration=1.270854ms policy-apex-pdp | [2024-03-25T02:53:33.240+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-api | ' |____| .__|_| |_|_| |_\__, | / / / / simulator | 2024-03-25 02:52:28,459 INFO org.onap.policy.models.simulators starting DMaaP simulator policy-db-migrator | Preparing upgrade release version: 1000 prometheus | ts=2024-03-25T02:52:29.654Z caller=head.go:706 level=info component=tsdb msg="Replaying WAL, this may take a while" prometheus | ts=2024-03-25T02:52:29.668Z caller=head.go:778 level=info component=tsdb msg="WAL segment loaded" segment=0 maxSegment=0 grafana | logger=migrator t=2024-03-25T02:52:32.629294404Z level=info msg="Executing migration" id="drop index IDX_api_key_account_id - v1" policy-apex-pdp | [2024-03-25T02:53:33.242+00:00|INFO|ApexRestServerConsumer|DMAAP-source-POLICY-PDP-PAP] Creating the Apex Rest Server policy-api | =========|_|==============|___/=/_/_/_/ simulator | 2024-03-25 02:52:28,741 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-2ca47471==org.glassfish.jersey.servlet.ServletContainer@407adf29{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=DMaaP simulator, host=0.0.0.0, port=3904, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@7db0565c{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@54ec8cc9{/,null,STOPPED}, connector=DMaaP simulator@3af4e0bf{HTTP/1.1, (http/1.1)}{0.0.0.0:3904}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-2ca47471==org.glassfish.jersey.servlet.ServletContainer@407adf29{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: WAITED-START policy-db-migrator | Preparing upgrade release version: 1100 prometheus | ts=2024-03-25T02:52:29.668Z caller=head.go:815 level=info component=tsdb msg="WAL replay completed" checkpoint_replay_duration=30.901µs wal_replay_duration=13.85364ms wbl_replay_duration=270ns total_replay_duration=13.912561ms prometheus | ts=2024-03-25T02:52:29.673Z caller=main.go:1150 level=info fs_type=EXT4_SUPER_MAGIC grafana | logger=migrator t=2024-03-25T02:52:32.630315386Z level=info msg="Migration successfully executed" id="drop index IDX_api_key_account_id - v1" duration=1.020502ms policy-apex-pdp | [2024-03-25T02:53:33.245+00:00|INFO|JettyServletServer|DMAAP-source-POLICY-PDP-PAP] JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-b1a3a12==org.glassfish.jersey.servlet.ServletContainer@b8a5813{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /=io.swagger.jersey.config.JerseyJaxrsConfig-2d550c46==io.swagger.jersey.config.JerseyJaxrsConfig@48cab9ba{jsp=null,order=2,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=swagger-23324, toString()=JettyServletServer(name=RESTSERVER, host=0.0.0.0, port=23324, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@310e6899{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@6b1e0e00{/,null,STOPPED}, connector=RESTSERVER@6a79ddc6{HTTP/1.1, (http/1.1)}{0.0.0.0:23324}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-b1a3a12==org.glassfish.jersey.servlet.ServletContainer@b8a5813{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /=io.swagger.jersey.config.JerseyJaxrsConfig-2d550c46==io.swagger.jersey.config.JerseyJaxrsConfig@48cab9ba{jsp=null,order=2,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-api | :: Spring Boot :: (v2.7.8) simulator | 2024-03-25 02:52:28,798 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-2ca47471==org.glassfish.jersey.servlet.ServletContainer@407adf29{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=DMaaP simulator, host=0.0.0.0, port=3904, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@7db0565c{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@54ec8cc9{/,null,STOPPED}, connector=DMaaP simulator@3af4e0bf{HTTP/1.1, (http/1.1)}{0.0.0.0:3904}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-2ca47471==org.glassfish.jersey.servlet.ServletContainer@407adf29{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-db-migrator | Preparing upgrade release version: 1200 prometheus | ts=2024-03-25T02:52:29.673Z caller=main.go:1153 level=info msg="TSDB started" prometheus | ts=2024-03-25T02:52:29.673Z caller=main.go:1335 level=info msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml grafana | logger=migrator t=2024-03-25T02:52:32.63418005Z level=info msg="Executing migration" id="drop index UQE_api_key_key - v1" policy-apex-pdp | [2024-03-25T02:53:33.246+00:00|INFO|JettyServletServer|RESTSERVER-23324] JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-b1a3a12==org.glassfish.jersey.servlet.ServletContainer@b8a5813{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /=io.swagger.jersey.config.JerseyJaxrsConfig-2d550c46==io.swagger.jersey.config.JerseyJaxrsConfig@48cab9ba{jsp=null,order=2,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=swagger-23324, toString()=JettyServletServer(name=RESTSERVER, host=0.0.0.0, port=23324, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@310e6899{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@6b1e0e00{/,null,STOPPED}, connector=RESTSERVER@6a79ddc6{HTTP/1.1, (http/1.1)}{0.0.0.0:23324}, jettyThread=Thread[RESTSERVER-23324,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-b1a3a12==org.glassfish.jersey.servlet.ServletContainer@b8a5813{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}, /=io.swagger.jersey.config.JerseyJaxrsConfig-2d550c46==io.swagger.jersey.config.JerseyJaxrsConfig@48cab9ba{jsp=null,order=2,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-api | simulator | 2024-03-25 02:52:28,817 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-2ca47471==org.glassfish.jersey.servlet.ServletContainer@407adf29{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=DMaaP simulator, host=0.0.0.0, port=3904, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@7db0565c{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@54ec8cc9{/,null,STOPPED}, connector=DMaaP simulator@3af4e0bf{HTTP/1.1, (http/1.1)}{0.0.0.0:3904}, jettyThread=Thread[DMaaP simulator-3904,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-2ca47471==org.glassfish.jersey.servlet.ServletContainer@407adf29{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-db-migrator | Done policy-pap | PDP group configuration file: /opt/app/policy/pap/etc/mounted/groups.json prometheus | ts=2024-03-25T02:52:29.676Z caller=main.go:1372 level=info msg="Completed loading of configuration file" filename=/etc/prometheus/prometheus.yml totalDuration=3.006243ms db_storage=2.34µs remote_storage=3.17µs web_handler=1.42µs query_engine=2.4µs scrape=1.233309ms scrape_sd=338.082µs notify=141.892µs notify_sd=32.72µs rules=3.39µs tracing=12.251µs grafana | logger=migrator t=2024-03-25T02:52:32.635157711Z level=info msg="Migration successfully executed" id="drop index UQE_api_key_key - v1" duration=979.401µs policy-apex-pdp | [2024-03-25T02:53:33.270+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [OUT|DMAAP|POLICY-PDP-PAP] policy-api | [2024-03-25T02:52:44.803+00:00|INFO|PolicyApiApplication|main] Starting PolicyApiApplication using Java 11.0.19 on policy-api with PID 31 (/app/api.jar started by policy in /opt/app/policy/api/bin) simulator | 2024-03-25 02:52:28,854 INFO jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 11.0.19+7-alpine-r0 policy-db-migrator | name version policy-pap | prometheus | ts=2024-03-25T02:52:29.677Z caller=main.go:1114 level=info msg="Server is ready to receive web requests." grafana | logger=migrator t=2024-03-25T02:52:32.638244576Z level=info msg="Executing migration" id="drop index UQE_api_key_account_id_name - v1" policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:33.263878Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":1,"policyDeploySuccessCount":1,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213003,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200}]},"response":{"responseTo":"d5f6a2ce-ecbf-42a1-af72-3b5888ffa087","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.native.apex.Sampledomain:1.0.0 "},"messageName":"PDP_STATUS","requestId":"cb959104-8661-475e-b9a4-0eb028f284ca","timestampMs":1711335213263,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-api | [2024-03-25T02:52:44.807+00:00|INFO|PolicyApiApplication|main] No active profile set, falling back to 1 default profile: "default" simulator | 2024-03-25 02:52:28,999 INFO Session workerName=node0 policy-db-migrator | policyadmin 0 policy-pap | . ____ _ __ _ _ prometheus | ts=2024-03-25T02:52:29.677Z caller=manager.go:163 level=info component="rule manager" msg="Starting rule manager..." grafana | logger=migrator t=2024-03-25T02:52:32.639156216Z level=info msg="Migration successfully executed" id="drop index UQE_api_key_account_id_name - v1" duration=911.61µs policy-apex-pdp | [2024-03-25T02:53:33.270+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-api | [2024-03-25T02:52:46.856+00:00|INFO|RepositoryConfigurationDelegate|main] Bootstrapping Spring Data JPA repositories in DEFAULT mode. simulator | WARNING: An illegal reflective access operation has occurred policy-db-migrator | policyadmin: upgrade available: 0 -> 1200 policy-pap | /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ grafana | logger=migrator t=2024-03-25T02:52:32.643408614Z level=info msg="Executing migration" id="Rename table api_key to api_key_v1 - v1" policy-apex-pdp | [2024-03-25T02:53:33.270+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-api | [2024-03-25T02:52:46.998+00:00|INFO|RepositoryConfigurationDelegate|main] Finished Spring Data repository scanning in 121 ms. Found 6 JPA repository interfaces. simulator | WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/opt/app/policy/simulators/lib/jaxb-impl-2.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) policy-db-migrator | upgrade: 0 -> 1200 policy-pap | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ grafana | logger=migrator t=2024-03-25T02:52:32.651980282Z level=info msg="Migration successfully executed" id="Rename table api_key to api_key_v1 - v1" duration=8.570128ms policy-api | [2024-03-25T02:52:48.843+00:00|INFO|TomcatWebServer|main] Tomcat initialized with port(s): 6969 (http) policy-apex-pdp | [2024-03-25T02:53:33.273+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 3 ms simulator | WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector policy-db-migrator | policy-pap | \\/ ___)| |_)| | | | | || (_| | ) ) ) ) grafana | logger=migrator t=2024-03-25T02:52:32.655716214Z level=info msg="Executing migration" id="create api_key table v2" policy-api | [2024-03-25T02:52:48.873+00:00|INFO|Http11NioProtocol|main] Initializing ProtocolHandler ["http-nio-6969"] policy-apex-pdp | [2024-03-25T02:53:33.276+00:00|INFO|HttpClient|pool-2-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... simulator | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations policy-db-migrator | > upgrade 0100-jpapdpgroup_properties.sql policy-pap | ' |____| .__|_| |_|_| |_\__, | / / / / grafana | logger=migrator t=2024-03-25T02:52:32.656561663Z level=info msg="Migration successfully executed" id="create api_key table v2" duration=844.879µs policy-api | [2024-03-25T02:52:48.874+00:00|INFO|StandardService|main] Starting service [Tomcat] policy-apex-pdp | [2024-03-25T02:53:33.284+00:00|INFO|HttpClient|pool-2-thread-1] --> HTTP/1.1 200 OK simulator | WARNING: All illegal access operations will be denied in a future release policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:32.659612158Z level=info msg="Executing migration" id="create index IDX_api_key_org_id - v2" policy-api | [2024-03-25T02:52:48.874+00:00|INFO|StandardEngine|main] Starting Servlet engine: [Apache Tomcat/9.0.71] policy-apex-pdp | [2024-03-25T02:53:33.284+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:52:30,151 INFO Using GSON for REST calls policy-db-migrator | CREATE TABLE IF NOT EXISTS jpapdpgroup_properties (name VARCHAR(120) DEFAULT NULL, version VARCHAR(20) DEFAULT NULL, PROPERTIES VARCHAR(255) DEFAULT NULL, PROPERTIES_KEY VARCHAR(255) DEFAULT NULL) grafana | logger=migrator t=2024-03-25T02:52:32.660390537Z level=info msg="Migration successfully executed" id="create index IDX_api_key_org_id - v2" duration=777.779µs policy-api | [2024-03-25T02:52:49.018+00:00|INFO|[/policy/api/v1]|main] Initializing Spring embedded WebApplicationContext policy-apex-pdp | [2024-03-25T02:53:33.284+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] cambria reply ok (8 ms):{"serverTimeMs":0,"count":1} simulator | 2024-03-25 02:52:30,267 INFO Started o.e.j.s.ServletContextHandler@54ec8cc9{/,null,AVAILABLE} policy-db-migrator | -------------- policy-pap | =========|_|==============|___/=/_/_/_/ grafana | logger=migrator t=2024-03-25T02:52:32.664063269Z level=info msg="Executing migration" id="create index UQE_api_key_key - v2" policy-api | [2024-03-25T02:52:49.018+00:00|INFO|ServletWebServerApplicationContext|main] Root WebApplicationContext: initialization completed in 4141 ms policy-apex-pdp | [2024-03-25T02:53:33.284+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] simulator | 2024-03-25 02:52:30,276 INFO Started DMaaP simulator@3af4e0bf{HTTP/1.1, (http/1.1)}{0.0.0.0:3904} policy-db-migrator | policy-pap | :: Spring Boot :: (v2.7.8) grafana | logger=migrator t=2024-03-25T02:52:32.66511804Z level=info msg="Migration successfully executed" id="create index UQE_api_key_key - v2" duration=1.055171ms policy-api | [2024-03-25T02:52:49.944+00:00|INFO|LogHelper|main] HHH000204: Processing PersistenceUnitInfo [name: default] policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:33.263878Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":1,"policyDeploySuccessCount":1,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213003,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200}]},"response":{"responseTo":"d5f6a2ce-ecbf-42a1-af72-3b5888ffa087","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.native.apex.Sampledomain:1.0.0 "},"messageName":"PDP_STATUS","requestId":"cb959104-8661-475e-b9a4-0eb028f284ca","timestampMs":1711335213263,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | 2024-03-25 02:52:30,287 INFO Started Server@7db0565c{STARTING}[10.0.13,sto=0] @2982ms policy-db-migrator | policy-pap | grafana | logger=migrator t=2024-03-25T02:52:32.668190955Z level=info msg="Executing migration" id="create index UQE_api_key_org_id_name - v2" policy-api | [2024-03-25T02:52:50.077+00:00|INFO|Version|main] HHH000412: Hibernate ORM core version 5.6.15.Final policy-apex-pdp | [2024-03-25T02:53:33.285+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS simulator | 2024-03-25 02:52:30,287 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-2ca47471==org.glassfish.jersey.servlet.ServletContainer@407adf29{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}}, swaggerId=null, toString()=JettyServletServer(name=DMaaP simulator, host=0.0.0.0, port=3904, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@7db0565c{STARTED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@54ec8cc9{/,null,AVAILABLE}, connector=DMaaP simulator@3af4e0bf{HTTP/1.1, (http/1.1)}{0.0.0.0:3904}, jettyThread=Thread[DMaaP simulator-3904,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-2ca47471==org.glassfish.jersey.servlet.ServletContainer@407adf29{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}})]: pending time is 3523 ms. policy-db-migrator | > upgrade 0110-jpapdpstatistics_enginestats.sql policy-pap | [2024-03-25T02:53:05.823+00:00|INFO|PolicyPapApplication|main] Starting PolicyPapApplication using Java 11.0.19 on policy-pap with PID 68 (/app/pap.jar started by policy in /opt/app/policy/pap/bin) grafana | logger=migrator t=2024-03-25T02:52:32.669268568Z level=info msg="Migration successfully executed" id="create index UQE_api_key_org_id_name - v2" duration=1.077433ms policy-api | [2024-03-25T02:52:50.315+00:00|INFO|Version|main] HCANN000001: Hibernate Commons Annotations {5.1.2.Final} policy-apex-pdp | [2024-03-25T02:53:33.285+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp simulator | 2024-03-25 02:52:30,297 INFO org.onap.policy.models.simulators starting org.onap.policy.simulators.AaiSimulatorJaxRs_RESOURCE_LOCATION policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:05.827+00:00|INFO|PolicyPapApplication|main] No active profile set, falling back to 1 default profile: "default" grafana | logger=migrator t=2024-03-25T02:52:32.672581285Z level=info msg="Executing migration" id="copy api_key v1 to v2" policy-api | [2024-03-25T02:52:50.481+00:00|INFO|HikariDataSource|main] HikariPool-1 - Starting... policy-apex-pdp | [2024-03-25T02:53:33.285+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... simulator | 2024-03-25 02:52:30,299 INFO org.onap.policy.models.simulators starting A&AI simulator policy-db-migrator | CREATE TABLE IF NOT EXISTS jpapdpstatistics_enginestats (AVERAGEEXECUTIONTIME DOUBLE DEFAULT NULL, ENGINEID VARCHAR(255) DEFAULT NULL, ENGINETIMESTAMP BIGINT DEFAULT NULL, ENGINEWORKERSTATE INT DEFAULT NULL, EVENTCOUNT BIGINT DEFAULT NULL, LASTENTERTIME BIGINT DEFAULT NULL, LASTEXECUTIONTIME BIGINT DEFAULT NULL, LASTSTART BIGINT DEFAULT NULL, UPTIME BIGINT DEFAULT NULL, timeStamp datetime DEFAULT NULL, name VARCHAR(120) DEFAULT NULL, version VARCHAR(20) DEFAULT NULL) policy-pap | [2024-03-25T02:53:07.367+00:00|INFO|RepositoryConfigurationDelegate|main] Bootstrapping Spring Data JPA repositories in DEFAULT mode. grafana | logger=migrator t=2024-03-25T02:52:32.67297301Z level=info msg="Migration successfully executed" id="copy api_key v1 to v2" duration=391.295µs policy-api | [2024-03-25T02:52:50.596+00:00|INFO|HikariDataSource|main] HikariPool-1 - Start completed. policy-apex-pdp | [2024-03-25T02:53:33.376+00:00|INFO|GsonMessageBodyHandler|RESTSERVER-23324] Using GSON for REST calls simulator | 2024-03-25 02:52:30,309 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-1cfd1875==org.glassfish.jersey.servlet.ServletContainer@e3c3aa63{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=A&AI simulator, host=0.0.0.0, port=6666, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@28c0b664{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@2c444798{/,null,STOPPED}, connector=A&AI simulator@320e400{HTTP/1.1, (http/1.1)}{0.0.0.0:6666}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-1cfd1875==org.glassfish.jersey.servlet.ServletContainer@e3c3aa63{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: WAITED-START policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:32.679693945Z level=info msg="Executing migration" id="Drop old table api_key_v1" policy-api | [2024-03-25T02:52:50.627+00:00|INFO|Dialect|main] HHH000400: Using dialect: org.hibernate.dialect.MariaDB103Dialect policy-apex-pdp | [2024-03-25T02:53:37.554+00:00|INFO|RequestLog|qtp1144146266-52] 172.17.0.1 - - [25/Mar/2024:02:53:37 +0000] "PUT /apex/FirstConsumer/EventIn HTTP/1.1" 200 588 "-" "python-requests/2.27.1" simulator | 2024-03-25 02:52:30,310 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-1cfd1875==org.glassfish.jersey.servlet.ServletContainer@e3c3aa63{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=A&AI simulator, host=0.0.0.0, port=6666, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@28c0b664{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@2c444798{/,null,STOPPED}, connector=A&AI simulator@320e400{HTTP/1.1, (http/1.1)}{0.0.0.0:6666}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-1cfd1875==org.glassfish.jersey.servlet.ServletContainer@e3c3aa63{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:32.680490185Z level=info msg="Migration successfully executed" id="Drop old table api_key_v1" duration=797.85µs policy-apex-pdp | [2024-03-25T02:53:48.291+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:53:48.292+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:53:48.292+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... simulator | 2024-03-25 02:52:30,311 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-1cfd1875==org.glassfish.jersey.servlet.ServletContainer@e3c3aa63{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=A&AI simulator, host=0.0.0.0, port=6666, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@28c0b664{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@2c444798{/,null,STOPPED}, connector=A&AI simulator@320e400{HTTP/1.1, (http/1.1)}{0.0.0.0:6666}, jettyThread=Thread[A&AI simulator-6666,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-1cfd1875==org.glassfish.jersey.servlet.ServletContainer@e3c3aa63{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-api | [2024-03-25T02:52:52.445+00:00|INFO|JtaPlatformInitiator|main] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] grafana | logger=migrator t=2024-03-25T02:52:32.683993565Z level=info msg="Executing migration" id="Update api_key table charset" policy-apex-pdp | [2024-03-25T02:53:56.094+00:00|INFO|RequestLog|qtp614580607-26] 172.17.0.2 - policyadmin [25/Mar/2024:02:53:56 +0000] "GET /metrics HTTP/1.1" 200 14165 "-" "Prometheus/2.51.0" policy-apex-pdp | [2024-03-25T02:54:03.300+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:52:30,313 INFO jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 11.0.19+7-alpine-r0 policy-api | [2024-03-25T02:52:52.467+00:00|INFO|LocalContainerEntityManagerFactoryBean|main] Initialized JPA EntityManagerFactory for persistence unit 'default' policy-pap | [2024-03-25T02:53:07.538+00:00|INFO|RepositoryConfigurationDelegate|main] Finished Spring Data repository scanning in 151 ms. Found 8 JPA repository interfaces. grafana | logger=migrator t=2024-03-25T02:52:32.684114246Z level=info msg="Migration successfully executed" id="Update api_key table charset" duration=120.681µs policy-apex-pdp | [2024-03-25T02:54:03.300+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:54:03.301+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... simulator | 2024-03-25 02:52:30,327 INFO Session workerName=node0 policy-api | [2024-03-25T02:52:54.174+00:00|WARN|ApiDatabaseInitializer|main] Detected multi-versioned type: policytypes/onap.policies.monitoring.tcagen2.v2.yaml policy-pap | [2024-03-25T02:53:08.901+00:00|INFO|TomcatWebServer|main] Tomcat initialized with port(s): 6969 (http) policy-pap | [2024-03-25T02:53:08.918+00:00|INFO|Http11NioProtocol|main] Initializing ProtocolHandler ["http-nio-6969"] policy-apex-pdp | [2024-03-25T02:54:18.309+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:54:18.309+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp simulator | 2024-03-25 02:52:30,501 INFO Using GSON for REST calls policy-api | [2024-03-25T02:52:54.986+00:00|INFO|ApiDatabaseInitializer|main] Multi-versioned Service Template [onap.policies.Monitoring, onap.policies.monitoring.tcagen2] policy-pap | [2024-03-25T02:53:08.919+00:00|INFO|StandardService|main] Starting service [Tomcat] policy-pap | [2024-03-25T02:53:08.919+00:00|INFO|StandardEngine|main] Starting Servlet engine: [Apache Tomcat/9.0.71] policy-apex-pdp | [2024-03-25T02:54:18.309+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:54:33.316+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:52:30,519 INFO Started o.e.j.s.ServletContextHandler@2c444798{/,null,AVAILABLE} policy-api | [2024-03-25T02:52:57.110+00:00|INFO|DefaultSecurityFilterChain|main] Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@427faf19, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@57404a8d, org.springframework.security.web.context.SecurityContextPersistenceFilter@2acacdf, org.springframework.security.web.header.HeaderWriterFilter@1377e395, org.springframework.security.web.authentication.logout.LogoutFilter@b1fccca, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@48d588dd, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@674c9079, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@4cf5cf47, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@337f6716, org.springframework.security.web.session.SessionManagementFilter@14c5625d, org.springframework.security.web.access.ExceptionTranslationFilter@3b48ffe8, org.springframework.security.web.access.intercept.AuthorizationFilter@3c7b040f] policy-pap | [2024-03-25T02:53:09.032+00:00|INFO|[/policy/pap/v1]|main] Initializing Spring embedded WebApplicationContext policy-pap | [2024-03-25T02:53:09.033+00:00|INFO|ServletWebServerApplicationContext|main] Root WebApplicationContext: initialization completed in 3136 ms policy-apex-pdp | [2024-03-25T02:54:33.317+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:54:33.317+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... simulator | 2024-03-25 02:52:30,521 INFO Started A&AI simulator@320e400{HTTP/1.1, (http/1.1)}{0.0.0.0:6666} policy-api | [2024-03-25T02:52:57.391+00:00|WARN|JpaBaseConfiguration$JpaWebConfiguration|main] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning policy-pap | [2024-03-25T02:53:09.712+00:00|INFO|LogHelper|main] HHH000204: Processing PersistenceUnitInfo [name: default] policy-pap | [2024-03-25T02:53:09.968+00:00|INFO|Version|main] HHH000412: Hibernate ORM core version 5.6.15.Final policy-apex-pdp | [2024-03-25T02:54:48.329+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:54:48.333+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp simulator | 2024-03-25 02:52:30,522 INFO Started Server@28c0b664{STARTING}[10.0.13,sto=0] @3216ms policy-api | [2024-03-25T02:53:01.366+00:00|INFO|EndpointLinksResolver|main] Exposing 3 endpoint(s) beneath base path '' grafana | logger=migrator t=2024-03-25T02:52:32.687416473Z level=info msg="Executing migration" id="Add expires to api_key table" policy-pap | [2024-03-25T02:53:10.600+00:00|INFO|Version|main] HCANN000001: Hibernate Commons Annotations {5.1.2.Final} policy-apex-pdp | [2024-03-25T02:54:48.333+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-db-migrator | simulator | 2024-03-25 02:52:30,522 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-1cfd1875==org.glassfish.jersey.servlet.ServletContainer@e3c3aa63{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}}, swaggerId=null, toString()=JettyServletServer(name=A&AI simulator, host=0.0.0.0, port=6666, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@28c0b664{STARTED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@2c444798{/,null,AVAILABLE}, connector=A&AI simulator@320e400{HTTP/1.1, (http/1.1)}{0.0.0.0:6666}, jettyThread=Thread[A&AI simulator-6666,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-1cfd1875==org.glassfish.jersey.servlet.ServletContainer@e3c3aa63{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}})]: pending time is 4789 ms. policy-api | [2024-03-25T02:53:01.416+00:00|INFO|Http11NioProtocol|main] Starting ProtocolHandler ["http-nio-6969"] grafana | logger=migrator t=2024-03-25T02:52:32.690201525Z level=info msg="Migration successfully executed" id="Add expires to api_key table" duration=2.784012ms policy-pap | [2024-03-25T02:53:10.851+00:00|INFO|HikariDataSource|main] HikariPool-1 - Starting... policy-apex-pdp | [2024-03-25T02:54:56.084+00:00|INFO|RequestLog|qtp614580607-25] 172.17.0.2 - policyadmin [25/Mar/2024:02:54:56 +0000] "GET /metrics HTTP/1.1" 200 14167 "-" "Prometheus/2.51.0" policy-db-migrator | > upgrade 0120-jpapdpsubgroup_policies.sql simulator | 2024-03-25 02:52:30,523 INFO org.onap.policy.models.simulators starting SDNC simulator policy-api | [2024-03-25T02:53:01.462+00:00|INFO|TomcatWebServer|main] Tomcat started on port(s): 6969 (http) with context path '/policy/api/v1' grafana | logger=migrator t=2024-03-25T02:52:32.69330243Z level=info msg="Executing migration" id="Add service account foreign key" policy-pap | [2024-03-25T02:53:11.127+00:00|INFO|HikariDataSource|main] HikariPool-1 - Start completed. policy-apex-pdp | [2024-03-25T02:55:03.343+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | -------------- simulator | 2024-03-25 02:52:30,527 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-4d157787==org.glassfish.jersey.servlet.ServletContainer@f348f941{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=SDNC simulator, host=0.0.0.0, port=6668, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@68ed96ca{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@6d1310f6{/,null,STOPPED}, connector=SDNC simulator@6ebd78d1{HTTP/1.1, (http/1.1)}{0.0.0.0:6668}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-4d157787==org.glassfish.jersey.servlet.ServletContainer@f348f941{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: WAITED-START policy-api | [2024-03-25T02:53:01.483+00:00|INFO|PolicyApiApplication|main] Started PolicyApiApplication in 17.912 seconds (JVM running for 18.598) grafana | logger=migrator t=2024-03-25T02:52:32.69595391Z level=info msg="Migration successfully executed" id="Add service account foreign key" duration=2.65089ms policy-pap | [2024-03-25T02:53:11.165+00:00|INFO|Dialect|main] HHH000400: Using dialect: org.hibernate.dialect.MariaDB103Dialect policy-apex-pdp | [2024-03-25T02:55:03.344+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-db-migrator | CREATE TABLE IF NOT EXISTS jpapdpsubgroup_policies (name VARCHAR(120) DEFAULT NULL, version VARCHAR(20) DEFAULT NULL, parentLocalName VARCHAR(120) DEFAULT NULL, localName VARCHAR(120) DEFAULT NULL, parentKeyVersion VARCHAR(15) DEFAULT NULL, parentKeyName VARCHAR(120) DEFAULT NULL) simulator | 2024-03-25 02:52:30,528 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-4d157787==org.glassfish.jersey.servlet.ServletContainer@f348f941{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=SDNC simulator, host=0.0.0.0, port=6668, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@68ed96ca{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@6d1310f6{/,null,STOPPED}, connector=SDNC simulator@6ebd78d1{HTTP/1.1, (http/1.1)}{0.0.0.0:6668}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-4d157787==org.glassfish.jersey.servlet.ServletContainer@f348f941{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-api | [2024-03-25T02:53:29.507+00:00|INFO|[/policy/api/v1]|http-nio-6969-exec-2] Initializing Spring DispatcherServlet 'dispatcherServlet' grafana | logger=migrator t=2024-03-25T02:52:32.700479412Z level=info msg="Executing migration" id="set service account foreign key to nil if 0" policy-pap | [2024-03-25T02:53:13.300+00:00|INFO|JtaPlatformInitiator|main] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] policy-apex-pdp | [2024-03-25T02:55:03.345+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-db-migrator | -------------- simulator | 2024-03-25 02:52:30,529 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-4d157787==org.glassfish.jersey.servlet.ServletContainer@f348f941{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=SDNC simulator, host=0.0.0.0, port=6668, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@68ed96ca{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@6d1310f6{/,null,STOPPED}, connector=SDNC simulator@6ebd78d1{HTTP/1.1, (http/1.1)}{0.0.0.0:6668}, jettyThread=Thread[SDNC simulator-6668,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-4d157787==org.glassfish.jersey.servlet.ServletContainer@f348f941{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-api | [2024-03-25T02:53:29.507+00:00|INFO|DispatcherServlet|http-nio-6969-exec-2] Initializing Servlet 'dispatcherServlet' grafana | logger=migrator t=2024-03-25T02:52:32.700764485Z level=info msg="Migration successfully executed" id="set service account foreign key to nil if 0" duration=283.673µs policy-pap | [2024-03-25T02:53:13.314+00:00|INFO|LocalContainerEntityManagerFactoryBean|main] Initialized JPA EntityManagerFactory for persistence unit 'default' policy-apex-pdp | [2024-03-25T02:55:18.362+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | simulator | 2024-03-25 02:52:30,531 INFO jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 11.0.19+7-alpine-r0 policy-api | [2024-03-25T02:53:29.509+00:00|INFO|DispatcherServlet|http-nio-6969-exec-2] Completed initialization in 1 ms grafana | logger=migrator t=2024-03-25T02:52:32.704029102Z level=info msg="Executing migration" id="Add last_used_at to api_key table" policy-pap | [2024-03-25T02:53:15.717+00:00|INFO|SingleThreadedDmaapTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=365d21c0-dc5b-47eb-a529-b81e7eb8cdb4, consumerInstance=policy-pap, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: INITTED policy-apex-pdp | [2024-03-25T02:55:18.362+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-db-migrator | simulator | 2024-03-25 02:52:30,537 INFO Session workerName=node0 policy-api | [2024-03-25T02:53:29.821+00:00|INFO|OrderedServiceImpl|http-nio-6969-exec-2] ***** OrderedServiceImpl implementers: grafana | logger=migrator t=2024-03-25T02:52:32.706830324Z level=info msg="Migration successfully executed" id="Add last_used_at to api_key table" duration=2.801821ms policy-pap | [2024-03-25T02:53:15.794+00:00|INFO|SingleThreadedDmaapTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=policy-pap, consumerInstance=929d32b3-e2db-4e1e-903d-982a73570d1b, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-HEARTBEAT, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: INITTED policy-apex-pdp | [2024-03-25T02:55:18.363+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-db-migrator | > upgrade 0130-jpapdpsubgroup_properties.sql simulator | 2024-03-25 02:52:30,595 INFO Using GSON for REST calls policy-api | [] grafana | logger=migrator t=2024-03-25T02:52:32.710196642Z level=info msg="Executing migration" id="Add is_revoked column to api_key table" policy-pap | [2024-03-25T02:53:16.306+00:00|INFO|PapDatabaseInitializer|main] Created initial pdpGroup in DB - PdpGroups(groups=[PdpGroup(name=defaultGroup, description=The default group that registers all supported policy types and pdps., pdpGroupState=ACTIVE, properties=null, pdpSubgroups=[PdpSubGroup(pdpType=apex, supportedPolicyTypes=[onap.policies.controlloop.operational.common.Apex 1.0.0, onap.policies.native.Apex 1.0.0], policies=[], currentInstanceCount=0, desiredInstanceCount=1, properties=null, pdpInstances=null)])]) from /opt/app/policy/pap/etc/mounted/groups.json policy-apex-pdp | [2024-03-25T02:55:23.181+00:00|INFO|network|Timer-0] [OUT|DMAAP|POLICY-PDP-PAP] policy-db-migrator | -------------- simulator | 2024-03-25 02:52:30,605 INFO Started o.e.j.s.ServletContextHandler@6d1310f6{/,null,AVAILABLE} grafana | logger=migrator t=2024-03-25T02:52:32.712988133Z level=info msg="Migration successfully executed" id="Add is_revoked column to api_key table" duration=2.795291ms policy-pap | [2024-03-25T02:53:16.572+00:00|INFO|DefaultSecurityFilterChain|main] Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@663622b1, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@1be52113, org.springframework.security.web.context.SecurityContextPersistenceFilter@740ee00f, org.springframework.security.web.header.HeaderWriterFilter@3dcbbbc, org.springframework.security.web.authentication.logout.LogoutFilter@62c53685, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@30eb55c9, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@647af13d, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@29a1ec65, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@5badeda0, org.springframework.security.web.session.SessionManagementFilter@7178d811, org.springframework.security.web.access.ExceptionTranslationFilter@2a5d2041, org.springframework.security.web.access.intercept.AuthorizationFilter@40b01718] policy-db-migrator | CREATE TABLE IF NOT EXISTS jpapdpsubgroup_properties (parentLocalName VARCHAR(120) DEFAULT NULL, localName VARCHAR(120) DEFAULT NULL, parentKeyVersion VARCHAR(15) DEFAULT NULL, parentKeyName VARCHAR(120) DEFAULT NULL, PROPERTIES VARCHAR(255) DEFAULT NULL, PROPERTIES_KEY VARCHAR(255) DEFAULT NULL) policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp Heartbeat","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:23.180174Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":1,"policyExecutedSuccessCount":1,"policyExecutedFailCount":0,"policyDeployCount":1,"policyDeploySuccessCount":1,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200}]},"messageName":"PDP_STATUS","requestId":"4fe51adf-de45-4892-bb81-6779be95aadb","timestampMs":1711335323180,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | 2024-03-25 02:52:30,607 INFO Started SDNC simulator@6ebd78d1{HTTP/1.1, (http/1.1)}{0.0.0.0:6668} grafana | logger=migrator t=2024-03-25T02:52:32.717136661Z level=info msg="Executing migration" id="create dashboard_snapshot table v4" policy-pap | [2024-03-25T02:53:16.887+00:00|WARN|JpaBaseConfiguration$JpaWebConfiguration|main] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:23.223+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 42 ms simulator | 2024-03-25 02:52:30,607 INFO Started Server@68ed96ca{STARTING}[10.0.13,sto=0] @3302ms grafana | logger=migrator t=2024-03-25T02:52:32.718107652Z level=info msg="Migration successfully executed" id="create dashboard_snapshot table v4" duration=970.37µs policy-pap | [2024-03-25T02:53:20.861+00:00|INFO|EndpointLinksResolver|main] Exposing 3 endpoint(s) beneath base path '' policy-apex-pdp | [2024-03-25T02:55:23.223+00:00|INFO|HttpClient|pool-2-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... simulator | 2024-03-25 02:52:30,607 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-4d157787==org.glassfish.jersey.servlet.ServletContainer@f348f941{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}}, swaggerId=null, toString()=JettyServletServer(name=SDNC simulator, host=0.0.0.0, port=6668, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@68ed96ca{STARTED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@6d1310f6{/,null,AVAILABLE}, connector=SDNC simulator@6ebd78d1{HTTP/1.1, (http/1.1)}{0.0.0.0:6668}, jettyThread=Thread[SDNC simulator-6668,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-4d157787==org.glassfish.jersey.servlet.ServletContainer@f348f941{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}})]: pending time is 4922 ms. grafana | logger=migrator t=2024-03-25T02:52:32.721029385Z level=info msg="Executing migration" id="drop table dashboard_snapshot_v4 #1" policy-pap | [2024-03-25T02:53:20.933+00:00|INFO|Http11NioProtocol|main] Starting ProtocolHandler ["http-nio-6969"] policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:23.233+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:52:30,608 INFO org.onap.policy.models.simulators starting SO simulator grafana | logger=migrator t=2024-03-25T02:52:32.721645971Z level=info msg="Migration successfully executed" id="drop table dashboard_snapshot_v4 #1" duration=615.056µs policy-pap | [2024-03-25T02:53:20.978+00:00|INFO|TomcatWebServer|main] Tomcat started on port(s): 6969 (http) with context path '/policy/pap/v1' policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:23.233+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] simulator | 2024-03-25 02:52:30,612 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-255990cc==org.glassfish.jersey.servlet.ServletContainer@744e52ec{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=SO simulator, host=0.0.0.0, port=6669, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@51c929ae{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@3c8bdd5b{/,null,STOPPED}, connector=SO simulator@54e7391d{HTTP/1.1, (http/1.1)}{0.0.0.0:6669}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-255990cc==org.glassfish.jersey.servlet.ServletContainer@744e52ec{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: WAITED-START grafana | logger=migrator t=2024-03-25T02:52:32.724755877Z level=info msg="Executing migration" id="create dashboard_snapshot table v5 #2" policy-pap | [2024-03-25T02:53:21.000+00:00|INFO|ServiceManager|main] Policy PAP starting policy-db-migrator | > upgrade 0140-jpapdpsubgroup_supportedpolicytypes.sql policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp Heartbeat","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:23.180174Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":1,"policyExecutedSuccessCount":1,"policyExecutedFailCount":0,"policyDeployCount":1,"policyDeploySuccessCount":1,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200}]},"messageName":"PDP_STATUS","requestId":"4fe51adf-de45-4892-bb81-6779be95aadb","timestampMs":1711335323180,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | 2024-03-25 02:52:30,613 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-255990cc==org.glassfish.jersey.servlet.ServletContainer@744e52ec{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=SO simulator, host=0.0.0.0, port=6669, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@51c929ae{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@3c8bdd5b{/,null,STOPPED}, connector=SO simulator@54e7391d{HTTP/1.1, (http/1.1)}{0.0.0.0:6669}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-255990cc==org.glassfish.jersey.servlet.ServletContainer@744e52ec{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING grafana | logger=migrator t=2024-03-25T02:52:32.72588048Z level=info msg="Migration successfully executed" id="create dashboard_snapshot table v5 #2" duration=1.123773ms policy-pap | [2024-03-25T02:53:21.000+00:00|INFO|ServiceManager|main] Policy PAP starting Meter Registry policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:23.234+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS grafana | logger=migrator t=2024-03-25T02:52:32.729894055Z level=info msg="Executing migration" id="create index UQE_dashboard_snapshot_key - v5" policy-pap | [2024-03-25T02:53:21.001+00:00|INFO|ServiceManager|main] Policy PAP starting PAP parameters policy-apex-pdp | [2024-03-25T02:55:23.234+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp simulator | 2024-03-25 02:52:30,613 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-255990cc==org.glassfish.jersey.servlet.ServletContainer@744e52ec{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=SO simulator, host=0.0.0.0, port=6669, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@51c929ae{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@3c8bdd5b{/,null,STOPPED}, connector=SO simulator@54e7391d{HTTP/1.1, (http/1.1)}{0.0.0.0:6669}, jettyThread=Thread[SO simulator-6669,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-255990cc==org.glassfish.jersey.servlet.ServletContainer@744e52ec{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING policy-db-migrator | CREATE TABLE IF NOT EXISTS jpapdpsubgroup_supportedpolicytypes (name VARCHAR(120) DEFAULT NULL, version VARCHAR(20) DEFAULT NULL, parentLocalName VARCHAR(120) DEFAULT NULL, localName VARCHAR(120) DEFAULT NULL, parentKeyVersion VARCHAR(15) DEFAULT NULL, parentKeyName VARCHAR(120) DEFAULT NULL) grafana | logger=migrator t=2024-03-25T02:52:32.730758655Z level=info msg="Migration successfully executed" id="create index UQE_dashboard_snapshot_key - v5" duration=864.36µs policy-pap | [2024-03-25T02:53:21.003+00:00|INFO|ServiceManager|main] Policy PAP starting Pdp Heartbeat Listener policy-apex-pdp | [2024-03-25T02:55:23.234+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... simulator | 2024-03-25 02:52:30,614 INFO jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 11.0.19+7-alpine-r0 policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:32.733529577Z level=info msg="Executing migration" id="create index UQE_dashboard_snapshot_delete_key - v5" policy-pap | [2024-03-25T02:53:21.003+00:00|INFO|ServiceManager|main] Policy PAP starting Response Request ID Dispatcher policy-apex-pdp | [2024-03-25T02:55:23.236+00:00|INFO|HttpClient|pool-2-thread-1] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:52:30,616 INFO Session workerName=node0 policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:32.734510018Z level=info msg="Migration successfully executed" id="create index UQE_dashboard_snapshot_delete_key - v5" duration=980.561µs policy-apex-pdp | [2024-03-25T02:55:23.236+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] cambria reply ok (13 ms):{"serverTimeMs":0,"count":1} policy-pap | [2024-03-25T02:53:21.003+00:00|INFO|ServiceManager|main] Policy PAP starting Heartbeat Request ID Dispatcher policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:32.746392462Z level=info msg="Executing migration" id="create index IDX_dashboard_snapshot_user_id - v5" simulator | 2024-03-25 02:52:30,683 INFO Using GSON for REST calls policy-apex-pdp | [2024-03-25T02:55:26.144+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:21.003+00:00|INFO|ServiceManager|main] Policy PAP starting Response Message Dispatcher policy-db-migrator | > upgrade 0150-jpatoscacapabilityassignment_attributes.sql grafana | logger=migrator t=2024-03-25T02:52:32.747316333Z level=info msg="Migration successfully executed" id="create index IDX_dashboard_snapshot_user_id - v5" duration=926.311µs simulator | 2024-03-25 02:52:30,695 INFO Started o.e.j.s.ServletContextHandler@3c8bdd5b{/,null,AVAILABLE} policy-apex-pdp | [2024-03-25T02:55:26.152+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:21.012+00:00|INFO|TopicBase|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=365d21c0-dc5b-47eb-a529-b81e7eb8cdb4, consumerInstance=policy-pap, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: registering org.onap.policy.common.endpoints.listeners.MessageTypeDispatcher@7204d98f grafana | logger=migrator t=2024-03-25T02:52:32.751342809Z level=info msg="Executing migration" id="alter dashboard_snapshot to mediumtext v2" simulator | 2024-03-25 02:52:30,697 INFO Started SO simulator@54e7391d{HTTP/1.1, (http/1.1)}{0.0.0.0:6669} policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscacapabilityassignment_attributes (name VARCHAR(120) DEFAULT NULL, version VARCHAR(20) DEFAULT NULL, ATTRIBUTES LONGTEXT DEFAULT NULL, ATTRIBUTES_KEY VARCHAR(255) DEFAULT NULL) policy-apex-pdp | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT"}]},"policy_type_impl":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"c8a29e27-0a15-354a-84f9-4c7f207e5c81","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"5e843cee-0180-39b9-8989-180b2ffe11c0","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"UUID":"90291c92-9b27-3cd9-8720-db572419c048","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"UUID":"7b7e6751-4e0b-389d-98c0-5567bbc0294c","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"63d5680c-14ef-3505-8d34-ebb646bba07b","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"a84ca97d-6e94-39a2-91f9-59a6c9aa435e","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"0e2ee622-7fd3-3e49-82e2-539c4f5e9624","description":"Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"e84f8682-ea33-3ad0-8626-8bc4634581fc","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"a252f835-2479-38ef-9ef4-20af62725752","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"UUID":"cfc46ea9-b8c1-38dd-ac9c-304c916daf34","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"1e7095d6-a455-3f89-acae-486e35d7e311","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"UUID":"d22ea83b-695d-3da9-b9f5-41f16ca433bf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"e9fe2e40-1f0d-30dd-8b9e-885695878693","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"5e04fa76-0a17-38a9-8524-23b2d1a23fa5","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"15866380-40f5-3f8e-87d9-13747a36d352","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"UUID":"2c3d76ce-dd42-32ac-a397-ab418534e1cf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"b99c44da-dae7-3c96-b528-58852537d063","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"1db688e2-3afe-3b03-9795-fdbfa80fa240","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"31022456-e85b-3a9b-9ecb-a09691792d3e","description":"Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"d6075720-622e-3a0d-827a-aa4580a2f5d7","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"UUID":"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"UUID":"a0407d0b-5719-38bf-9529-25ad62ace8c4","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"UUID":"28e894dc-4ab8-3469-aab7-d81bd05bb4c9","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"UUID":"073f1433-999e-3506-98ad-ef820d2fa7f0","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"UUID":"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74","description":"Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask:0.0.1\""}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"UUID":"317be184-a01a-3e2d-9ae4-cafaa405de70","description":"Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"UUID":"be7fc79b-9b73-381a-8e23-9dd6e6b1233d","description":"Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"UUID":"1a082851-49e3-3f4c-b023-c05236cc8389","description":"Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"UUID":"cab6cd51-ea7b-3241-a173-ea8a24e29737","description":"Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"UUID":"0f57665a-f0a9-314e-ad0a-04c1f5758174","description":"Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"UUID":"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b","description":"Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"UUID":"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1","description":"Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"UUID":"ecc97b87-f30b-344c-a476-d36501bf5cbd","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"UUID":"1469671a-56dd-3a68-bf6c-77a5cf7a9487","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"UUID":"23c4eee4-aba5-36f6-96d6-46f40061bfed","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"UUID":"ea9e73ff-483c-3827-896c-6eaa9d69bc6e","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"UUID":"38c068e5-bb9a-3997-9e50-ec77c66825c8","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"UUID":"38514b27-8b9b-3d06-844a-3aced27deb0a","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"UUID":"0e0387b5-07fa-30e4-8554-eb51d2e18939","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAIFailureResponseState"},"trigger":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAIFailureStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"SimpleCL_AAIFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAIFailureResponseState"}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAISuccessResponseState"},"trigger":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAISuccessStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"},"outgoingEvent":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"SimpleCL_AAISuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAISuccessResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifyFailureResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifyFailureResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifySuccessResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifySuccessResponseState"}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveVesState","value":{"stateKey":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveVesState"},"trigger":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"VesOutput","value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"},"outgoingEvent":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"SimpleCL_VesEventHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"SimpleCL_CDSConfigModifyRequestEvent","value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"},"outputEvents":{"entry":[{"key":"SimpleCL_AAIRequestEvent","value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]}},"toscaPolicyState":"EXIT_FAILURE"},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}},"eventInputParameters":{"SimpleCL_DCAEConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_VesEvent"},"SimpleCL_AAIResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}","httpMethod":"GET","httpCodeFilter":"[2-5][0-1][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIProducer","requestorTimeout":2000},"SimpleCL_CDSConfigModifyResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyRequestProducer","requestorTimeout":500}},"eventOutputParameters":{"SimpleCL_AAIProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_AAIRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIResponseConsumer","requestorTimeout":2000},"SimpleCL_CDSConfigModifyRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":60}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyResponseConsumer","requestorTimeout":500},"SimpleCL_logOutputter":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/APEX-CL-MGT"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_LogEvent"}}},"name":"onap.policies.apex.pnf.Test","version":"1.0.0","metadata":{"policy-id":"onap.policies.apex.pnf.Test","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"a6c770f9-032d-45b8-8d39-a7f1c9708cf1","timestampMs":1711335326049,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-pap | [2024-03-25T02:53:21.012+00:00|INFO|SingleThreadedBusTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=365d21c0-dc5b-47eb-a529-b81e7eb8cdb4, consumerInstance=policy-pap, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: starting grafana | logger=migrator t=2024-03-25T02:52:32.75145544Z level=info msg="Migration successfully executed" id="alter dashboard_snapshot to mediumtext v2" duration=111.842µs simulator | 2024-03-25 02:52:30,698 INFO Started Server@51c929ae{STARTING}[10.0.13,sto=0] @3393ms policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.158+00:00|WARN|Registry|DMAAP-source-POLICY-PDP-PAP] replacing previously registered: object:apex/tosca/policy/list policy-pap | [2024-03-25T02:53:21.014+00:00|INFO|SingleThreadedDmaapTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=365d21c0-dc5b-47eb-a529-b81e7eb8cdb4, consumerInstance=policy-pap, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: INITTED grafana | logger=migrator t=2024-03-25T02:52:32.753646565Z level=info msg="Executing migration" id="Update dashboard_snapshot table charset" simulator | 2024-03-25 02:52:30,698 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-255990cc==org.glassfish.jersey.servlet.ServletContainer@744e52ec{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}}, swaggerId=null, toString()=JettyServletServer(name=SO simulator, host=0.0.0.0, port=6669, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@51c929ae{STARTED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@3c8bdd5b{/,null,AVAILABLE}, connector=SO simulator@54e7391d{HTTP/1.1, (http/1.1)}{0.0.0.0:6669}, jettyThread=Thread[SO simulator-6669,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-255990cc==org.glassfish.jersey.servlet.ServletContainer@744e52ec{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}})]: pending time is 4915 ms. policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:26.163+00:00|INFO|ApexEngineHandler|DMAAP-source-POLICY-PDP-PAP] Starting apex engine for policy onap.policies.apex.pnf.Test 1.0.0 policy-pap | [2024-03-25T02:53:21.014+00:00|INFO|ServiceManager|main] Policy PAP starting Heartbeat Message Dispatcher grafana | logger=migrator t=2024-03-25T02:52:32.753783206Z level=info msg="Migration successfully executed" id="Update dashboard_snapshot table charset" duration=135.671µs simulator | 2024-03-25 02:52:30,699 INFO org.onap.policy.models.simulators starting VFC simulator policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:26.212+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-0:0.0.1 . policy-pap | [2024-03-25T02:53:21.014+00:00|INFO|TopicBase|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=policy-pap, consumerInstance=929d32b3-e2db-4e1e-903d-982a73570d1b, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-HEARTBEAT, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=0]]]]: registering org.onap.policy.common.endpoints.listeners.MessageTypeDispatcher@8636cf4 grafana | logger=migrator t=2024-03-25T02:52:32.757869473Z level=info msg="Executing migration" id="Add column external_delete_url to dashboard_snapshots table" simulator | 2024-03-25 02:52:30,701 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-3a7b503d==org.glassfish.jersey.servlet.ServletContainer@f96b4c93{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=VFC simulator, host=0.0.0.0, port=6670, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@512d92b{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@62c5bbdc{/,null,STOPPED}, connector=VFC simulator@40e4ea87{HTTP/1.1, (http/1.1)}{0.0.0.0:6670}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-3a7b503d==org.glassfish.jersey.servlet.ServletContainer@f96b4c93{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: WAITED-START policy-db-migrator | > upgrade 0160-jpatoscacapabilityassignment_metadata.sql policy-apex-pdp | [2024-03-25T02:55:26.213+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-1:0.0.1 . policy-pap | [2024-03-25T02:53:21.014+00:00|INFO|SingleThreadedBusTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=policy-pap, consumerInstance=929d32b3-e2db-4e1e-903d-982a73570d1b, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-HEARTBEAT, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: starting simulator | 2024-03-25 02:52:30,701 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-3a7b503d==org.glassfish.jersey.servlet.ServletContainer@f96b4c93{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=VFC simulator, host=0.0.0.0, port=6670, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@512d92b{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@62c5bbdc{/,null,STOPPED}, connector=VFC simulator@40e4ea87{HTTP/1.1, (http/1.1)}{0.0.0.0:6670}, jettyThread=null, servlets={/*=org.glassfish.jersey.servlet.ServletContainer-3a7b503d==org.glassfish.jersey.servlet.ServletContainer@f96b4c93{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING grafana | logger=migrator t=2024-03-25T02:52:32.760667564Z level=info msg="Migration successfully executed" id="Add column external_delete_url to dashboard_snapshots table" duration=2.796901ms policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.213+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-2:0.0.1 . policy-pap | [2024-03-25T02:53:21.015+00:00|INFO|SingleThreadedDmaapTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=policy-pap, consumerInstance=929d32b3-e2db-4e1e-903d-982a73570d1b, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=false, locked=false, uebThread=null, topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-HEARTBEAT, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: INITTED simulator | 2024-03-25 02:52:30,702 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-3a7b503d==org.glassfish.jersey.servlet.ServletContainer@f96b4c93{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}}, swaggerId=null, toString()=JettyServletServer(name=VFC simulator, host=0.0.0.0, port=6670, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@512d92b{STOPPED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@62c5bbdc{/,null,STOPPED}, connector=VFC simulator@40e4ea87{HTTP/1.1, (http/1.1)}{0.0.0.0:6670}, jettyThread=Thread[VFC simulator-6670,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-3a7b503d==org.glassfish.jersey.servlet.ServletContainer@f96b4c93{jsp=null,order=0,inst=false,async=true,src=EMBEDDED:null,STOPPED}})]: STARTING grafana | logger=migrator t=2024-03-25T02:52:32.764754301Z level=info msg="Executing migration" id="Add encrypted dashboard json column" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscacapabilityassignment_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) policy-apex-pdp | [2024-03-25T02:55:26.213+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-3:0.0.1 . policy-pap | [2024-03-25T02:53:21.015+00:00|INFO|ServiceManager|main] Policy PAP starting topics simulator | 2024-03-25 02:52:30,703 INFO jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 11.0.19+7-alpine-r0 grafana | logger=migrator t=2024-03-25T02:52:32.767595223Z level=info msg="Migration successfully executed" id="Add encrypted dashboard json column" duration=2.840822ms policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.213+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] APEX service created. policy-pap | [2024-03-25T02:53:21.016+00:00|INFO|SingleThreadedBusTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=365d21c0-dc5b-47eb-a529-b81e7eb8cdb4, consumerInstance=policy-pap, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=true, locked=false, uebThread=Thread[DMAAP-source-POLICY-PDP-PAP,5,main], topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-PDP-PAP, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: starting simulator | 2024-03-25 02:52:30,706 INFO Session workerName=node0 grafana | logger=migrator t=2024-03-25T02:52:32.773366629Z level=info msg="Executing migration" id="Change dashboard_encrypted column to MEDIUMBLOB" policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:26.257+00:00|WARN|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] apex model update forced, supplied model with key "onap.policies.apex.Simplecontrolloop:0.0.1" is not a compatible model update from the existing engine model with key "SamplePolicyModelJAVASCRIPT:0.0.1" policy-pap | [2024-03-25T02:53:21.016+00:00|INFO|SingleThreadedBusTopicSource|main] SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=policy-pap, consumerInstance=929d32b3-e2db-4e1e-903d-982a73570d1b, fetchTimeout=15000, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=15000], alive=true, locked=false, uebThread=Thread[DMAAP-source-POLICY-HEARTBEAT,5,main], topicListeners=1, toString()=BusTopicBase [apiKey=null, apiSecret=null, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[message-router], topic=POLICY-HEARTBEAT, effectiveTopic=POLICY-PDP-PAP, #recentEvents=0, locked=false, #topicListeners=1]]]]: starting simulator | 2024-03-25 02:52:30,758 INFO Using GSON for REST calls grafana | logger=migrator t=2024-03-25T02:52:32.773833964Z level=info msg="Migration successfully executed" id="Change dashboard_encrypted column to MEDIUMBLOB" duration=430.545µs policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:26.257+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-0:0.0.1 policy-pap | [2024-03-25T02:53:21.019+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 simulator | 2024-03-25 02:52:30,771 INFO Started o.e.j.s.ServletContextHandler@62c5bbdc{/,null,AVAILABLE} grafana | logger=migrator t=2024-03-25T02:52:32.778268754Z level=info msg="Executing migration" id="create quota table v1" policy-db-migrator | > upgrade 0170-jpatoscacapabilityassignment_occurrences.sql policy-apex-pdp | [2024-03-25T02:55:26.257+00:00|WARN|EngineService|DMAAP-source-POLICY-PDP-PAP] apex model update forced, supplied model with key "onap.policies.apex.Simplecontrolloop:0.0.1" is not a compatible model update from the existing engine model with key "SamplePolicyModelJAVASCRIPT:0.0.1" policy-pap | [2024-03-25T02:53:21.021+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | 2024-03-25 02:52:30,772 INFO Started VFC simulator@40e4ea87{HTTP/1.1, (http/1.1)}{0.0.0.0:6670} grafana | logger=migrator t=2024-03-25T02:52:32.779819822Z level=info msg="Migration successfully executed" id="create quota table v1" duration=1.550898ms policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.487+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-1:0.0.1 policy-pap | [2024-03-25T02:53:21.016+00:00|INFO|InlineBusTopicSink|main] InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=10c776a0-5fb3-4df0-9b1f-f5d023316673, alive=false, publisher=null]]: starting simulator | 2024-03-25 02:52:30,773 INFO Started Server@512d92b{STARTING}[10.0.13,sto=0] @3468ms grafana | logger=migrator t=2024-03-25T02:52:32.783512244Z level=info msg="Executing migration" id="create index UQE_quota_org_id_user_id_target - v1" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscacapabilityassignment_occurrences (name VARCHAR(120) NULL, version VARCHAR(20) NULL, OCCURRENCES INT DEFAULT NULL) policy-apex-pdp | [2024-03-25T02:55:26.488+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-2:0.0.1 policy-pap | [2024-03-25T02:53:21.026+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:52:30,773 INFO JettyJerseyServer [Jerseyservlets={/*=org.glassfish.jersey.servlet.ServletContainer-3a7b503d==org.glassfish.jersey.servlet.ServletContainer@f96b4c93{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}}, swaggerId=null, toString()=JettyServletServer(name=VFC simulator, host=0.0.0.0, port=6670, sniHostCheck=false, user=null, password=null, contextPath=/, jettyServer=Server@512d92b{STARTED}[10.0.13,sto=0], context=o.e.j.s.ServletContextHandler@62c5bbdc{/,null,AVAILABLE}, connector=VFC simulator@40e4ea87{HTTP/1.1, (http/1.1)}{0.0.0.0:6670}, jettyThread=Thread[VFC simulator-6670,5,main], servlets={/*=org.glassfish.jersey.servlet.ServletContainer-3a7b503d==org.glassfish.jersey.servlet.ServletContainer@f96b4c93{jsp=null,order=0,inst=true,async=true,src=EMBEDDED:null,STARTED}})]: pending time is 4929 ms. grafana | logger=migrator t=2024-03-25T02:52:32.785469086Z level=info msg="Migration successfully executed" id="create index UQE_quota_org_id_user_id_target - v1" duration=1.952292ms policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.489+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-3:0.0.1 policy-pap | [2024-03-25T02:53:21.026+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:52:30,774 INFO org.onap.policy.models.simulators starting Sink APPC-CL grafana | logger=migrator t=2024-03-25T02:52:32.790647115Z level=info msg="Executing migration" id="Update quota table charset" policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:26.588+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-pap | [2024-03-25T02:53:21.033+00:00|INFO|InlineDmaapTopicSink|main] InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=10c776a0-5fb3-4df0-9b1f-f5d023316673, alive=false, publisher=CambriaPublisherWrapper []]]: DMAAP SINK created simulator | 2024-03-25 02:52:30,817 INFO InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=9f9f2806-cf19-4a38-b796-0c2b3d9c6862, alive=false, publisher=null]]: starting grafana | logger=migrator t=2024-03-25T02:52:32.790730315Z level=info msg="Migration successfully executed" id="Update quota table charset" duration=83.801µs policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:26.851+00:00|INFO|CdsProcessorGrpcClient|DMAAP-source-POLICY-PDP-PAP] CdsProcessorListener started policy-pap | [2024-03-25T02:53:21.033+00:00|INFO|InlineBusTopicSink|main] InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=d4b89a8f-a440-4445-9e4c-fd5321baf8ed, alive=false, publisher=null]]: starting simulator | 2024-03-25 02:52:31,425 INFO InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=9f9f2806-cf19-4a38-b796-0c2b3d9c6862, alive=false, publisher=CambriaPublisherWrapper []]]: DMAAP SINK created grafana | logger=migrator t=2024-03-25T02:52:32.794208155Z level=info msg="Executing migration" id="create plugin_setting table" policy-db-migrator | > upgrade 0180-jpatoscacapabilityassignment_properties.sql policy-apex-pdp | [2024-03-25T02:55:26.851+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-pap | [2024-03-25T02:53:21.036+00:00|INFO|InlineDmaapTopicSink|main] InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=d4b89a8f-a440-4445-9e4c-fd5321baf8ed, alive=false, publisher=CambriaPublisherWrapper []]]: DMAAP SINK created simulator | 2024-03-25 02:52:31,426 INFO org.onap.policy.models.simulators starting Sink APPC-LCM-WRITE grafana | logger=migrator t=2024-03-25T02:52:32.795099055Z level=info msg="Migration successfully executed" id="create plugin_setting table" duration=890.64µs policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.875+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-pap | [2024-03-25T02:53:21.036+00:00|INFO|ServiceManager|main] Policy PAP starting PAP statistics simulator | 2024-03-25 02:52:31,426 INFO InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=9ba45952-6949-4fec-8632-04890a5b6ee7, alive=false, publisher=null]]: starting grafana | logger=migrator t=2024-03-25T02:52:32.798517444Z level=info msg="Executing migration" id="create index UQE_plugin_setting_org_id_plugin_id - v1" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscacapabilityassignment_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGTEXT NULL, PROPERTIES_KEY VARCHAR(255) NULL) policy-apex-pdp | [2024-03-25T02:55:26.887+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [OUT|DMAAP|POLICY-PDP-PAP] simulator | 2024-03-25 02:52:31,429 INFO InlineDmaapTopicSink [userName=null, password=null, getTopicCommInfrastructure()=DMAAP, toString()=InlineBusTopicSink [partitionId=9ba45952-6949-4fec-8632-04890a5b6ee7, alive=false, publisher=CambriaPublisherWrapper []]]: DMAAP SINK created policy-pap | [2024-03-25T02:53:21.038+00:00|INFO|ServiceManager|main] Policy PAP starting PAP Activator grafana | logger=migrator t=2024-03-25T02:52:32.799466504Z level=info msg="Migration successfully executed" id="create index UQE_plugin_setting_org_id_plugin_id - v1" duration=948.43µs policy-db-migrator | -------------- simulator | 2024-03-25 02:52:31,429 INFO org.onap.policy.models.simulators starting Source APPC-CL policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:26.885340Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":1,"policyExecutedSuccessCount":1,"policyExecutedFailCount":0,"policyDeployCount":2,"policyDeploySuccessCount":2,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326524,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326546,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326563,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579}]},"response":{"responseTo":"a6c770f9-032d-45b8-8d39-a7f1c9708cf1","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.pnf.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"593f154b-c3da-41a5-8caa-db06ef1dee7a","timestampMs":1711335326885,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-pap | [2024-03-25T02:53:21.038+00:00|INFO|ServiceManager|main] Policy PAP starting PDP publisher grafana | logger=migrator t=2024-03-25T02:52:32.832734212Z level=info msg="Executing migration" id="Add column plugin_version to plugin_settings" policy-db-migrator | simulator | 2024-03-25 02:52:31,435 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=4d1bfbcc-5d98-4b1d-805c-5735fd7513ed, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-CL, effectiveTopic=APPC-CL, #recentEvents=0, locked=false, #topicListeners=0]]]]: INITTED policy-apex-pdp | [2024-03-25T02:55:26.887+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-pap | [2024-03-25T02:53:21.047+00:00|INFO|ServiceManager|main] Policy PAP starting Policy Notification publisher grafana | logger=migrator t=2024-03-25T02:52:32.836558375Z level=info msg="Migration successfully executed" id="Add column plugin_version to plugin_settings" duration=3.828693ms policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:26.887+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... simulator | 2024-03-25 02:52:31,471 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=4d1bfbcc-5d98-4b1d-805c-5735fd7513ed, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-CL, effectiveTopic=APPC-CL, #recentEvents=0, locked=false, #topicListeners=0]]]]: starting policy-pap | [2024-03-25T02:53:21.051+00:00|INFO|ServiceManager|main] Policy PAP starting PDP update timers grafana | logger=migrator t=2024-03-25T02:52:32.83954577Z level=info msg="Executing migration" id="Update plugin_setting table charset" policy-db-migrator | > upgrade 0190-jpatoscacapabilitytype_metadata.sql policy-apex-pdp | [2024-03-25T02:55:26.923+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 36 ms simulator | 2024-03-25 02:52:31,473 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=4d1bfbcc-5d98-4b1d-805c-5735fd7513ed, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-CL, effectiveTopic=APPC-CL, #recentEvents=0, locked=false, #topicListeners=0]]]]: INITTED policy-pap | [2024-03-25T02:53:21.056+00:00|INFO|ServiceManager|main] Policy PAP starting PDP state-change timers grafana | logger=migrator t=2024-03-25T02:52:32.83957166Z level=info msg="Migration successfully executed" id="Update plugin_setting table charset" duration=27.07µs policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.923+00:00|INFO|HttpClient|pool-2-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... simulator | 2024-03-25 02:52:31,474 INFO org.onap.policy.models.simulators starting Source APPC-LCM-READ policy-pap | [2024-03-25T02:53:21.056+00:00|INFO|ServiceManager|main] Policy PAP starting PDP modification lock grafana | logger=migrator t=2024-03-25T02:52:32.843941069Z level=info msg="Executing migration" id="create session table" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscacapabilitytype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) policy-apex-pdp | [2024-03-25T02:55:26.930+00:00|INFO|HttpClient|pool-2-thread-1] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:52:31,475 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=7df8b30c-ce30-460e-aee3-b81222500af9, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-LCM-READ, effectiveTopic=APPC-LCM-READ, #recentEvents=0, locked=false, #topicListeners=0]]]]: INITTED policy-pap | [2024-03-25T02:53:21.056+00:00|INFO|ServiceManager|main] Policy PAP starting PDP modification requests grafana | logger=migrator t=2024-03-25T02:52:32.84578315Z level=info msg="Migration successfully executed" id="create session table" duration=1.842821ms policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.930+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:52:31,475 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=7df8b30c-ce30-460e-aee3-b81222500af9, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-LCM-READ, effectiveTopic=APPC-LCM-READ, #recentEvents=0, locked=false, #topicListeners=0]]]]: starting policy-pap | [2024-03-25T02:53:21.057+00:00|INFO|TimerManager|Thread-10] timer manager state-change started grafana | logger=migrator t=2024-03-25T02:52:32.852351674Z level=info msg="Executing migration" id="Drop old table playlist table" policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:26.930+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] cambria reply ok (7 ms):{"serverTimeMs":0,"count":1} simulator | 2024-03-25 02:52:31,475 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=7df8b30c-ce30-460e-aee3-b81222500af9, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=false, locked=false, uebThread=null, topicListeners=0, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-LCM-READ, effectiveTopic=APPC-LCM-READ, #recentEvents=0, locked=false, #topicListeners=0]]]]: INITTED policy-pap | [2024-03-25T02:53:21.057+00:00|INFO|TimerManager|Thread-9] timer manager update started grafana | logger=migrator t=2024-03-25T02:52:32.852464775Z level=info msg="Migration successfully executed" id="Drop old table playlist table" duration=113.821µs policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:26.932+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] simulator | 2024-03-25 02:52:31,477 INFO org.onap.policy.models.simulators starting APPC Legacy simulator policy-pap | [2024-03-25T02:53:21.061+00:00|INFO|ServiceManager|main] Policy PAP starting PDP expiration timer grafana | logger=migrator t=2024-03-25T02:52:32.855738233Z level=info msg="Executing migration" id="Drop old table playlist_item table" policy-db-migrator | > upgrade 0200-jpatoscacapabilitytype_properties.sql policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:26.885340Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":1,"policyExecutedSuccessCount":1,"policyExecutedFailCount":0,"policyDeployCount":2,"policyDeploySuccessCount":2,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326524,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326546,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326563,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579}]},"response":{"responseTo":"a6c770f9-032d-45b8-8d39-a7f1c9708cf1","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.pnf.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"593f154b-c3da-41a5-8caa-db06ef1dee7a","timestampMs":1711335326885,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | 2024-03-25 02:52:31,480 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-pap | [2024-03-25T02:53:21.061+00:00|INFO|ServiceManager|main] Policy PAP started grafana | logger=migrator t=2024-03-25T02:52:32.855838744Z level=info msg="Migration successfully executed" id="Drop old table playlist_item table" duration=101.161µs policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.932+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS simulator | 2024-03-25 02:52:31,481 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-pap | [2024-03-25T02:53:21.067+00:00|INFO|PolicyPapApplication|main] Started PolicyPapApplication in 16.592 seconds (JVM running for 17.617) grafana | logger=migrator t=2024-03-25T02:52:32.859921471Z level=info msg="Executing migration" id="create playlist table v2" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscacapabilitytype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL, PROPERTIES_KEY VARCHAR(255) NULL) policy-apex-pdp | [2024-03-25T02:55:26.933+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp simulator | 2024-03-25 02:52:31,482 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=4d1bfbcc-5d98-4b1d-805c-5735fd7513ed, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=true, locked=false, uebThread=Thread[DMAAP-source-APPC-CL,5,main], topicListeners=0, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-CL, effectiveTopic=APPC-CL, #recentEvents=0, locked=false, #topicListeners=0]]]]: registering org.onap.policy.simulators.AppcLegacyTopicServer@6daf2337 policy-pap | [2024-03-25T02:53:23.325+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:32.862360088Z level=info msg="Migration successfully executed" id="create playlist table v2" duration=2.438187ms policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:26.933+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... simulator | 2024-03-25 02:52:31,483 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=4d1bfbcc-5d98-4b1d-805c-5735fd7513ed, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=true, locked=false, uebThread=Thread[DMAAP-source-APPC-CL,5,main], topicListeners=1, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-CL, effectiveTopic=APPC-CL, #recentEvents=0, locked=false, #topicListeners=1]]]]: register: start not attempted policy-pap | [2024-03-25T02:53:23.325+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:32.86783444Z level=info msg="Executing migration" id="create playlist item table v2" policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:31.404+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:0] HandleVesEventTask processing VES event - {"commonEventHeader": {"domain": "other", "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "eventName": "Report hostname & IP", "lastEpochMicrosec": 1597952499468, "priority": "Normal", "reportingEntityName": "DCAE", "sequence": 1, "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "sourceName": "demo-pnf", "startEpochMicrosec": 1597953057126, "version": "4.0.1", "internalHeaderFields": {}, "vesEventListenerVersion": "7.1"}, "otherFields": {"hashMap": {"hostname": "UNDEFINED", "pnfName": "demo-pnf", "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "ip": "10.101.200.10"}, "otherFieldsVersion": "3.0"}} simulator | 2024-03-25 02:52:31,483 INFO org.onap.policy.models.simulators starting APPC-LCM simulator policy-pap | [2024-03-25T02:53:23.361+00:00|INFO|OrderedServiceImpl|DMAAP-source-POLICY-HEARTBEAT] ***** OrderedServiceImpl implementers: grafana | logger=migrator t=2024-03-25T02:52:32.868593419Z level=info msg="Migration successfully executed" id="create playlist item table v2" duration=759.329µs policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:31.406+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:0] HandleVesEventTask storing context album - 927b2580-36d9-4f13-8421-3c9d43b7a57e::{"commonEventHeader": {"domain": "other", "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "eventName": "Report hostname & IP", "lastEpochMicrosec": 1597952499468, "priority": "Normal", "reportingEntityName": "DCAE", "sequence": 1, "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "sourceName": "demo-pnf", "startEpochMicrosec": 1711335331405, "version": "4.0.1", "internalHeaderFields": {}, "vesEventListenerVersion": "7.1"}, "otherFields": {"hashMap": {"hostname": "UNDEFINED", "pnfName": "demo-pnf", "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "ip": "10.101.200.10"}, "otherFieldsVersion": "3.0"}, "target": null, "generatedHostname": null} simulator | 2024-03-25 02:52:31,484 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=7df8b30c-ce30-460e-aee3-b81222500af9, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=true, locked=false, uebThread=Thread[DMAAP-source-APPC-LCM-READ,5,main], topicListeners=0, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-LCM-READ, effectiveTopic=APPC-LCM-READ, #recentEvents=0, locked=false, #topicListeners=0]]]]: registering org.onap.policy.simulators.AppcLcmTopicServer@69c93ca4 policy-pap | [] grafana | logger=migrator t=2024-03-25T02:52:32.872603304Z level=info msg="Executing migration" id="Update playlist table charset" policy-db-migrator | > upgrade 0210-jpatoscadatatype_constraints.sql simulator | 2024-03-25 02:52:31,484 INFO SingleThreadedDmaapTopicSource [userName=null, password=-, getTopicCommInfrastructure()=DMAAP, toString()=SingleThreadedBusTopicSource [consumerGroup=7df8b30c-ce30-460e-aee3-b81222500af9, consumerInstance=simulator, fetchTimeout=-1, fetchLimit=-1, consumer=CambriaConsumerWrapper [fetchTimeout=-1], alive=true, locked=false, uebThread=Thread[DMAAP-source-APPC-LCM-READ,5,main], topicListeners=1, toString()=BusTopicBase [apiKey=some-key, apiSecret=some-secret, useHttps=false, allowSelfSignedCerts=false, toString()=TopicBase [servers=[simulator], topic=APPC-LCM-READ, effectiveTopic=APPC-LCM-READ, #recentEvents=0, locked=false, #topicListeners=1]]]]: register: start not attempted policy-apex-pdp | [2024-03-25T02:55:31.411+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:0] [{aaifield=null}, {component={"name": "Policy", "flavour": "Apex-PDP", "timestamp": 1711335331407, "status": "ACTIVE", "message": "VES event has been received. Going to fetch details from AAI.", "artifacts": {"policyName": "onap.policies.apex.Simplecontrolloop", "policyVersion": "1.0.0"}}, id=8c7935a4-79d8-4ec0-b661-dcca3cd68006, otherFields={"useCaseName": "simple-controlloop-usecase"}, target={"targetType": "PNF", "entityInfo": {"pnf_DasH_name": "demo-pnf"}}}] policy-pap | [2024-03-25T02:53:23.362+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:32.872648174Z level=info msg="Migration successfully executed" id="Update playlist table charset" duration=48.53µs policy-db-migrator | -------------- simulator | 2024-03-25 02:52:31,484 INFO org.onap.policy.models.simulators started policy-apex-pdp | [2024-03-25T02:55:31.426+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [OUT|REST|http://message-router:3904/events/APEX-CL-MGT] policy-pap | {"pdpType":"apex","state":"PASSIVE","healthy":"HEALTHY","description":"Pdp Heartbeat","statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.218738Z","pdpGroupName":"defaultGroup","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"messageName":"PDP_STATUS","requestId":"575881ea-18ce-4e2f-a9c1-df6f9c943347","timestampMs":1711335203182,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup"} grafana | logger=migrator t=2024-03-25T02:52:32.875888861Z level=info msg="Executing migration" id="Update playlist_item table charset" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscadatatype_constraints (name VARCHAR(120) NULL, version VARCHAR(20) NULL, CONSTRAINTS VARCHAR(255) NULL) simulator | 2024-03-25 02:52:31,516 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-apex-pdp | { policy-pap | [2024-03-25T02:53:23.362+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:32.875928431Z level=info msg="Migration successfully executed" id="Update playlist_item table charset" duration=40.78µs policy-db-migrator | -------------- simulator | 2024-03-25 02:52:31,516 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-pap | {"pdpType":"apex","state":"PASSIVE","healthy":"HEALTHY","description":"Pdp Heartbeat","statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.218738Z","pdpGroupName":"defaultGroup","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"messageName":"PDP_STATUS","requestId":"575881ea-18ce-4e2f-a9c1-df6f9c943347","timestampMs":1711335203182,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup"} grafana | logger=migrator t=2024-03-25T02:52:32.883648169Z level=info msg="Executing migration" id="Add playlist column created_at" policy-db-migrator | policy-apex-pdp | "name": "SimpleCL_LogEvent", simulator | 2024-03-25 02:52:31,516 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-pap | [2024-03-25T02:53:23.379+00:00|INFO|RequestIdDispatcher|DMAAP-source-POLICY-PDP-PAP] no listeners for autonomous message of type PdpStatus grafana | logger=migrator t=2024-03-25T02:52:32.887293281Z level=info msg="Migration successfully executed" id="Add playlist column created_at" duration=3.644802ms policy-db-migrator | policy-apex-pdp | "version": "0.0.1", simulator | 2024-03-25 02:52:31,516 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-pap | [2024-03-25T02:53:23.379+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:32.891297746Z level=info msg="Executing migration" id="Add playlist column updated_at" policy-db-migrator | > upgrade 0220-jpatoscadatatype_metadata.sql policy-apex-pdp | "nameSpace": "org.onap.policy.apex.simplecontrolloop", simulator | 2024-03-25 02:52:31,657 INFO Topic APPC-LCM-READ: added policy-pap | [2024-03-25T02:53:23.379+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:32.894629474Z level=info msg="Migration successfully executed" id="Add playlist column updated_at" duration=3.332208ms policy-db-migrator | -------------- policy-apex-pdp | "source": "APEX", simulator | 2024-03-25 02:52:31,657 INFO Topic APPC-CL: added policy-pap | [2024-03-25T02:53:23.568+00:00|INFO|ServiceManager|DMAAP-source-POLICY-HEARTBEAT] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting grafana | logger=migrator t=2024-03-25T02:52:32.897943571Z level=info msg="Executing migration" id="drop preferences table v2" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscadatatype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) policy-apex-pdp | "target": { simulator | 2024-03-25 02:52:31,663 INFO Topic APPC-LCM-READ: add consumer group: 7df8b30c-ce30-460e-aee3-b81222500af9 policy-pap | [2024-03-25T02:53:23.568+00:00|INFO|ServiceManager|DMAAP-source-POLICY-HEARTBEAT] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting listener grafana | logger=migrator t=2024-03-25T02:52:32.898046432Z level=info msg="Migration successfully executed" id="drop preferences table v2" duration=104.061µs policy-db-migrator | -------------- policy-apex-pdp | "targetType": "PNF", simulator | 2024-03-25 02:52:31,663 INFO Topic APPC-CL: add consumer group: 4d1bfbcc-5d98-4b1d-805c-5735fd7513ed grafana | logger=migrator t=2024-03-25T02:52:32.901734295Z level=info msg="Executing migration" id="drop preferences table v3" policy-db-migrator | policy-apex-pdp | "entityInfo": { simulator | 2024-03-25 02:52:46,705 INFO --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:23.569+00:00|INFO|ServiceManager|DMAAP-source-POLICY-HEARTBEAT] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting timer grafana | logger=migrator t=2024-03-25T02:52:32.902008928Z level=info msg="Migration successfully executed" id="drop preferences table v3" duration=280.723µs policy-db-migrator | policy-apex-pdp | "pnf-name": "demo-pnf" simulator | 2024-03-25 02:52:46,705 INFO --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:23.570+00:00|INFO|TimerManager|DMAAP-source-POLICY-HEARTBEAT] update timer registered Timer [name=785069ca-7625-46ce-9b32-da2e861548de, expireMs=1711335233570] grafana | logger=migrator t=2024-03-25T02:52:32.906787753Z level=info msg="Executing migration" id="create preferences table v3" policy-db-migrator | > upgrade 0230-jpatoscadatatype_properties.sql policy-apex-pdp | } simulator | 2024-03-25 02:52:46,712 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-pap | [2024-03-25T02:53:23.604+00:00|INFO|ServiceManager|DMAAP-source-POLICY-HEARTBEAT] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting enqueue grafana | logger=migrator t=2024-03-25T02:52:32.90837988Z level=info msg="Migration successfully executed" id="create preferences table v3" duration=1.591667ms policy-db-migrator | -------------- policy-apex-pdp | }, simulator | 2024-03-25 02:52:46,712 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-pap | [2024-03-25T02:53:23.604+00:00|INFO|TimerManager|Thread-9] update timer waiting 29966ms Timer [name=785069ca-7625-46ce-9b32-da2e861548de, expireMs=1711335233570] grafana | logger=migrator t=2024-03-25T02:52:33.055910581Z level=info msg="Executing migration" id="Update preferences table charset" grafana | logger=migrator t=2024-03-25T02:52:33.056013202Z level=info msg="Migration successfully executed" id="Update preferences table charset" duration=110.891µs policy-apex-pdp | "toscaPolicyState": "", policy-pap | [2024-03-25T02:53:23.608+00:00|INFO|ServiceManager|DMAAP-source-POLICY-HEARTBEAT] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate started simulator | 2024-03-25 02:52:46,713 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:33.063583594Z level=info msg="Executing migration" id="Add column team_id in preferences" policy-apex-pdp | "component": { policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscadatatype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL, PROPERTIES_KEY VARCHAR(255) NULL) policy-pap | [2024-03-25T02:53:23.611+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 simulator | 2024-03-25 02:52:46,713 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:33.06725197Z level=info msg="Migration successfully executed" id="Add column team_id in preferences" duration=3.668716ms policy-apex-pdp | "name": "Policy", policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.611+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:52:46,713 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:33.073285201Z level=info msg="Executing migration" id="Update team_id column values in preferences" policy-apex-pdp | "flavour": "Apex-PDP", policy-db-migrator | policy-pap | [2024-03-25T02:53:23.614+00:00|INFO|network|Thread-7] [OUT|DMAAP|POLICY-PDP-PAP] simulator | 2024-03-25 02:52:46,713 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:33.073700254Z level=info msg="Migration successfully executed" id="Update team_id column values in preferences" duration=411.903µs policy-apex-pdp | "timestamp": 1.711335331407E12, policy-db-migrator | policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","pdpHeartbeatIntervalMs":120000,"policiesToBeDeployed":[],"messageName":"PDP_UPDATE","requestId":"785069ca-7625-46ce-9b32-da2e861548de","timestampMs":1711335203525,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | 2024-03-25 02:52:46,722 INFO 172.17.0.4 - - [25/Mar/2024:02:52:31 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:33.076747005Z level=info msg="Executing migration" id="Add column week_start in preferences" policy-apex-pdp | "status": "ACTIVE", policy-db-migrator | > upgrade 0240-jpatoscanodetemplate_metadata.sql policy-pap | [2024-03-25T02:53:23.633+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 17 ms simulator | 2024-03-25 02:52:46,722 INFO 172.17.0.4 - - [25/Mar/2024:02:52:31 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:33.080162248Z level=info msg="Migration successfully executed" id="Add column week_start in preferences" duration=3.414923ms policy-apex-pdp | "message": "VES event has been received. Going to fetch details from AAI.", policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.645+00:00|INFO|HttpClient|pool-3-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... simulator | 2024-03-25 02:53:01,737 INFO --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.084314578Z level=info msg="Executing migration" id="Add column preferences.json_data" policy-apex-pdp | "artifacts": { policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscanodetemplate_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) policy-pap | [2024-03-25T02:53:23.653+00:00|INFO|HttpClient|pool-3-thread-1] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:53:01,738 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator grafana | logger=migrator t=2024-03-25T02:52:33.088188614Z level=info msg="Migration successfully executed" id="Add column preferences.json_data" duration=3.871956ms policy-apex-pdp | "policyName": "onap.policies.apex.Simplecontrolloop", policy-apex-pdp | "policyVersion": "1.0.0" policy-pap | [2024-03-25T02:53:23.655+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] cambria reply ok (12 ms):{"serverTimeMs":0,"count":1} simulator | 2024-03-25 02:53:01,739 INFO 172.17.0.4 - - [25/Mar/2024:02:52:46 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:33.095040872Z level=info msg="Executing migration" id="alter preferences.json_data to mediumtext v1" policy-apex-pdp | } policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.655+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:53:01,740 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:33.095372864Z level=info msg="Migration successfully executed" id="alter preferences.json_data to mediumtext v1" duration=327.282µs policy-apex-pdp | }, policy-db-migrator | policy-pap | [2024-03-25T02:53:23.656+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] simulator | 2024-03-25 02:53:01,740 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:33.101229854Z level=info msg="Executing migration" id="Add preferences index org_id" policy-apex-pdp | "id": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", policy-db-migrator | policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","pdpHeartbeatIntervalMs":120000,"policiesToBeDeployed":[],"messageName":"PDP_UPDATE","requestId":"785069ca-7625-46ce-9b32-da2e861548de","timestampMs":1711335203525,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | 2024-03-25 02:53:01,742 INFO --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.103189228Z level=info msg="Migration successfully executed" id="Add preferences index org_id" duration=1.960774ms policy-apex-pdp | "otherFields": { policy-db-migrator | > upgrade 0250-jpatoscanodetemplate_properties.sql policy-pap | [2024-03-25T02:53:23.656+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:53:01,742 INFO 172.17.0.4 - - [25/Mar/2024:02:52:46 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:33.108495925Z level=info msg="Executing migration" id="Add preferences index user_id" policy-apex-pdp | "useCaseName": "simple-controlloop-usecase" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.657+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_UPDATE simulator | 2024-03-25 02:53:01,742 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator grafana | logger=migrator t=2024-03-25T02:52:33.109738603Z level=info msg="Migration successfully executed" id="Add preferences index user_id" duration=1.246908ms policy-apex-pdp | } policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscanodetemplate_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGTEXT NULL, PROPERTIES_KEY VARCHAR(255) NULL) policy-pap | [2024-03-25T02:53:23.657+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | 2024-03-25 02:53:01,743 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:33.11499662Z level=info msg="Executing migration" id="create alert table v1" policy-apex-pdp | } policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.657+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:53:01,743 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:33.116385059Z level=info msg="Migration successfully executed" id="create alert table v1" duration=1.384639ms policy-apex-pdp | [2024-03-25T02:55:31.470+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [IN|REST|http://message-router:3904/events/APEX-CL-MGT] policy-db-migrator | policy-pap | [2024-03-25T02:53:23.659+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] simulator | 2024-03-25 02:53:16,747 INFO --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.121241563Z level=info msg="Executing migration" id="add index alert org_id & id " policy-apex-pdp | {"serverTimeMs":0,"count":1} policy-db-migrator | policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","pdpHeartbeatIntervalMs":120000,"policiesToBeDeployed":[],"messageName":"PDP_UPDATE","requestId":"785069ca-7625-46ce-9b32-da2e861548de","timestampMs":1711335203525,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | 2024-03-25 02:53:16,747 INFO 172.17.0.4 - - [25/Mar/2024:02:53:01 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:33.123607419Z level=info msg="Migration successfully executed" id="add index alert org_id & id " duration=2.368586ms policy-apex-pdp | [2024-03-25T02:55:31.510+00:00|INFO|network|RestRequestRunner_0] [IN|REST|http://aai-sim:6666/aai/v16/network/pnfs/pnf/demo-pnf] policy-db-migrator | > upgrade 0260-jpatoscanodetype_metadata.sql simulator | 2024-03-25 02:53:16,748 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-pap | [2024-03-25T02:53:23.659+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-HEARTBEAT] discarding event of type PDP_UPDATE grafana | logger=migrator t=2024-03-25T02:52:33.126999962Z level=info msg="Executing migration" id="add index alert state" policy-apex-pdp | { policy-db-migrator | -------------- simulator | 2024-03-25 02:53:16,748 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-pap | [2024-03-25T02:53:23.659+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.131382503Z level=info msg="Migration successfully executed" id="add index alert state" duration=4.382821ms policy-apex-pdp | "equip-vendor":"Vendor-A", policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscanodetype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) simulator | 2024-03-25 02:53:16,748 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-pap | [2024-03-25T02:53:23.664+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.137295374Z level=info msg="Executing migration" id="add index alert dashboard_id" policy-apex-pdp | "ipaddress-v4-oam":"10.10.10.10", policy-db-migrator | -------------- simulator | 2024-03-25 02:53:16,748 INFO 172.17.0.4 - - [25/Mar/2024:02:53:01 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.734+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.138892454Z level=info msg="Migration successfully executed" id="add index alert dashboard_id" duration=1.60126ms policy-apex-pdp | "in-maint":false, policy-db-migrator | simulator | 2024-03-25 02:53:16,749 INFO --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:23.735+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:33.144438283Z level=info msg="Executing migration" id="Create alert_rule_tag table v1" policy-apex-pdp | "pnf-ipv4-address":"3.3.3.3", policy-db-migrator | simulator | 2024-03-25 02:53:16,749 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-pap | {"pdpType":"apex","state":"PASSIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.697085Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"785069ca-7625-46ce-9b32-da2e861548de","responseStatus":"SUCCESS","responseMessage":"Pdp update successful."},"messageName":"PDP_STATUS","requestId":"e6630c73-cf95-4a86-a6e0-2de730ced6f9","timestampMs":1711335203696,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:33.145311979Z level=info msg="Migration successfully executed" id="Create alert_rule_tag table v1" duration=874.476µs policy-apex-pdp | "resource-version":"1570746989505", policy-db-migrator | > upgrade 0270-jpatoscanodetype_properties.sql simulator | 2024-03-25 02:53:16,750 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-pap | [2024-03-25T02:53:23.737+00:00|INFO|RequestIdDispatcher|DMAAP-source-POLICY-HEARTBEAT] no listener for request id 785069ca-7625-46ce-9b32-da2e861548de grafana | logger=migrator t=2024-03-25T02:52:33.14833653Z level=info msg="Executing migration" id="Add unique index alert_rule_tag.alert_id_tag_id" policy-apex-pdp | "nf-role":"ToR DC101", policy-db-migrator | -------------- simulator | 2024-03-25 02:53:16,750 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-pap | [2024-03-25T02:53:23.737+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.149430897Z level=info msg="Migration successfully executed" id="Add unique index alert_rule_tag.alert_id_tag_id" duration=1.097267ms policy-apex-pdp | "equip-type":"Router", policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscanodetype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL, PROPERTIES_KEY VARCHAR(255) NULL) simulator | 2024-03-25 02:53:21,130 INFO Topic POLICY-PDP-PAP: added policy-pap | [2024-03-25T02:53:23.737+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.153071982Z level=info msg="Executing migration" id="drop index UQE_alert_rule_tag_alert_id_tag_id - v1" policy-apex-pdp | "equip-model":"model-123456", policy-db-migrator | -------------- simulator | 2024-03-25 02:53:21,130 INFO Topic POLICY-PDP-PAP: add consumer group: 365d21c0-dc5b-47eb-a529-b81e7eb8cdb4 policy-pap | [2024-03-25T02:53:23.743+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.155750071Z level=info msg="Migration successfully executed" id="drop index UQE_alert_rule_tag_alert_id_tag_id - v1" duration=2.676489ms policy-apex-pdp | "frame-id":"3", policy-db-migrator | simulator | 2024-03-25 02:53:21,132 INFO Topic POLICY-PDP-PAP: add consumer group: policy-pap policy-pap | [2024-03-25T02:53:23.744+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:33.162878641Z level=info msg="Executing migration" id="Rename table alert_rule_tag to alert_rule_tag_v1 - v1" policy-apex-pdp | "pnf-name":"demo-pnf" policy-db-migrator | simulator | 2024-03-25 02:53:23,300 INFO Topic POLICY-PDP-PAP: add consumer group: 3aa23aff-999e-4586-abad-fba41e277daa policy-pap | {"pdpType":"apex","state":"PASSIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.697085Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"785069ca-7625-46ce-9b32-da2e861548de","responseStatus":"SUCCESS","responseMessage":"Pdp update successful."},"messageName":"PDP_STATUS","requestId":"e6630c73-cf95-4a86-a6e0-2de730ced6f9","timestampMs":1711335203696,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:33.176560355Z level=info msg="Migration successfully executed" id="Rename table alert_rule_tag to alert_rule_tag_v1 - v1" duration=13.687314ms policy-apex-pdp | } policy-db-migrator | > upgrade 0280-jpatoscapolicy_metadata.sql simulator | 2024-03-25 02:53:23,309 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.748+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping grafana | logger=migrator t=2024-03-25T02:52:33.179873318Z level=info msg="Executing migration" id="Create alert_rule_tag table v2" policy-apex-pdp | policy-db-migrator | -------------- simulator | 2024-03-25 02:53:23,309 INFO 172.17.0.8 - - [25/Mar/2024:02:53:21 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 729 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.751+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping enqueue grafana | logger=migrator t=2024-03-25T02:52:33.180495932Z level=info msg="Migration successfully executed" id="Create alert_rule_tag table v2" duration=627.714µs policy-apex-pdp | [2024-03-25T02:55:31.519+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:1] HandleAAISuccessResponseTask extracted context album - 927b2580-36d9-4f13-8421-3c9d43b7a57e::{"commonEventHeader": {"domain": "other", "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "eventName": "Report hostname & IP", "lastEpochMicrosec": 1597952499468, "priority": "Normal", "reportingEntityName": "DCAE", "sequence": 1, "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "sourceName": "demo-pnf", "startEpochMicrosec": 1711335331405, "version": "4.0.1", "internalHeaderFields": {}, "vesEventListenerVersion": "7.1"}, "otherFields": {"hashMap": {"hostname": "UNDEFINED", "pnfName": "demo-pnf", "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "ip": "10.101.200.10"}, "otherFieldsVersion": "3.0"}, "target": null, "generatedHostname": null} policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscapolicy_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) simulator | 2024-03-25 02:53:23,311 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 729 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.751+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping timer grafana | logger=migrator t=2024-03-25T02:52:33.27197695Z level=info msg="Executing migration" id="create index UQE_alert_rule_tag_alert_id_tag_id - Add unique index alert_rule_tag.alert_id_tag_id V2" policy-apex-pdp | [2024-03-25T02:55:31.532+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:1] [{actionIdentifiers={"actionName": "update-config", "blueprintName": "controlloop-hostname-update", "blueprintVersion": "1.0.4", "mode": "sync"}, commonHeader={"originatorId": "POLICY", "requestId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "subRequestId": "927b2580-36d9-4f13-8421-3c9d43b7a57e"}, payload={update_DasH_config_DasH_request={"hostname": "hostoq4yt", "IP": "10.10.10.10", "pnfName": "demo-pnf"}}}, {component={"name": "Policy", "flavour": "Apex-PDP", "timestamp": 1711335331530, "status": "SUCCESS", "message": "Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.", "artifacts": {"policyName": "onap.policies.apex.Simplecontrolloop", "policyVersion": "1.0.0"}}, id=8c7935a4-79d8-4ec0-b661-dcca3cd68006, otherFields={"useCaseName": "simple-controlloop-usecase"}, target={"targetType": "PNF", "entityInfo": {"pnf_DasH_name": "demo-pnf"}}}] policy-db-migrator | -------------- simulator | 2024-03-25 02:53:23,320 INFO 172.17.0.8 - - [25/Mar/2024:02:53:21 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 729 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.751+00:00|INFO|TimerManager|DMAAP-source-POLICY-PDP-PAP] update timer cancelled Timer [name=785069ca-7625-46ce-9b32-da2e861548de, expireMs=1711335233570] grafana | logger=migrator t=2024-03-25T02:52:33.273592501Z level=info msg="Migration successfully executed" id="create index UQE_alert_rule_tag_alert_id_tag_id - Add unique index alert_rule_tag.alert_id_tag_id V2" duration=1.621191ms policy-apex-pdp | [2024-03-25T02:55:31.539+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [OUT|REST|http://message-router:3904/events/APEX-CL-MGT] policy-db-migrator | simulator | 2024-03-25 02:53:23,653 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.751+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping listener grafana | logger=migrator t=2024-03-25T02:52:33.278329414Z level=info msg="Executing migration" id="copy alert_rule_tag v1 to v2" policy-apex-pdp | { policy-db-migrator | simulator | 2024-03-25 02:53:23,655 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 349 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.751+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopped grafana | logger=migrator t=2024-03-25T02:52:33.278895668Z level=info msg="Migration successfully executed" id="copy alert_rule_tag v1 to v2" duration=558.633µs policy-apex-pdp | "name": "SimpleCL_LogEvent", policy-db-migrator | > upgrade 0290-jpatoscapolicy_properties.sql simulator | 2024-03-25 02:53:23,655 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 349 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.767+00:00|INFO|RequestImpl|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate successful grafana | logger=migrator t=2024-03-25T02:52:33.282749555Z level=info msg="Executing migration" id="drop table alert_rule_tag_v1" policy-apex-pdp | "version": "0.0.1", policy-db-migrator | -------------- simulator | 2024-03-25 02:53:23,656 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 349 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.769+00:00|INFO|PdpRequests|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 start publishing next request grafana | logger=migrator t=2024-03-25T02:52:33.283681781Z level=info msg="Migration successfully executed" id="drop table alert_rule_tag_v1" duration=930.176µs policy-apex-pdp | "nameSpace": "org.onap.policy.apex.simplecontrolloop", simulator | 2024-03-25 02:53:23,728 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.772+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange starting grafana | logger=migrator t=2024-03-25T02:52:33.28795287Z level=info msg="Executing migration" id="create alert_notification table v1" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscapolicy_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGTEXT NULL, PROPERTIES_KEY VARCHAR(255) NULL) policy-apex-pdp | "source": "APEX", simulator | 2024-03-25 02:53:23,729 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 976 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.773+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange starting listener grafana | logger=migrator t=2024-03-25T02:52:33.28945292Z level=info msg="Migration successfully executed" id="create alert_notification table v1" duration=1.4995ms policy-db-migrator | -------------- policy-apex-pdp | "target": { simulator | 2024-03-25 02:53:23,734 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 976 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.773+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange starting timer grafana | logger=migrator t=2024-03-25T02:52:33.294793777Z level=info msg="Executing migration" id="Add column is_default" policy-db-migrator | policy-apex-pdp | "targetType": "PNF", simulator | 2024-03-25 02:53:23,743 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 976 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.773+00:00|INFO|TimerManager|DMAAP-source-POLICY-PDP-PAP] state-change timer registered Timer [name=addcf1b1-662b-4ca2-be67-dd35881b741e, expireMs=1711335233773] grafana | logger=migrator t=2024-03-25T02:52:33.299489399Z level=info msg="Migration successfully executed" id="Add column is_default" duration=4.683212ms policy-db-migrator | policy-apex-pdp | "entityInfo": { simulator | 2024-03-25 02:53:23,790 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.773+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange starting enqueue grafana | logger=migrator t=2024-03-25T02:52:33.304142151Z level=info msg="Executing migration" id="Add column frequency" policy-db-migrator | > upgrade 0300-jpatoscapolicy_targets.sql policy-apex-pdp | "pnf-name": "demo-pnf" simulator | 2024-03-25 02:53:23,790 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 314 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.773+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange started grafana | logger=migrator t=2024-03-25T02:52:33.314720803Z level=info msg="Migration successfully executed" id="Add column frequency" duration=10.570292ms policy-db-migrator | -------------- policy-apex-pdp | } simulator | 2024-03-25 02:53:23,790 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 314 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.773+00:00|INFO|TimerManager|Thread-10] state-change timer waiting 30000ms Timer [name=addcf1b1-662b-4ca2-be67-dd35881b741e, expireMs=1711335233773] grafana | logger=migrator t=2024-03-25T02:52:33.356964863Z level=info msg="Executing migration" id="Add column send_reminder" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscapolicy_targets (name VARCHAR(120) NULL, version VARCHAR(20) NULL) policy-apex-pdp | }, simulator | 2024-03-25 02:53:23,828 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.774+00:00|INFO|network|Thread-7] [OUT|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:33.361962747Z level=info msg="Migration successfully executed" id="Add column send_reminder" duration=5.001484ms policy-db-migrator | -------------- policy-apex-pdp | "toscaPolicyState": "", simulator | 2024-03-25 02:53:23,829 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 1001 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","state":"ACTIVE","messageName":"PDP_STATE_CHANGE","requestId":"addcf1b1-662b-4ca2-be67-dd35881b741e","timestampMs":1711335203529,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:33.375959053Z level=info msg="Executing migration" id="Add column disable_resolve_message" policy-db-migrator | policy-apex-pdp | "component": { simulator | 2024-03-25 02:53:23,829 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 1001 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.783+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 9 ms grafana | logger=migrator t=2024-03-25T02:52:33.382896221Z level=info msg="Migration successfully executed" id="Add column disable_resolve_message" duration=6.935598ms policy-db-migrator | policy-apex-pdp | "name": "Policy", simulator | 2024-03-25 02:53:23,849 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 314 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.783+00:00|INFO|HttpClient|pool-3-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.466748616Z level=info msg="Executing migration" id="add index alert_notification org_id & name" policy-db-migrator | > upgrade 0310-jpatoscapolicytype_metadata.sql policy-apex-pdp | "flavour": "Apex-PDP", simulator | 2024-03-25 02:53:23,855 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 1001 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.790+00:00|INFO|HttpClient|pool-3-thread-1] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.468155576Z level=info msg="Migration successfully executed" id="add index alert_notification org_id & name" duration=1.41047ms policy-db-migrator | -------------- policy-apex-pdp | "timestamp": 1.71133533153E12, simulator | 2024-03-25 02:53:23,888 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 379 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.790+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] cambria reply ok (7 ms):{"serverTimeMs":0,"count":1} grafana | logger=migrator t=2024-03-25T02:52:33.471316767Z level=info msg="Executing migration" id="Update alert table charset" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscapolicytype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) policy-apex-pdp | "status": "SUCCESS", simulator | 2024-03-25 02:53:23,890 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.791+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.471351988Z level=info msg="Migration successfully executed" id="Update alert table charset" duration=34.841µs policy-db-migrator | -------------- policy-apex-pdp | "message": "Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.", simulator | 2024-03-25 02:53:23,891 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 379 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.792+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:33.478030323Z level=info msg="Executing migration" id="Update alert_notification table charset" policy-db-migrator | policy-apex-pdp | "artifacts": { simulator | 2024-03-25 02:53:23,895 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 379 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","state":"ACTIVE","messageName":"PDP_STATE_CHANGE","requestId":"addcf1b1-662b-4ca2-be67-dd35881b741e","timestampMs":1711335203529,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:33.478108944Z level=info msg="Migration successfully executed" id="Update alert_notification table charset" duration=86.681µs policy-db-migrator | policy-apex-pdp | "policyName": "onap.policies.apex.Simplecontrolloop", simulator | 2024-03-25 02:53:23,930 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 972 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.792+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-HEARTBEAT] discarding event of type PDP_STATE_CHANGE grafana | logger=migrator t=2024-03-25T02:52:33.482577065Z level=info msg="Executing migration" id="create notification_journal table v1" policy-db-migrator | > upgrade 0320-jpatoscapolicytype_properties.sql policy-apex-pdp | "policyVersion": "1.0.0" simulator | 2024-03-25 02:53:23,930 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 972 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.792+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.484180286Z level=info msg="Migration successfully executed" id="create notification_journal table v1" duration=1.605071ms policy-db-migrator | -------------- policy-apex-pdp | } simulator | 2024-03-25 02:53:23,935 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 972 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.792+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.489348571Z level=info msg="Executing migration" id="add index notification_journal org_id & alert_id & notifier_id" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscapolicytype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL, PROPERTIES_KEY VARCHAR(255) NULL) policy-apex-pdp | }, simulator | 2024-03-25 02:53:23,930 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.832+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.490492209Z level=info msg="Migration successfully executed" id="add index notification_journal org_id & alert_id & notifier_id" duration=1.145858ms policy-db-migrator | -------------- policy-apex-pdp | "id": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", simulator | 2024-03-25 02:53:31,755 INFO --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:23.833+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] policy-db-migrator | policy-apex-pdp | "otherFields": { simulator | 2024-03-25 02:53:31,756 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator grafana | logger=migrator t=2024-03-25T02:52:33.494626887Z level=info msg="Executing migration" id="drop alert_notification_journal" policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpStateChange","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.798094Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"addcf1b1-662b-4ca2-be67-dd35881b741e","responseStatus":"SUCCESS","responseMessage":"State changed to active. No policies found."},"messageName":"PDP_STATUS","requestId":"6a7c654e-7e7c-437e-a877-09e26132fc6f","timestampMs":1711335203797,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | policy-apex-pdp | "useCaseName": "simple-controlloop-usecase" simulator | 2024-03-25 02:53:31,756 INFO 172.17.0.4 - - [25/Mar/2024:02:53:16 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:33.495243652Z level=info msg="Migration successfully executed" id="drop alert_notification_journal" duration=617.595µs policy-pap | [2024-03-25T02:53:23.834+00:00|INFO|RequestIdDispatcher|DMAAP-source-POLICY-HEARTBEAT] no listener for request id addcf1b1-662b-4ca2-be67-dd35881b741e policy-db-migrator | > upgrade 0330-jpatoscapolicytype_targets.sql policy-apex-pdp | } simulator | 2024-03-25 02:53:31,756 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-pap | [2024-03-25T02:53:23.834+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.499846633Z level=info msg="Executing migration" id="create alert_notification_state table v1" policy-db-migrator | -------------- policy-apex-pdp | } simulator | 2024-03-25 02:53:31,756 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-pap | [2024-03-25T02:53:23.835+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.50071554Z level=info msg="Migration successfully executed" id="create alert_notification_state table v1" duration=868.797µs policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscapolicytype_targets (name VARCHAR(120) NULL, version VARCHAR(20) NULL) policy-apex-pdp | [2024-03-25T02:55:31.553+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [IN|REST|http://message-router:3904/events/APEX-CL-MGT] simulator | 2024-03-25 02:53:31,759 INFO --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:23.845+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.505064059Z level=info msg="Executing migration" id="add index alert_notification_state org_id & alert_id & notifier_id" policy-db-migrator | -------------- policy-apex-pdp | {"serverTimeMs":0,"count":1} simulator | 2024-03-25 02:53:31,759 INFO 172.17.0.4 - - [25/Mar/2024:02:53:16 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.845+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.507126953Z level=info msg="Migration successfully executed" id="add index alert_notification_state org_id & alert_id & notifier_id" duration=2.073104ms policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:31.722+00:00|INFO|CdsProcessorHandler|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_CDSConfigModifyRequestProducer-6:0] Processing blueprint(1.0.4:controlloop-hostname-update) for action(1.0.4) simulator | 2024-03-25 02:53:31,759 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-pap | [2024-03-25T02:53:23.849+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.514625654Z level=info msg="Executing migration" id="Add for to alert table" policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:31.794+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_CDSConfigModifyRequestProducer-6:0] [OUT|REST|gRPC://grpc-sim:6680/] simulator | 2024-03-25 02:53:31,760 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-pap | [2024-03-25T02:53:23.849+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:33.518891014Z level=info msg="Migration successfully executed" id="Add for to alert table" duration=4.26452ms policy-db-migrator | > upgrade 0340-jpatoscapolicytype_triggers.sql policy-apex-pdp | commonHeader { simulator | 2024-03-25 02:53:31,760 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","state":"ACTIVE","messageName":"PDP_STATE_CHANGE","requestId":"addcf1b1-662b-4ca2-be67-dd35881b741e","timestampMs":1711335203529,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:33.556019458Z level=info msg="Executing migration" id="Add column uid in alert_notification" policy-db-migrator | -------------- policy-apex-pdp | requestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" simulator | 2024-03-25 02:53:32,105 INFO 172.17.0.8 - - [25/Mar/2024:02:53:32 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.849+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATE_CHANGE grafana | logger=migrator t=2024-03-25T02:52:33.562819805Z level=info msg="Migration successfully executed" id="Add column uid in alert_notification" duration=6.792957ms policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscapolicytype_triggers (name VARCHAR(120) NULL, version VARCHAR(20) NULL, TRIGGERS VARCHAR(255) NULL) policy-apex-pdp | subRequestId: "927b2580-36d9-4f13-8421-3c9d43b7a57e" simulator | 2024-03-25 02:53:32,231 INFO 172.17.0.8 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 149171 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.849+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.566977283Z level=info msg="Executing migration" id="Update uid column values in alert_notification" policy-db-migrator | -------------- policy-apex-pdp | originatorId: "POLICY" simulator | 2024-03-25 02:53:32,231 INFO 172.17.0.8 - - [25/Mar/2024:02:53:24 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 149171 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.850+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.567201735Z level=info msg="Migration successfully executed" id="Update uid column values in alert_notification" duration=224.082µs policy-db-migrator | policy-apex-pdp | } simulator | 2024-03-25 02:53:32,250 INFO 172.17.0.9 - - [25/Mar/2024:02:53:23 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 149171 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.854+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.571777417Z level=info msg="Executing migration" id="Add unique index alert_notification_org_id_uid" policy-db-migrator | policy-apex-pdp | actionIdentifiers { simulator | 2024-03-25 02:53:33,282 INFO 172.17.0.9 - - [25/Mar/2024:02:53:33 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2084 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.855+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:33.573191876Z level=info msg="Migration successfully executed" id="Add unique index alert_notification_org_id_uid" duration=1.414379ms policy-db-migrator | > upgrade 0350-jpatoscaproperty_constraints.sql simulator | 2024-03-25 02:53:33,282 INFO 172.17.0.9 - - [25/Mar/2024:02:53:33 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpStateChange","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.798094Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"addcf1b1-662b-4ca2-be67-dd35881b741e","responseStatus":"SUCCESS","responseMessage":"State changed to active. No policies found."},"messageName":"PDP_STATUS","requestId":"6a7c654e-7e7c-437e-a877-09e26132fc6f","timestampMs":1711335203797,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:33.57957961Z level=info msg="Executing migration" id="Remove unique index org_id_name" policy-db-migrator | -------------- policy-apex-pdp | blueprintName: "controlloop-hostname-update" simulator | 2024-03-25 02:53:33,282 INFO 172.17.0.8 - - [25/Mar/2024:02:53:32 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2084 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange stopping grafana | logger=migrator t=2024-03-25T02:52:33.580516416Z level=info msg="Migration successfully executed" id="Remove unique index org_id_name" duration=938.486µs policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscaproperty_constraints (parentLocalName VARCHAR(120) NULL, localName VARCHAR(120) NULL, parentKeyVersion VARCHAR(15) NULL, parentKeyName VARCHAR(120) NULL, CONSTRAINTS VARCHAR(255) NULL) policy-apex-pdp | blueprintVersion: "1.0.4" simulator | 2024-03-25 02:53:33,284 INFO 172.17.0.8 - - [25/Mar/2024:02:53:32 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2084 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange stopping enqueue grafana | logger=migrator t=2024-03-25T02:52:33.583535357Z level=info msg="Executing migration" id="Add column secure_settings in alert_notification" policy-db-migrator | -------------- policy-apex-pdp | actionName: "update-config" simulator | 2024-03-25 02:53:33,342 INFO 172.17.0.8 - - [25/Mar/2024:02:53:33 +0000] "POST /events/POLICY-NOTIFICATION HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange stopping timer grafana | logger=migrator t=2024-03-25T02:52:33.587561375Z level=info msg="Migration successfully executed" id="Add column secure_settings in alert_notification" duration=4.029738ms policy-db-migrator | policy-apex-pdp | mode: "sync" simulator | 2024-03-25 02:53:46,765 INFO --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|TimerManager|DMAAP-source-POLICY-PDP-PAP] state-change timer cancelled Timer [name=addcf1b1-662b-4ca2-be67-dd35881b741e, expireMs=1711335233773] grafana | logger=migrator t=2024-03-25T02:52:33.591485682Z level=info msg="Executing migration" id="alter alert.settings to mediumtext" policy-db-migrator | policy-apex-pdp | } simulator | 2024-03-25 02:53:46,765 INFO --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange stopping listener grafana | logger=migrator t=2024-03-25T02:52:33.591554312Z level=info msg="Migration successfully executed" id="alter alert.settings to mediumtext" duration=68.93µs policy-db-migrator | > upgrade 0360-jpatoscaproperty_metadata.sql policy-apex-pdp | payload { simulator | 2024-03-25 02:53:46,765 INFO 172.17.0.4 - - [25/Mar/2024:02:53:31 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange stopped grafana | logger=migrator t=2024-03-25T02:52:33.625650686Z level=info msg="Executing migration" id="Add non-unique index alert_notification_state_alert_id" policy-db-migrator | -------------- policy-apex-pdp | fields { simulator | 2024-03-25 02:53:46,766 INFO 172.17.0.4 - - [25/Mar/2024:02:53:31 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|RequestImpl|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpStateChange successful grafana | logger=migrator t=2024-03-25T02:52:33.628506365Z level=info msg="Migration successfully executed" id="Add non-unique index alert_notification_state_alert_id" duration=2.855279ms policy-apex-pdp | key: "update-config-request" simulator | 2024-03-25 02:53:46,766 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|PdpRequests|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 start publishing next request grafana | logger=migrator t=2024-03-25T02:52:33.632545834Z level=info msg="Executing migration" id="Add non-unique index alert_rule_tag_alert_id" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscaproperty_metadata (parentLocalName VARCHAR(120) NULL, localName VARCHAR(120) NULL, parentKeyVersion VARCHAR(15) NULL, parentKeyName VARCHAR(120) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) policy-apex-pdp | value { policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting policy-db-migrator | -------------- policy-apex-pdp | struct_value { simulator | 2024-03-25 02:53:46,766 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator grafana | logger=migrator t=2024-03-25T02:52:33.63348263Z level=info msg="Migration successfully executed" id="Add non-unique index alert_rule_tag_alert_id" duration=933.756µs policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting listener policy-db-migrator | policy-apex-pdp | fields { simulator | 2024-03-25 02:53:46,767 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:33.636337989Z level=info msg="Executing migration" id="Drop old annotation table v4" policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting timer policy-db-migrator | policy-apex-pdp | key: "hostname" simulator | 2024-03-25 02:53:46,767 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:33.63642672Z level=info msg="Migration successfully executed" id="Drop old annotation table v4" duration=88.751µs policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|TimerManager|DMAAP-source-POLICY-PDP-PAP] update timer registered Timer [name=68cc4673-2240-4c92-8b65-d8c26501165a, expireMs=1711335233856] policy-db-migrator | > upgrade 0370-jpatoscarelationshiptype_metadata.sql policy-apex-pdp | value { simulator | 2024-03-25 02:53:46,767 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:33.642407431Z level=info msg="Executing migration" id="create annotation table v5" policy-pap | [2024-03-25T02:53:23.856+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting enqueue policy-db-migrator | -------------- policy-apex-pdp | string_value: "hostoq4yt" simulator | 2024-03-25 02:53:46,767 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:33.643817971Z level=info msg="Migration successfully executed" id="create annotation table v5" duration=1.41071ms policy-pap | [2024-03-25T02:53:23.857+00:00|INFO|network|Thread-7] [OUT|DMAAP|POLICY-PDP-PAP] policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscarelationshiptype_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) policy-apex-pdp | } simulator | 2024-03-25 02:53:48,291 INFO 172.17.0.8 - - [25/Mar/2024:02:53:33 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:33.647003263Z level=info msg="Executing migration" id="add index annotation 0 v3" policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","pdpHeartbeatIntervalMs":120000,"policiesToBeDeployed":[],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"68cc4673-2240-4c92-8b65-d8c26501165a","timestampMs":1711335203833,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | -------------- policy-apex-pdp | } simulator | 2024-03-25 02:53:48,291 INFO 172.17.0.9 - - [25/Mar/2024:02:53:33 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:33.647876468Z level=info msg="Migration successfully executed" id="add index annotation 0 v3" duration=872.655µs policy-pap | [2024-03-25T02:53:23.857+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate started policy-db-migrator | policy-apex-pdp | fields { simulator | 2024-03-25 02:53:48,624 INFO 172.17.0.8 - - [25/Mar/2024:02:53:33 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:33.650916279Z level=info msg="Executing migration" id="add index annotation 1 v3" policy-pap | [2024-03-25T02:53:23.857+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-db-migrator | policy-apex-pdp | key: "IP" grafana | logger=migrator t=2024-03-25T02:52:33.651741955Z level=info msg="Migration successfully executed" id="add index annotation 1 v3" duration=825.506µs simulator | 2024-03-25 02:54:01,773 INFO 172.17.0.4 - - [25/Mar/2024:02:53:46 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:23.857+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | > upgrade 0380-jpatoscarelationshiptype_properties.sql policy-apex-pdp | value { grafana | logger=migrator t=2024-03-25T02:52:33.657710956Z level=info msg="Executing migration" id="add index annotation 2 v3" simulator | 2024-03-25 02:54:01,773 INFO --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:23.883+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 26 ms policy-db-migrator | -------------- policy-apex-pdp | string_value: "10.10.10.10" grafana | logger=migrator t=2024-03-25T02:52:33.658569682Z level=info msg="Migration successfully executed" id="add index annotation 2 v3" duration=858.946µs simulator | 2024-03-25 02:54:01,773 INFO --> HTTP/1.1 200 OK policy-pap | [2024-03-25T02:53:23.883+00:00|INFO|HttpClient|pool-3-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscarelationshiptype_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGBLOB DEFAULT NULL, PROPERTIES_KEY VARCHAR(255) NULL) policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.662291417Z level=info msg="Executing migration" id="add index annotation 3 v3" simulator | 2024-03-25 02:54:01,774 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-pap | [2024-03-25T02:53:23.889+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | -------------- policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.663334845Z level=info msg="Migration successfully executed" id="add index annotation 3 v3" duration=1.038818ms simulator | 2024-03-25 02:54:01,774 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-pap | [2024-03-25T02:53:23.890+00:00|INFO|HttpClient|pool-3-thread-1] --> HTTP/1.1 200 OK policy-db-migrator | policy-apex-pdp | fields { grafana | logger=migrator t=2024-03-25T02:52:33.666407666Z level=info msg="Executing migration" id="add index annotation 4 v3" simulator | 2024-03-25 02:54:01,775 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-pap | [2024-03-25T02:53:23.890+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-db-migrator | policy-apex-pdp | key: "pnfName" grafana | logger=migrator t=2024-03-25T02:52:33.667382572Z level=info msg="Migration successfully executed" id="add index annotation 4 v3" duration=974.336µs simulator | 2024-03-25 02:54:01,775 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","pdpHeartbeatIntervalMs":120000,"policiesToBeDeployed":[],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"68cc4673-2240-4c92-8b65-d8c26501165a","timestampMs":1711335203833,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | > upgrade 0390-jpatoscarequirement_metadata.sql policy-apex-pdp | value { grafana | logger=migrator t=2024-03-25T02:52:33.672448347Z level=info msg="Executing migration" id="Update annotation table charset" simulator | 2024-03-25 02:54:01,775 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.890+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_UPDATE policy-apex-pdp | string_value: "demo-pnf" grafana | logger=migrator t=2024-03-25T02:52:33.672474457Z level=info msg="Migration successfully executed" id="Update annotation table charset" duration=26.67µs simulator | 2024-03-25 02:54:01,775 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscarequirement_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) policy-pap | [2024-03-25T02:53:23.890+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.676247523Z level=info msg="Executing migration" id="Add column region_id to annotation table" simulator | 2024-03-25 02:54:01,775 INFO 172.17.0.4 - - [25/Mar/2024:02:53:46 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.890+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.682787728Z level=info msg="Migration successfully executed" id="Add column region_id to annotation table" duration=6.541075ms simulator | 2024-03-25 02:54:03,298 INFO 172.17.0.8 - - [25/Mar/2024:02:53:48 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | policy-pap | [2024-03-25T02:53:23.891+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.68589604Z level=info msg="Executing migration" id="Drop category_id index" simulator | 2024-03-25 02:54:03,299 INFO 172.17.0.9 - - [25/Mar/2024:02:53:48 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | policy-pap | [2024-03-25T02:53:23.892+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.686820746Z level=info msg="Migration successfully executed" id="Drop category_id index" duration=922.486µs simulator | 2024-03-25 02:54:03,633 INFO 172.17.0.8 - - [25/Mar/2024:02:53:48 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | > upgrade 0400-jpatoscarequirement_occurrences.sql policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","pdpHeartbeatIntervalMs":120000,"policiesToBeDeployed":[],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"68cc4673-2240-4c92-8b65-d8c26501165a","timestampMs":1711335203833,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.692843547Z level=info msg="Executing migration" id="Add column tags to annotation table" simulator | 2024-03-25 02:54:16,783 INFO --> HTTP/1.1 200 OK policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.892+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-HEARTBEAT] discarding event of type PDP_UPDATE policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.700501649Z level=info msg="Migration successfully executed" id="Add column tags to annotation table" duration=7.651812ms simulator | 2024-03-25 02:54:16,783 INFO --> HTTP/1.1 200 OK policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscarequirement_occurrences (name VARCHAR(120) NULL, version VARCHAR(20) NULL, OCCURRENCES INT DEFAULT NULL) policy-pap | [2024-03-25T02:53:23.892+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-apex-pdp | grafana | logger=migrator t=2024-03-25T02:52:33.703755262Z level=info msg="Executing migration" id="Create annotation_tag table v2" simulator | 2024-03-25 02:54:16,783 INFO 172.17.0.4 - - [25/Mar/2024:02:54:01 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.892+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-apex-pdp | [2024-03-25T02:55:32.366+00:00|INFO|network|grpc-default-executor-1] [IN|REST|gRPC://grpc-sim:6680/] grafana | logger=migrator t=2024-03-25T02:52:33.704310395Z level=info msg="Migration successfully executed" id="Create annotation_tag table v2" duration=554.883µs simulator | 2024-03-25 02:54:16,784 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-db-migrator | policy-pap | [2024-03-25T02:53:23.893+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] cambria reply ok (10 ms):{"serverTimeMs":0,"count":1} policy-apex-pdp | commonHeader { grafana | logger=migrator t=2024-03-25T02:52:33.708002641Z level=info msg="Executing migration" id="Add unique index annotation_tag.annotation_id_tag_id" simulator | 2024-03-25 02:54:16,784 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-db-migrator | policy-pap | [2024-03-25T02:53:23.930+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | timestamp: "2020-08-24T14:45:07.491Z" grafana | logger=migrator t=2024-03-25T02:52:33.708742716Z level=info msg="Migration successfully executed" id="Add unique index annotation_tag.annotation_id_tag_id" duration=739.465µs simulator | 2024-03-25 02:54:16,783 INFO 172.17.0.4 - - [25/Mar/2024:02:54:01 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | > upgrade 0410-jpatoscarequirement_properties.sql policy-pap | [2024-03-25T02:53:23.931+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | requestId: "123456" grafana | logger=migrator t=2024-03-25T02:52:33.71521318Z level=info msg="Executing migration" id="drop index UQE_annotation_tag_annotation_id_tag_id - v2" simulator | 2024-03-25 02:54:16,785 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-db-migrator | -------------- policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.891050Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"68cc4673-2240-4c92-8b65-d8c26501165a","responseStatus":"SUCCESS","responseMessage":"Pdp already updated"},"messageName":"PDP_STATUS","requestId":"cdf93ee4-cf94-4c57-8b10-443eabc8386e","timestampMs":1711335203890,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | subRequestId: "123-123" grafana | logger=migrator t=2024-03-25T02:52:33.71659451Z level=info msg="Migration successfully executed" id="drop index UQE_annotation_tag_annotation_id_tag_id - v2" duration=1.38593ms simulator | 2024-03-25 02:54:16,785 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscarequirement_properties (name VARCHAR(120) NULL, version VARCHAR(20) NULL, PROPERTIES LONGTEXT NULL, PROPERTIES_KEY VARCHAR(255) NULL) policy-pap | [2024-03-25T02:53:23.932+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping policy-apex-pdp | originatorId: "CDS" grafana | logger=migrator t=2024-03-25T02:52:33.720508087Z level=info msg="Executing migration" id="Rename table annotation_tag to annotation_tag_v2 - v2" simulator | 2024-03-25 02:54:16,785 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.932+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping enqueue policy-apex-pdp | } simulator | 2024-03-25 02:54:16,785 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... simulator | 2024-03-25 02:54:18,306 INFO 172.17.0.8 - - [25/Mar/2024:02:54:03 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | policy-pap | [2024-03-25T02:53:23.932+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping timer grafana | logger=migrator t=2024-03-25T02:52:33.735141637Z level=info msg="Migration successfully executed" id="Rename table annotation_tag to annotation_tag_v2 - v2" duration=14.63091ms simulator | 2024-03-25 02:54:18,308 INFO 172.17.0.9 - - [25/Mar/2024:02:54:03 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | actionIdentifiers { policy-db-migrator | policy-pap | [2024-03-25T02:53:23.932+00:00|INFO|TimerManager|DMAAP-source-POLICY-PDP-PAP] update timer cancelled Timer [name=68cc4673-2240-4c92-8b65-d8c26501165a, expireMs=1711335233856] grafana | logger=migrator t=2024-03-25T02:52:33.738144387Z level=info msg="Executing migration" id="Create annotation_tag table v3" simulator | 2024-03-25 02:54:18,640 INFO 172.17.0.8 - - [25/Mar/2024:02:54:03 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | blueprintName: "controlloop-hostname-update" policy-db-migrator | > upgrade 0420-jpatoscaservicetemplate_metadata.sql policy-pap | [2024-03-25T02:53:23.932+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping listener grafana | logger=migrator t=2024-03-25T02:52:33.738716711Z level=info msg="Migration successfully executed" id="Create annotation_tag table v3" duration=568.584µs simulator | 2024-03-25 02:54:31,791 INFO 172.17.0.4 - - [25/Mar/2024:02:54:16 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | blueprintVersion: "1.0.4" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.932+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopped grafana | logger=migrator t=2024-03-25T02:52:33.741559541Z level=info msg="Executing migration" id="create index UQE_annotation_tag_annotation_id_tag_id - Add unique index annotation_tag.annotation_id_tag_id V3" simulator | 2024-03-25 02:54:31,792 INFO --> HTTP/1.1 200 OK policy-apex-pdp | actionName: "update-config" policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscaservicetemplate_metadata (name VARCHAR(120) NULL, version VARCHAR(20) NULL, METADATA VARCHAR(255) NULL, METADATA_KEY VARCHAR(255) NULL) policy-pap | [2024-03-25T02:53:23.932+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.742264946Z level=info msg="Migration successfully executed" id="create index UQE_annotation_tag_annotation_id_tag_id - Add unique index annotation_tag.annotation_id_tag_id V3" duration=705.305µs simulator | 2024-03-25 02:54:31,792 INFO --> HTTP/1.1 200 OK policy-apex-pdp | mode: "sync" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.933+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:33.74720104Z level=info msg="Executing migration" id="copy annotation_tag v2 to v3" simulator | 2024-03-25 02:54:31,792 INFO 172.17.0.4 - - [25/Mar/2024:02:54:16 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | } policy-db-migrator | policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:23.891050Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":0,"policyDeploySuccessCount":0,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0},"response":{"responseTo":"68cc4673-2240-4c92-8b65-d8c26501165a","responseStatus":"SUCCESS","responseMessage":"Pdp already updated"},"messageName":"PDP_STATUS","requestId":"cdf93ee4-cf94-4c57-8b10-443eabc8386e","timestampMs":1711335203890,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:33.747556042Z level=info msg="Migration successfully executed" id="copy annotation_tag v2 to v3" duration=354.092µs simulator | 2024-03-25 02:54:31,793 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-apex-pdp | status { policy-db-migrator | policy-pap | [2024-03-25T02:53:23.935+00:00|INFO|RequestIdDispatcher|DMAAP-source-POLICY-HEARTBEAT] no listener for request id 68cc4673-2240-4c92-8b65-d8c26501165a grafana | logger=migrator t=2024-03-25T02:52:33.753640484Z level=info msg="Executing migration" id="drop table annotation_tag_v2" simulator | 2024-03-25 02:54:31,793 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-apex-pdp | code: 200 policy-db-migrator | > upgrade 0430-jpatoscatopologytemplate_inputs.sql policy-pap | [2024-03-25T02:53:23.935+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.754221588Z level=info msg="Migration successfully executed" id="drop table annotation_tag_v2" duration=581.624µs simulator | 2024-03-25 02:54:31,794 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-apex-pdp | message: "success" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.935+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.75883072Z level=info msg="Executing migration" id="Update alert annotations and set TEXT to empty" simulator | 2024-03-25 02:54:31,794 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-apex-pdp | eventType: EVENT_COMPONENT_EXECUTED policy-db-migrator | CREATE TABLE IF NOT EXISTS jpatoscatopologytemplate_inputs (parentLocalName VARCHAR(120) NULL, localName VARCHAR(120) NULL, parentKeyVersion VARCHAR(15) NULL, parentKeyName VARCHAR(120) NULL, INPUTS LONGBLOB DEFAULT NULL, INPUTS_KEY VARCHAR(255) NULL) policy-pap | [2024-03-25T02:53:23.940+00:00|INFO|RequestImpl|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate successful grafana | logger=migrator t=2024-03-25T02:52:33.759030781Z level=info msg="Migration successfully executed" id="Update alert annotations and set TEXT to empty" duration=203.071µs simulator | 2024-03-25 02:54:31,795 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-apex-pdp | timestamp: "2020-08-24T14:45:12.863Z" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:23.940+00:00|INFO|PdpRequests|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 has no more requests grafana | logger=migrator t=2024-03-25T02:52:33.76618108Z level=info msg="Executing migration" id="Add created time to annotation table" simulator | 2024-03-25 02:54:31,795 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-apex-pdp | } policy-db-migrator | policy-pap | [2024-03-25T02:53:24.000+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.772655855Z level=info msg="Migration successfully executed" id="Add created time to annotation table" duration=6.476925ms simulator | 2024-03-25 02:54:33,313 INFO 172.17.0.8 - - [25/Mar/2024:02:54:18 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | payload { policy-db-migrator | policy-pap | [2024-03-25T02:53:24.000+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.777354686Z level=info msg="Executing migration" id="Add updated time to annotation table" simulator | 2024-03-25 02:54:33,317 INFO 172.17.0.9 - - [25/Mar/2024:02:54:18 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | fields { policy-db-migrator | > upgrade 0440-pdpgroup_pdpsubgroup.sql policy-pap | [2024-03-25T02:53:30.690+00:00|INFO|[/policy/pap/v1]|http-nio-6969-exec-3] Initializing Spring DispatcherServlet 'dispatcherServlet' grafana | logger=migrator t=2024-03-25T02:52:33.781843017Z level=info msg="Migration successfully executed" id="Add updated time to annotation table" duration=4.466191ms simulator | 2024-03-25 02:54:33,647 INFO 172.17.0.8 - - [25/Mar/2024:02:54:18 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | key: "update-config-response" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:30.690+00:00|INFO|DispatcherServlet|http-nio-6969-exec-3] Initializing Servlet 'dispatcherServlet' grafana | logger=migrator t=2024-03-25T02:52:33.78664235Z level=info msg="Executing migration" id="Add index for created in annotation table" simulator | 2024-03-25 02:54:46,802 INFO 172.17.0.4 - - [25/Mar/2024:02:54:31 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | value { policy-db-migrator | CREATE TABLE IF NOT EXISTS pdpgroup_pdpsubgroup (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, PRIMARY KEY PK_PDPGROUP_PDPSUBGROUP (name, version, parentLocalName, localName, parentKeyVersion, parentKeyName)) policy-pap | [2024-03-25T02:53:30.694+00:00|INFO|DispatcherServlet|http-nio-6969-exec-3] Completed initialization in 4 ms grafana | logger=migrator t=2024-03-25T02:52:33.787591497Z level=info msg="Migration successfully executed" id="Add index for created in annotation table" duration=948.737µs simulator | 2024-03-25 02:54:46,802 INFO --> HTTP/1.1 200 OK policy-apex-pdp | struct_value { policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:31.176+00:00|INFO|SessionData|http-nio-6969-exec-4] cache group defaultGroup grafana | logger=migrator t=2024-03-25T02:52:33.794542574Z level=info msg="Executing migration" id="Add index for updated in annotation table" simulator | 2024-03-25 02:54:46,802 INFO --> HTTP/1.1 200 OK policy-apex-pdp | fields { policy-db-migrator | policy-pap | [2024-03-25T02:53:31.860+00:00|INFO|PolicyAuditManager|http-nio-6969-exec-4] Registering a deploy for policy onap.policies.native.apex.Sampledomain 1.0.0 grafana | logger=migrator t=2024-03-25T02:52:33.796094015Z level=info msg="Migration successfully executed" id="Add index for updated in annotation table" duration=1.563421ms simulator | 2024-03-25 02:54:46,802 INFO 172.17.0.4 - - [25/Mar/2024:02:54:31 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | key: "execute-command-logs" policy-db-migrator | policy-pap | [2024-03-25T02:53:31.861+00:00|INFO|SessionData|http-nio-6969-exec-4] add update apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 defaultGroup apex policies=1 grafana | logger=migrator t=2024-03-25T02:52:33.80270397Z level=info msg="Executing migration" id="Convert existing annotations from seconds to milliseconds" simulator | 2024-03-25 02:54:46,803 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-apex-pdp | value { policy-db-migrator | > upgrade 0450-pdpgroup.sql policy-pap | [2024-03-25T02:53:31.863+00:00|INFO|SessionData|http-nio-6969-exec-4] update cached group defaultGroup grafana | logger=migrator t=2024-03-25T02:52:33.803309465Z level=info msg="Migration successfully executed" id="Convert existing annotations from seconds to milliseconds" duration=601.325µs simulator | 2024-03-25 02:54:46,803 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-apex-pdp | list_value { policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:31.864+00:00|INFO|SessionData|http-nio-6969-exec-4] updating DB group defaultGroup grafana | logger=migrator t=2024-03-25T02:52:33.809005724Z level=info msg="Executing migration" id="Add epoch_end column" simulator | 2024-03-25 02:54:46,804 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-apex-pdp | values { policy-db-migrator | CREATE TABLE IF NOT EXISTS pdpgroup (`DESCRIPTION` VARCHAR(255) NULL, PDPGROUPSTATE INT DEFAULT NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_PDPGROUP (name, version)) policy-pap | [2024-03-25T02:53:31.892+00:00|INFO|PolicyAuditManager|http-nio-6969-exec-4] sending audit records to database: [PolicyAudit(auditId=null, pdpGroup=defaultGroup, pdpType=apex, policy=onap.policies.native.apex.Sampledomain 1.0.0, action=DEPLOYMENT, timestamp=2024-03-25T02:53:31Z, user=policyadmin)] grafana | logger=migrator t=2024-03-25T02:52:33.816288673Z level=info msg="Migration successfully executed" id="Add epoch_end column" duration=7.281419ms simulator | 2024-03-25 02:54:46,804 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-apex-pdp | string_value: "INFO:root:" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:31.998+00:00|INFO|ServiceManager|http-nio-6969-exec-4] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting grafana | logger=migrator t=2024-03-25T02:52:33.820845605Z level=info msg="Executing migration" id="Add index for epoch_end" simulator | 2024-03-25 02:54:46,804 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-apex-pdp | } policy-db-migrator | policy-pap | [2024-03-25T02:53:31.998+00:00|INFO|ServiceManager|http-nio-6969-exec-4] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting listener grafana | logger=migrator t=2024-03-25T02:52:33.822487616Z level=info msg="Migration successfully executed" id="Add index for epoch_end" duration=1.640481ms simulator | 2024-03-25 02:54:46,804 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-apex-pdp | values { policy-db-migrator | policy-pap | [2024-03-25T02:53:31.998+00:00|INFO|ServiceManager|http-nio-6969-exec-4] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting timer grafana | logger=migrator t=2024-03-25T02:52:33.829667025Z level=info msg="Executing migration" id="Make epoch_end the same as epoch" simulator | 2024-03-25 02:54:48,320 INFO 172.17.0.8 - - [25/Mar/2024:02:54:33 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | string_value: "INFO:root:configuring Device...." policy-db-migrator | > upgrade 0460-pdppolicystatus.sql policy-pap | [2024-03-25T02:53:31.998+00:00|INFO|TimerManager|http-nio-6969-exec-4] update timer registered Timer [name=d5f6a2ce-ecbf-42a1-af72-3b5888ffa087, expireMs=1711335241998] grafana | logger=migrator t=2024-03-25T02:52:33.829960567Z level=info msg="Migration successfully executed" id="Make epoch_end the same as epoch" duration=293.092µs policy-apex-pdp | } simulator | 2024-03-25 02:54:48,322 INFO 172.17.0.9 - - [25/Mar/2024:02:54:33 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:31.998+00:00|INFO|ServiceManager|http-nio-6969-exec-4] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting enqueue grafana | logger=migrator t=2024-03-25T02:52:33.836372451Z level=info msg="Executing migration" id="Move region to single row" policy-apex-pdp | values { simulator | 2024-03-25 02:54:48,654 INFO 172.17.0.8 - - [25/Mar/2024:02:54:33 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | CREATE TABLE IF NOT EXISTS pdppolicystatus (DEPLOY BOOLEAN DEFAULT 0, PDPGROUP VARCHAR(255) DEFAULT NULL, PDPTYPE VARCHAR(255) DEFAULT NULL, STATE INT DEFAULT NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, name VARCHAR(120) DEFAULT NULL, version VARCHAR(20) DEFAULT NULL, PRIMARY KEY PK_PDPPOLICYSTATUS (parentLocalName, localName, parentKeyVersion, parentKeyName)) policy-pap | [2024-03-25T02:53:32.000+00:00|INFO|ServiceManager|http-nio-6969-exec-4] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate started grafana | logger=migrator t=2024-03-25T02:52:33.837112647Z level=info msg="Migration successfully executed" id="Move region to single row" duration=740.066µs policy-apex-pdp | string_value: "INFO:root:Done Device Configuration Successfully" simulator | 2024-03-25 02:55:01,817 INFO --> HTTP/1.1 200 OK policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:32.035+00:00|INFO|network|Thread-7] [OUT|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:33.84201199Z level=info msg="Executing migration" id="Remove index org_id_epoch from annotation table" policy-apex-pdp | } simulator | 2024-03-25 02:55:01,817 INFO --> HTTP/1.1 200 OK policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:33.843621311Z level=info msg="Migration successfully executed" id="Remove index org_id_epoch from annotation table" duration=1.608261ms policy-apex-pdp | values { policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"MyApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"policy_type_impl":{"apexPolicyModel":{"key":{"name":"SamplePolicyModelJAVASCRIPT","version":"0.0.1"},"keyInformation":{"key":{"name":"KeyInformation","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"Context","version":"0.0.1"},"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Act1","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Act0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Task_Act0_DIRECT_Act_NULL"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Act_NULL"}}},{"key":{"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Decide3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide0_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide1_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide2_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide3_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}}]}}},{"key":"Establish","value":{"stateKey":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"},"trigger":{"name":"Event0001","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Establish_Decide","value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"},"outgoingEvent":{"name":"Event0002","version":"0.0.1"},"nextState":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Decide"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Establish2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish0_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish1_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish2_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish3_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}}]}}},{"key":"Match","value":{"stateKey":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Match"},"trigger":{"name":"Event0000","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Match_Establish","value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"},"outgoingEvent":{"name":"Event0001","version":"0.0.1"},"nextState":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"}}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Match0","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Match0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match0_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match1_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match2_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match3_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}}]}}}]},"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Act0","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Act0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Task_Act0_DIRECT_Act_NULL"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Act_NULL"}}},{"key":{"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Decide3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide0_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide1_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide2_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide3_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}}]}}},{"key":"Establish","value":{"stateKey":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"},"trigger":{"name":"Event0101","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Establish_Decide","value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"},"outgoingEvent":{"name":"Event0102","version":"0.0.1"},"nextState":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Decide"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Establish1","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish0_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish1_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish2_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish3_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}}]}}},{"key":"Match","value":{"stateKey":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Match"},"trigger":{"name":"Event0100","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Match_Establish","value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"},"outgoingEvent":{"name":"Event0101","version":"0.0.1"},"nextState":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Match3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Match0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match0_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match1_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match2_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act1","version":"0.0.1"},"value":{"key":{"name":"Task_Act1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act2","version":"0.0.1"},"value":{"key":{"name":"Task_Act2","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act3","version":"0.0.1"},"value":{"key":{"name":"Task_Act3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"name":"Task_Decide0","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"name":"Task_Decide1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Decide1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}},{"key":"Parameter1","value":{"key":{"parentKeyName":"Task_Decide1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter1"},"defaultValue":"DefaultValue1"}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"name":"Task_Decide3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"name":"Task_Establish0","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"name":"Task_Establish1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Establish1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}},{"key":"Parameter1","value":{"key":{"parentKeyName":"Task_Establish1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter1"},"defaultValue":"DefaultValue1"}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"name":"Task_Establish3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Establish3","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"name":"Task_Match1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"name":"Task_Match2","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match3","version":"0.0.1"},"value":{"key":{"name":"Task_Match3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}}]}},"events":{"key":{"name":"Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"Event0000","version":"0.0.1"},"value":{"key":{"name":"Event0000","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.sample.events","source":"Outside","target":"Match","parameter":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]}}},{"key":{"name":"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":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}}}},"eventInputParameters":{"FirstConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTSERVER","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters","parameters":{"standalone":true,"host":"0.0.0.0","port":23324}},"eventProtocolParameters":{"eventProtocol":"JSON"},"synchronousMode":true,"synchronousPeer":"FirstProducer","synchronousTimeout":2000}},"eventOutputParameters":{"FirstProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTSERVER","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"synchronousMode":true,"synchronousPeer":"FirstConsumer","synchronousTimeout":2000}}},"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0","metadata":{"policy-id":"onap.policies.native.apex.Sampledomain","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"d5f6a2ce-ecbf-42a1-af72-3b5888ffa087","timestampMs":1711335211861,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | 2024-03-25 02:55:01,818 INFO 172.17.0.4 - - [25/Mar/2024:02:54:46 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:33.852490622Z level=info msg="Executing migration" id="Remove index org_id_dashboard_id_panel_id_epoch from annotation table" policy-apex-pdp | string_value: "INFO:root:Device Configuration After modification" policy-pap | [2024-03-25T02:53:32.083+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 48 ms simulator | 2024-03-25 02:55:01,819 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-db-migrator | > upgrade 0470-pdp.sql grafana | logger=migrator t=2024-03-25T02:52:33.854813518Z level=info msg="Migration successfully executed" id="Remove index org_id_dashboard_id_panel_id_epoch from annotation table" duration=2.322507ms policy-apex-pdp | } policy-pap | [2024-03-25T02:53:32.083+00:00|INFO|HttpClient|pool-3-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... simulator | 2024-03-25 02:55:01,819 INFO 172.17.0.4 - - [25/Mar/2024:02:54:46 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:33.860243725Z level=info msg="Executing migration" id="Add index for org_id_dashboard_id_epoch_end_epoch on annotation table" policy-apex-pdp | values { policy-pap | [2024-03-25T02:53:32.113+00:00|INFO|HttpClient|pool-3-thread-1] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:55:01,819 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-db-migrator | CREATE TABLE IF NOT EXISTS pdp (HEALTHY INT DEFAULT NULL, MESSAGE VARCHAR(255) DEFAULT NULL, PDPSTATE INT DEFAULT NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, PRIMARY KEY PK_PDP (parentLocalName, localName, parentKeyVersion, parentKeyName)) grafana | logger=migrator t=2024-03-25T02:52:33.861388762Z level=info msg="Migration successfully executed" id="Add index for org_id_dashboard_id_epoch_end_epoch on annotation table" duration=1.144557ms policy-apex-pdp | string_value: "INFO:root:http://10.101.200.10:32777/restconf/config/network-topology:network-topology/topology/topology-netconf/node/927b2580-36d9-4f13-8421-3c9d43b7a57e/yang-ext:mount" policy-pap | [2024-03-25T02:53:32.119+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] cambria reply ok (36 ms):{"serverTimeMs":0,"count":1} simulator | 2024-03-25 02:55:01,820 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:33.867146142Z level=info msg="Executing migration" id="Add index for org_id_epoch_end_epoch on annotation table" policy-apex-pdp | } policy-pap | [2024-03-25T02:53:32.144+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:55:01,820 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:33.86828687Z level=info msg="Migration successfully executed" id="Add index for org_id_epoch_end_epoch on annotation table" duration=1.141758ms policy-apex-pdp | values { policy-pap | [2024-03-25T02:53:32.148+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:55:01,821 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:33.876108744Z level=info msg="Executing migration" id="Remove index org_id_epoch_epoch_end from annotation table" policy-apex-pdp | string_value: "INFO:root:testhost-1212332324343" policy-pap | [2024-03-25T02:53:32.267+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] simulator | 2024-03-25 02:55:01,821 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-db-migrator | > upgrade 0480-pdpstatistics.sql grafana | logger=migrator t=2024-03-25T02:52:33.877949106Z level=info msg="Migration successfully executed" id="Remove index org_id_epoch_epoch_end from annotation table" duration=1.842302ms policy-apex-pdp | } simulator | 2024-03-25 02:55:03,348 INFO 172.17.0.9 - - [25/Mar/2024:02:54:48 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"MyApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"policy_type_impl":{"apexPolicyModel":{"key":{"name":"SamplePolicyModelJAVASCRIPT","version":"0.0.1"},"keyInformation":{"key":{"name":"KeyInformation","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"Context","version":"0.0.1"},"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Act1","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Act0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Task_Act0_DIRECT_Act_NULL"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Act_NULL"}}},{"key":{"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Decide3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide0_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide1_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide2_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide3_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}}]}}},{"key":"Establish","value":{"stateKey":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"},"trigger":{"name":"Event0001","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Establish_Decide","value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"},"outgoingEvent":{"name":"Event0002","version":"0.0.1"},"nextState":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Decide"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Establish2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish0_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish1_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish2_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish3_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}}]}}},{"key":"Match","value":{"stateKey":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Match"},"trigger":{"name":"Event0000","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Match_Establish","value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"},"outgoingEvent":{"name":"Event0001","version":"0.0.1"},"nextState":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"}}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Match0","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Match0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match0_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match1_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match2_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match3_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}}]}}}]},"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Act0","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Act0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Task_Act0_DIRECT_Act_NULL"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Act_NULL"}}},{"key":{"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Decide3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide0_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide1_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide2_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide3_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}}]}}},{"key":"Establish","value":{"stateKey":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"},"trigger":{"name":"Event0101","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Establish_Decide","value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"},"outgoingEvent":{"name":"Event0102","version":"0.0.1"},"nextState":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Decide"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Establish1","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish0_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish1_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish2_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish3_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}}]}}},{"key":"Match","value":{"stateKey":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Match"},"trigger":{"name":"Event0100","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Match_Establish","value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"},"outgoingEvent":{"name":"Event0101","version":"0.0.1"},"nextState":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Match3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Match0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match0_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match1_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match2_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act1","version":"0.0.1"},"value":{"key":{"name":"Task_Act1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act2","version":"0.0.1"},"value":{"key":{"name":"Task_Act2","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act3","version":"0.0.1"},"value":{"key":{"name":"Task_Act3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"name":"Task_Decide0","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"name":"Task_Decide1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Decide1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}},{"key":"Parameter1","value":{"key":{"parentKeyName":"Task_Decide1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter1"},"defaultValue":"DefaultValue1"}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"name":"Task_Decide3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"name":"Task_Establish0","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"name":"Task_Establish1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Establish1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}},{"key":"Parameter1","value":{"key":{"parentKeyName":"Task_Establish1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter1"},"defaultValue":"DefaultValue1"}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"name":"Task_Establish3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Establish3","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"name":"Task_Match1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"name":"Task_Match2","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match3","version":"0.0.1"},"value":{"key":{"name":"Task_Match3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}}]}},"events":{"key":{"name":"Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"Event0000","version":"0.0.1"},"value":{"key":{"name":"Event0000","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.sample.events","source":"Outside","target":"Match","parameter":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]}}},{"key":{"name":"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":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}}}},"eventInputParameters":{"FirstConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTSERVER","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters","parameters":{"standalone":true,"host":"0.0.0.0","port":23324}},"eventProtocolParameters":{"eventProtocol":"JSON"},"synchronousMode":true,"synchronousPeer":"FirstProducer","synchronousTimeout":2000}},"eventOutputParameters":{"FirstProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTSERVER","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"synchronousMode":true,"synchronousPeer":"FirstConsumer","synchronousTimeout":2000}}},"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0","metadata":{"policy-id":"onap.policies.native.apex.Sampledomain","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"d5f6a2ce-ecbf-42a1-af72-3b5888ffa087","timestampMs":1711335211861,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:33.882558558Z level=info msg="Executing migration" id="Add index for alert_id on annotation table" policy-apex-pdp | } simulator | 2024-03-25 02:55:03,368 INFO 172.17.0.8 - - [25/Mar/2024:02:54:48 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | CREATE TABLE IF NOT EXISTS pdpstatistics (PDPGROUPNAME VARCHAR(120) NULL, PDPSUBGROUPNAME VARCHAR(120) NULL, POLICYDEPLOYCOUNT BIGINT DEFAULT NULL, POLICYDEPLOYFAILCOUNT BIGINT DEFAULT NULL, POLICYDEPLOYSUCCESSCOUNT BIGINT DEFAULT NULL, POLICYEXECUTEDCOUNT BIGINT DEFAULT NULL, POLICYEXECUTEDFAILCOUNT BIGINT DEFAULT NULL, POLICYEXECUTEDSUCCESSCOUNT BIGINT DEFAULT NULL, timeStamp datetime NOT NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_PDPSTATISTICS (timeStamp, name, version)) policy-pap | [2024-03-25T02:53:32.277+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_UPDATE grafana | logger=migrator t=2024-03-25T02:52:33.883861637Z level=info msg="Migration successfully executed" id="Add index for alert_id on annotation table" duration=1.303739ms policy-apex-pdp | } simulator | 2024-03-25 02:55:03,661 INFO 172.17.0.8 - - [25/Mar/2024:02:54:48 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:32.277+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.890588053Z level=info msg="Executing migration" id="Increase tags column to length 4096" policy-apex-pdp | } simulator | 2024-03-25 02:55:16,826 INFO --> HTTP/1.1 200 OK policy-db-migrator | policy-pap | [2024-03-25T02:53:32.277+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.890757754Z level=info msg="Migration successfully executed" id="Increase tags column to length 4096" duration=175.621µs policy-apex-pdp | fields { simulator | 2024-03-25 02:55:16,826 INFO --> HTTP/1.1 200 OK policy-db-migrator | policy-pap | [2024-03-25T02:53:32.279+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:33.901020024Z level=info msg="Executing migration" id="create test_data table" policy-apex-pdp | key: "prepare-environment-logs" simulator | 2024-03-25 02:55:16,827 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-db-migrator | > upgrade 0490-pdpsubgroup_pdp.sql policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"MyApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"policy_type_impl":{"apexPolicyModel":{"key":{"name":"SamplePolicyModelJAVASCRIPT","version":"0.0.1"},"keyInformation":{"key":{"name":"KeyInformation","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"Context","version":"0.0.1"},"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Act1","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Act0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Task_Act0_DIRECT_Act_NULL"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Act_NULL"}}},{"key":{"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Decide3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide0_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide1_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide2_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide3_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}}]}}},{"key":"Establish","value":{"stateKey":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"},"trigger":{"name":"Event0001","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Establish_Decide","value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"},"outgoingEvent":{"name":"Event0002","version":"0.0.1"},"nextState":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Decide"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Establish2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish0_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish1_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish2_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish3_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}}]}}},{"key":"Match","value":{"stateKey":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Match"},"trigger":{"name":"Event0000","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Match_Establish","value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"},"outgoingEvent":{"name":"Event0001","version":"0.0.1"},"nextState":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"}}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Match0","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Match0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match0_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match1_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match2_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match3_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy0","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}}]}}}]},"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Act0","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Act0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Task_Act0_DIRECT_Act_NULL"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Act","localName":"Act_NULL"}}},{"key":{"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\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Decide3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide0_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide1_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide2_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Task_Decide3_DIRECT_Decide_Act"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Decide","localName":"Decide_Act"}}}]}}},{"key":"Establish","value":{"stateKey":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"},"trigger":{"name":"Event0101","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Establish_Decide","value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"},"outgoingEvent":{"name":"Event0102","version":"0.0.1"},"nextState":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Decide"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Establish1","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish0_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish1_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish2_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Task_Establish3_DIRECT_Establish_Decide"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Establish","localName":"Establish_Decide"}}}]}}},{"key":"Match","value":{"stateKey":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Match"},"trigger":{"name":"Event0100","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"Match_Establish","value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"},"outgoingEvent":{"name":"Event0101","version":"0.0.1"},"nextState":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Establish"}}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy1ContextAlbum","version":"0.0.1"}],"taskSelectionLogic":{"key":"TaskSelectionLigic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.subject.defaultTaskKey.copyTo(executor.selectedTask)\n\ntrue;"},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"Task_Match3","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"Task_Match0","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match0_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match1_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Task_Match2_DIRECT_Match_Establish"},"outputType":"DIRECT","output":{"parentKeyName":"Policy1","parentKeyVersion":"0.0.1","parentLocalName":"Match","localName":"Match_Establish"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act1","version":"0.0.1"},"value":{"key":{"name":"Task_Act1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act2","version":"0.0.1"},"value":{"key":{"name":"Task_Act2","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Act3","version":"0.0.1"},"value":{"key":{"name":"Task_Act3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestActCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestActStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide0","version":"0.0.1"},"value":{"key":{"name":"Task_Decide0","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide1","version":"0.0.1"},"value":{"key":{"name":"Task_Decide1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestDecideCaseSelected","value":{"key":"TestDecideCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestDecideStateTime","value":{"key":"TestDecideStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Decide1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}},{"key":"Parameter1","value":{"key":{"parentKeyName":"Task_Decide1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter1"},"defaultValue":"DefaultValue1"}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Decide3","version":"0.0.1"},"value":{"key":{"name":"Task_Decide3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestDecideCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestDecideStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish0","version":"0.0.1"},"value":{"key":{"name":"Task_Establish0","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish1","version":"0.0.1"},"value":{"key":{"name":"Task_Establish1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Establish1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}},{"key":"Parameter1","value":{"key":{"parentKeyName":"Task_Establish1","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter1"},"defaultValue":"DefaultValue1"}}]},"contextAlbumReference":[{"name":"GlobalContextAlbum","version":"0.0.1"},{"name":"Policy0ContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Establish3","version":"0.0.1"},"value":{"key":{"name":"Task_Establish3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"TestEstablishCaseSelected","value":{"key":"TestEstablishCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestEstablishStateTime","value":{"key":"TestEstablishStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchCaseSelected","value":{"key":"TestMatchCaseSelected","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestMatchStateTime","value":{"key":"TestMatchStateTime","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[{"key":"Parameter0","value":{"key":{"parentKeyName":"Task_Establish3","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"Parameter0"},"defaultValue":"DefaultValue0"}}]},"contextAlbumReference":[{"name":"ExternalContextAlbum","version":"0.0.1"},{"name":"GlobalContextAlbum","version":"0.0.1"}],"taskLogic":{"key":"_TaskLogic","logicFlavour":"JAVASCRIPT","logic":"/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2016-2018 Ericsson. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n * \n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.debug(executor.subject.id);\nvar gc = executor.getContextAlbum(\"GlobalContextAlbum\");\nexecutor.logger.debug(gc.name);\nexecutor.logger.debug(executor.inFields);\n\nvar caseSelectedType = java.lang.Byte;\nexecutor.outFields.put(\"TestEstablishCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestEstablishStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(2));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match1","version":"0.0.1"},"value":{"key":{"name":"Task_Match1","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(3));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match2","version":"0.0.1"},"value":{"key":{"name":"Task_Match2","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(0));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}},{"key":{"name":"Task_Match3","version":"0.0.1"},"value":{"key":{"name":"Task_Match3","version":"0.0.1"},"inputFields":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]},"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.lang.Byte;\nexecutor.outFields.put(\"TestMatchCaseSelected\", new caseSelectedType(1));\n\nvar JavaDate = java.util.Date;\ntimeNow = new JavaDate();\nexecutor.outFields.put(\"TestMatchStateTime\", timeNow.getTime());\nexecutor.logger.debug(executor.eo);\n\ntrue;"}}}]}},"events":{"key":{"name":"Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"Event0000","version":"0.0.1"},"value":{"key":{"name":"Event0000","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.sample.events","source":"Outside","target":"Match","parameter":{"entry":[{"key":"TestMatchCase","value":{"key":"TestMatchCase","fieldSchemaKey":{"name":"TestCase","version":"0.0.1"},"optional":false}},{"key":"TestSlogan","value":{"key":"TestSlogan","fieldSchemaKey":{"name":"TestSlogan","version":"0.0.1"},"optional":false}},{"key":"TestTemperature","value":{"key":"TestTemperature","fieldSchemaKey":{"name":"TestTemperature","version":"0.0.1"},"optional":false}},{"key":"TestTimestamp","value":{"key":"TestTimestamp","fieldSchemaKey":{"name":"TestTimestamp","version":"0.0.1"},"optional":false}}]}}},{"key":{"name":"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":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}}}},"eventInputParameters":{"FirstConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTSERVER","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters","parameters":{"standalone":true,"host":"0.0.0.0","port":23324}},"eventProtocolParameters":{"eventProtocol":"JSON"},"synchronousMode":true,"synchronousPeer":"FirstProducer","synchronousTimeout":2000}},"eventOutputParameters":{"FirstProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTSERVER","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restserver.RestServerCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"synchronousMode":true,"synchronousPeer":"FirstConsumer","synchronousTimeout":2000}}},"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0","metadata":{"policy-id":"onap.policies.native.apex.Sampledomain","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"d5f6a2ce-ecbf-42a1-af72-3b5888ffa087","timestampMs":1711335211861,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:33.902791347Z level=info msg="Migration successfully executed" id="create test_data table" duration=1.778653ms policy-apex-pdp | value { simulator | 2024-03-25 02:55:16,827 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:32.286+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-HEARTBEAT] discarding event of type PDP_UPDATE grafana | logger=migrator t=2024-03-25T02:52:33.90618129Z level=info msg="Executing migration" id="create dashboard_version table v1" policy-apex-pdp | list_value { simulator | 2024-03-25 02:55:16,827 INFO 172.17.0.4 - - [25/Mar/2024:02:55:01 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | CREATE TABLE IF NOT EXISTS pdpsubgroup_pdp (pdpParentKeyName VARCHAR(120) NOT NULL, pdpParentKeyVersion VARCHAR(15) NOT NULL, pdpParentLocalName VARCHAR(120) NOT NULL, pdpLocalName VARCHAR(120) NOT NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, PRIMARY KEY PK_PDPSUBGROUP_PDP (pdpParentKeyName, pdpParentKeyVersion, pdpParentLocalName, pdpLocalName, parentLocalName, localName, parentKeyVersion, parentKeyName)) policy-pap | [2024-03-25T02:53:32.286+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:33.907516809Z level=info msg="Migration successfully executed" id="create dashboard_version table v1" duration=1.335029ms policy-apex-pdp | values { simulator | 2024-03-25 02:55:16,827 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-db-migrator | -------------- policy-pap | [2024-03-25T02:53:32.286+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:33.914740278Z level=info msg="Executing migration" id="add index dashboard_version.dashboard_id" policy-apex-pdp | string_value: "Installed pip packages:\n requirements.txt\n\n" simulator | 2024-03-25 02:55:16,828 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-db-migrator | policy-pap | [2024-03-25T02:53:33.283+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:33.916103798Z level=info msg="Migration successfully executed" id="add index dashboard_version.dashboard_id" duration=1.35759ms policy-apex-pdp | } simulator | 2024-03-25 02:55:16,829 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-db-migrator | policy-pap | [2024-03-25T02:53:33.283+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:33.925019659Z level=info msg="Executing migration" id="add unique index dashboard_version.dashboard_id and dashboard_version.version" policy-apex-pdp | } simulator | 2024-03-25 02:55:16,829 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-db-migrator | > upgrade 0500-pdpsubgroup.sql policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:33.263878Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":1,"policyDeploySuccessCount":1,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213003,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200}]},"response":{"responseTo":"d5f6a2ce-ecbf-42a1-af72-3b5888ffa087","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.native.apex.Sampledomain:1.0.0 "},"messageName":"PDP_STATUS","requestId":"cb959104-8661-475e-b9a4-0eb028f284ca","timestampMs":1711335213263,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.926323558Z level=info msg="Migration successfully executed" id="add unique index dashboard_version.dashboard_id and dashboard_version.version" duration=1.305539ms simulator | 2024-03-25 02:55:16,830 INFO 172.17.0.4 - - [25/Mar/2024:02:55:01 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.285+00:00|INFO|RequestIdDispatcher|DMAAP-source-POLICY-HEARTBEAT] no listener for request id d5f6a2ce-ecbf-42a1-af72-3b5888ffa087 policy-db-migrator | -------------- policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.931826395Z level=info msg="Executing migration" id="Set dashboard version to 1 where 0" simulator | 2024-03-25 02:55:18,362 INFO 172.17.0.9 - - [25/Mar/2024:02:55:03 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.285+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-db-migrator | CREATE TABLE IF NOT EXISTS pdpsubgroup (CURRENTINSTANCECOUNT INT DEFAULT NULL, DESIREDINSTANCECOUNT INT DEFAULT NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, PRIMARY KEY PK_PDPSUBGROUP (parentLocalName, localName, parentKeyVersion, parentKeyName)) policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.932102188Z level=info msg="Migration successfully executed" id="Set dashboard version to 1 where 0" duration=274.833µs simulator | 2024-03-25 02:55:18,374 INFO 172.17.0.8 - - [25/Mar/2024:02:55:03 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.285+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | -------------- policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.937623505Z level=info msg="Executing migration" id="save existing dashboard data in dashboard_version table v1" simulator | 2024-03-25 02:55:18,667 INFO 172.17.0.8 - - [25/Mar/2024:02:55:03 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.285+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-db-migrator | policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.938335921Z level=info msg="Migration successfully executed" id="save existing dashboard data in dashboard_version table v1" duration=714.726µs simulator | 2024-03-25 02:55:23,233 INFO 172.17.0.9 - - [25/Mar/2024:02:55:18 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 1844 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.286+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-db-migrator | policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:33.947526413Z level=info msg="Executing migration" id="alter dashboard_version.data to mediumtext v1" simulator | 2024-03-25 02:55:23,233 INFO 172.17.0.8 - - [25/Mar/2024:02:55:18 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 1844 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:53:33.263878Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":0,"policyExecutedSuccessCount":0,"policyExecutedFailCount":0,"policyDeployCount":1,"policyDeploySuccessCount":1,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213003,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200}]},"response":{"responseTo":"d5f6a2ce-ecbf-42a1-af72-3b5888ffa087","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.native.apex.Sampledomain:1.0.0 "},"messageName":"PDP_STATUS","requestId":"cb959104-8661-475e-b9a4-0eb028f284ca","timestampMs":1711335213263,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | > upgrade 0510-toscacapabilityassignment.sql policy-apex-pdp | grafana | logger=migrator t=2024-03-25T02:52:33.947982486Z level=info msg="Migration successfully executed" id="alter dashboard_version.data to mediumtext v1" duration=462.783µs simulator | 2024-03-25 02:55:23,234 INFO 172.17.0.8 - - [25/Mar/2024:02:55:18 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 1844 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.287+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:32.370+00:00|INFO|CdsProcessorHandler|grpc-default-executor-1] Completed blueprint(1.0.4:controlloop-hostname-update) for action(1.0.4) grafana | logger=migrator t=2024-03-25T02:52:33.954849314Z level=info msg="Executing migration" id="create team table" simulator | 2024-03-25 02:55:23,235 INFO 172.17.0.9 - - [25/Mar/2024:02:55:23 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.287+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping enqueue policy-db-migrator | CREATE TABLE IF NOT EXISTS toscacapabilityassignment (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, type_name VARCHAR(255) NULL, type_version VARCHAR(255) NULL, PRIMARY KEY PK_TOSCACAPABILITYASSIGNMENT(name, version)) policy-apex-pdp | [2024-03-25T02:55:32.394+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:2] [{component={"name": "Policy", "flavour": "Apex-PDP", "timestamp": 1711335332392, "status": "FINAL_SUCCESS", "message": "Successfully processed the VES event. Hostname is updated.", "artifacts": {"policyName": "onap.policies.apex.Simplecontrolloop", "policyVersion": "1.0.0"}}, id=8c7935a4-79d8-4ec0-b661-dcca3cd68006, otherFields={"useCaseName": "simple-controlloop-usecase"}, target={"targetType": "PNF", "entityInfo": {"pnf_DasH_name": "demo-pnf"}}}] grafana | logger=migrator t=2024-03-25T02:52:33.956358514Z level=info msg="Migration successfully executed" id="create team table" duration=1.50885ms simulator | 2024-03-25 02:55:26,144 INFO 172.17.0.8 - - [25/Mar/2024:02:55:23 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 88269 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.287+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping timer policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:32.398+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [OUT|REST|http://message-router:3904/events/APEX-CL-MGT] grafana | logger=migrator t=2024-03-25T02:52:33.962223784Z level=info msg="Executing migration" id="add index team.org_id" simulator | 2024-03-25 02:55:26,145 INFO 172.17.0.8 - - [25/Mar/2024:02:55:26 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.287+00:00|INFO|TimerManager|DMAAP-source-POLICY-PDP-PAP] update timer cancelled Timer [name=d5f6a2ce-ecbf-42a1-af72-3b5888ffa087, expireMs=1711335241998] policy-db-migrator | policy-apex-pdp | { grafana | logger=migrator t=2024-03-25T02:52:33.963443953Z level=info msg="Migration successfully executed" id="add index team.org_id" duration=1.216119ms simulator | 2024-03-25 02:55:26,149 INFO 172.17.0.9 - - [25/Mar/2024:02:55:23 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 88269 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.292+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping listener policy-db-migrator | policy-apex-pdp | "name": "SimpleCL_LogEvent", grafana | logger=migrator t=2024-03-25T02:52:33.968017924Z level=info msg="Executing migration" id="add unique index team_org_id_name" simulator | 2024-03-25 02:55:26,155 INFO 172.17.0.8 - - [25/Mar/2024:02:55:23 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 88269 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.292+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopped policy-db-migrator | > upgrade 0520-toscacapabilityassignments.sql policy-apex-pdp | "version": "0.0.1", grafana | logger=migrator t=2024-03-25T02:52:33.969234453Z level=info msg="Migration successfully executed" id="add unique index team_org_id_name" duration=1.210669ms simulator | 2024-03-25 02:55:26,928 INFO 172.17.0.9 - - [25/Mar/2024:02:55:26 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.303+00:00|INFO|RequestImpl|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate successful policy-db-migrator | -------------- policy-apex-pdp | "nameSpace": "org.onap.policy.apex.simplecontrolloop", grafana | logger=migrator t=2024-03-25T02:52:33.976905595Z level=info msg="Executing migration" id="Add column uid in team" simulator | 2024-03-25 02:55:26,929 INFO 172.17.0.8 - - [25/Mar/2024:02:55:26 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 3095 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.303+00:00|INFO|PdpRequests|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 has no more requests policy-db-migrator | CREATE TABLE IF NOT EXISTS toscacapabilityassignments (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCACAPABILITYASSIGNMENTS (name, version)) policy-apex-pdp | "source": "APEX", grafana | logger=migrator t=2024-03-25T02:52:33.981822089Z level=info msg="Migration successfully executed" id="Add column uid in team" duration=4.919054ms simulator | 2024-03-25 02:55:26,929 INFO 172.17.0.9 - - [25/Mar/2024:02:55:26 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 3095 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.308+00:00|INFO|network|Thread-8] [OUT|DMAAP|POLICY-NOTIFICATION] policy-db-migrator | -------------- policy-apex-pdp | "target": { grafana | logger=migrator t=2024-03-25T02:52:34.016739146Z level=info msg="Executing migration" id="Update uid column values in team" simulator | 2024-03-25 02:55:26,928 INFO 172.17.0.8 - - [25/Mar/2024:02:55:26 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 3095 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | {"deployed-policies":[{"policy-type":"onap.policies.native.Apex","policy-type-version":"1.0.0","policy-id":"onap.policies.native.apex.Sampledomain","policy-version":"1.0.0","success-count":1,"failure-count":0,"incomplete-count":0}],"undeployed-policies":[]} policy-db-migrator | policy-apex-pdp | "targetType": "PNF", grafana | logger=migrator t=2024-03-25T02:52:34.017360403Z level=info msg="Migration successfully executed" id="Update uid column values in team" duration=631.307µs simulator | 2024-03-25 02:55:26,991 INFO 172.17.0.8 - - [25/Mar/2024:02:55:26 +0000] "POST /events/POLICY-NOTIFICATION HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:53:33.336+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] sending 1 msgs to /events/POLICY-NOTIFICATION. Oldest: 27 ms policy-db-migrator | policy-apex-pdp | "entityInfo": { grafana | logger=migrator t=2024-03-25T02:52:34.022735134Z level=info msg="Executing migration" id="Add unique index team_org_id_uid" simulator | 2024-03-25 02:55:27,138 INFO Topic unauthenticated.DCAE_CL_OUTPUT: added simulator | 2024-03-25 02:55:27,138 INFO Topic unauthenticated.DCAE_CL_OUTPUT: add consumer group: cl policy-apex-pdp | "pnf-name": "demo-pnf" grafana | logger=migrator t=2024-03-25T02:52:34.02416771Z level=info msg="Migration successfully executed" id="Add unique index team_org_id_uid" duration=1.437306ms grafana | logger=migrator t=2024-03-25T02:52:34.028667192Z level=info msg="Executing migration" id="create team member table" policy-pap | [2024-03-25T02:53:33.336+00:00|INFO|HttpClient|pool-4-thread-1] POST http://message-router:3904/events/POLICY-NOTIFICATION (anonymous) ... policy-db-migrator | > upgrade 0530-toscacapabilityassignments_toscacapabilityassignment.sql policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:34.029473721Z level=info msg="Migration successfully executed" id="create team member table" duration=806.369µs simulator | 2024-03-25 02:55:31,321 INFO Topic APEX-CL-MGT: added policy-pap | [2024-03-25T02:53:33.342+00:00|INFO|HttpClient|pool-4-thread-1] --> HTTP/1.1 200 OK policy-db-migrator | -------------- policy-apex-pdp | }, grafana | logger=migrator t=2024-03-25T02:52:34.040685699Z level=info msg="Executing migration" id="add index team_member.org_id" simulator | 2024-03-25 02:55:31,322 INFO Topic APEX-CL-MGT: add consumer group: script policy-pap | [2024-03-25T02:53:33.343+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] cambria reply ok (7 ms):{"serverTimeMs":0,"count":1} policy-db-migrator | CREATE TABLE IF NOT EXISTS toscacapabilityassignments_toscacapabilityassignment (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCACAPABILITYASSIGNMENTS_TOSCACAPABILITYASSIGNMENT (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion)) policy-apex-pdp | "toscaPolicyState": "", grafana | logger=migrator t=2024-03-25T02:52:34.042313788Z level=info msg="Migration successfully executed" id="add index team_member.org_id" duration=1.635079ms policy-pap | [2024-03-25T02:53:33.618+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | 2024-03-25 02:55:31,323 INFO 172.17.0.1 - - [25/Mar/2024:02:55:31 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1&timeout=0 HTTP/1.1" 200 2 "-" "python-requests/2.27.1" policy-db-migrator | -------------- policy-apex-pdp | "component": { grafana | logger=migrator t=2024-03-25T02:52:34.048217796Z level=info msg="Executing migration" id="add unique index team_member_org_id_team_id_user_id" policy-pap | [2024-03-25T02:53:33.619+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:55:31,341 INFO 172.17.0.1 - - [25/Mar/2024:02:55:31 +0000] "POST /events/unauthenticated.DCAE_CL_OUTPUT HTTP/1.1" 200 28 "-" "python-requests/2.27.1" policy-db-migrator | policy-apex-pdp | "name": "Policy", grafana | logger=migrator t=2024-03-25T02:52:34.050427411Z level=info msg="Migration successfully executed" id="add unique index team_member_org_id_team_id_user_id" duration=2.209065ms policy-pap | [2024-03-25T02:53:48.291+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:55:31,342 INFO 172.17.0.9 - - [25/Mar/2024:02:55:27 +0000] "GET /events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000 HTTP/1.1" 200 668 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-db-migrator | policy-apex-pdp | "flavour": "Apex-PDP", grafana | logger=migrator t=2024-03-25T02:52:34.055452439Z level=info msg="Executing migration" id="add index team_member.team_id" policy-pap | [2024-03-25T02:53:48.291+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 simulator | 2024-03-25 02:55:31,467 INFO 172.17.0.9 - - [25/Mar/2024:02:55:31 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-db-migrator | > upgrade 0540-toscacapabilitytype.sql policy-apex-pdp | "timestamp": 1.711335332392E12, grafana | logger=migrator t=2024-03-25T02:52:34.056953146Z level=info msg="Migration successfully executed" id="add index team_member.team_id" duration=1.502787ms policy-pap | [2024-03-25T02:53:48.292+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:55:31,469 INFO 172.17.0.1 - - [25/Mar/2024:02:55:31 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 646 "-" "python-requests/2.27.1" policy-db-migrator | -------------- policy-apex-pdp | "status": "FINAL_SUCCESS", grafana | logger=migrator t=2024-03-25T02:52:34.068944753Z level=info msg="Executing migration" id="Add column email to team table" policy-pap | [2024-03-25T02:53:48.625+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:55:31,508 INFO 172.17.0.9 - - [25/Mar/2024:02:55:31 +0000] "GET /aai/v16/network/pnfs/pnf/demo-pnf HTTP/1.1" 200 283 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-db-migrator | CREATE TABLE IF NOT EXISTS toscacapabilitytype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCACAPABILITYTYPE (name, version)) policy-apex-pdp | "message": "Successfully processed the VES event. Hostname is updated.", grafana | logger=migrator t=2024-03-25T02:52:34.076093385Z level=info msg="Migration successfully executed" id="Add column email to team table" duration=7.144463ms policy-pap | [2024-03-25T02:53:48.625+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | 2024-03-25 02:55:31,552 INFO 172.17.0.9 - - [25/Mar/2024:02:55:31 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-db-migrator | -------------- policy-apex-pdp | "artifacts": { grafana | logger=migrator t=2024-03-25T02:52:34.081926571Z level=info msg="Executing migration" id="Add column external to team_member table" policy-pap | [2024-03-25T02:53:48.626+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:55:31,552 INFO 172.17.0.1 - - [25/Mar/2024:02:55:31 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 724 "-" "python-requests/2.27.1" policy-db-migrator | policy-apex-pdp | "policyName": "onap.policies.apex.Simplecontrolloop", grafana | logger=migrator t=2024-03-25T02:52:34.089939063Z level=info msg="Migration successfully executed" id="Add column external to team_member table" duration=8.018222ms policy-pap | [2024-03-25T02:53:53.571+00:00|INFO|TimerManager|Thread-9] update timer discarded (expired) Timer [name=785069ca-7625-46ce-9b32-da2e861548de, expireMs=1711335233570] simulator | 2024-03-25 02:55:31,834 INFO --> HTTP/1.1 200 OK policy-db-migrator | policy-apex-pdp | "policyVersion": "1.0.0" grafana | logger=migrator t=2024-03-25T02:52:34.09576533Z level=info msg="Executing migration" id="Add column permission to team_member table" policy-pap | [2024-03-25T02:53:53.773+00:00|INFO|TimerManager|Thread-10] state-change timer discarded (expired) Timer [name=addcf1b1-662b-4ca2-be67-dd35881b741e, expireMs=1711335233773] simulator | 2024-03-25 02:55:31,834 INFO 172.17.0.4 - - [25/Mar/2024:02:55:16 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | > upgrade 0550-toscacapabilitytypes.sql policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:34.104924314Z level=info msg="Migration successfully executed" id="Add column permission to team_member table" duration=9.156434ms policy-pap | [2024-03-25T02:54:03.298+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:55:31,834 INFO 172.17.0.4 - - [25/Mar/2024:02:55:16 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- policy-apex-pdp | }, grafana | logger=migrator t=2024-03-25T02:52:34.116580228Z level=info msg="Executing migration" id="create dashboard acl table" policy-pap | [2024-03-25T02:54:03.299+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 simulator | 2024-03-25 02:55:31,834 INFO --> HTTP/1.1 200 OK policy-db-migrator | CREATE TABLE IF NOT EXISTS toscacapabilitytypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCACAPABILITYTYPES (name, version)) policy-apex-pdp | "id": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", grafana | logger=migrator t=2024-03-25T02:52:34.118558221Z level=info msg="Migration successfully executed" id="create dashboard acl table" duration=1.986214ms policy-pap | [2024-03-25T02:54:03.299+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:55:31,834 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-db-migrator | -------------- policy-apex-pdp | "otherFields": { grafana | logger=migrator t=2024-03-25T02:52:34.124774661Z level=info msg="Executing migration" id="add index dashboard_acl_dashboard_id" policy-pap | [2024-03-25T02:54:03.633+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:55:31,834 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-db-migrator | policy-apex-pdp | "useCaseName": "simple-controlloop-usecase" grafana | logger=migrator t=2024-03-25T02:52:34.126015486Z level=info msg="Migration successfully executed" id="add index dashboard_acl_dashboard_id" duration=1.240425ms policy-pap | [2024-03-25T02:54:03.633+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | 2024-03-25 02:55:31,835 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-db-migrator | policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:34.135606626Z level=info msg="Executing migration" id="add unique index dashboard_acl_dashboard_id_user_id" policy-pap | [2024-03-25T02:54:03.634+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:55:31,835 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-db-migrator | > upgrade 0560-toscacapabilitytypes_toscacapabilitytype.sql policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:34.137491697Z level=info msg="Migration successfully executed" id="add unique index dashboard_acl_dashboard_id_user_id" duration=1.885691ms policy-pap | [2024-03-25T02:54:18.306+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK simulator | 2024-03-25 02:55:31,835 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:32.404+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [IN|REST|http://message-router:3904/events/APEX-CL-MGT] grafana | logger=migrator t=2024-03-25T02:52:34.141956208Z level=info msg="Executing migration" id="add unique index dashboard_acl_dashboard_id_team_id" policy-pap | [2024-03-25T02:54:18.306+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 simulator | 2024-03-25 02:55:31,835 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-db-migrator | CREATE TABLE IF NOT EXISTS toscacapabilitytypes_toscacapabilitytype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCACAPABILITYTYPES_TOSCACAPABILITYTYPE (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion)) policy-apex-pdp | {"serverTimeMs":0,"count":1} grafana | logger=migrator t=2024-03-25T02:52:34.143348694Z level=info msg="Migration successfully executed" id="add unique index dashboard_acl_dashboard_id_team_id" duration=1.390056ms policy-pap | [2024-03-25T02:54:18.306+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:55:32,248 INFO Received request input to CDS: commonHeader { policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:33.122+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:34.148561724Z level=info msg="Executing migration" id="add index dashboard_acl_user_id" policy-pap | [2024-03-25T02:54:18.640+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | requestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:33.127+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:34.149615476Z level=info msg="Migration successfully executed" id="add index dashboard_acl_user_id" duration=1.052972ms policy-pap | [2024-03-25T02:54:18.641+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | subRequestId: "927b2580-36d9-4f13-8421-3c9d43b7a57e" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:34.155736096Z level=info msg="Executing migration" id="add index dashboard_acl_team_id" policy-apex-pdp | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":5,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT"}]},"policy_type_impl":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"fc0c1892-a2ae-3678-818f-b9b23939b241","description":"Generated description for concept referred to by key \"ApexExample_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"ba931e7e-aee9-3af8-98d8-16b92a909e8a","description":"Generated description for concept referred to by key \"ApexExample_AAIFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"UUID":"b4dd59c5-0169-3810-800c-1396c2206de4","description":"Generated description for concept referred to by key \"ApexExample_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"UUID":"599c297e-96c8-3b21-ad1c-e643bddeacbf","description":"Generated description for concept referred to by key \"ApexExample_AAIRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"b5e3f122-2dcd-3cdf-a0ec-8210b3f80478","description":"Generated description for concept referred to by key \"ApexExample_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"15504e23-78c5-305e-9fce-cf1f50e75013","description":"Generated description for concept referred to by key \"ApexExample_AAISuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"e2715e7d-835e-32c7-b433-a2e92bcad6ee","description":"Generated description for concept referred to by key \"ApexExample_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"b492e841-2c03-36a9-9ec2-dda5852152c3","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"ef4e45f4-1181-3121-a3b6-507126df25e7","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"UUID":"91cb711a-0c73-3f51-83e6-fca9c547c71d","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"dda3c648-dc8b-38e0-855d-9cb72397f957","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"96b306bd-6dee-3d47-981c-eaac316d5ae1","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"1b65abfb-ce35-3765-9b9c-d2ee02bef28b","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"4dac3de7-3817-396f-91d6-ce701d162877","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"UUID":"92dc9e6b-2082-3d90-ba5e-f2dba18b72b6","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"a6801c93-f15b-3158-ba33-7760197d3609","description":"Generated description for concept referred to by key \"ApexExample_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"e2da0a15-c542-3e77-874d-4512e9b4162e","description":"Generated description for concept referred to by key \"ApexExample_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"f54edff0-532f-3142-8e65-a5c9d67888ef","description":"Generated description for concept referred to by key \"ApexExample_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"UUID":"b967dc44-a156-32d3-a796-f03dbf74316c","description":"Generated description for concept referred to by key \"ApexExample_CDSRequestPayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"UUID":"f2aa4552-069d-3db8-8638-2d1f59124e7a","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"c2e3b07f-2c09-3195-9527-6b3ab0666d61","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"UUID":"a7c28cc1-9fe5-30b7-9dd8-5a4f7f7d811e","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"UUID":"d01d1022-48ac-391d-904d-282ccb063f8a","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"UUID":"ad8cbd94-6eb5-3743-8a7d-42cbe49a5320","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartResponsePayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"UUID":"bbb06330-9161-392e-a0ca-a6bb5e3376af","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"70c6c6e5-00da-30cb-8ec0-14437d657f39","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"UUID":"77f16151-80b5-304c-a448-19d8528feed1","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"2f17aee2-fbdf-3c41-a779-f9c17b5bda5b","description":"Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"8c554852-3ed6-3027-a0d3-fccd2db19875","description":"Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"UUID":"b402baca-915b-3952-97fc-d9899f9ca81c","description":"Generated description for concept referred to by key \"ApexExample_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"UUID":"3626f32a-eee6-3254-b3d4-e4829518c381","description":"Generated description for concept referred to by key \"ApexExample_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"UUID":"87abb453-a919-3131-8ffb-3e5c910c6049","description":"Generated description for concept referred to by key \"ApexExample_HandleAAIFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"UUID":"8881e644-3cca-3aec-8201-312ca6f719e0","description":"Generated description for concept referred to by key \"ApexExample_HandleAAISuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"UUID":"057f6ddd-d6aa-3ce2-a060-d344de16d7f3","description":"Generated description for concept referred to by key \"ApexExample_HandleVesEventTask:0.0.1\""}},{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"UUID":"4867b1e7-a819-3b9f-be2b-a97fe6019827","description":"Generated description for concept referred to by key \"ApexExample_LogStatusEvent:0.0.1\""}},{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"UUID":"975b3071-b775-3617-a888-f831fe5a31db","description":"Generated description for concept referred to by key \"ApexExample_VesEvent:0.0.1\""}},{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"UUID":"ad9efe17-a03e-3b64-8e8a-51e144f57d2c","description":"Generated description for concept referred to by key \"ApexExample_VesEventHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"UUID":"0054393c-10df-3214-af86-cb04a23325bf","description":"Generated description for concept referred to by key \"ApexExample_VesEventType:0.0.1\""}},{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"UUID":"865a5903-201b-34ff-918b-2bfdde743576","description":"Generated description for concept referred to by key \"ApexExample_VnfRelationShipListType:0.0.1\""}},{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"UUID":"b2501730-8870-3475-b22a-4a4d22792ebb","description":"Generated description for concept referred to by key \"onap.policies.apex.Example:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"UUID":"7dc5f49d-c291-38de-bcae-1db30d00581f","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"UUID":"06b3112b-ae8b-3f37-8aa6-f539c0250550","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"UUID":"454848e1-43ac-3ce4-bfdc-b9b6271dc563","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"UUID":"24c3fca5-b0dd-398c-83ee-66a187296b32","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"UUID":"c6aff774-f50a-329d-a731-9c23a6e7e02e","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"UUID":"f856a6df-6237-3acc-aa68-f55e64cc0ec9","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveAAIFailureResponseState"},"trigger":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_AAIFailureStateOutput","value":{"key":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureStateOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureStateOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveAAIFailureResponseState"}},{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveAAISuccessResponseState"},"trigger":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_AAISuccessStateOutput","value":{"key":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessStateOutput"},"outgoingEvent":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessStateOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveAAISuccessResponseState"}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSConfigModifyFailureResponseState"},"trigger":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSConfigModifyFailureResponseState"}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSConfigModifySuccessResponseState"},"trigger":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSConfigModifySuccessResponseState"}},{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSRestartFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSRestartFailureResponseState"},"trigger":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_RestartFailureResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_RestartFailureResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_CDSRestartFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_RestartFailureResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSRestartFailureResponseState"}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSRestartSuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSRestartSuccessResponseState"},"trigger":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_RestartSuccessResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_RestartSuccessResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_RestartSuccessResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSRestartSuccessResponseState"}},{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveVesState","value":{"stateKey":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveVesState"},"trigger":{"name":"ApexExample_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_VesOutput","value":{"key":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesOutput"},"outgoingEvent":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesEventHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nerrorMessage = errorMessage.replace(/\"/g, '\\\\\\\"')\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime());\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\nvar vnfDetails = eventDetailsAlbum.get(\"vnfDetails\");\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"restart\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-name\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"restart_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(+executor.outFields);\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"ConfigModify request is successful. Sending restart request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar timestamp = longType(new Date().getTime());\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_SUCCESS\", \"Successfully processed the VES Event. Restart is complete.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\nvar timestamp = longType(new Date().getTime());\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"is-closed-loop-disabled","value":{"key":"is-closed-loop-disabled","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"model-customization-id","value":{"key":"model-customization-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-invariant-id","value":{"key":"model-invariant-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-version-id","value":{"key":"model-version-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"orchestration-status","value":{"key":"orchestration-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"prov-status","value":{"key":"prov-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"relationship-list","value":{"key":"relationship-list","fieldSchemaKey":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"service-id","value":{"key":"service-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-id","value":{"key":"vnf-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-name","value":{"key":"vnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-type","value":{"key":"vnf-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\n\nvar vnfDetails = executor.inFields;\nexecutor.logger.info(\"ApexExample_HandleAAISuccessResponseTask processing event - \" + vnfDetails);\neventDetailsAlbum.put(\"vnfDetails\", vnfDetails);\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"modify-config\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-id\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\nvar payloadSchemaHelper = executor.subject.getOutFieldSchemaHelper(\"payload\");\npayload.put(\"modify_DasH_config_DasH_request\", payloadEntry);\n\n//always use the executor.stringify2json method instead of JSON.strngify\nexecutor.logger.info(\"CDS modify config request payload - \" + executor.stringify2Json(payload, payloadSchemaHelper));\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\nvar timestamp = longType(new Date().getTime());\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"VNF details are received from AAI successfully. Sending ConfigModify request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"ApexExample_VesEventType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"ApexExample_HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar faultFields = event.get(\"faultFields\");\n\n//albumID will be used to fetch info from our album later\nvar albumID = commonEventHeader.get(\"sourceId\");\n\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming fault event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader)\neventDetailsAlbum.put(\"faultFields\", faultFields)\nexecutor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"vnf-name\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceName\"));\n\nvar timestamp = longType(new Date().getTime());\nsend(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), \"VNF\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceId\"), timestamp, \"ACTIVE\", \"VES event has been received. Going to fetch VNF details from AAI.\")\n\nexecutor.logger.info(executor.outFields);\nreturnValue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"is-closed-loop-disabled","value":{"key":"is-closed-loop-disabled","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"model-customization-id","value":{"key":"model-customization-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-invariant-id","value":{"key":"model-invariant-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-version-id","value":{"key":"model-version-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"orchestration-status","value":{"key":"orchestration-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"prov-status","value":{"key":"prov-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"relationship-list","value":{"key":"relationship-list","fieldSchemaKey":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"service-id","value":{"key":"service-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-id","value":{"key":"vnf-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-name","value":{"key":"vnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-type","value":{"key":"vnf-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"ApexExample_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n },\n {\n \"name\": \"update_DasH_properties\",\n \"type\": {\n \"name\": \"update_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"service_DasH_instance_DoT_service_DasH_instance_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"generic_DasH_vnf_DoT_vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"data\",\n \"type\": {\n \"name\": \"update_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"active_DasH_streams\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n }\n}"}},{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSRestartResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"restart_DasH_response\",\n \"type\": {\n \"name\": \"restart_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"vnfDetails\",\n \"type\": {\n \"name\": \"vnfDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_type\",\n \"type\": \"string\"\n },\n {\n \"name\": \"service_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"prov_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"orchestration_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"in_DasH_maint\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"is_DasH_closed_DasH_loop_DasH_disabled\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"resource_DasH_version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_invariant_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_version_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_customization_DasH_id\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"event\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"VnfRelationShipListType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"related_DasH_to\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_label\",\n \"type\": \"string\"\n },\n {\n \"name\": \"related_DasH_link\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_data\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"related_DasH_to_DasH_property\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"related_DasH_to_DasH_property_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"property_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"property_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n }\n ]\n}"}},{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}},"eventInputParameters":{"ApexExample_DCAEConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_VesEvent"},"ApexExample_AAIResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}","httpMethod":"GET","httpCodeFilter":"[245][0-9][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_AAISuccessResponseEvent|ApexExample_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_AAIProducer","requestorTimeout":2000},"ApexExample_CDSConfigModifyResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_CDSConfigModifySuccessResponseEvent|ApexExample_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSConfigModifyRequestProducer","requestorTimeout":500},"ApexExample_CDSRestartResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_CDSRestartSuccessResponseEvent|ApexExample_CDSRestartFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSRestartRequestProducer","requestorTimeout":500}},"eventOutputParameters":{"ApexExample_AAIProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_AAIRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_AAIResponseConsumer","requestorTimeout":2000},"ApexExample_CDSConfigModifyRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":10}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSConfigModifyResponseConsumer","requestorTimeout":500},"ApexExample_CDSRestartRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":10}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_CDSRestartRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSRestartResponseConsumer","requestorTimeout":500}}},"name":"onap.policies.apex.vnf.Test","version":"1.0.0","metadata":{"policy-id":"onap.policies.apex.vnf.Test","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"1d75e5c4-c663-4eba-9027-4143fc82e32d","timestampMs":1711335333027,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-pap | [2024-03-25T02:54:18.641+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... simulator | originatorId: "POLICY" policy-db-migrator | > upgrade 0570-toscadatatype.sql grafana | logger=migrator t=2024-03-25T02:52:34.156759388Z level=info msg="Migration successfully executed" id="add index dashboard_acl_team_id" duration=1.024332ms policy-apex-pdp | [2024-03-25T02:55:33.132+00:00|WARN|Registry|DMAAP-source-POLICY-PDP-PAP] replacing previously registered: object:apex/tosca/policy/list policy-pap | [2024-03-25T02:54:33.313+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK simulator | } policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:34.165750491Z level=info msg="Executing migration" id="add index dashboard_acl_org_id_role" policy-apex-pdp | [2024-03-25T02:55:33.135+00:00|INFO|ApexEngineHandler|DMAAP-source-POLICY-PDP-PAP] Starting apex engine for policy onap.policies.apex.vnf.Test 1.0.0 policy-pap | [2024-03-25T02:54:33.314+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 simulator | actionIdentifiers { policy-db-migrator | CREATE TABLE IF NOT EXISTS toscadatatype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCADATATYPE (name, version)) grafana | logger=migrator t=2024-03-25T02:52:34.166822593Z level=info msg="Migration successfully executed" id="add index dashboard_acl_org_id_role" duration=1.072282ms policy-apex-pdp | [2024-03-25T02:55:33.148+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-0:0.0.1 . policy-pap | [2024-03-25T02:54:33.314+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... simulator | blueprintName: "controlloop-hostname-update" policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:34.175158018Z level=info msg="Executing migration" id="add index dashboard_permission" policy-apex-pdp | [2024-03-25T02:55:33.148+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-1:0.0.1 . policy-pap | [2024-03-25T02:54:33.647+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | blueprintVersion: "1.0.4" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:34.17704863Z level=info msg="Migration successfully executed" id="add index dashboard_permission" duration=1.891882ms policy-apex-pdp | [2024-03-25T02:55:33.149+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-2:0.0.1 . policy-pap | [2024-03-25T02:54:33.648+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | actionName: "update-config" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:34.188239538Z level=info msg="Executing migration" id="save default acl rules in dashboard_acl table" policy-apex-pdp | [2024-03-25T02:55:33.149+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-3:0.0.1 . policy-pap | [2024-03-25T02:54:33.648+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... simulator | mode: "sync" policy-db-migrator | > upgrade 0580-toscadatatypes.sql grafana | logger=migrator t=2024-03-25T02:52:34.1892321Z level=info msg="Migration successfully executed" id="save default acl rules in dashboard_acl table" duration=992.251µs policy-apex-pdp | [2024-03-25T02:55:33.149+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-4:0.0.1 . policy-pap | [2024-03-25T02:54:48.331+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK simulator | } policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:34.196225611Z level=info msg="Executing migration" id="delete acl rules for deleted dashboards and folders" policy-apex-pdp | [2024-03-25T02:55:33.149+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] APEX service created. policy-pap | [2024-03-25T02:54:48.338+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 simulator | payload { simulator | fields { policy-apex-pdp | [2024-03-25T02:55:33.186+00:00|WARN|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] apex model update forced, supplied model with key "onap.policies.apex.Example:0.0.1" is not a compatible model update from the existing engine model with key "onap.policies.apex.Simplecontrolloop:0.0.1" policy-pap | [2024-03-25T02:54:48.338+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-db-migrator | CREATE TABLE IF NOT EXISTS toscadatatypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCADATATYPES (name, version)) simulator | key: "update-config-request" grafana | logger=migrator t=2024-03-25T02:52:34.196734346Z level=info msg="Migration successfully executed" id="delete acl rules for deleted dashboards and folders" duration=509.575µs policy-apex-pdp | [2024-03-25T02:55:33.189+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-0:0.0.1 policy-pap | [2024-03-25T02:54:48.654+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.208182018Z level=info msg="Executing migration" id="create tag table" policy-apex-pdp | [2024-03-25T02:55:33.189+00:00|WARN|EngineService|DMAAP-source-POLICY-PDP-PAP] apex model update forced, supplied model with key "onap.policies.apex.Example:0.0.1" is not a compatible model update from the existing engine model with key "onap.policies.apex.Simplecontrolloop:0.0.1" policy-db-migrator | simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:34.210141831Z level=info msg="Migration successfully executed" id="create tag table" duration=2.009833ms policy-apex-pdp | [2024-03-25T02:55:33.194+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-1:0.0.1 policy-pap | [2024-03-25T02:54:48.656+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.219676661Z level=info msg="Executing migration" id="add index tag.key_value" policy-apex-pdp | [2024-03-25T02:55:33.194+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-2:0.0.1 policy-pap | [2024-03-25T02:54:48.656+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | > upgrade 0590-toscadatatypes_toscadatatype.sql simulator | key: "hostname" grafana | logger=migrator t=2024-03-25T02:52:34.221179969Z level=info msg="Migration successfully executed" id="add index tag.key_value" duration=1.504178ms policy-apex-pdp | [2024-03-25T02:55:33.195+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-3:0.0.1 policy-pap | [2024-03-25T02:55:03.368+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.227324689Z level=info msg="Executing migration" id="create login attempt table" policy-apex-pdp | [2024-03-25T02:55:33.196+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-4:0.0.1 policy-pap | [2024-03-25T02:55:03.369+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-db-migrator | CREATE TABLE IF NOT EXISTS toscadatatypes_toscadatatype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCADATATYPES_TOSCADATATYPE (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion)) simulator | string_value: "hostoq4yt" grafana | logger=migrator t=2024-03-25T02:52:34.229310653Z level=info msg="Migration successfully executed" id="create login attempt table" duration=1.990324ms policy-apex-pdp | [2024-03-25T02:55:33.291+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleBooleanType:0.0.1 is used by multiple policies. policy-pap | [2024-03-25T02:55:03.369+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.233337419Z level=info msg="Executing migration" id="add index login_attempt.username" policy-apex-pdp | [2024-03-25T02:55:33.291+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleLongType:0.0.1 is used by multiple policies. policy-pap | [2024-03-25T02:55:03.661+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.23438071Z level=info msg="Migration successfully executed" id="add index login_attempt.username" duration=1.044111ms policy-apex-pdp | [2024-03-25T02:55:33.291+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleStringType:0.0.1 is used by multiple policies. policy-pap | [2024-03-25T02:55:03.662+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.237935002Z level=info msg="Executing migration" id="drop index IDX_login_attempt_username - v1" policy-apex-pdp | [2024-03-25T02:55:33.291+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-pap | [2024-03-25T02:55:03.662+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | > upgrade 0600-toscanodetemplate.sql simulator | key: "IP" grafana | logger=migrator t=2024-03-25T02:52:34.238848712Z level=info msg="Migration successfully executed" id="drop index IDX_login_attempt_username - v1" duration=918.14µs policy-apex-pdp | [2024-03-25T02:55:33.293+00:00|INFO|CdsProcessorGrpcClient|DMAAP-source-POLICY-PDP-PAP] CdsProcessorListener started policy-pap | [2024-03-25T02:55:18.374+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.248022068Z level=info msg="Executing migration" id="Rename table login_attempt to login_attempt_tmp_qwerty - v1" policy-apex-pdp | [2024-03-25T02:55:33.293+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-db-migrator | CREATE TABLE IF NOT EXISTS toscanodetemplate (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, type_name VARCHAR(255) NULL, type_version VARCHAR(255) NULL, capabilitiesName VARCHAR(120) NULL, capabilitiesVersion VARCHAR(20) NULL, requirementsVersion VARCHAR(20) NULL, requirementsName VARCHAR(120) NULL, PRIMARY KEY PK_TOSCANODETEMPLATE (name, version)) policy-pap | [2024-03-25T02:55:18.374+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 simulator | string_value: "10.10.10.10" grafana | logger=migrator t=2024-03-25T02:52:34.264537848Z level=info msg="Migration successfully executed" id="Rename table login_attempt to login_attempt_tmp_qwerty - v1" duration=16.51504ms policy-apex-pdp | [2024-03-25T02:55:33.293+00:00|INFO|CdsProcessorGrpcClient|DMAAP-source-POLICY-PDP-PAP] CdsProcessorListener started policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:18.374+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.270197344Z level=info msg="Executing migration" id="create login_attempt v2" policy-apex-pdp | [2024-03-25T02:55:33.296+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-db-migrator | policy-pap | [2024-03-25T02:55:18.667+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.270833791Z level=info msg="Migration successfully executed" id="create login_attempt v2" duration=635.407µs policy-apex-pdp | [2024-03-25T02:55:33.319+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [OUT|DMAAP|POLICY-PDP-PAP] policy-db-migrator | policy-pap | [2024-03-25T02:55:18.668+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.284211835Z level=info msg="Executing migration" id="create index IDX_login_attempt_username - v2" policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.vnf.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:33.318602Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":4,"policyExecutedSuccessCount":4,"policyExecutedFailCount":0,"policyDeployCount":3,"policyDeploySuccessCount":3,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331413,"eventCount":1,"lastExecutionTime":18,"averageExecutionTime":18.0,"upTime":4889,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331534,"eventCount":1,"lastExecutionTime":20,"averageExecutionTime":20.0,"upTime":4988,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335332395,"eventCount":1,"lastExecutionTime":9,"averageExecutionTime":9.0,"upTime":5832,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333229,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333229},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333243,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333243},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333258,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333258},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333273,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333273},{"engineId":"NSOApexEngine-4:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333287,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333287}]},"response":{"responseTo":"1d75e5c4-c663-4eba-9027-4143fc82e32d","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.vnf.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"e4c5260a-2aaf-4e9f-bac6-bcbe77d4a0c8","timestampMs":1711335333318,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | > upgrade 0610-toscanodetemplates.sql policy-pap | [2024-03-25T02:55:18.668+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... simulator | key: "pnfName" grafana | logger=migrator t=2024-03-25T02:52:34.285922266Z level=info msg="Migration successfully executed" id="create index IDX_login_attempt_username - v2" duration=1.719361ms policy-apex-pdp | [2024-03-25T02:55:33.320+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:21.062+00:00|INFO|PdpModifyRequestMap|pool-5-thread-1] check for PDP records older than 360000ms simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.290428667Z level=info msg="Executing migration" id="copy login_attempt v1 to v2" policy-apex-pdp | [2024-03-25T02:55:33.320+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-db-migrator | CREATE TABLE IF NOT EXISTS toscanodetemplates (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCANODETEMPLATES (name, version)) policy-pap | [2024-03-25T02:55:23.235+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK simulator | string_value: "demo-pnf" grafana | logger=migrator t=2024-03-25T02:52:34.291390659Z level=info msg="Migration successfully executed" id="copy login_attempt v1 to v2" duration=962.132µs policy-apex-pdp | [2024-03-25T02:55:33.323+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 4 ms policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:23.235+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.300554704Z level=info msg="Executing migration" id="drop login_attempt_tmp_qwerty" policy-apex-pdp | [2024-03-25T02:55:33.323+00:00|INFO|HttpClient|pool-2-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... policy-db-migrator | policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp Heartbeat","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:23.180174Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":1,"policyExecutedSuccessCount":1,"policyExecutedFailCount":0,"policyDeployCount":1,"policyDeploySuccessCount":1,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200}]},"messageName":"PDP_STATUS","requestId":"4fe51adf-de45-4892-bb81-6779be95aadb","timestampMs":1711335323180,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.301361523Z level=info msg="Migration successfully executed" id="drop login_attempt_tmp_qwerty" duration=808.159µs policy-apex-pdp | [2024-03-25T02:55:33.328+00:00|INFO|HttpClient|pool-2-thread-1] --> HTTP/1.1 200 OK policy-db-migrator | policy-pap | [2024-03-25T02:55:23.236+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.305895176Z level=info msg="Executing migration" id="create user auth table" policy-apex-pdp | [2024-03-25T02:55:33.329+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] cambria reply ok (6 ms):{"serverTimeMs":0,"count":1} policy-db-migrator | > upgrade 0620-toscanodetemplates_toscanodetemplate.sql policy-pap | [2024-03-25T02:55:23.236+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.306876917Z level=info msg="Migration successfully executed" id="create user auth table" duration=981.931µs policy-apex-pdp | [2024-03-25T02:55:33.329+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | -------------- policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp Heartbeat","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:23.180174Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":1,"policyExecutedSuccessCount":1,"policyExecutedFailCount":0,"policyDeployCount":1,"policyDeploySuccessCount":1,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200}]},"messageName":"PDP_STATUS","requestId":"4fe51adf-de45-4892-bb81-6779be95aadb","timestampMs":1711335323180,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.311798674Z level=info msg="Executing migration" id="create index IDX_user_auth_auth_module_auth_id - v1" policy-apex-pdp | [2024-03-25T02:55:33.330+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-db-migrator | CREATE TABLE IF NOT EXISTS toscanodetemplates_toscanodetemplate (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCANODETEMPLATES_TOSCANODETEMPLATE (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion)) policy-pap | [2024-03-25T02:55:23.238+00:00|INFO|RequestIdDispatcher|DMAAP-source-POLICY-PDP-PAP] no listeners for autonomous message of type PdpStatus simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.312882546Z level=info msg="Migration successfully executed" id="create index IDX_user_auth_auth_module_auth_id - v1" duration=1.082522ms policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.vnf.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:33.318602Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":4,"policyExecutedSuccessCount":4,"policyExecutedFailCount":0,"policyDeployCount":3,"policyDeploySuccessCount":3,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331413,"eventCount":1,"lastExecutionTime":18,"averageExecutionTime":18.0,"upTime":4889,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331534,"eventCount":1,"lastExecutionTime":20,"averageExecutionTime":20.0,"upTime":4988,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335332395,"eventCount":1,"lastExecutionTime":9,"averageExecutionTime":9.0,"upTime":5832,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333229,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333229},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333243,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333243},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333258,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333258},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333273,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333273},{"engineId":"NSOApexEngine-4:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333287,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333287}]},"response":{"responseTo":"1d75e5c4-c663-4eba-9027-4143fc82e32d","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.vnf.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"e4c5260a-2aaf-4e9f-bac6-bcbe77d4a0c8","timestampMs":1711335333318,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:23.238+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | grafana | logger=migrator t=2024-03-25T02:52:34.317260557Z level=info msg="Executing migration" id="alter user_auth.auth_id to length 190" policy-apex-pdp | [2024-03-25T02:55:33.330+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS policy-db-migrator | policy-pap | [2024-03-25T02:55:23.238+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:55:32,286 INFO Fetching response from controlloop-hostname-update-update-config.json grafana | logger=migrator t=2024-03-25T02:52:34.317334038Z level=info msg="Migration successfully executed" id="alter user_auth.auth_id to length 190" duration=74.951µs policy-apex-pdp | [2024-03-25T02:55:33.330+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-db-migrator | policy-pap | [2024-03-25T02:55:23.547+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 simulator | 2024-03-25 02:55:32,404 INFO 172.17.0.9 - - [25/Mar/2024:02:55:32 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.329575839Z level=info msg="Executing migration" id="Add OAuth access token to user_auth" policy-apex-pdp | [2024-03-25T02:55:33.330+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-db-migrator | > upgrade 0630-toscanodetype.sql policy-pap | [2024-03-25T02:55:23.547+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... simulator | 2024-03-25 02:55:32,405 INFO 172.17.0.1 - - [25/Mar/2024:02:55:31 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 650 "-" "python-requests/2.27.1" grafana | logger=migrator t=2024-03-25T02:52:34.338339321Z level=info msg="Migration successfully executed" id="Add OAuth access token to user_auth" duration=8.761022ms policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:25.870+00:00|INFO|SessionData|http-nio-6969-exec-7] cache group defaultGroup policy-apex-pdp | [2024-03-25T02:55:38.322+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] ApexExample_HandleVesEventTask processing VES event - {"commonEventHeader": {"domain": "fault", "eventId": "fault0000245", "eventName": "Fault_Vscf:PilotNumberPoolExhaustion", "lastEpochMicrosec": 1413378172000000, "priority": "High", "reportingEntityName": "ibcx0001vm002oam001", "sequence": 1, "sourceId": "de305d54-75b4-431b-adb2-eb6b9e5460141", "sourceName": "vfw-cnf-cds-test-1-vnf", "startEpochMicrosec": 1413378172000000, "timeZoneOffset": "UTC-05:30", "version": "4.0.1", "vesEventListenerVersion": "7.0.1"}, "faultFields": {"alarmAdditionalInformation": {"PilotNumberPoolSize": "1000"}, "alarmCondition": "PilotNumberPoolExhaustion", "eventSeverity": "CRITICAL", "eventSourceType": "other", "faultFieldsVersion": 4, "specificProblem": "Calls cannot complete - pilot numbers are unavailable", "vfStatus": "Active"}} simulator | 2024-03-25 02:55:33,095 INFO 172.17.0.8 - - [25/Mar/2024:02:55:27 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 104257 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.345380201Z level=info msg="Executing migration" id="Add OAuth refresh token to user_auth" policy-db-migrator | CREATE TABLE IF NOT EXISTS toscanodetype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, requirementsVersion VARCHAR(20) NULL, requirementsName VARCHAR(120) NULL, PRIMARY KEY PK_TOSCANODETYPE (name, version)) policy-pap | [2024-03-25T02:55:26.049+00:00|INFO|PolicyAuditManager|http-nio-6969-exec-7] Registering a deploy for policy onap.policies.apex.pnf.Test 1.0.0 simulator | 2024-03-25 02:55:33,095 INFO 172.17.0.8 - - [25/Mar/2024:02:55:33 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.350141107Z level=info msg="Migration successfully executed" id="Add OAuth refresh token to user_auth" duration=4.773236ms policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:38.327+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] sending the status to log. policy-pap | [2024-03-25T02:55:26.049+00:00|INFO|SessionData|http-nio-6969-exec-7] add update apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 defaultGroup apex policies=1 grafana | logger=migrator t=2024-03-25T02:52:34.355737751Z level=info msg="Executing migration" id="Add OAuth token type to user_auth" policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:38.327+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e5460141"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1711335338324,"status" : "ACTIVE","message" : "VES event has been received. Going to fetch VNF details from AAI.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} simulator | 2024-03-25 02:55:33,125 INFO 172.17.0.9 - - [25/Mar/2024:02:55:26 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 104257 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:55:26.050+00:00|INFO|SessionData|http-nio-6969-exec-7] update cached group defaultGroup policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:38.340+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] DMaaP Response after sending LogEvent: (200,{"serverTimeMs":0,"count":1}) simulator | 2024-03-25 02:55:33,127 INFO 172.17.0.8 - - [25/Mar/2024:02:55:26 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 104257 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.359835388Z level=info msg="Migration successfully executed" id="Add OAuth token type to user_auth" duration=4.097177ms policy-pap | [2024-03-25T02:55:26.050+00:00|INFO|SessionData|http-nio-6969-exec-7] updating DB group defaultGroup policy-db-migrator | > upgrade 0640-toscanodetypes.sql policy-apex-pdp | [2024-03-25T02:55:38.340+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] {aaifield=null} simulator | 2024-03-25 02:55:33,328 INFO 172.17.0.9 - - [25/Mar/2024:02:55:33 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.399043171Z level=info msg="Executing migration" id="Add OAuth expiry to user_auth" policy-pap | [2024-03-25T02:55:26.061+00:00|INFO|PolicyAuditManager|http-nio-6969-exec-7] sending audit records to database: [PolicyAudit(auditId=null, pdpGroup=defaultGroup, pdpType=apex, policy=onap.policies.apex.pnf.Test 1.0.0, action=DEPLOYMENT, timestamp=2024-03-25T02:55:26Z, user=policyadmin)] policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:38.379+00:00|INFO|network|RestRequestRunner_0] [IN|REST|http://aai-sim:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name=vfw-cnf-cds-test-1-vnf] simulator | 2024-03-25 02:55:33,329 INFO 172.17.0.9 - - [25/Mar/2024:02:55:33 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 4363 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.40503765Z level=info msg="Migration successfully executed" id="Add OAuth expiry to user_auth" duration=6.003049ms policy-pap | [2024-03-25T02:55:26.082+00:00|INFO|ServiceManager|http-nio-6969-exec-7] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting policy-db-migrator | CREATE TABLE IF NOT EXISTS toscanodetypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCANODETYPES (name, version)) policy-apex-pdp | { simulator | 2024-03-25 02:55:33,329 INFO 172.17.0.8 - - [25/Mar/2024:02:55:33 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 4363 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.409288019Z level=info msg="Executing migration" id="Add index to user_id column in user_auth" policy-pap | [2024-03-25T02:55:26.082+00:00|INFO|ServiceManager|http-nio-6969-exec-7] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting listener policy-db-migrator | -------------- policy-apex-pdp | "vnf-id": "37b008b9-b367-4359-93fd-74d3ce0ee1a0", simulator | 2024-03-25 02:55:33,330 INFO 172.17.0.8 - - [25/Mar/2024:02:55:33 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 4363 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.410028467Z level=info msg="Migration successfully executed" id="Add index to user_id column in user_auth" duration=739.818µs policy-pap | [2024-03-25T02:55:26.082+00:00|INFO|ServiceManager|http-nio-6969-exec-7] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting timer policy-db-migrator | policy-apex-pdp | "vnf-name": "vfw-cnf-cds-test-1-vnf", simulator | 2024-03-25 02:55:33,345 INFO Topic unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT: added policy-pap | [2024-03-25T02:55:26.082+00:00|INFO|TimerManager|http-nio-6969-exec-7] update timer registered Timer [name=a6c770f9-032d-45b8-8d39-a7f1c9708cf1, expireMs=1711335356082] policy-db-migrator | policy-apex-pdp | "vnf-type": "vfw_cnf_cds/null", simulator | 2024-03-25 02:55:33,345 INFO Topic unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT: add consumer group: ApexExampleCG1 grafana | logger=migrator t=2024-03-25T02:52:34.415630382Z level=info msg="Executing migration" id="Add OAuth ID token to user_auth" policy-pap | [2024-03-25T02:55:26.083+00:00|INFO|ServiceManager|http-nio-6969-exec-7] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting enqueue policy-db-migrator | > upgrade 0650-toscanodetypes_toscanodetype.sql policy-apex-pdp | "service-id": "37b008b9-b367-4359-93fd-74d3ce0ee1a0", simulator | 2024-03-25 02:55:33,390 INFO 172.17.0.8 - - [25/Mar/2024:02:55:33 +0000] "POST /events/POLICY-NOTIFICATION HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.420723441Z level=info msg="Migration successfully executed" id="Add OAuth ID token to user_auth" duration=5.091869ms policy-pap | [2024-03-25T02:55:26.083+00:00|INFO|ServiceManager|http-nio-6969-exec-7] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate started policy-db-migrator | -------------- policy-apex-pdp | "prov-status": "ACTIVE", simulator | 2024-03-25 02:55:38,296 INFO 172.17.0.1 - - [25/Mar/2024:02:55:38 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1&timeout=0 HTTP/1.1" 200 2 "-" "python-requests/2.27.1" grafana | logger=migrator t=2024-03-25T02:52:34.430488443Z level=info msg="Executing migration" id="create server_lock table" policy-pap | [2024-03-25T02:55:26.083+00:00|INFO|TimerManager|Thread-9] update timer waiting 29999ms Timer [name=a6c770f9-032d-45b8-8d39-a7f1c9708cf1, expireMs=1711335356082] policy-db-migrator | CREATE TABLE IF NOT EXISTS toscanodetypes_toscanodetype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCANODETYPES_TOSCANODETYPE (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion)) policy-apex-pdp | "orchestration-status": "Assigned", simulator | 2024-03-25 02:55:38,308 INFO 172.17.0.1 - - [25/Mar/2024:02:55:38 +0000] "POST /events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT HTTP/1.1" 200 28 "-" "python-requests/2.27.1" grafana | logger=migrator t=2024-03-25T02:52:34.432073042Z level=info msg="Migration successfully executed" id="create server_lock table" duration=1.584489ms policy-pap | [2024-03-25T02:55:26.084+00:00|INFO|network|Thread-7] [OUT|DMAAP|POLICY-PDP-PAP] policy-db-migrator | -------------- policy-apex-pdp | "in-maint": false, simulator | 2024-03-25 02:55:38,309 INFO 172.17.0.9 - - [25/Mar/2024:02:55:33 +0000] "GET /events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000 HTTP/1.1" 200 821 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.441956837Z level=info msg="Executing migration" id="add index server_lock.operation_uid" policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT"}]},"policy_type_impl":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"c8a29e27-0a15-354a-84f9-4c7f207e5c81","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"5e843cee-0180-39b9-8989-180b2ffe11c0","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"UUID":"90291c92-9b27-3cd9-8720-db572419c048","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"UUID":"7b7e6751-4e0b-389d-98c0-5567bbc0294c","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"63d5680c-14ef-3505-8d34-ebb646bba07b","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"a84ca97d-6e94-39a2-91f9-59a6c9aa435e","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"0e2ee622-7fd3-3e49-82e2-539c4f5e9624","description":"Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"e84f8682-ea33-3ad0-8626-8bc4634581fc","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"a252f835-2479-38ef-9ef4-20af62725752","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"UUID":"cfc46ea9-b8c1-38dd-ac9c-304c916daf34","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"1e7095d6-a455-3f89-acae-486e35d7e311","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"UUID":"d22ea83b-695d-3da9-b9f5-41f16ca433bf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"e9fe2e40-1f0d-30dd-8b9e-885695878693","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"5e04fa76-0a17-38a9-8524-23b2d1a23fa5","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"15866380-40f5-3f8e-87d9-13747a36d352","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"UUID":"2c3d76ce-dd42-32ac-a397-ab418534e1cf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"b99c44da-dae7-3c96-b528-58852537d063","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"1db688e2-3afe-3b03-9795-fdbfa80fa240","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"31022456-e85b-3a9b-9ecb-a09691792d3e","description":"Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"d6075720-622e-3a0d-827a-aa4580a2f5d7","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"UUID":"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"UUID":"a0407d0b-5719-38bf-9529-25ad62ace8c4","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"UUID":"28e894dc-4ab8-3469-aab7-d81bd05bb4c9","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"UUID":"073f1433-999e-3506-98ad-ef820d2fa7f0","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"UUID":"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74","description":"Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask:0.0.1\""}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"UUID":"317be184-a01a-3e2d-9ae4-cafaa405de70","description":"Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"UUID":"be7fc79b-9b73-381a-8e23-9dd6e6b1233d","description":"Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"UUID":"1a082851-49e3-3f4c-b023-c05236cc8389","description":"Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"UUID":"cab6cd51-ea7b-3241-a173-ea8a24e29737","description":"Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"UUID":"0f57665a-f0a9-314e-ad0a-04c1f5758174","description":"Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"UUID":"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b","description":"Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"UUID":"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1","description":"Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"UUID":"ecc97b87-f30b-344c-a476-d36501bf5cbd","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"UUID":"1469671a-56dd-3a68-bf6c-77a5cf7a9487","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"UUID":"23c4eee4-aba5-36f6-96d6-46f40061bfed","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"UUID":"ea9e73ff-483c-3827-896c-6eaa9d69bc6e","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"UUID":"38c068e5-bb9a-3997-9e50-ec77c66825c8","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"UUID":"38514b27-8b9b-3d06-844a-3aced27deb0a","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"UUID":"0e0387b5-07fa-30e4-8554-eb51d2e18939","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAIFailureResponseState"},"trigger":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAIFailureStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"SimpleCL_AAIFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAIFailureResponseState"}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAISuccessResponseState"},"trigger":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAISuccessStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"},"outgoingEvent":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"SimpleCL_AAISuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAISuccessResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifyFailureResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifyFailureResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifySuccessResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifySuccessResponseState"}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveVesState","value":{"stateKey":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveVesState"},"trigger":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"VesOutput","value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"},"outgoingEvent":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"SimpleCL_VesEventHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"SimpleCL_CDSConfigModifyRequestEvent","value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"},"outputEvents":{"entry":[{"key":"SimpleCL_AAIRequestEvent","value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]}},"toscaPolicyState":"EXIT_FAILURE"},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}},"eventInputParameters":{"SimpleCL_DCAEConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_VesEvent"},"SimpleCL_AAIResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}","httpMethod":"GET","httpCodeFilter":"[2-5][0-1][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIProducer","requestorTimeout":2000},"SimpleCL_CDSConfigModifyResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyRequestProducer","requestorTimeout":500}},"eventOutputParameters":{"SimpleCL_AAIProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_AAIRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIResponseConsumer","requestorTimeout":2000},"SimpleCL_CDSConfigModifyRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":60}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyResponseConsumer","requestorTimeout":500},"SimpleCL_logOutputter":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/APEX-CL-MGT"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_LogEvent"}}},"name":"onap.policies.apex.pnf.Test","version":"1.0.0","metadata":{"policy-id":"onap.policies.apex.pnf.Test","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"a6c770f9-032d-45b8-8d39-a7f1c9708cf1","timestampMs":1711335326049,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | policy-apex-pdp | "is-closed-loop-disabled": false, simulator | 2024-03-25 02:55:38,338 INFO 172.17.0.9 - - [25/Mar/2024:02:55:38 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.442941768Z level=info msg="Migration successfully executed" id="add index server_lock.operation_uid" duration=984.471µs policy-pap | [2024-03-25T02:55:26.133+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 48 ms policy-db-migrator | policy-apex-pdp | "resource-version": "1607506390862", simulator | 2024-03-25 02:55:38,339 INFO 172.17.0.1 - - [25/Mar/2024:02:55:38 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 480 "-" "python-requests/2.27.1" grafana | logger=migrator t=2024-03-25T02:52:34.448653253Z level=info msg="Executing migration" id="create user auth token table" policy-pap | [2024-03-25T02:55:26.133+00:00|INFO|HttpClient|pool-3-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... policy-db-migrator | > upgrade 0660-toscaparameter.sql policy-apex-pdp | "model-invariant-id": "vTEST_XYZ", grafana | logger=migrator t=2024-03-25T02:52:34.450532365Z level=info msg="Migration successfully executed" id="create user auth token table" duration=1.879442ms policy-pap | [2024-03-25T02:55:26.145+00:00|INFO|HttpClient|pool-3-thread-1] --> HTTP/1.1 200 OK policy-db-migrator | -------------- simulator | 2024-03-25 02:55:38,378 INFO 172.17.0.9 - - [25/Mar/2024:02:55:38 +0000] "GET /aai/v16/network/generic-vnfs/generic-vnf?vnf-name=vfw-cnf-cds-test-1-vnf HTTP/1.1" 200 1646 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | "model-version-id": "vTEST", grafana | logger=migrator t=2024-03-25T02:52:34.456855188Z level=info msg="Executing migration" id="add unique index user_auth_token.auth_token" policy-pap | [2024-03-25T02:55:26.145+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] cambria reply ok (12 ms):{"serverTimeMs":0,"count":1} policy-db-migrator | CREATE TABLE IF NOT EXISTS toscaparameter (VALUE VARCHAR(255) NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCAPARAMETER (parentLocalName, localName, parentKeyVersion, parentKeyName)) policy-apex-pdp | "model-customization-id": "37b008b9-b367-4359-93fd-74d3ce0ee1a0", simulator | 2024-03-25 02:55:38,403 INFO 172.17.0.9 - - [25/Mar/2024:02:55:38 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:34.45789505Z level=info msg="Migration successfully executed" id="add unique index user_auth_token.auth_token" duration=1.040792ms policy-pap | [2024-03-25T02:55:26.145+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK policy-db-migrator | -------------- policy-apex-pdp | "relationship-list": { simulator | 2024-03-25 02:55:38,404 INFO 172.17.0.1 - - [25/Mar/2024:02:55:38 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 500 "-" "python-requests/2.27.1" grafana | logger=migrator t=2024-03-25T02:52:34.469054048Z level=info msg="Executing migration" id="add unique index user_auth_token.prev_auth_token" policy-pap | [2024-03-25T02:55:26.148+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] policy-db-migrator | policy-apex-pdp | "relationship": [ simulator | 2024-03-25 02:55:38,430 INFO Received request input to CDS: commonHeader { grafana | logger=migrator t=2024-03-25T02:52:34.470208792Z level=info msg="Migration successfully executed" id="add unique index user_auth_token.prev_auth_token" duration=1.154524ms policy-db-migrator | policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT"}]},"policy_type_impl":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"c8a29e27-0a15-354a-84f9-4c7f207e5c81","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"5e843cee-0180-39b9-8989-180b2ffe11c0","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"UUID":"90291c92-9b27-3cd9-8720-db572419c048","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"UUID":"7b7e6751-4e0b-389d-98c0-5567bbc0294c","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"63d5680c-14ef-3505-8d34-ebb646bba07b","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"a84ca97d-6e94-39a2-91f9-59a6c9aa435e","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"0e2ee622-7fd3-3e49-82e2-539c4f5e9624","description":"Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"e84f8682-ea33-3ad0-8626-8bc4634581fc","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"a252f835-2479-38ef-9ef4-20af62725752","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"UUID":"cfc46ea9-b8c1-38dd-ac9c-304c916daf34","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"1e7095d6-a455-3f89-acae-486e35d7e311","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"UUID":"d22ea83b-695d-3da9-b9f5-41f16ca433bf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"e9fe2e40-1f0d-30dd-8b9e-885695878693","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"5e04fa76-0a17-38a9-8524-23b2d1a23fa5","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"15866380-40f5-3f8e-87d9-13747a36d352","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"UUID":"2c3d76ce-dd42-32ac-a397-ab418534e1cf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"b99c44da-dae7-3c96-b528-58852537d063","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"1db688e2-3afe-3b03-9795-fdbfa80fa240","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"31022456-e85b-3a9b-9ecb-a09691792d3e","description":"Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"d6075720-622e-3a0d-827a-aa4580a2f5d7","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"UUID":"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"UUID":"a0407d0b-5719-38bf-9529-25ad62ace8c4","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"UUID":"28e894dc-4ab8-3469-aab7-d81bd05bb4c9","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"UUID":"073f1433-999e-3506-98ad-ef820d2fa7f0","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"UUID":"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74","description":"Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask:0.0.1\""}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"UUID":"317be184-a01a-3e2d-9ae4-cafaa405de70","description":"Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"UUID":"be7fc79b-9b73-381a-8e23-9dd6e6b1233d","description":"Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"UUID":"1a082851-49e3-3f4c-b023-c05236cc8389","description":"Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"UUID":"cab6cd51-ea7b-3241-a173-ea8a24e29737","description":"Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"UUID":"0f57665a-f0a9-314e-ad0a-04c1f5758174","description":"Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"UUID":"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b","description":"Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"UUID":"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1","description":"Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"UUID":"ecc97b87-f30b-344c-a476-d36501bf5cbd","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"UUID":"1469671a-56dd-3a68-bf6c-77a5cf7a9487","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"UUID":"23c4eee4-aba5-36f6-96d6-46f40061bfed","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"UUID":"ea9e73ff-483c-3827-896c-6eaa9d69bc6e","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"UUID":"38c068e5-bb9a-3997-9e50-ec77c66825c8","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"UUID":"38514b27-8b9b-3d06-844a-3aced27deb0a","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"UUID":"0e0387b5-07fa-30e4-8554-eb51d2e18939","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAIFailureResponseState"},"trigger":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAIFailureStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"SimpleCL_AAIFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAIFailureResponseState"}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAISuccessResponseState"},"trigger":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAISuccessStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"},"outgoingEvent":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"SimpleCL_AAISuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAISuccessResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifyFailureResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifyFailureResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifySuccessResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifySuccessResponseState"}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveVesState","value":{"stateKey":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveVesState"},"trigger":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"VesOutput","value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"},"outgoingEvent":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"SimpleCL_VesEventHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"SimpleCL_CDSConfigModifyRequestEvent","value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"},"outputEvents":{"entry":[{"key":"SimpleCL_AAIRequestEvent","value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]}},"toscaPolicyState":"EXIT_FAILURE"},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}},"eventInputParameters":{"SimpleCL_DCAEConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_VesEvent"},"SimpleCL_AAIResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}","httpMethod":"GET","httpCodeFilter":"[2-5][0-1][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIProducer","requestorTimeout":2000},"SimpleCL_CDSConfigModifyResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyRequestProducer","requestorTimeout":500}},"eventOutputParameters":{"SimpleCL_AAIProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_AAIRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIResponseConsumer","requestorTimeout":2000},"SimpleCL_CDSConfigModifyRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":60}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyResponseConsumer","requestorTimeout":500},"SimpleCL_logOutputter":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/APEX-CL-MGT"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_LogEvent"}}},"name":"onap.policies.apex.pnf.Test","version":"1.0.0","metadata":{"policy-id":"onap.policies.apex.pnf.Test","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"a6c770f9-032d-45b8-8d39-a7f1c9708cf1","timestampMs":1711335326049,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | { simulator | requestId: "6a22d147-0295-4872-ae28-c474ed38d52f" grafana | logger=migrator t=2024-03-25T02:52:34.473730572Z level=info msg="Executing migration" id="add index user_auth_token.user_id" policy-db-migrator | > upgrade 0670-toscapolicies.sql policy-pap | [2024-03-25T02:55:26.149+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-HEARTBEAT] discarding event of type PDP_UPDATE policy-apex-pdp | "related-to": "service-instance", simulator | subRequestId: "fault0000245" grafana | logger=migrator t=2024-03-25T02:52:34.475067127Z level=info msg="Migration successfully executed" id="add index user_auth_token.user_id" duration=1.335845ms policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:26.149+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-apex-pdp | "relationship-label": "org.onap.relationships.inventory.ComposedOf", simulator | originatorId: "POLICY" grafana | logger=migrator t=2024-03-25T02:52:34.48050948Z level=info msg="Executing migration" id="Add revoked_at to the user auth token" policy-pap | [2024-03-25T02:55:26.149+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-apex-pdp | "related-link": "/aai/v14/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2", policy-db-migrator | CREATE TABLE IF NOT EXISTS toscapolicies (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCAPOLICIES (name, version)) simulator | } policy-pap | [2024-03-25T02:55:26.155+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:34.489005189Z level=info msg="Migration successfully executed" id="Add revoked_at to the user auth token" duration=8.486298ms policy-apex-pdp | "relationship-data": [ policy-db-migrator | -------------- simulator | actionIdentifiers { policy-pap | [2024-03-25T02:55:26.167+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:34.498955654Z level=info msg="Executing migration" id="add index user_auth_token.revoked_at" policy-apex-pdp | { policy-db-migrator | simulator | blueprintName: "apex-example-cba" grafana | logger=migrator t=2024-03-25T02:52:34.500496041Z level=info msg="Migration successfully executed" id="add index user_auth_token.revoked_at" duration=1.539567ms policy-apex-pdp | "relationship-key": "customer.global-customer-id", policy-db-migrator | policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT"}]},"policy_type_impl":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"c8a29e27-0a15-354a-84f9-4c7f207e5c81","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"5e843cee-0180-39b9-8989-180b2ffe11c0","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"UUID":"90291c92-9b27-3cd9-8720-db572419c048","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"UUID":"7b7e6751-4e0b-389d-98c0-5567bbc0294c","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"63d5680c-14ef-3505-8d34-ebb646bba07b","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"a84ca97d-6e94-39a2-91f9-59a6c9aa435e","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"0e2ee622-7fd3-3e49-82e2-539c4f5e9624","description":"Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"e84f8682-ea33-3ad0-8626-8bc4634581fc","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"a252f835-2479-38ef-9ef4-20af62725752","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"UUID":"cfc46ea9-b8c1-38dd-ac9c-304c916daf34","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"1e7095d6-a455-3f89-acae-486e35d7e311","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"UUID":"d22ea83b-695d-3da9-b9f5-41f16ca433bf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"e9fe2e40-1f0d-30dd-8b9e-885695878693","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"5e04fa76-0a17-38a9-8524-23b2d1a23fa5","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"15866380-40f5-3f8e-87d9-13747a36d352","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"UUID":"2c3d76ce-dd42-32ac-a397-ab418534e1cf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"b99c44da-dae7-3c96-b528-58852537d063","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"1db688e2-3afe-3b03-9795-fdbfa80fa240","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"31022456-e85b-3a9b-9ecb-a09691792d3e","description":"Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"d6075720-622e-3a0d-827a-aa4580a2f5d7","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"UUID":"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"UUID":"a0407d0b-5719-38bf-9529-25ad62ace8c4","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"UUID":"28e894dc-4ab8-3469-aab7-d81bd05bb4c9","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"UUID":"073f1433-999e-3506-98ad-ef820d2fa7f0","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask:0.0.1\""}},{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"UUID":"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74","description":"Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask:0.0.1\""}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"UUID":"317be184-a01a-3e2d-9ae4-cafaa405de70","description":"Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"UUID":"be7fc79b-9b73-381a-8e23-9dd6e6b1233d","description":"Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"UUID":"1a082851-49e3-3f4c-b023-c05236cc8389","description":"Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"UUID":"cab6cd51-ea7b-3241-a173-ea8a24e29737","description":"Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"UUID":"0f57665a-f0a9-314e-ad0a-04c1f5758174","description":"Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"UUID":"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b","description":"Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"UUID":"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1","description":"Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop","version":"0.0.1"},"UUID":"ecc97b87-f30b-344c-a476-d36501bf5cbd","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"UUID":"1469671a-56dd-3a68-bf6c-77a5cf7a9487","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"UUID":"23c4eee4-aba5-36f6-96d6-46f40061bfed","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_KeyInfo","version":"0.0.1"},"UUID":"ea9e73ff-483c-3827-896c-6eaa9d69bc6e","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"UUID":"38c068e5-bb9a-3997-9e50-ec77c66825c8","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"UUID":"38514b27-8b9b-3d06-844a-3aced27deb0a","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"UUID":"0e0387b5-07fa-30e4-8554-eb51d2e18939","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAIFailureResponseState"},"trigger":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAIFailureStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"SimpleCL_AAIFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAIFailureResponseState"}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAISuccessResponseState"},"trigger":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAISuccessStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"},"outgoingEvent":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"SimpleCL_AAISuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAISuccessResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifyFailureResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifyFailureResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifySuccessResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifySuccessResponseState"}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_VesEventHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveVesState","value":{"stateKey":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveVesState"},"trigger":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"VesOutput","value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"},"outgoingEvent":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"SimpleCL_VesEventHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"SimpleCL_CDSConfigModifyRequestEvent","value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"},"outputEvents":{"entry":[{"key":"SimpleCL_AAIRequestEvent","value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]}},"toscaPolicyState":"EXIT_FAILURE"},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Simplecontrolloop_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}},"eventInputParameters":{"SimpleCL_DCAEConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_VesEvent"},"SimpleCL_AAIResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}","httpMethod":"GET","httpCodeFilter":"[2-5][0-1][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIProducer","requestorTimeout":2000},"SimpleCL_CDSConfigModifyResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyRequestProducer","requestorTimeout":500}},"eventOutputParameters":{"SimpleCL_AAIProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_AAIRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIResponseConsumer","requestorTimeout":2000},"SimpleCL_CDSConfigModifyRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":60}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyResponseConsumer","requestorTimeout":500},"SimpleCL_logOutputter":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/APEX-CL-MGT"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_LogEvent"}}},"name":"onap.policies.apex.pnf.Test","version":"1.0.0","metadata":{"policy-id":"onap.policies.apex.pnf.Test","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"a6c770f9-032d-45b8-8d39-a7f1c9708cf1","timestampMs":1711335326049,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | blueprintVersion: "1.0.0" grafana | logger=migrator t=2024-03-25T02:52:34.506620933Z level=info msg="Executing migration" id="create cache_data table" policy-apex-pdp | "relationship-value": "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf" policy-db-migrator | > upgrade 0680-toscapolicies_toscapolicy.sql policy-pap | [2024-03-25T02:55:26.168+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_UPDATE simulator | actionName: "modify-config" grafana | logger=migrator t=2024-03-25T02:52:34.507532463Z level=info msg="Migration successfully executed" id="create cache_data table" duration=910.24µs policy-apex-pdp | }, policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:26.168+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 simulator | mode: "sync" grafana | logger=migrator t=2024-03-25T02:52:34.51162435Z level=info msg="Executing migration" id="add unique index cache_data.cache_key" policy-apex-pdp | { policy-db-migrator | CREATE TABLE IF NOT EXISTS toscapolicies_toscapolicy (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCAPOLICIES_TOSCAPOLICY (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion)) simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.512567931Z level=info msg="Migration successfully executed" id="add unique index cache_data.cache_key" duration=943.481µs policy-apex-pdp | "relationship-key": "service-subscription.service-type", policy-pap | [2024-03-25T02:55:26.168+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | -------------- simulator | payload { grafana | logger=migrator t=2024-03-25T02:52:34.51857908Z level=info msg="Executing migration" id="create short_url table v1" policy-apex-pdp | "relationship-value": "vFWDT" policy-pap | [2024-03-25T02:55:26.928+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.520467983Z level=info msg="Migration successfully executed" id="create short_url table v1" duration=1.899193ms policy-apex-pdp | }, policy-pap | [2024-03-25T02:55:26.929+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-db-migrator | simulator | key: "modify-config-request" grafana | logger=migrator t=2024-03-25T02:52:34.526601733Z level=info msg="Executing migration" id="add index short_url.org_id-uid" policy-apex-pdp | { policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:26.885340Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":1,"policyExecutedSuccessCount":1,"policyExecutedFailCount":0,"policyDeployCount":2,"policyDeploySuccessCount":2,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326524,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326546,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326563,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579}]},"response":{"responseTo":"a6c770f9-032d-45b8-8d39-a7f1c9708cf1","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.pnf.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"593f154b-c3da-41a5-8caa-db06ef1dee7a","timestampMs":1711335326885,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | > upgrade 0690-toscapolicy.sql simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.527820787Z level=info msg="Migration successfully executed" id="add index short_url.org_id-uid" duration=1.220104ms policy-apex-pdp | "relationship-key": "service-instance.service-instance-id", policy-pap | [2024-03-25T02:55:26.930+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK policy-db-migrator | -------------- simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:34.53498964Z level=info msg="Executing migration" id="alter table short_url alter column created_by type to bigint" policy-apex-pdp | "relationship-value": "55322ada-145a-492e-b196-0d171539a4b2" policy-pap | [2024-03-25T02:55:26.930+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] policy-db-migrator | CREATE TABLE IF NOT EXISTS toscapolicy (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, type_name VARCHAR(255) NULL, type_version VARCHAR(255) NULL, PRIMARY KEY PK_TOSCAPOLICY (name, version)) simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.535080521Z level=info msg="Migration successfully executed" id="alter table short_url alter column created_by type to bigint" duration=91.661µs policy-apex-pdp | } policy-db-migrator | -------------- policy-db-migrator | simulator | key: "vfStatus" grafana | logger=migrator t=2024-03-25T02:52:34.538967875Z level=info msg="Executing migration" id="delete alert_definition table" policy-apex-pdp | ], policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:26.885340Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":1,"policyExecutedSuccessCount":1,"policyExecutedFailCount":0,"policyDeployCount":2,"policyDeploySuccessCount":2,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326524,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326546,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326563,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579}]},"response":{"responseTo":"a6c770f9-032d-45b8-8d39-a7f1c9708cf1","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.pnf.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"593f154b-c3da-41a5-8caa-db06ef1dee7a","timestampMs":1711335326885,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.539129767Z level=info msg="Migration successfully executed" id="delete alert_definition table" duration=162.222µs policy-apex-pdp | "related-to-property": [ policy-pap | [2024-03-25T02:55:26.933+00:00|INFO|RequestIdDispatcher|DMAAP-source-POLICY-HEARTBEAT] no listener for request id a6c770f9-032d-45b8-8d39-a7f1c9708cf1 policy-db-migrator | > upgrade 0700-toscapolicytype.sql simulator | string_value: "Active" grafana | logger=migrator t=2024-03-25T02:52:34.543287136Z level=info msg="Executing migration" id="recreate alert_definition table" policy-apex-pdp | { policy-pap | [2024-03-25T02:55:26.933+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.545085206Z level=info msg="Migration successfully executed" id="recreate alert_definition table" duration=1.79724ms policy-apex-pdp | "property-key": "service-instance.service-instance-name", policy-pap | [2024-03-25T02:55:26.933+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-db-migrator | CREATE TABLE IF NOT EXISTS toscapolicytype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCAPOLICYTYPE (name, version)) simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.548640018Z level=info msg="Executing migration" id="add index in alert_definition on org_id and title columns" policy-apex-pdp | "property-value": "Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659" policy-pap | [2024-03-25T02:55:26.940+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping policy-db-migrator | -------------- simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.550383497Z level=info msg="Migration successfully executed" id="add index in alert_definition on org_id and title columns" duration=1.742629ms policy-apex-pdp | } policy-pap | [2024-03-25T02:55:26.940+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping enqueue policy-db-migrator | simulator | key: "update-properties" grafana | logger=migrator t=2024-03-25T02:52:34.557014474Z level=info msg="Executing migration" id="add index in alert_definition on org_id and uid columns" policy-apex-pdp | ] policy-pap | [2024-03-25T02:55:26.940+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping timer policy-db-migrator | simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.558134187Z level=info msg="Migration successfully executed" id="add index in alert_definition on org_id and uid columns" duration=1.117653ms policy-apex-pdp | } policy-pap | [2024-03-25T02:55:26.940+00:00|INFO|TimerManager|DMAAP-source-POLICY-PDP-PAP] update timer cancelled Timer [name=a6c770f9-032d-45b8-8d39-a7f1c9708cf1, expireMs=1711335356082] policy-db-migrator | > upgrade 0710-toscapolicytypes.sql simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:34.564079745Z level=info msg="Executing migration" id="alter alert_definition table data column to mediumtext in mysql" policy-apex-pdp | ] policy-pap | [2024-03-25T02:55:26.940+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping listener policy-db-migrator | -------------- simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.564232527Z level=info msg="Migration successfully executed" id="alter alert_definition table data column to mediumtext in mysql" duration=152.802µs policy-apex-pdp | } policy-pap | [2024-03-25T02:55:26.940+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopped policy-db-migrator | CREATE TABLE IF NOT EXISTS toscapolicytypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCAPOLICYTYPES (name, version)) simulator | key: "service-instance.service-instance-id" grafana | logger=migrator t=2024-03-25T02:52:34.569127814Z level=info msg="Executing migration" id="drop index in alert_definition on org_id and title columns" policy-apex-pdp | } policy-pap | [2024-03-25T02:55:26.950+00:00|INFO|RequestImpl|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate successful policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.570748462Z level=info msg="Migration successfully executed" id="drop index in alert_definition on org_id and title columns" duration=1.620678ms policy-apex-pdp | policy-pap | [2024-03-25T02:55:26.950+00:00|INFO|PdpRequests|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 has no more requests policy-db-migrator | simulator | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" grafana | logger=migrator t=2024-03-25T02:52:34.57746101Z level=info msg="Executing migration" id="drop index in alert_definition on org_id and uid columns" policy-apex-pdp | policy-pap | [2024-03-25T02:55:26.951+00:00|INFO|network|Thread-8] [OUT|DMAAP|POLICY-NOTIFICATION] policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.578443981Z level=info msg="Migration successfully executed" id="drop index in alert_definition on org_id and uid columns" duration=982.071µs policy-apex-pdp | [2024-03-25T02:55:38.392+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:1] ApexExample_HandleAAISuccessResponseTask processing event - {in-maint=false, is-closed-loop-disabled=false, model-customization-id=37b008b9-b367-4359-93fd-74d3ce0ee1a0, model-invariant-id=vTEST_XYZ, model-version-id=vTEST, orchestration-status=Assigned, prov-status=ACTIVE, relationship-list={"relationship": [{"related_DasH_to": "service-instance", "relationship_DasH_label": "org.onap.relationships.inventory.ComposedOf", "related_DasH_link": "/aai/v14/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2", "relationship_DasH_data": [{"relationship_DasH_key": "customer.global-customer-id", "relationship_DasH_value": "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf"}, {"relationship_DasH_key": "service-subscription.service-type", "relationship_DasH_value": "vFWDT"}, {"relationship_DasH_key": "service-instance.service-instance-id", "relationship_DasH_value": "55322ada-145a-492e-b196-0d171539a4b2"}], "related_DasH_to_DasH_property": [{"property_DasH_key": "service-instance.service-instance-name", "property_DasH_value": "Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659"}]}]}, resource-version=1607506390862, service-id=37b008b9-b367-4359-93fd-74d3ce0ee1a0, vnf-id=37b008b9-b367-4359-93fd-74d3ce0ee1a0, vnf-name=vfw-cnf-cds-test-1-vnf, vnf-type=vfw_cnf_cds/null} policy-pap | {"deployed-policies":[{"policy-type":"onap.policies.native.Apex","policy-type-version":"1.0.0","policy-id":"onap.policies.apex.pnf.Test","policy-version":"1.0.0","success-count":1,"failure-count":0,"incomplete-count":0}],"undeployed-policies":[]} policy-db-migrator | > upgrade 0720-toscapolicytypes_toscapolicytype.sql simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.583500309Z level=info msg="Executing migration" id="add unique index in alert_definition on org_id and title columns" policy-apex-pdp | [2024-03-25T02:55:38.396+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:1] CDS modify config request payload - {"modify-config-request":{"vfStatus":"Active","update-properties":{"service-instance.service-instance-id":"37b008b9-b367-4359-93fd-74d3ce0ee1a0","generic-vnf.vnf-id":"37b008b9-b367-4359-93fd-74d3ce0ee1a0","data":{"active-streams":"7"}}}} policy-pap | [2024-03-25T02:55:26.985+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] sending 1 msgs to /events/POLICY-NOTIFICATION. Oldest: 34 ms policy-db-migrator | -------------- simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.585667525Z level=info msg="Migration successfully executed" id="add unique index in alert_definition on org_id and title columns" duration=2.160756ms policy-apex-pdp | [2024-03-25T02:55:38.397+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:1] sending the status to log. policy-pap | [2024-03-25T02:55:26.985+00:00|INFO|HttpClient|pool-4-thread-1] POST http://message-router:3904/events/POLICY-NOTIFICATION (anonymous) ... policy-db-migrator | CREATE TABLE IF NOT EXISTS toscapolicytypes_toscapolicytype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCAPOLICYTYPES_TOSCAPOLICYTYPE (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion)) simulator | key: "generic-vnf.vnf-id" grafana | logger=migrator t=2024-03-25T02:52:34.589950474Z level=info msg="Executing migration" id="add unique index in alert_definition on org_id and uid columns" policy-apex-pdp | [2024-03-25T02:55:38.397+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:1] LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e5460141"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1711335338396,"status" : "SUCCESS","message" : "VNF details are received from AAI successfully. Sending ConfigModify request to CDS.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} policy-pap | [2024-03-25T02:55:26.992+00:00|INFO|HttpClient|pool-4-thread-1] --> HTTP/1.1 200 OK policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.591855376Z level=info msg="Migration successfully executed" id="add unique index in alert_definition on org_id and uid columns" duration=1.905602ms policy-apex-pdp | [2024-03-25T02:55:38.404+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:1] DMaaP Response after sending LogEvent: (200,{"serverTimeMs":0,"count":1}) policy-pap | [2024-03-25T02:55:26.992+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] cambria reply ok (7 ms):{"serverTimeMs":0,"count":1} policy-db-migrator | simulator | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" grafana | logger=migrator t=2024-03-25T02:52:34.596722692Z level=info msg="Executing migration" id="Add column paused in alert_definition" policy-apex-pdp | [2024-03-25T02:55:38.409+00:00|INFO|CdsProcessorHandler|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSConfigModifyRequestProducer-16:0] Processing blueprint(1.0.0:apex-example-cba) for action(1.0.0) policy-pap | [2024-03-25T02:55:27.269+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.603282218Z level=info msg="Migration successfully executed" id="Add column paused in alert_definition" duration=6.559276ms policy-apex-pdp | [2024-03-25T02:55:38.410+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSConfigModifyRequestProducer-16:0] [OUT|REST|gRPC://grpc-sim:6680/] policy-pap | [2024-03-25T02:55:27.269+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | > upgrade 0730-toscaproperty.sql simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.606456224Z level=info msg="Executing migration" id="drop alert_definition table" policy-apex-pdp | commonHeader { policy-pap | [2024-03-25T02:55:32.865+00:00|INFO|SessionData|http-nio-6969-exec-1] cache group defaultGroup policy-db-migrator | -------------- simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.607294945Z level=info msg="Migration successfully executed" id="drop alert_definition table" duration=844.851µs policy-apex-pdp | requestId: "6a22d147-0295-4872-ae28-c474ed38d52f" policy-pap | [2024-03-25T02:55:33.027+00:00|INFO|PolicyAuditManager|http-nio-6969-exec-1] Registering a deploy for policy onap.policies.apex.vnf.Test 1.0.0 policy-db-migrator | CREATE TABLE IF NOT EXISTS toscaproperty (DEFAULTVALUE VARCHAR(255) DEFAULT NULL, `DESCRIPTION` VARCHAR(255) DEFAULT NULL, ENTRYSCHEMA LONGBLOB DEFAULT NULL, REQUIRED BOOLEAN DEFAULT 0, STATUS INT DEFAULT NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, name VARCHAR(120) DEFAULT NULL, version VARCHAR(20) DEFAULT NULL, PRIMARY KEY PK_TOSCAPROPERTY (parentLocalName, localName, parentKeyVersion, parentKeyName)) policy-apex-pdp | subRequestId: "fault0000245" policy-db-migrator | -------------- simulator | key: "data" grafana | logger=migrator t=2024-03-25T02:52:34.61213051Z level=info msg="Executing migration" id="delete alert_definition_version table" policy-pap | [2024-03-25T02:55:33.027+00:00|INFO|SessionData|http-nio-6969-exec-1] add update apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 defaultGroup apex policies=1 policy-db-migrator | simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.612293612Z level=info msg="Migration successfully executed" id="delete alert_definition_version table" duration=163.422µs policy-apex-pdp | originatorId: "POLICY" policy-db-migrator | simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:34.616244528Z level=info msg="Executing migration" id="recreate alert_definition_version table" policy-pap | [2024-03-25T02:55:33.027+00:00|INFO|SessionData|http-nio-6969-exec-1] update cached group defaultGroup policy-db-migrator | > upgrade 0740-toscarelationshiptype.sql simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.617406241Z level=info msg="Migration successfully executed" id="recreate alert_definition_version table" duration=1.161193ms policy-apex-pdp | } policy-pap | [2024-03-25T02:55:33.028+00:00|INFO|SessionData|http-nio-6969-exec-1] updating DB group defaultGroup policy-db-migrator | -------------- simulator | key: "active-streams" grafana | logger=migrator t=2024-03-25T02:52:34.620931931Z level=info msg="Executing migration" id="add index in alert_definition_version table on alert_definition_id and version columns" policy-apex-pdp | actionIdentifiers { policy-pap | [2024-03-25T02:55:33.036+00:00|INFO|PolicyAuditManager|http-nio-6969-exec-1] sending audit records to database: [PolicyAudit(auditId=null, pdpGroup=defaultGroup, pdpType=apex, policy=onap.policies.apex.vnf.Test 1.0.0, action=DEPLOYMENT, timestamp=2024-03-25T02:55:33Z, user=policyadmin)] policy-db-migrator | CREATE TABLE IF NOT EXISTS toscarelationshiptype (`DESCRIPTION` VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCARELATIONSHIPTYPE (name, version)) simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.622219646Z level=info msg="Migration successfully executed" id="add index in alert_definition_version table on alert_definition_id and version columns" duration=1.287155ms policy-apex-pdp | blueprintName: "apex-example-cba" policy-pap | [2024-03-25T02:55:33.048+00:00|INFO|ServiceManager|http-nio-6969-exec-1] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting policy-apex-pdp | blueprintVersion: "1.0.0" policy-db-migrator | -------------- simulator | string_value: "7" grafana | logger=migrator t=2024-03-25T02:52:34.627115073Z level=info msg="Executing migration" id="add index in alert_definition_version table on alert_definition_uid and version columns" policy-pap | [2024-03-25T02:55:33.048+00:00|INFO|ServiceManager|http-nio-6969-exec-1] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting listener policy-apex-pdp | actionName: "modify-config" policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.629030415Z level=info msg="Migration successfully executed" id="add index in alert_definition_version table on alert_definition_uid and version columns" duration=1.914092ms policy-pap | [2024-03-25T02:55:33.048+00:00|INFO|ServiceManager|http-nio-6969-exec-1] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting timer policy-apex-pdp | mode: "sync" policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.632363313Z level=info msg="Executing migration" id="alter alert_definition_version table data column to mediumtext in mysql" policy-pap | [2024-03-25T02:55:33.048+00:00|INFO|TimerManager|http-nio-6969-exec-1] update timer registered Timer [name=1d75e5c4-c663-4eba-9027-4143fc82e32d, expireMs=1711335363048] policy-apex-pdp | } policy-db-migrator | > upgrade 0750-toscarelationshiptypes.sql simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.632472465Z level=info msg="Migration successfully executed" id="alter alert_definition_version table data column to mediumtext in mysql" duration=108.762µs policy-pap | [2024-03-25T02:55:33.048+00:00|INFO|ServiceManager|http-nio-6969-exec-1] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting enqueue policy-apex-pdp | payload { policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.635801614Z level=info msg="Executing migration" id="drop alert_definition_version table" policy-pap | [2024-03-25T02:55:33.048+00:00|INFO|ServiceManager|http-nio-6969-exec-1] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate started policy-apex-pdp | fields { policy-db-migrator | CREATE TABLE IF NOT EXISTS toscarelationshiptypes (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCARELATIONSHIPTYPES (name, version)) simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.636836235Z level=info msg="Migration successfully executed" id="drop alert_definition_version table" duration=1.033461ms policy-pap | [2024-03-25T02:55:33.050+00:00|INFO|network|Thread-7] [OUT|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | key: "modify-config-request" policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.641102105Z level=info msg="Executing migration" id="create alert_instance table" policy-apex-pdp | value { policy-db-migrator | policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":5,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT"}]},"policy_type_impl":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"fc0c1892-a2ae-3678-818f-b9b23939b241","description":"Generated description for concept referred to by key \"ApexExample_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"ba931e7e-aee9-3af8-98d8-16b92a909e8a","description":"Generated description for concept referred to by key \"ApexExample_AAIFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"UUID":"b4dd59c5-0169-3810-800c-1396c2206de4","description":"Generated description for concept referred to by key \"ApexExample_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"UUID":"599c297e-96c8-3b21-ad1c-e643bddeacbf","description":"Generated description for concept referred to by key \"ApexExample_AAIRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"b5e3f122-2dcd-3cdf-a0ec-8210b3f80478","description":"Generated description for concept referred to by key \"ApexExample_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"15504e23-78c5-305e-9fce-cf1f50e75013","description":"Generated description for concept referred to by key \"ApexExample_AAISuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"e2715e7d-835e-32c7-b433-a2e92bcad6ee","description":"Generated description for concept referred to by key \"ApexExample_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"b492e841-2c03-36a9-9ec2-dda5852152c3","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"ef4e45f4-1181-3121-a3b6-507126df25e7","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"UUID":"91cb711a-0c73-3f51-83e6-fca9c547c71d","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"dda3c648-dc8b-38e0-855d-9cb72397f957","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"96b306bd-6dee-3d47-981c-eaac316d5ae1","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"1b65abfb-ce35-3765-9b9c-d2ee02bef28b","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"4dac3de7-3817-396f-91d6-ce701d162877","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"UUID":"92dc9e6b-2082-3d90-ba5e-f2dba18b72b6","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"a6801c93-f15b-3158-ba33-7760197d3609","description":"Generated description for concept referred to by key \"ApexExample_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"e2da0a15-c542-3e77-874d-4512e9b4162e","description":"Generated description for concept referred to by key \"ApexExample_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"f54edff0-532f-3142-8e65-a5c9d67888ef","description":"Generated description for concept referred to by key \"ApexExample_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"UUID":"b967dc44-a156-32d3-a796-f03dbf74316c","description":"Generated description for concept referred to by key \"ApexExample_CDSRequestPayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"UUID":"f2aa4552-069d-3db8-8638-2d1f59124e7a","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"c2e3b07f-2c09-3195-9527-6b3ab0666d61","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"UUID":"a7c28cc1-9fe5-30b7-9dd8-5a4f7f7d811e","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"UUID":"d01d1022-48ac-391d-904d-282ccb063f8a","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"UUID":"ad8cbd94-6eb5-3743-8a7d-42cbe49a5320","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartResponsePayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"UUID":"bbb06330-9161-392e-a0ca-a6bb5e3376af","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"70c6c6e5-00da-30cb-8ec0-14437d657f39","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"UUID":"77f16151-80b5-304c-a448-19d8528feed1","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"2f17aee2-fbdf-3c41-a779-f9c17b5bda5b","description":"Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"8c554852-3ed6-3027-a0d3-fccd2db19875","description":"Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"UUID":"b402baca-915b-3952-97fc-d9899f9ca81c","description":"Generated description for concept referred to by key \"ApexExample_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"UUID":"3626f32a-eee6-3254-b3d4-e4829518c381","description":"Generated description for concept referred to by key \"ApexExample_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"UUID":"87abb453-a919-3131-8ffb-3e5c910c6049","description":"Generated description for concept referred to by key \"ApexExample_HandleAAIFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"UUID":"8881e644-3cca-3aec-8201-312ca6f719e0","description":"Generated description for concept referred to by key \"ApexExample_HandleAAISuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"UUID":"057f6ddd-d6aa-3ce2-a060-d344de16d7f3","description":"Generated description for concept referred to by key \"ApexExample_HandleVesEventTask:0.0.1\""}},{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"UUID":"4867b1e7-a819-3b9f-be2b-a97fe6019827","description":"Generated description for concept referred to by key \"ApexExample_LogStatusEvent:0.0.1\""}},{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"UUID":"975b3071-b775-3617-a888-f831fe5a31db","description":"Generated description for concept referred to by key \"ApexExample_VesEvent:0.0.1\""}},{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"UUID":"ad9efe17-a03e-3b64-8e8a-51e144f57d2c","description":"Generated description for concept referred to by key \"ApexExample_VesEventHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"UUID":"0054393c-10df-3214-af86-cb04a23325bf","description":"Generated description for concept referred to by key \"ApexExample_VesEventType:0.0.1\""}},{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"UUID":"865a5903-201b-34ff-918b-2bfdde743576","description":"Generated description for concept referred to by key \"ApexExample_VnfRelationShipListType:0.0.1\""}},{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"UUID":"b2501730-8870-3475-b22a-4a4d22792ebb","description":"Generated description for concept referred to by key \"onap.policies.apex.Example:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"UUID":"7dc5f49d-c291-38de-bcae-1db30d00581f","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"UUID":"06b3112b-ae8b-3f37-8aa6-f539c0250550","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"UUID":"454848e1-43ac-3ce4-bfdc-b9b6271dc563","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"UUID":"24c3fca5-b0dd-398c-83ee-66a187296b32","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"UUID":"c6aff774-f50a-329d-a731-9c23a6e7e02e","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"UUID":"f856a6df-6237-3acc-aa68-f55e64cc0ec9","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveAAIFailureResponseState"},"trigger":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_AAIFailureStateOutput","value":{"key":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureStateOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureStateOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveAAIFailureResponseState"}},{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveAAISuccessResponseState"},"trigger":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_AAISuccessStateOutput","value":{"key":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessStateOutput"},"outgoingEvent":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessStateOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveAAISuccessResponseState"}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSConfigModifyFailureResponseState"},"trigger":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSConfigModifyFailureResponseState"}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSConfigModifySuccessResponseState"},"trigger":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSConfigModifySuccessResponseState"}},{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSRestartFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSRestartFailureResponseState"},"trigger":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_RestartFailureResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_RestartFailureResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_CDSRestartFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_RestartFailureResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSRestartFailureResponseState"}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSRestartSuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSRestartSuccessResponseState"},"trigger":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_RestartSuccessResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_RestartSuccessResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_RestartSuccessResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSRestartSuccessResponseState"}},{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveVesState","value":{"stateKey":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveVesState"},"trigger":{"name":"ApexExample_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_VesOutput","value":{"key":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesOutput"},"outgoingEvent":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesEventHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nerrorMessage = errorMessage.replace(/\"/g, '\\\\\\\"')\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime());\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\nvar vnfDetails = eventDetailsAlbum.get(\"vnfDetails\");\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"restart\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-name\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"restart_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(+executor.outFields);\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"ConfigModify request is successful. Sending restart request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar timestamp = longType(new Date().getTime());\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_SUCCESS\", \"Successfully processed the VES Event. Restart is complete.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\nvar timestamp = longType(new Date().getTime());\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"is-closed-loop-disabled","value":{"key":"is-closed-loop-disabled","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"model-customization-id","value":{"key":"model-customization-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-invariant-id","value":{"key":"model-invariant-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-version-id","value":{"key":"model-version-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"orchestration-status","value":{"key":"orchestration-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"prov-status","value":{"key":"prov-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"relationship-list","value":{"key":"relationship-list","fieldSchemaKey":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"service-id","value":{"key":"service-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-id","value":{"key":"vnf-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-name","value":{"key":"vnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-type","value":{"key":"vnf-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\n\nvar vnfDetails = executor.inFields;\nexecutor.logger.info(\"ApexExample_HandleAAISuccessResponseTask processing event - \" + vnfDetails);\neventDetailsAlbum.put(\"vnfDetails\", vnfDetails);\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"modify-config\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-id\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\nvar payloadSchemaHelper = executor.subject.getOutFieldSchemaHelper(\"payload\");\npayload.put(\"modify_DasH_config_DasH_request\", payloadEntry);\n\n//always use the executor.stringify2json method instead of JSON.strngify\nexecutor.logger.info(\"CDS modify config request payload - \" + executor.stringify2Json(payload, payloadSchemaHelper));\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\nvar timestamp = longType(new Date().getTime());\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"VNF details are received from AAI successfully. Sending ConfigModify request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"ApexExample_VesEventType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"ApexExample_HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar faultFields = event.get(\"faultFields\");\n\n//albumID will be used to fetch info from our album later\nvar albumID = commonEventHeader.get(\"sourceId\");\n\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming fault event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader)\neventDetailsAlbum.put(\"faultFields\", faultFields)\nexecutor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"vnf-name\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceName\"));\n\nvar timestamp = longType(new Date().getTime());\nsend(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), \"VNF\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceId\"), timestamp, \"ACTIVE\", \"VES event has been received. Going to fetch VNF details from AAI.\")\n\nexecutor.logger.info(executor.outFields);\nreturnValue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"is-closed-loop-disabled","value":{"key":"is-closed-loop-disabled","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"model-customization-id","value":{"key":"model-customization-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-invariant-id","value":{"key":"model-invariant-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-version-id","value":{"key":"model-version-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"orchestration-status","value":{"key":"orchestration-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"prov-status","value":{"key":"prov-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"relationship-list","value":{"key":"relationship-list","fieldSchemaKey":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"service-id","value":{"key":"service-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-id","value":{"key":"vnf-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-name","value":{"key":"vnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-type","value":{"key":"vnf-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"ApexExample_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n },\n {\n \"name\": \"update_DasH_properties\",\n \"type\": {\n \"name\": \"update_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"service_DasH_instance_DoT_service_DasH_instance_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"generic_DasH_vnf_DoT_vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"data\",\n \"type\": {\n \"name\": \"update_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"active_DasH_streams\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n }\n}"}},{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSRestartResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"restart_DasH_response\",\n \"type\": {\n \"name\": \"restart_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"vnfDetails\",\n \"type\": {\n \"name\": \"vnfDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_type\",\n \"type\": \"string\"\n },\n {\n \"name\": \"service_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"prov_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"orchestration_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"in_DasH_maint\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"is_DasH_closed_DasH_loop_DasH_disabled\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"resource_DasH_version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_invariant_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_version_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_customization_DasH_id\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"event\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"VnfRelationShipListType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"related_DasH_to\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_label\",\n \"type\": \"string\"\n },\n {\n \"name\": \"related_DasH_link\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_data\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"related_DasH_to_DasH_property\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"related_DasH_to_DasH_property_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"property_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"property_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n }\n ]\n}"}},{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}},"eventInputParameters":{"ApexExample_DCAEConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_VesEvent"},"ApexExample_AAIResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}","httpMethod":"GET","httpCodeFilter":"[245][0-9][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_AAISuccessResponseEvent|ApexExample_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_AAIProducer","requestorTimeout":2000},"ApexExample_CDSConfigModifyResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_CDSConfigModifySuccessResponseEvent|ApexExample_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSConfigModifyRequestProducer","requestorTimeout":500},"ApexExample_CDSRestartResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_CDSRestartSuccessResponseEvent|ApexExample_CDSRestartFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSRestartRequestProducer","requestorTimeout":500}},"eventOutputParameters":{"ApexExample_AAIProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_AAIRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_AAIResponseConsumer","requestorTimeout":2000},"ApexExample_CDSConfigModifyRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":10}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSConfigModifyResponseConsumer","requestorTimeout":500},"ApexExample_CDSRestartRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":10}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_CDSRestartRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSRestartResponseConsumer","requestorTimeout":500}}},"name":"onap.policies.apex.vnf.Test","version":"1.0.0","metadata":{"policy-id":"onap.policies.apex.vnf.Test","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"1d75e5c4-c663-4eba-9027-4143fc82e32d","timestampMs":1711335333027,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.642301738Z level=info msg="Migration successfully executed" id="create alert_instance table" duration=1.199743ms policy-apex-pdp | struct_value { policy-db-migrator | policy-pap | [2024-03-25T02:55:33.083+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 33 ms simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.645730147Z level=info msg="Executing migration" id="add index in alert_instance table on def_org_id, def_uid and current_state columns" policy-apex-pdp | fields { policy-db-migrator | > upgrade 0760-toscarelationshiptypes_toscarelationshiptype.sql policy-pap | [2024-03-25T02:55:33.083+00:00|INFO|HttpClient|pool-3-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.647121704Z level=info msg="Migration successfully executed" id="add index in alert_instance table on def_org_id, def_uid and current_state columns" duration=1.389457ms policy-apex-pdp | key: "vfStatus" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:33.106+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.650752036Z level=info msg="Executing migration" id="add index in alert_instance table on def_org_id, current_state columns" policy-apex-pdp | value { policy-db-migrator | CREATE TABLE IF NOT EXISTS toscarelationshiptypes_toscarelationshiptype (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCARELATIONSHIPTYPES_TOSCARELATIONSHIPTYPE (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion)) policy-pap | [2024-03-25T02:55:33.109+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.652454466Z level=info msg="Migration successfully executed" id="add index in alert_instance table on def_org_id, current_state columns" duration=1.70211ms policy-apex-pdp | string_value: "Active" policy-db-migrator | -------------- simulator | } policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":5,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT"}]},"policy_type_impl":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"fc0c1892-a2ae-3678-818f-b9b23939b241","description":"Generated description for concept referred to by key \"ApexExample_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"ba931e7e-aee9-3af8-98d8-16b92a909e8a","description":"Generated description for concept referred to by key \"ApexExample_AAIFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"UUID":"b4dd59c5-0169-3810-800c-1396c2206de4","description":"Generated description for concept referred to by key \"ApexExample_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"UUID":"599c297e-96c8-3b21-ad1c-e643bddeacbf","description":"Generated description for concept referred to by key \"ApexExample_AAIRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"b5e3f122-2dcd-3cdf-a0ec-8210b3f80478","description":"Generated description for concept referred to by key \"ApexExample_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"15504e23-78c5-305e-9fce-cf1f50e75013","description":"Generated description for concept referred to by key \"ApexExample_AAISuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"e2715e7d-835e-32c7-b433-a2e92bcad6ee","description":"Generated description for concept referred to by key \"ApexExample_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"b492e841-2c03-36a9-9ec2-dda5852152c3","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"ef4e45f4-1181-3121-a3b6-507126df25e7","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"UUID":"91cb711a-0c73-3f51-83e6-fca9c547c71d","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"dda3c648-dc8b-38e0-855d-9cb72397f957","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"96b306bd-6dee-3d47-981c-eaac316d5ae1","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"1b65abfb-ce35-3765-9b9c-d2ee02bef28b","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"4dac3de7-3817-396f-91d6-ce701d162877","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"UUID":"92dc9e6b-2082-3d90-ba5e-f2dba18b72b6","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"a6801c93-f15b-3158-ba33-7760197d3609","description":"Generated description for concept referred to by key \"ApexExample_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"e2da0a15-c542-3e77-874d-4512e9b4162e","description":"Generated description for concept referred to by key \"ApexExample_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"f54edff0-532f-3142-8e65-a5c9d67888ef","description":"Generated description for concept referred to by key \"ApexExample_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"UUID":"b967dc44-a156-32d3-a796-f03dbf74316c","description":"Generated description for concept referred to by key \"ApexExample_CDSRequestPayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"UUID":"f2aa4552-069d-3db8-8638-2d1f59124e7a","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"c2e3b07f-2c09-3195-9527-6b3ab0666d61","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"UUID":"a7c28cc1-9fe5-30b7-9dd8-5a4f7f7d811e","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"UUID":"d01d1022-48ac-391d-904d-282ccb063f8a","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"UUID":"ad8cbd94-6eb5-3743-8a7d-42cbe49a5320","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartResponsePayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"UUID":"bbb06330-9161-392e-a0ca-a6bb5e3376af","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"70c6c6e5-00da-30cb-8ec0-14437d657f39","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"UUID":"77f16151-80b5-304c-a448-19d8528feed1","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"2f17aee2-fbdf-3c41-a779-f9c17b5bda5b","description":"Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"8c554852-3ed6-3027-a0d3-fccd2db19875","description":"Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"UUID":"b402baca-915b-3952-97fc-d9899f9ca81c","description":"Generated description for concept referred to by key \"ApexExample_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"UUID":"3626f32a-eee6-3254-b3d4-e4829518c381","description":"Generated description for concept referred to by key \"ApexExample_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"UUID":"87abb453-a919-3131-8ffb-3e5c910c6049","description":"Generated description for concept referred to by key \"ApexExample_HandleAAIFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"UUID":"8881e644-3cca-3aec-8201-312ca6f719e0","description":"Generated description for concept referred to by key \"ApexExample_HandleAAISuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"UUID":"057f6ddd-d6aa-3ce2-a060-d344de16d7f3","description":"Generated description for concept referred to by key \"ApexExample_HandleVesEventTask:0.0.1\""}},{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"UUID":"4867b1e7-a819-3b9f-be2b-a97fe6019827","description":"Generated description for concept referred to by key \"ApexExample_LogStatusEvent:0.0.1\""}},{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"UUID":"975b3071-b775-3617-a888-f831fe5a31db","description":"Generated description for concept referred to by key \"ApexExample_VesEvent:0.0.1\""}},{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"UUID":"ad9efe17-a03e-3b64-8e8a-51e144f57d2c","description":"Generated description for concept referred to by key \"ApexExample_VesEventHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"UUID":"0054393c-10df-3214-af86-cb04a23325bf","description":"Generated description for concept referred to by key \"ApexExample_VesEventType:0.0.1\""}},{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"UUID":"865a5903-201b-34ff-918b-2bfdde743576","description":"Generated description for concept referred to by key \"ApexExample_VnfRelationShipListType:0.0.1\""}},{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"UUID":"b2501730-8870-3475-b22a-4a4d22792ebb","description":"Generated description for concept referred to by key \"onap.policies.apex.Example:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"UUID":"7dc5f49d-c291-38de-bcae-1db30d00581f","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"UUID":"06b3112b-ae8b-3f37-8aa6-f539c0250550","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"UUID":"454848e1-43ac-3ce4-bfdc-b9b6271dc563","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"UUID":"24c3fca5-b0dd-398c-83ee-66a187296b32","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"UUID":"c6aff774-f50a-329d-a731-9c23a6e7e02e","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"UUID":"f856a6df-6237-3acc-aa68-f55e64cc0ec9","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveAAIFailureResponseState"},"trigger":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_AAIFailureStateOutput","value":{"key":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureStateOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureStateOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveAAIFailureResponseState"}},{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveAAISuccessResponseState"},"trigger":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_AAISuccessStateOutput","value":{"key":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessStateOutput"},"outgoingEvent":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessStateOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveAAISuccessResponseState"}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSConfigModifyFailureResponseState"},"trigger":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSConfigModifyFailureResponseState"}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSConfigModifySuccessResponseState"},"trigger":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSConfigModifySuccessResponseState"}},{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSRestartFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSRestartFailureResponseState"},"trigger":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_RestartFailureResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_RestartFailureResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_CDSRestartFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_RestartFailureResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSRestartFailureResponseState"}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSRestartSuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSRestartSuccessResponseState"},"trigger":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_RestartSuccessResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_RestartSuccessResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_RestartSuccessResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSRestartSuccessResponseState"}},{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveVesState","value":{"stateKey":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveVesState"},"trigger":{"name":"ApexExample_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_VesOutput","value":{"key":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesOutput"},"outgoingEvent":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesEventHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nerrorMessage = errorMessage.replace(/\"/g, '\\\\\\\"')\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime());\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\nvar vnfDetails = eventDetailsAlbum.get(\"vnfDetails\");\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"restart\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-name\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"restart_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(+executor.outFields);\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"ConfigModify request is successful. Sending restart request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar timestamp = longType(new Date().getTime());\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_SUCCESS\", \"Successfully processed the VES Event. Restart is complete.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\nvar timestamp = longType(new Date().getTime());\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"is-closed-loop-disabled","value":{"key":"is-closed-loop-disabled","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"model-customization-id","value":{"key":"model-customization-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-invariant-id","value":{"key":"model-invariant-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-version-id","value":{"key":"model-version-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"orchestration-status","value":{"key":"orchestration-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"prov-status","value":{"key":"prov-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"relationship-list","value":{"key":"relationship-list","fieldSchemaKey":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"service-id","value":{"key":"service-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-id","value":{"key":"vnf-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-name","value":{"key":"vnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-type","value":{"key":"vnf-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\n\nvar vnfDetails = executor.inFields;\nexecutor.logger.info(\"ApexExample_HandleAAISuccessResponseTask processing event - \" + vnfDetails);\neventDetailsAlbum.put(\"vnfDetails\", vnfDetails);\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"modify-config\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-id\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\nvar payloadSchemaHelper = executor.subject.getOutFieldSchemaHelper(\"payload\");\npayload.put(\"modify_DasH_config_DasH_request\", payloadEntry);\n\n//always use the executor.stringify2json method instead of JSON.strngify\nexecutor.logger.info(\"CDS modify config request payload - \" + executor.stringify2Json(payload, payloadSchemaHelper));\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\nvar timestamp = longType(new Date().getTime());\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"VNF details are received from AAI successfully. Sending ConfigModify request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"ApexExample_VesEventType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"ApexExample_HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar faultFields = event.get(\"faultFields\");\n\n//albumID will be used to fetch info from our album later\nvar albumID = commonEventHeader.get(\"sourceId\");\n\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming fault event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader)\neventDetailsAlbum.put(\"faultFields\", faultFields)\nexecutor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"vnf-name\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceName\"));\n\nvar timestamp = longType(new Date().getTime());\nsend(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), \"VNF\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceId\"), timestamp, \"ACTIVE\", \"VES event has been received. Going to fetch VNF details from AAI.\")\n\nexecutor.logger.info(executor.outFields);\nreturnValue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"is-closed-loop-disabled","value":{"key":"is-closed-loop-disabled","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"model-customization-id","value":{"key":"model-customization-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-invariant-id","value":{"key":"model-invariant-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-version-id","value":{"key":"model-version-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"orchestration-status","value":{"key":"orchestration-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"prov-status","value":{"key":"prov-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"relationship-list","value":{"key":"relationship-list","fieldSchemaKey":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"service-id","value":{"key":"service-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-id","value":{"key":"vnf-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-name","value":{"key":"vnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-type","value":{"key":"vnf-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"ApexExample_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n },\n {\n \"name\": \"update_DasH_properties\",\n \"type\": {\n \"name\": \"update_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"service_DasH_instance_DoT_service_DasH_instance_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"generic_DasH_vnf_DoT_vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"data\",\n \"type\": {\n \"name\": \"update_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"active_DasH_streams\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n }\n}"}},{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSRestartResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"restart_DasH_response\",\n \"type\": {\n \"name\": \"restart_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"vnfDetails\",\n \"type\": {\n \"name\": \"vnfDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_type\",\n \"type\": \"string\"\n },\n {\n \"name\": \"service_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"prov_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"orchestration_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"in_DasH_maint\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"is_DasH_closed_DasH_loop_DasH_disabled\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"resource_DasH_version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_invariant_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_version_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_customization_DasH_id\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"event\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"VnfRelationShipListType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"related_DasH_to\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_label\",\n \"type\": \"string\"\n },\n {\n \"name\": \"related_DasH_link\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_data\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"related_DasH_to_DasH_property\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"related_DasH_to_DasH_property_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"property_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"property_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n }\n ]\n}"}},{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}},"eventInputParameters":{"ApexExample_DCAEConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_VesEvent"},"ApexExample_AAIResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}","httpMethod":"GET","httpCodeFilter":"[245][0-9][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_AAISuccessResponseEvent|ApexExample_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_AAIProducer","requestorTimeout":2000},"ApexExample_CDSConfigModifyResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_CDSConfigModifySuccessResponseEvent|ApexExample_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSConfigModifyRequestProducer","requestorTimeout":500},"ApexExample_CDSRestartResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_CDSRestartSuccessResponseEvent|ApexExample_CDSRestartFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSRestartRequestProducer","requestorTimeout":500}},"eventOutputParameters":{"ApexExample_AAIProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_AAIRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_AAIResponseConsumer","requestorTimeout":2000},"ApexExample_CDSConfigModifyRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":10}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSConfigModifyResponseConsumer","requestorTimeout":500},"ApexExample_CDSRestartRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":10}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_CDSRestartRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSRestartResponseConsumer","requestorTimeout":500}}},"name":"onap.policies.apex.vnf.Test","version":"1.0.0","metadata":{"policy-id":"onap.policies.apex.vnf.Test","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"1d75e5c4-c663-4eba-9027-4143fc82e32d","timestampMs":1711335333027,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:34.657257791Z level=info msg="Executing migration" id="add column current_state_end to alert_instance" policy-apex-pdp | } policy-db-migrator | simulator | policy-pap | [2024-03-25T02:55:33.110+00:00|INFO|HttpClient|pool-3-thread-1] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:34.664517334Z level=info msg="Migration successfully executed" id="add column current_state_end to alert_instance" duration=7.303014ms policy-db-migrator | policy-apex-pdp | } simulator | 2024-03-25 02:55:38,432 INFO Fetching response from apex-example-cba-modify-config.json policy-pap | [2024-03-25T02:55:33.110+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] cambria reply ok (27 ms):{"serverTimeMs":0,"count":1} grafana | logger=migrator t=2024-03-25T02:52:34.668088375Z level=info msg="Executing migration" id="remove index def_org_id, def_uid, current_state on alert_instance" policy-db-migrator | > upgrade 0770-toscarequirement.sql policy-apex-pdp | fields { simulator | 2024-03-25 02:55:38,455 INFO 172.17.0.9 - - [25/Mar/2024:02:55:38 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-pap | [2024-03-25T02:55:33.112+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_UPDATE grafana | logger=migrator t=2024-03-25T02:52:34.669225739Z level=info msg="Migration successfully executed" id="remove index def_org_id, def_uid, current_state on alert_instance" duration=1.136484ms policy-db-migrator | -------------- policy-apex-pdp | key: "update-properties" simulator | 2024-03-25 02:55:38,456 INFO 172.17.0.1 - - [25/Mar/2024:02:55:38 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 483 "-" "python-requests/2.27.1" policy-pap | [2024-03-25T02:55:33.112+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:34.672734379Z level=info msg="Executing migration" id="remove index def_org_id, current_state on alert_instance" policy-db-migrator | CREATE TABLE IF NOT EXISTS toscarequirement (CAPABILITY VARCHAR(255) NULL, `DESCRIPTION` VARCHAR(255) NULL, NODE VARCHAR(255) NULL, RELATIONSHIP VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, type_name VARCHAR(255) NULL, type_version VARCHAR(255) NULL, PRIMARY KEY PK_TOSCAREQUIREMENT (name, version)) policy-apex-pdp | value { simulator | 2024-03-25 02:55:38,473 INFO Received request input to CDS: commonHeader { policy-pap | [2024-03-25T02:55:33.113+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:34.673828372Z level=info msg="Migration successfully executed" id="remove index def_org_id, current_state on alert_instance" duration=1.092053ms policy-db-migrator | -------------- policy-apex-pdp | struct_value { simulator | requestId: "ad066d05-6d11-4d65-9d56-334f50b4ee3d" policy-pap | [2024-03-25T02:55:33.119+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:34.678086561Z level=info msg="Executing migration" id="rename def_org_id to rule_org_id in alert_instance" policy-db-migrator | policy-apex-pdp | fields { simulator | subRequestId: "fault0000245" policy-pap | [2024-03-25T02:55:33.130+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:34.706425418Z level=info msg="Migration successfully executed" id="rename def_org_id to rule_org_id in alert_instance" duration=28.333717ms policy-db-migrator | policy-apex-pdp | key: "service-instance.service-instance-id" simulator | originatorId: "POLICY" policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":5,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT"}]},"policy_type_impl":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"fc0c1892-a2ae-3678-818f-b9b23939b241","description":"Generated description for concept referred to by key \"ApexExample_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"ba931e7e-aee9-3af8-98d8-16b92a909e8a","description":"Generated description for concept referred to by key \"ApexExample_AAIFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"UUID":"b4dd59c5-0169-3810-800c-1396c2206de4","description":"Generated description for concept referred to by key \"ApexExample_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"UUID":"599c297e-96c8-3b21-ad1c-e643bddeacbf","description":"Generated description for concept referred to by key \"ApexExample_AAIRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"b5e3f122-2dcd-3cdf-a0ec-8210b3f80478","description":"Generated description for concept referred to by key \"ApexExample_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"15504e23-78c5-305e-9fce-cf1f50e75013","description":"Generated description for concept referred to by key \"ApexExample_AAISuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"e2715e7d-835e-32c7-b433-a2e92bcad6ee","description":"Generated description for concept referred to by key \"ApexExample_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"b492e841-2c03-36a9-9ec2-dda5852152c3","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"ef4e45f4-1181-3121-a3b6-507126df25e7","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"UUID":"91cb711a-0c73-3f51-83e6-fca9c547c71d","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"dda3c648-dc8b-38e0-855d-9cb72397f957","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"96b306bd-6dee-3d47-981c-eaac316d5ae1","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"1b65abfb-ce35-3765-9b9c-d2ee02bef28b","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"4dac3de7-3817-396f-91d6-ce701d162877","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"UUID":"92dc9e6b-2082-3d90-ba5e-f2dba18b72b6","description":"Generated description for concept referred to by key \"ApexExample_CDSConfigModifySuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"a6801c93-f15b-3158-ba33-7760197d3609","description":"Generated description for concept referred to by key \"ApexExample_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"e2da0a15-c542-3e77-874d-4512e9b4162e","description":"Generated description for concept referred to by key \"ApexExample_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"f54edff0-532f-3142-8e65-a5c9d67888ef","description":"Generated description for concept referred to by key \"ApexExample_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"UUID":"b967dc44-a156-32d3-a796-f03dbf74316c","description":"Generated description for concept referred to by key \"ApexExample_CDSRequestPayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"UUID":"f2aa4552-069d-3db8-8638-2d1f59124e7a","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"UUID":"c2e3b07f-2c09-3195-9527-6b3ab0666d61","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"UUID":"a7c28cc1-9fe5-30b7-9dd8-5a4f7f7d811e","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"UUID":"d01d1022-48ac-391d-904d-282ccb063f8a","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartRequestEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"UUID":"ad8cbd94-6eb5-3743-8a7d-42cbe49a5320","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartResponsePayloadType:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"UUID":"bbb06330-9161-392e-a0ca-a6bb5e3376af","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseEvent:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"UUID":"70c6c6e5-00da-30cb-8ec0-14437d657f39","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"UUID":"77f16151-80b5-304c-a448-19d8528feed1","description":"Generated description for concept referred to by key \"ApexExample_CDSRestartSuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"2f17aee2-fbdf-3c41-a779-f9c17b5bda5b","description":"Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"8c554852-3ed6-3027-a0d3-fccd2db19875","description":"Generated description for concept referred to by key \"ApexExample_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"UUID":"b402baca-915b-3952-97fc-d9899f9ca81c","description":"Generated description for concept referred to by key \"ApexExample_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"UUID":"3626f32a-eee6-3254-b3d4-e4829518c381","description":"Generated description for concept referred to by key \"ApexExample_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"UUID":"87abb453-a919-3131-8ffb-3e5c910c6049","description":"Generated description for concept referred to by key \"ApexExample_HandleAAIFailureResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"UUID":"8881e644-3cca-3aec-8201-312ca6f719e0","description":"Generated description for concept referred to by key \"ApexExample_HandleAAISuccessResponseTask:0.0.1\""}},{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"UUID":"057f6ddd-d6aa-3ce2-a060-d344de16d7f3","description":"Generated description for concept referred to by key \"ApexExample_HandleVesEventTask:0.0.1\""}},{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"UUID":"4867b1e7-a819-3b9f-be2b-a97fe6019827","description":"Generated description for concept referred to by key \"ApexExample_LogStatusEvent:0.0.1\""}},{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"UUID":"975b3071-b775-3617-a888-f831fe5a31db","description":"Generated description for concept referred to by key \"ApexExample_VesEvent:0.0.1\""}},{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"UUID":"ad9efe17-a03e-3b64-8e8a-51e144f57d2c","description":"Generated description for concept referred to by key \"ApexExample_VesEventHandlerPolicy:0.0.1\""}},{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"UUID":"0054393c-10df-3214-af86-cb04a23325bf","description":"Generated description for concept referred to by key \"ApexExample_VesEventType:0.0.1\""}},{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"UUID":"865a5903-201b-34ff-918b-2bfdde743576","description":"Generated description for concept referred to by key \"ApexExample_VnfRelationShipListType:0.0.1\""}},{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example","version":"0.0.1"},"UUID":"b2501730-8870-3475-b22a-4a4d22792ebb","description":"Generated description for concept referred to by key \"onap.policies.apex.Example:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"UUID":"7dc5f49d-c291-38de-bcae-1db30d00581f","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"UUID":"06b3112b-ae8b-3f37-8aa6-f539c0250550","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_KeyInfo","version":"0.0.1"},"UUID":"454848e1-43ac-3ce4-bfdc-b9b6271dc563","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"UUID":"24c3fca5-b0dd-398c-83ee-66a187296b32","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"UUID":"c6aff774-f50a-329d-a731-9c23a6e7e02e","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"UUID":"f856a6df-6237-3acc-aa68-f55e64cc0ec9","description":"Generated description for concept referred to by key \"onap.policies.apex.Example_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Example_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_AAIFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveAAIFailureResponseState"},"trigger":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_AAIFailureStateOutput","value":{"key":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureStateOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_AAIFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAIFailureResponseState","localName":"ApexExample_AAIFailureStateOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveAAIFailureResponseState"}},{"key":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_AAISuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveAAISuccessResponseState"},"trigger":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_AAISuccessStateOutput","value":{"key":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessStateOutput"},"outgoingEvent":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_AAISuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveAAISuccessResponseState","localName":"ApexExample_AAISuccessStateOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveAAISuccessResponseState"}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSConfigModifyFailureResponseState"},"trigger":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSConfigModifyFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifyFailureResponseState","localName":"ApexExample_ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSConfigModifyFailureResponseState"}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSConfigModifySuccessResponseState"},"trigger":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSConfigModifySuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSConfigModifySuccessResponseState","localName":"ApexExample_ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSConfigModifySuccessResponseState"}},{"key":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSRestartFailureResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSRestartFailureResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSRestartFailureResponseState"},"trigger":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_RestartFailureResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_RestartFailureResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_CDSRestartFailureResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSRestartFailureResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartFailureResponseState","localName":"ApexExample_RestartFailureResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSRestartFailureResponseState"}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_CDSRestartSuccessResponseState","value":{"stateKey":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_CDSRestartSuccessResponseState"},"trigger":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_RestartSuccessResponseOutput","value":{"key":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_RestartSuccessResponseOutput"},"outgoingEvent":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_CDSRestartSuccessResponseHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_CDSRestartSuccessResponseState","localName":"ApexExample_RestartSuccessResponseOutput"}}}]}}}]},"firstState":"ApexExample_CDSRestartSuccessResponseState"}},{"key":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"value":{"policyKey":{"name":"ApexExample_VesEventHandlerPolicy","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"ApexExample_ReceiveVesState","value":{"stateKey":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"ApexExample_ReceiveVesState"},"trigger":{"name":"ApexExample_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ApexExample_VesOutput","value":{"key":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesOutput"},"outgoingEvent":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesEventHandlerPolicy"},"outputType":"DIRECT","output":{"parentKeyName":"ApexExample_VesEventHandlerPolicy","parentKeyVersion":"0.0.1","parentLocalName":"ApexExample_ReceiveVesState","localName":"ApexExample_VesOutput"}}}]}}}]},"firstState":"ApexExample_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Example_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nerrorMessage = errorMessage.replace(/\"/g, '\\\\\\\"')\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime());\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\nvar vnfDetails = eventDetailsAlbum.get(\"vnfDetails\");\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"restart\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-name\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"restart_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(+executor.outFields);\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"ConfigModify request is successful. Sending restart request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar timestamp = longType(new Date().getTime())\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar timestamp = longType(new Date().getTime());\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_SUCCESS\", \"Successfully processed the VES Event. Restart is complete.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAIFailureResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\nvar timestamp = longType(new Date().getTime());\n\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleAAISuccessResponseTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"is-closed-loop-disabled","value":{"key":"is-closed-loop-disabled","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"model-customization-id","value":{"key":"model-customization-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-invariant-id","value":{"key":"model-invariant-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-version-id","value":{"key":"model-version-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"orchestration-status","value":{"key":"orchestration-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"prov-status","value":{"key":"prov-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"relationship-list","value":{"key":"relationship-list","fieldSchemaKey":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"service-id","value":{"key":"service-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-id","value":{"key":"vnf-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-name","value":{"key":"vnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-type","value":{"key":"vnf-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").get(albumID.toString());\n\nvar vnfDetails = executor.inFields;\nexecutor.logger.info(\"ApexExample_HandleAAISuccessResponseTask processing event - \" + vnfDetails);\neventDetailsAlbum.put(\"vnfDetails\", vnfDetails);\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar faultFields = eventDetailsAlbum.get(\"faultFields\");\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"subRequestId\", commonEventHeader.get(\"eventId\"));\ncommonHeader.put(\"requestId\", uuidType.randomUUID().toString());\ncommonHeader.put(\"originatorId\", \"POLICY\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"mode\", \"sync\");\nactionIdentifiers.put(\"blueprintName\", \"apex-example-cba\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"actionName\", \"modify-config\");\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_properties_record\");\npayloadProperties.put(\"service_DasH_instance_DoT_service_DasH_instance_DasH_id\", vnfDetails.get(\"service-id\").toString())\npayloadProperties.put(\"generic_DasH_vnf_DoT_vnf_DasH_id\", vnfDetails.get(\"vnf-id\").toString())\nvar dataRecord = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"update_DasH_data_record\");\ndataRecord.put(\"active_DasH_streams\",\"7\")\npayloadProperties.put(\"data\", dataRecord)\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"update_DasH_properties\", payloadProperties)\npayloadEntry.put(\"vfStatus\", faultFields.get(\"vfStatus\"))\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\nvar payloadSchemaHelper = executor.subject.getOutFieldSchemaHelper(\"payload\");\npayload.put(\"modify_DasH_config_DasH_request\", payloadEntry);\n\n//always use the executor.stringify2json method instead of JSON.strngify\nexecutor.logger.info(\"CDS modify config request payload - \" + executor.stringify2Json(payload, payloadSchemaHelper));\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\nvar timestamp = longType(new Date().getTime());\nsend(commonEventHeader.get(\"eventId\"), \"VNF\", commonEventHeader.get(\"sourceId\"), timestamp, \"SUCCESS\", \"VNF details are received from AAI successfully. Sending ConfigModify request to CDS.\")\ntrue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}},{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"value":{"key":{"name":"ApexExample_HandleVesEventTask","version":"0.0.1"},"inputFields":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"ApexExample_VesEventType","version":"0.0.1"},"optional":false}}]},"outputFields":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"ApexExample_HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar faultFields = event.get(\"faultFields\");\n\n//albumID will be used to fetch info from our album later\nvar albumID = commonEventHeader.get(\"sourceId\");\n\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming fault event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader)\neventDetailsAlbum.put(\"faultFields\", faultFields)\nexecutor.getContextAlbum(\"ApexExample_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"vnf-name\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceName\"));\n\nvar timestamp = longType(new Date().getTime());\nsend(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), \"VNF\", eventDetailsAlbum.get(\"commonEventHeader\").get(\"sourceId\"), timestamp, \"ACTIVE\", \"VES event has been received. Going to fetch VNF details from AAI.\")\n\nexecutor.logger.info(executor.outFields);\nreturnValue;\n\nfunction send(id, targetType, targetId, timestamp, status, message) {\n var logData = '{'\n +'\"id\" : \"' + id + '\",'\n +'\"target\" : {'\n +'\"targetType\" : \"' + targetType + '\",'\n +'\"entityInfo\" : {'\n +'\"id\" : \"' + targetId + '\"'\n +'}'\n +'},'\n +'\"component\" : {'\n +'\"name\" : \"Policy\",'\n +'\"flavour\" : \"Apex-PDP\",'\n +'\"timestamp\" : ' + timestamp + ','\n +'\"status\" : \"' + status + '\",'\n +'\"message\" : \"' + message + '\",'\n +'\"artifacts\" : {'\n +'\"policyName\" : \"onap.policies.apex.Example\",'\n +'\"policyVersion\" : \"1.0.0\"'\n +'}'\n +'},'\n +'\"otherFields\" : {'\n +'\"useCaseName\" : \"apex-pdp-policy-example\"'\n +'}'\n +'}';\n\n executor.logger.info(\"sending the status to log.\");\n fireLogEvent(logData);\n}\n\n\nfunction fireLogEvent(logEvent){\n var headers = new HashMapType();\n executor.logger.info(\"LogEvent:\"+logEvent);\n var response = new org.onap.policy.rest.RestManager().post(\n executor.getParameters().get(\"logUrl\"),\n \"\",\n \"\",\n headers,\n \"application/json\",\n logEvent\n );\n executor.logger.info(\"DMaaP Response after sending LogEvent: \" + response);\n return response;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Example_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"is-closed-loop-disabled","value":{"key":"is-closed-loop-disabled","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"model-customization-id","value":{"key":"model-customization-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-invariant-id","value":{"key":"model-invariant-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"model-version-id","value":{"key":"model-version-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"orchestration-status","value":{"key":"orchestration-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"prov-status","value":{"key":"prov-status","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"relationship-list","value":{"key":"relationship-list","fieldSchemaKey":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"service-id","value":{"key":"service-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-id","value":{"key":"vnf-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-name","value":{"key":"vnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"vnf-type","value":{"key":"vnf-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartSuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_LogStatusEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"message","value":{"key":"message","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.example","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"ApexExample_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Example_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Example_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"modify_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n },\n {\n \"name\": \"update_DasH_properties\",\n \"type\": {\n \"name\": \"update_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"service_DasH_instance_DoT_service_DasH_instance_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"generic_DasH_vnf_DoT_vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"data\",\n \"type\": {\n \"name\": \"update_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"active_DasH_streams\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n }\n}"}},{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSRestartResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSRestartResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"restart_DasH_response\",\n \"type\": {\n \"name\": \"restart_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"vnfDetails\",\n \"type\": {\n \"name\": \"vnfDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"vnf_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vnf_DasH_type\",\n \"type\": \"string\"\n },\n {\n \"name\": \"service_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"prov_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"orchestration_DasH_status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"in_DasH_maint\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"is_DasH_closed_DasH_loop_DasH_disabled\",\n \"type\": \"boolean\"\n },\n {\n \"name\": \"resource_DasH_version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_invariant_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_version_DasH_id\",\n \"type\": \"string\"\n },\n {\n \"name\": \"model_DasH_customization_DasH_id\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"event\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"faultFields\",\n \"type\": {\n \"name\": \"faultFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": {\n \"name\": \"alarmAdditionalInformation\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"PilotNumberPoolSize\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"alarmCondition\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSeverity\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventSourceType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"faultFieldsVersion\",\n \"type\": \"int\"\n },\n {\n \"name\": \"specificProblem\",\n \"type\": \"string\"\n },\n {\n \"name\": \"vfStatus\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"value":{"key":{"name":"ApexExample_VnfRelationShipListType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"VnfRelationShipListType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"related_DasH_to\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_label\",\n \"type\": \"string\"\n },\n {\n \"name\": \"related_DasH_link\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_data\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"relationship_DasH_data_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"relationship_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"relationship_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"related_DasH_to_DasH_property\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"related_DasH_to_DasH_property_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"property_DasH_key\",\n \"type\": \"string\"\n },\n {\n \"name\": \"property_DasH_value\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n }\n ]\n}"}},{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}},"eventInputParameters":{"ApexExample_DCAEConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_VesEvent"},"ApexExample_AAIResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name={vnf-name}","httpMethod":"GET","httpCodeFilter":"[245][0-9][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_AAISuccessResponseEvent|ApexExample_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_AAIProducer","requestorTimeout":2000},"ApexExample_CDSConfigModifyResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_CDSConfigModifySuccessResponseEvent|ApexExample_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSConfigModifyRequestProducer","requestorTimeout":500},"ApexExample_CDSRestartResponseConsumer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"ApexExample_CDSRestartSuccessResponseEvent|ApexExample_CDSRestartFailureResponseEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSRestartRequestProducer","requestorTimeout":500}},"eventOutputParameters":{"ApexExample_AAIProducer":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_AAIRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_AAIResponseConsumer","requestorTimeout":2000},"ApexExample_CDSConfigModifyRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":10}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSConfigModifyResponseConsumer","requestorTimeout":500},"ApexExample_CDSRestartRequestProducer":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":10}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"ApexExample_CDSRestartRequestEvent","requestorMode":true,"requestorPeer":"ApexExample_CDSRestartResponseConsumer","requestorTimeout":500}}},"name":"onap.policies.apex.vnf.Test","version":"1.0.0","metadata":{"policy-id":"onap.policies.apex.vnf.Test","policy-version":"1.0.0"}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"1d75e5c4-c663-4eba-9027-4143fc82e32d","timestampMs":1711335333027,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:34.71090589Z level=info msg="Executing migration" id="rename def_uid to rule_uid in alert_instance" policy-db-migrator | > upgrade 0780-toscarequirements.sql policy-apex-pdp | value { simulator | } policy-pap | [2024-03-25T02:55:33.131+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-HEARTBEAT] discarding event of type PDP_UPDATE grafana | logger=migrator t=2024-03-25T02:52:34.736522256Z level=info msg="Migration successfully executed" id="rename def_uid to rule_uid in alert_instance" duration=25.612166ms policy-db-migrator | -------------- policy-apex-pdp | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" simulator | actionIdentifiers { policy-pap | [2024-03-25T02:55:33.132+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:34.740490211Z level=info msg="Executing migration" id="add index rule_org_id, rule_uid, current_state on alert_instance" policy-db-migrator | CREATE TABLE IF NOT EXISTS toscarequirements (name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_TOSCAREQUIREMENTS (name, version)) policy-apex-pdp | } simulator | blueprintName: "apex-example-cba" policy-pap | [2024-03-25T02:55:33.132+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:34.741343151Z level=info msg="Migration successfully executed" id="add index rule_org_id, rule_uid, current_state on alert_instance" duration=853.17µs policy-db-migrator | -------------- policy-apex-pdp | } simulator | blueprintVersion: "1.0.0" policy-pap | [2024-03-25T02:55:33.329+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:34.745166666Z level=info msg="Executing migration" id="add index rule_org_id, current_state on alert_instance" policy-db-migrator | policy-apex-pdp | fields { simulator | actionName: "restart" policy-pap | [2024-03-25T02:55:33.329+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:34.745990245Z level=info msg="Migration successfully executed" id="add index rule_org_id, current_state on alert_instance" duration=823.299µs policy-db-migrator | policy-apex-pdp | key: "generic-vnf.vnf-id" simulator | mode: "sync" policy-pap | [2024-03-25T02:55:33.329+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:34.794203681Z level=info msg="Executing migration" id="add current_reason column related to current_state" policy-db-migrator | > upgrade 0790-toscarequirements_toscarequirement.sql policy-apex-pdp | value { simulator | } policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.vnf.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:33.318602Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":4,"policyExecutedSuccessCount":4,"policyExecutedFailCount":0,"policyDeployCount":3,"policyDeploySuccessCount":3,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331413,"eventCount":1,"lastExecutionTime":18,"averageExecutionTime":18.0,"upTime":4889,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331534,"eventCount":1,"lastExecutionTime":20,"averageExecutionTime":20.0,"upTime":4988,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335332395,"eventCount":1,"lastExecutionTime":9,"averageExecutionTime":9.0,"upTime":5832,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333229,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333229},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333243,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333243},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333258,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333258},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333273,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333273},{"engineId":"NSOApexEngine-4:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333287,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333287}]},"response":{"responseTo":"1d75e5c4-c663-4eba-9027-4143fc82e32d","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.vnf.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"e4c5260a-2aaf-4e9f-bac6-bcbe77d4a0c8","timestampMs":1711335333318,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:34.805713874Z level=info msg="Migration successfully executed" id="add current_reason column related to current_state" duration=11.510563ms policy-db-migrator | -------------- policy-apex-pdp | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" simulator | payload { policy-pap | [2024-03-25T02:55:33.330+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:34.814639777Z level=info msg="Executing migration" id="add result_fingerprint column to alert_instance" policy-db-migrator | CREATE TABLE IF NOT EXISTS toscarequirements_toscarequirement (conceptContainerMapName VARCHAR(120) NOT NULL, concpetContainerMapVersion VARCHAR(20) NOT NULL, conceptContainerName VARCHAR(120) NOT NULL, conceptContainerVersion VARCHAR(20) NOT NULL, name VARCHAR(120) NULL, version VARCHAR(20) NULL, PRIMARY KEY PK_TOSCAREQUIREMENTS_TOSCAREQUIREMENT (conceptContainerMapName, concpetContainerMapVersion, conceptContainerName, conceptContainerVersion)) policy-apex-pdp | } simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.827132581Z level=info msg="Migration successfully executed" id="add result_fingerprint column to alert_instance" duration=12.490064ms policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.vnf.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:33.318602Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":4,"policyExecutedSuccessCount":4,"policyExecutedFailCount":0,"policyDeployCount":3,"policyDeploySuccessCount":3,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331413,"eventCount":1,"lastExecutionTime":18,"averageExecutionTime":18.0,"upTime":4889,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331534,"eventCount":1,"lastExecutionTime":20,"averageExecutionTime":20.0,"upTime":4988,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335332395,"eventCount":1,"lastExecutionTime":9,"averageExecutionTime":9.0,"upTime":5832,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333229,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333229},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333243,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333243},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333258,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333258},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333273,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333273},{"engineId":"NSOApexEngine-4:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333287,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333287}]},"response":{"responseTo":"1d75e5c4-c663-4eba-9027-4143fc82e32d","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.vnf.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"e4c5260a-2aaf-4e9f-bac6-bcbe77d4a0c8","timestampMs":1711335333318,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | -------------- policy-apex-pdp | } simulator | key: "restart-request" grafana | logger=migrator t=2024-03-25T02:52:34.836834723Z level=info msg="Executing migration" id="create alert_rule table" policy-pap | [2024-03-25T02:55:33.332+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping policy-db-migrator | policy-apex-pdp | fields { simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.83921643Z level=info msg="Migration successfully executed" id="create alert_rule table" duration=2.384758ms policy-pap | [2024-03-25T02:55:33.332+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping enqueue policy-db-migrator | policy-apex-pdp | key: "data" simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:34.848941383Z level=info msg="Executing migration" id="add index in alert_rule on org_id and title columns" policy-pap | [2024-03-25T02:55:33.332+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping timer policy-db-migrator | > upgrade 0800-toscaservicetemplate.sql policy-apex-pdp | value { simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.850565741Z level=info msg="Migration successfully executed" id="add index in alert_rule on org_id and title columns" duration=1.622908ms policy-pap | [2024-03-25T02:55:33.332+00:00|INFO|TimerManager|DMAAP-source-POLICY-PDP-PAP] update timer cancelled Timer [name=1d75e5c4-c663-4eba-9027-4143fc82e32d, expireMs=1711335363048] policy-db-migrator | -------------- policy-apex-pdp | struct_value { simulator | key: "vfStatus" grafana | logger=migrator t=2024-03-25T02:52:34.940682102Z level=info msg="Executing migration" id="add index in alert_rule on org_id and uid columns" policy-pap | [2024-03-25T02:55:33.332+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping listener policy-db-migrator | CREATE TABLE IF NOT EXISTS toscaservicetemplate (`DESCRIPTION` VARCHAR(255) NULL, TOSCADEFINITIONSVERSION VARCHAR(255) NULL, derived_from_name VARCHAR(255) NULL, derived_from_version VARCHAR(255) NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, capabilityTypesVersion VARCHAR(20) NULL, capabilityTypesName VARCHAR(120) NULL, dataTypesName VARCHAR(120) NULL, dataTypesVersion VARCHAR(20) NULL, nodeTypesVersion VARCHAR(20) NULL, nodeTypesName VARCHAR(120) NULL, policyTypesName VARCHAR(120) NULL, policyTypesVersion VARCHAR(20) NULL, relationshipTypesVersion VARCHAR(20) NULL, relationshipTypesName VARCHAR(120) NULL, topologyTemplateLocalName VARCHAR(120) NULL, topologyTemplateParentKeyName VARCHAR(120) NULL, topologyTemplateParentKeyVersion VARCHAR(15) NULL, topologyTemplateParentLocalName VARCHAR(120) NULL, PRIMARY KEY PK_TOSCASERVICETEMPLATE (name, version)) policy-apex-pdp | fields { simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.943632686Z level=info msg="Migration successfully executed" id="add index in alert_rule on org_id and uid columns" duration=3.095766ms policy-pap | [2024-03-25T02:55:33.332+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopped policy-db-migrator | -------------- policy-apex-pdp | key: "active-streams" simulator | string_value: "Active" grafana | logger=migrator t=2024-03-25T02:52:34.949353262Z level=info msg="Executing migration" id="add index in alert_rule on org_id, namespace_uid, group_uid columns" policy-pap | [2024-03-25T02:55:33.333+00:00|INFO|RequestIdDispatcher|DMAAP-source-POLICY-HEARTBEAT] no listener for request id 1d75e5c4-c663-4eba-9027-4143fc82e32d policy-db-migrator | policy-apex-pdp | value { simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.951987502Z level=info msg="Migration successfully executed" id="add index in alert_rule on org_id, namespace_uid, group_uid columns" duration=2.63394ms policy-pap | [2024-03-25T02:55:33.333+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-db-migrator | policy-apex-pdp | string_value: "7" simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.958409796Z level=info msg="Executing migration" id="alter alert_rule table data column to mediumtext in mysql" policy-pap | [2024-03-25T02:55:33.333+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-db-migrator | > upgrade 0810-toscatopologytemplate.sql policy-apex-pdp | } simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.958657039Z level=info msg="Migration successfully executed" id="alter alert_rule table data column to mediumtext in mysql" duration=254.003µs policy-pap | [2024-03-25T02:55:33.344+00:00|INFO|RequestImpl|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate successful policy-db-migrator | -------------- policy-apex-pdp | } simulator | key: "update-properties" grafana | logger=migrator t=2024-03-25T02:52:34.962565344Z level=info msg="Executing migration" id="add column for to alert_rule" policy-pap | [2024-03-25T02:55:33.344+00:00|INFO|PdpRequests|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 has no more requests policy-db-migrator | CREATE TABLE IF NOT EXISTS toscatopologytemplate (`description` VARCHAR(255) NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, nodeTemplatessVersion VARCHAR(20) NULL, nodeTemplatesName VARCHAR(120) NULL, policyVersion VARCHAR(20) NULL, policyName VARCHAR(120) NULL, PRIMARY KEY PK_TOSCATOPOLOGYTEMPLATE (parentLocalName, localName, parentKeyVersion, parentKeyName)) policy-apex-pdp | } simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.97086444Z level=info msg="Migration successfully executed" id="add column for to alert_rule" duration=8.299997ms policy-pap | [2024-03-25T02:55:33.344+00:00|INFO|network|Thread-8] [OUT|DMAAP|POLICY-NOTIFICATION] policy-db-migrator | -------------- policy-apex-pdp | } simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:34.974955917Z level=info msg="Executing migration" id="add column annotations to alert_rule" policy-pap | {"deployed-policies":[{"policy-type":"onap.policies.native.Apex","policy-type-version":"1.0.0","policy-id":"onap.policies.apex.vnf.Test","policy-version":"1.0.0","success-count":1,"failure-count":0,"incomplete-count":0}],"undeployed-policies":[]} policy-db-migrator | policy-apex-pdp | } simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:34.9821697Z level=info msg="Migration successfully executed" id="add column annotations to alert_rule" duration=7.218903ms policy-pap | [2024-03-25T02:55:33.384+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] sending 1 msgs to /events/POLICY-NOTIFICATION. Oldest: 40 ms policy-db-migrator | policy-apex-pdp | } simulator | key: "service-instance.service-instance-id" grafana | logger=migrator t=2024-03-25T02:52:34.988337072Z level=info msg="Executing migration" id="add column labels to alert_rule" policy-pap | [2024-03-25T02:55:33.384+00:00|INFO|HttpClient|pool-4-thread-1] POST http://message-router:3904/events/POLICY-NOTIFICATION (anonymous) ... policy-db-migrator | > upgrade 0820-toscatrigger.sql policy-apex-pdp | } simulator | value { grafana | logger=migrator t=2024-03-25T02:52:34.992724722Z level=info msg="Migration successfully executed" id="add column labels to alert_rule" duration=4.38693ms policy-pap | [2024-03-25T02:55:33.390+00:00|INFO|HttpClient|pool-4-thread-1] --> HTTP/1.1 200 OK policy-db-migrator | -------------- policy-apex-pdp | } simulator | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" grafana | logger=migrator t=2024-03-25T02:52:34.99599733Z level=info msg="Executing migration" id="remove unique index from alert_rule on org_id, title columns" policy-pap | [2024-03-25T02:55:33.391+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] cambria reply ok (7 ms):{"serverTimeMs":0,"count":1} policy-apex-pdp | } policy-db-migrator | CREATE TABLE IF NOT EXISTS toscatrigger (ACTION VARCHAR(255) NULL, toscaCondition LONGBLOB DEFAULT NULL, toscaConstraint LONGBLOB DEFAULT NULL, `DESCRIPTION` VARCHAR(255) NULL, EVALUATIONS INT DEFAULT NULL, EVENTTYPE VARCHAR(255) NULL, METHOD VARCHAR(255) NULL, `PERIOD` LONGBLOB DEFAULT NULL, SCHEDULE LONGBLOB DEFAULT NULL, TARGETFILTER LONGBLOB DEFAULT NULL, parentLocalName VARCHAR(120) NOT NULL, localName VARCHAR(120) NOT NULL, parentKeyVersion VARCHAR(15) NOT NULL, parentKeyName VARCHAR(120) NOT NULL, PRIMARY KEY PK_TOSCATRIGGER (parentLocalName, localName, parentKeyVersion, parentKeyName)) simulator | } grafana | logger=migrator t=2024-03-25T02:52:34.996978422Z level=info msg="Migration successfully executed" id="remove unique index from alert_rule on org_id, title columns" duration=980.662µs policy-pap | [2024-03-25T02:55:33.816+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-apex-pdp | } policy-db-migrator | -------------- policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.001146539Z level=info msg="Executing migration" id="add index in alert_rule on org_id, namespase_uid and title columns" policy-pap | [2024-03-25T02:55:33.816+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-apex-pdp | } policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:35.002633917Z level=info msg="Migration successfully executed" id="add index in alert_rule on org_id, namespase_uid and title columns" duration=1.485838ms policy-pap | [2024-03-25T02:55:39.302+00:00|INFO|SessionData|http-nio-6969-exec-6] cache group defaultGroup policy-apex-pdp | } policy-db-migrator | > upgrade 0830-FK_ToscaNodeTemplate_capabilitiesName.sql simulator | key: "generic-vnf.vnf-id" grafana | logger=migrator t=2024-03-25T02:52:35.00913268Z level=info msg="Executing migration" id="add dashboard_uid column to alert_rule" policy-pap | [2024-03-25T02:55:39.456+00:00|INFO|PolicyAuditManager|http-nio-6969-exec-6] Registering a deploy for policy onap.policies.apex.pnf.metadataSet.Test 1.0.0 policy-apex-pdp | policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:35.016503372Z level=info msg="Migration successfully executed" id="add dashboard_uid column to alert_rule" duration=7.369492ms policy-pap | [2024-03-25T02:55:39.456+00:00|INFO|SessionData|http-nio-6969-exec-6] add update apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 defaultGroup apex policies=1 policy-apex-pdp | [2024-03-25T02:55:38.437+00:00|INFO|network|grpc-default-executor-0] [IN|REST|gRPC://grpc-sim:6680/] policy-db-migrator | CREATE INDEX FK_ToscaNodeTemplate_capabilitiesName ON toscanodetemplate(capabilitiesName, capabilitiesVersion) simulator | string_value: "vfw-cnf-cds-test-1-vnf" grafana | logger=migrator t=2024-03-25T02:52:35.019843999Z level=info msg="Executing migration" id="add panel_id column to alert_rule" policy-pap | [2024-03-25T02:55:39.456+00:00|INFO|SessionData|http-nio-6969-exec-6] update cached group defaultGroup policy-apex-pdp | commonHeader { policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.025288059Z level=info msg="Migration successfully executed" id="add panel_id column to alert_rule" duration=5.44188ms policy-pap | [2024-03-25T02:55:39.456+00:00|INFO|SessionData|http-nio-6969-exec-6] updating DB group defaultGroup policy-apex-pdp | timestamp: "2020-12-16T10:29:00.450Z" policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.028911309Z level=info msg="Executing migration" id="add index in alert_rule on org_id, dashboard_uid and panel_id columns" policy-pap | [2024-03-25T02:55:39.464+00:00|INFO|PolicyAuditManager|http-nio-6969-exec-6] sending audit records to database: [PolicyAudit(auditId=null, pdpGroup=defaultGroup, pdpType=apex, policy=onap.policies.apex.pnf.metadataSet.Test 1.0.0, action=DEPLOYMENT, timestamp=2024-03-25T02:55:39Z, user=policyadmin)] policy-apex-pdp | requestId: "f392e439-c176-411b-b972-8acadac0f8df" policy-db-migrator | simulator | fields { policy-pap | [2024-03-25T02:55:39.476+00:00|INFO|ServiceManager|http-nio-6969-exec-6] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting policy-apex-pdp | subRequestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" grafana | logger=migrator t=2024-03-25T02:52:35.029715968Z level=info msg="Migration successfully executed" id="add index in alert_rule on org_id, dashboard_uid and panel_id columns" duration=803.598µs policy-db-migrator | > upgrade 0840-FK_ToscaNodeTemplate_requirementsName.sql simulator | key: "data" policy-pap | [2024-03-25T02:55:39.476+00:00|INFO|ServiceManager|http-nio-6969-exec-6] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting listener policy-apex-pdp | originatorId: "POLICY" grafana | logger=migrator t=2024-03-25T02:52:35.036291301Z level=info msg="Executing migration" id="add rule_group_idx column to alert_rule" policy-db-migrator | -------------- simulator | value { policy-pap | [2024-03-25T02:55:39.476+00:00|INFO|ServiceManager|http-nio-6969-exec-6] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting timer policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:35.04698086Z level=info msg="Migration successfully executed" id="add rule_group_idx column to alert_rule" duration=10.687708ms policy-db-migrator | CREATE INDEX FK_ToscaNodeTemplate_requirementsName ON toscanodetemplate(requirementsName, requirementsVersion) simulator | struct_value { policy-pap | [2024-03-25T02:55:39.476+00:00|INFO|TimerManager|http-nio-6969-exec-6] update timer registered Timer [name=fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e, expireMs=1711335369476] policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:39.476+00:00|INFO|ServiceManager|http-nio-6969-exec-6] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate starting enqueue policy-apex-pdp | actionIdentifiers { grafana | logger=migrator t=2024-03-25T02:52:35.053653713Z level=info msg="Executing migration" id="add is_paused column to alert_rule table" simulator | fields { policy-db-migrator | policy-pap | [2024-03-25T02:55:39.477+00:00|INFO|ServiceManager|http-nio-6969-exec-6] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate started policy-apex-pdp | blueprintName: "apex-example-cba" grafana | logger=migrator t=2024-03-25T02:52:35.059909562Z level=info msg="Migration successfully executed" id="add is_paused column to alert_rule table" duration=6.256059ms simulator | key: "active-streams" policy-db-migrator | policy-pap | [2024-03-25T02:55:39.480+00:00|INFO|network|Thread-7] [OUT|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | blueprintVersion: "1.0.0" grafana | logger=migrator t=2024-03-25T02:52:35.063674614Z level=info msg="Executing migration" id="fix is_paused column for alert_rule table" simulator | value { policy-db-migrator | > upgrade 0850-FK_ToscaNodeType_requirementsName.sql policy-apex-pdp | actionName: "modify-config" policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT2"}]}},"eventInputParameters":{"SimpleCL_DCAEConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_VesEvent"},"SimpleCL_AAIResponseConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}","httpMethod":"GET","httpCodeFilter":"[2-5][0-1][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIProducer2","requestorTimeout":2000},"SimpleCL_CDSConfigModifyResponseConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyRequestProducer2","requestorTimeout":500}},"eventOutputParameters":{"SimpleCL_AAIProducer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_AAIRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIResponseConsumer2","requestorTimeout":2000},"SimpleCL_CDSConfigModifyRequestProducer2":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":60}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyResponseConsumer2","requestorTimeout":500},"SimpleCL_logOutputter2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/APEX-CL-MGT2"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_LogEvent"}}},"name":"onap.policies.apex.pnf.metadataSet.Test","version":"1.0.0","metadata":{"metadataSetName":"apex.metadata.pnf","metadataSetVersion":"1.0.0","policy-id":"onap.policies.apex.pnf.metadataSet.Test","policy-version":"1.0.0","metadataSet":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"c8a29e27-0a15-354a-84f9-4c7f207e5c81","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"UUID":"5e843cee-0180-39b9-8989-180b2ffe11c0","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"UUID":"90291c92-9b27-3cd9-8720-db572419c048","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"UUID":"7b7e6751-4e0b-389d-98c0-5567bbc0294c","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"63d5680c-14ef-3505-8d34-ebb646bba07b","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"UUID":"a84ca97d-6e94-39a2-91f9-59a6c9aa435e","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"0e2ee622-7fd3-3e49-82e2-539c4f5e9624","description":"Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"e84f8682-ea33-3ad0-8626-8bc4634581fc","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"UUID":"a252f835-2479-38ef-9ef4-20af62725752","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"UUID":"cfc46ea9-b8c1-38dd-ac9c-304c916daf34","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"1e7095d6-a455-3f89-acae-486e35d7e311","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"UUID":"d22ea83b-695d-3da9-b9f5-41f16ca433bf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"e9fe2e40-1f0d-30dd-8b9e-885695878693","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"5e04fa76-0a17-38a9-8524-23b2d1a23fa5","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"UUID":"15866380-40f5-3f8e-87d9-13747a36d352","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"UUID":"2c3d76ce-dd42-32ac-a397-ab418534e1cf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"b99c44da-dae7-3c96-b528-58852537d063","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"1db688e2-3afe-3b03-9795-fdbfa80fa240","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"31022456-e85b-3a9b-9ecb-a09691792d3e","description":"Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"d6075720-622e-3a0d-827a-aa4580a2f5d7","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"UUID":"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"UUID":"a0407d0b-5719-38bf-9529-25ad62ace8c4","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"UUID":"28e894dc-4ab8-3469-aab7-d81bd05bb4c9","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"UUID":"073f1433-999e-3506-98ad-ef820d2fa7f0","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"UUID":"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74","description":"Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask2:0.0.1\""}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"UUID":"317be184-a01a-3e2d-9ae4-cafaa405de70","description":"Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"UUID":"be7fc79b-9b73-381a-8e23-9dd6e6b1233d","description":"Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"UUID":"1a082851-49e3-3f4c-b023-c05236cc8389","description":"Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"UUID":"cab6cd51-ea7b-3241-a173-ea8a24e29737","description":"Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"UUID":"0f57665a-f0a9-314e-ad0a-04c1f5758174","description":"Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"UUID":"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b","description":"Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"UUID":"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1","description":"Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"UUID":"ecc97b87-f30b-344c-a476-d36501bf5cbd","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"UUID":"1469671a-56dd-3a68-bf6c-77a5cf7a9487","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"UUID":"23c4eee4-aba5-36f6-96d6-46f40061bfed","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"UUID":"ea9e73ff-483c-3827-896c-6eaa9d69bc6e","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"UUID":"38c068e5-bb9a-3997-9e50-ec77c66825c8","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"UUID":"38514b27-8b9b-3d06-844a-3aced27deb0a","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"UUID":"0e0387b5-07fa-30e4-8554-eb51d2e18939","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAIFailureResponseState"},"trigger":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAIFailureStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"SimpleCL_AAIFailureResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAIFailureResponseState"}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAISuccessResponseState"},"trigger":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAISuccessStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"},"outgoingEvent":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"SimpleCL_AAISuccessResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAISuccessResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifyFailureResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifyFailureResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifySuccessResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifySuccessResponseState"}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveVesState","value":{"stateKey":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveVesState"},"trigger":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"VesOutput","value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"},"outgoingEvent":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"SimpleCL_VesEventHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"SimpleCL_CDSConfigModifyRequestEvent","value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"},"outputEvents":{"entry":[{"key":"SimpleCL_AAIRequestEvent","value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]}},"toscaPolicyState":"EXIT_FAILURE"},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e","timestampMs":1711335339456,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:35.064006768Z level=info msg="Migration successfully executed" id="fix is_paused column for alert_rule table" duration=294.334µs simulator | string_value: "7" policy-db-migrator | -------------- policy-apex-pdp | mode: "sync" policy-pap | [2024-03-25T02:55:39.483+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 3 ms grafana | logger=migrator t=2024-03-25T02:52:35.068422647Z level=info msg="Executing migration" id="create alert_rule_version table" simulator | } policy-db-migrator | CREATE INDEX FK_ToscaNodeType_requirementsName ON toscanodetype(requirementsName, requirementsVersion) policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.483+00:00|INFO|HttpClient|pool-3-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:35.070097636Z level=info msg="Migration successfully executed" id="create alert_rule_version table" duration=1.674969ms simulator | } policy-db-migrator | -------------- policy-apex-pdp | status { policy-pap | [2024-03-25T02:55:39.489+00:00|INFO|HttpClient|pool-3-thread-1] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:35.07588037Z level=info msg="Executing migration" id="add index in alert_rule_version table on rule_org_id, rule_uid and version columns" simulator | } policy-db-migrator | policy-apex-pdp | code: 200 policy-pap | [2024-03-25T02:55:39.489+00:00|INFO|CambriaSimplerBatchPublisher|pool-3-thread-1] cambria reply ok (6 ms):{"serverTimeMs":0,"count":1} grafana | logger=migrator t=2024-03-25T02:52:35.078218966Z level=info msg="Migration successfully executed" id="add index in alert_rule_version table on rule_org_id, rule_uid and version columns" duration=2.338236ms simulator | } policy-db-migrator | policy-apex-pdp | message: "success" policy-pap | [2024-03-25T02:55:39.490+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:35.082697335Z level=info msg="Executing migration" id="add index in alert_rule_version table on rule_org_id, rule_namespace_uid and rule_group columns" simulator | } policy-db-migrator | > upgrade 0860-FK_ToscaServiceTemplate_capabilityTypesName.sql policy-apex-pdp | eventType: EVENT_COMPONENT_EXECUTED policy-pap | [2024-03-25T02:55:39.492+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:35.084481775Z level=info msg="Migration successfully executed" id="add index in alert_rule_version table on rule_org_id, rule_namespace_uid and rule_group columns" duration=1.78806ms simulator | } policy-db-migrator | -------------- policy-apex-pdp | timestamp: "2020-12-16T10:29:01.737Z" policy-pap | [2024-03-25T02:55:39.497+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:35.089583902Z level=info msg="Executing migration" id="alter alert_rule_version table data column to mediumtext in mysql" simulator | } policy-db-migrator | CREATE INDEX FK_ToscaServiceTemplate_capabilityTypesName ON toscaservicetemplate(capabilityTypesName, capabilityTypesVersion) policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:35.089845495Z level=info msg="Migration successfully executed" id="alter alert_rule_version table data column to mediumtext in mysql" duration=263.433µs simulator | } policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT2"}]}},"eventInputParameters":{"SimpleCL_DCAEConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_VesEvent"},"SimpleCL_AAIResponseConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}","httpMethod":"GET","httpCodeFilter":"[2-5][0-1][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIProducer2","requestorTimeout":2000},"SimpleCL_CDSConfigModifyResponseConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyRequestProducer2","requestorTimeout":500}},"eventOutputParameters":{"SimpleCL_AAIProducer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_AAIRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIResponseConsumer2","requestorTimeout":2000},"SimpleCL_CDSConfigModifyRequestProducer2":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":60}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyResponseConsumer2","requestorTimeout":500},"SimpleCL_logOutputter2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/APEX-CL-MGT2"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_LogEvent"}}},"name":"onap.policies.apex.pnf.metadataSet.Test","version":"1.0.0","metadata":{"metadataSetName":"apex.metadata.pnf","metadataSetVersion":"1.0.0","policy-id":"onap.policies.apex.pnf.metadataSet.Test","policy-version":"1.0.0","metadataSet":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"c8a29e27-0a15-354a-84f9-4c7f207e5c81","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"UUID":"5e843cee-0180-39b9-8989-180b2ffe11c0","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"UUID":"90291c92-9b27-3cd9-8720-db572419c048","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"UUID":"7b7e6751-4e0b-389d-98c0-5567bbc0294c","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"63d5680c-14ef-3505-8d34-ebb646bba07b","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"UUID":"a84ca97d-6e94-39a2-91f9-59a6c9aa435e","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"0e2ee622-7fd3-3e49-82e2-539c4f5e9624","description":"Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"e84f8682-ea33-3ad0-8626-8bc4634581fc","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"UUID":"a252f835-2479-38ef-9ef4-20af62725752","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"UUID":"cfc46ea9-b8c1-38dd-ac9c-304c916daf34","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"1e7095d6-a455-3f89-acae-486e35d7e311","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"UUID":"d22ea83b-695d-3da9-b9f5-41f16ca433bf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"e9fe2e40-1f0d-30dd-8b9e-885695878693","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"5e04fa76-0a17-38a9-8524-23b2d1a23fa5","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"UUID":"15866380-40f5-3f8e-87d9-13747a36d352","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"UUID":"2c3d76ce-dd42-32ac-a397-ab418534e1cf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"b99c44da-dae7-3c96-b528-58852537d063","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"1db688e2-3afe-3b03-9795-fdbfa80fa240","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"31022456-e85b-3a9b-9ecb-a09691792d3e","description":"Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"d6075720-622e-3a0d-827a-aa4580a2f5d7","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"UUID":"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"UUID":"a0407d0b-5719-38bf-9529-25ad62ace8c4","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"UUID":"28e894dc-4ab8-3469-aab7-d81bd05bb4c9","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"UUID":"073f1433-999e-3506-98ad-ef820d2fa7f0","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"UUID":"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74","description":"Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask2:0.0.1\""}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"UUID":"317be184-a01a-3e2d-9ae4-cafaa405de70","description":"Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"UUID":"be7fc79b-9b73-381a-8e23-9dd6e6b1233d","description":"Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"UUID":"1a082851-49e3-3f4c-b023-c05236cc8389","description":"Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"UUID":"cab6cd51-ea7b-3241-a173-ea8a24e29737","description":"Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"UUID":"0f57665a-f0a9-314e-ad0a-04c1f5758174","description":"Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"UUID":"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b","description":"Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"UUID":"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1","description":"Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"UUID":"ecc97b87-f30b-344c-a476-d36501bf5cbd","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"UUID":"1469671a-56dd-3a68-bf6c-77a5cf7a9487","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"UUID":"23c4eee4-aba5-36f6-96d6-46f40061bfed","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"UUID":"ea9e73ff-483c-3827-896c-6eaa9d69bc6e","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"UUID":"38c068e5-bb9a-3997-9e50-ec77c66825c8","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"UUID":"38514b27-8b9b-3d06-844a-3aced27deb0a","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"UUID":"0e0387b5-07fa-30e4-8554-eb51d2e18939","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAIFailureResponseState"},"trigger":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAIFailureStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"SimpleCL_AAIFailureResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAIFailureResponseState"}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAISuccessResponseState"},"trigger":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAISuccessStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"},"outgoingEvent":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"SimpleCL_AAISuccessResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAISuccessResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifyFailureResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifyFailureResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifySuccessResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifySuccessResponseState"}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveVesState","value":{"stateKey":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveVesState"},"trigger":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"VesOutput","value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"},"outgoingEvent":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"SimpleCL_VesEventHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"SimpleCL_CDSConfigModifyRequestEvent","value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"},"outputEvents":{"entry":[{"key":"SimpleCL_AAIRequestEvent","value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]}},"toscaPolicyState":"EXIT_FAILURE"},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e","timestampMs":1711335339456,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | -------------- policy-apex-pdp | payload { grafana | logger=migrator t=2024-03-25T02:52:35.094071481Z level=info msg="Executing migration" id="add column for to alert_rule_version" simulator | } policy-pap | [2024-03-25T02:55:39.499+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-HEARTBEAT] discarding event of type PDP_UPDATE policy-db-migrator | policy-apex-pdp | fields { grafana | logger=migrator t=2024-03-25T02:52:35.10481294Z level=info msg="Migration successfully executed" id="add column for to alert_rule_version" duration=10.743689ms simulator | } policy-pap | [2024-03-25T02:55:39.499+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-db-migrator | policy-apex-pdp | key: "modify-config-response" grafana | logger=migrator t=2024-03-25T02:52:35.110120229Z level=info msg="Executing migration" id="add column annotations to alert_rule_version" simulator | } policy-pap | [2024-03-25T02:55:39.500+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-db-migrator | > upgrade 0870-FK_ToscaServiceTemplate_dataTypesName.sql policy-apex-pdp | value { grafana | logger=migrator t=2024-03-25T02:52:35.118871496Z level=info msg="Migration successfully executed" id="add column annotations to alert_rule_version" duration=8.748366ms simulator | } policy-pap | [2024-03-25T02:55:39.503+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-db-migrator | -------------- policy-apex-pdp | struct_value { grafana | logger=migrator t=2024-03-25T02:52:35.122419135Z level=info msg="Executing migration" id="add column labels to alert_rule_version" simulator | policy-db-migrator | CREATE INDEX FK_ToscaServiceTemplate_dataTypesName ON toscaservicetemplate(dataTypesName, dataTypesVersion) policy-pap | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT2"}]}},"eventInputParameters":{"SimpleCL_DCAEConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_VesEvent"},"SimpleCL_AAIResponseConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}","httpMethod":"GET","httpCodeFilter":"[2-5][0-1][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIProducer2","requestorTimeout":2000},"SimpleCL_CDSConfigModifyResponseConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyRequestProducer2","requestorTimeout":500}},"eventOutputParameters":{"SimpleCL_AAIProducer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_AAIRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIResponseConsumer2","requestorTimeout":2000},"SimpleCL_CDSConfigModifyRequestProducer2":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":60}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyResponseConsumer2","requestorTimeout":500},"SimpleCL_logOutputter2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/APEX-CL-MGT2"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_LogEvent"}}},"name":"onap.policies.apex.pnf.metadataSet.Test","version":"1.0.0","metadata":{"metadataSetName":"apex.metadata.pnf","metadataSetVersion":"1.0.0","policy-id":"onap.policies.apex.pnf.metadataSet.Test","policy-version":"1.0.0","metadataSet":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"c8a29e27-0a15-354a-84f9-4c7f207e5c81","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"UUID":"5e843cee-0180-39b9-8989-180b2ffe11c0","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"UUID":"90291c92-9b27-3cd9-8720-db572419c048","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"UUID":"7b7e6751-4e0b-389d-98c0-5567bbc0294c","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"63d5680c-14ef-3505-8d34-ebb646bba07b","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"UUID":"a84ca97d-6e94-39a2-91f9-59a6c9aa435e","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"0e2ee622-7fd3-3e49-82e2-539c4f5e9624","description":"Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"e84f8682-ea33-3ad0-8626-8bc4634581fc","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"UUID":"a252f835-2479-38ef-9ef4-20af62725752","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"UUID":"cfc46ea9-b8c1-38dd-ac9c-304c916daf34","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"1e7095d6-a455-3f89-acae-486e35d7e311","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"UUID":"d22ea83b-695d-3da9-b9f5-41f16ca433bf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"e9fe2e40-1f0d-30dd-8b9e-885695878693","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"5e04fa76-0a17-38a9-8524-23b2d1a23fa5","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"UUID":"15866380-40f5-3f8e-87d9-13747a36d352","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"UUID":"2c3d76ce-dd42-32ac-a397-ab418534e1cf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"b99c44da-dae7-3c96-b528-58852537d063","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"1db688e2-3afe-3b03-9795-fdbfa80fa240","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"31022456-e85b-3a9b-9ecb-a09691792d3e","description":"Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"d6075720-622e-3a0d-827a-aa4580a2f5d7","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"UUID":"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"UUID":"a0407d0b-5719-38bf-9529-25ad62ace8c4","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"UUID":"28e894dc-4ab8-3469-aab7-d81bd05bb4c9","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"UUID":"073f1433-999e-3506-98ad-ef820d2fa7f0","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"UUID":"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74","description":"Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask2:0.0.1\""}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"UUID":"317be184-a01a-3e2d-9ae4-cafaa405de70","description":"Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"UUID":"be7fc79b-9b73-381a-8e23-9dd6e6b1233d","description":"Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"UUID":"1a082851-49e3-3f4c-b023-c05236cc8389","description":"Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"UUID":"cab6cd51-ea7b-3241-a173-ea8a24e29737","description":"Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"UUID":"0f57665a-f0a9-314e-ad0a-04c1f5758174","description":"Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"UUID":"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b","description":"Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"UUID":"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1","description":"Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"UUID":"ecc97b87-f30b-344c-a476-d36501bf5cbd","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"UUID":"1469671a-56dd-3a68-bf6c-77a5cf7a9487","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"UUID":"23c4eee4-aba5-36f6-96d6-46f40061bfed","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"UUID":"ea9e73ff-483c-3827-896c-6eaa9d69bc6e","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"UUID":"38c068e5-bb9a-3997-9e50-ec77c66825c8","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"UUID":"38514b27-8b9b-3d06-844a-3aced27deb0a","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"UUID":"0e0387b5-07fa-30e4-8554-eb51d2e18939","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAIFailureResponseState"},"trigger":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAIFailureStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"SimpleCL_AAIFailureResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAIFailureResponseState"}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAISuccessResponseState"},"trigger":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAISuccessStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"},"outgoingEvent":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"SimpleCL_AAISuccessResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAISuccessResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifyFailureResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifyFailureResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifySuccessResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifySuccessResponseState"}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveVesState","value":{"stateKey":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveVesState"},"trigger":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"VesOutput","value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"},"outgoingEvent":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"SimpleCL_VesEventHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"SimpleCL_CDSConfigModifyRequestEvent","value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"},"outputEvents":{"entry":[{"key":"SimpleCL_AAIRequestEvent","value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]}},"toscaPolicyState":"EXIT_FAILURE"},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e","timestampMs":1711335339456,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-apex-pdp | fields { grafana | logger=migrator t=2024-03-25T02:52:35.129071489Z level=info msg="Migration successfully executed" id="add column labels to alert_rule_version" duration=6.655284ms simulator | 2024-03-25 02:55:38,474 INFO Fetching response from apex-example-cba-restart.json policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:39.510+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_UPDATE policy-apex-pdp | key: "execute-command-logs" grafana | logger=migrator t=2024-03-25T02:52:35.134799562Z level=info msg="Executing migration" id="add rule_group_idx column to alert_rule_version" simulator | 2024-03-25 02:55:38,501 INFO 172.17.0.9 - - [25/Mar/2024:02:55:38 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | policy-pap | [2024-03-25T02:55:39.511+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-apex-pdp | value { grafana | logger=migrator t=2024-03-25T02:52:35.139831638Z level=info msg="Migration successfully executed" id="add rule_group_idx column to alert_rule_version" duration=5.027656ms simulator | 2024-03-25 02:55:38,501 INFO 172.17.0.1 - - [25/Mar/2024:02:55:38 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 480 "-" "python-requests/2.27.1" policy-db-migrator | policy-pap | [2024-03-25T02:55:39.511+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-apex-pdp | list_value { grafana | logger=migrator t=2024-03-25T02:52:35.143004343Z level=info msg="Executing migration" id="add is_paused column to alert_rule_versions table" simulator | 2024-03-25 02:55:39,488 INFO 172.17.0.8 - - [25/Mar/2024:02:55:39 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | > upgrade 0880-FK_ToscaServiceTemplate_nodeTypesName.sql policy-pap | [2024-03-25T02:55:39.678+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | values { grafana | logger=migrator t=2024-03-25T02:52:35.149526895Z level=info msg="Migration successfully executed" id="add is_paused column to alert_rule_versions table" duration=6.517292ms simulator | 2024-03-25 02:55:39,490 INFO 172.17.0.8 - - [25/Mar/2024:02:55:33 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 88493 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- policy-pap | [2024-03-25T02:55:39.678+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-apex-pdp | string_value: "INFO:root:Arguments : Active,," grafana | logger=migrator t=2024-03-25T02:52:35.153366938Z level=info msg="Executing migration" id="fix is_paused column for alert_rule_version table" simulator | 2024-03-25 02:55:39,491 INFO 172.17.0.9 - - [25/Mar/2024:02:55:33 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 88493 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | CREATE INDEX FK_ToscaServiceTemplate_nodeTypesName ON toscaservicetemplate(nodeTypesName, nodeTypesVersion) policy-apex-pdp | } policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.vnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.pnf.metadataSet.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:39.626663Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":8,"policyExecutedSuccessCount":8,"policyExecutedFailCount":0,"policyDeployCount":4,"policyDeploySuccessCount":4,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331413,"eventCount":1,"lastExecutionTime":18,"averageExecutionTime":18.0,"upTime":4889,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331534,"eventCount":1,"lastExecutionTime":20,"averageExecutionTime":20.0,"upTime":4988,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335332395,"eventCount":1,"lastExecutionTime":9,"averageExecutionTime":9.0,"upTime":5832,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338341,"eventCount":1,"lastExecutionTime":26,"averageExecutionTime":26.0,"upTime":5112,"lastEnterTime":0,"lastStart":1711335333229},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338406,"eventCount":1,"lastExecutionTime":19,"averageExecutionTime":19.0,"upTime":5163,"lastEnterTime":0,"lastStart":1711335333243},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338457,"eventCount":1,"lastExecutionTime":14,"averageExecutionTime":14.0,"upTime":5199,"lastEnterTime":0,"lastStart":1711335333258},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338501,"eventCount":1,"lastExecutionTime":12,"averageExecutionTime":12.0,"upTime":5228,"lastEnterTime":0,"lastStart":1711335333273},{"engineId":"NSOApexEngine-4:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333287,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333287},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339573,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339573},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339585,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339585},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339596,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339596},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339606,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339606}]},"response":{"responseTo":"fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.pnf.metadataSet.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"1d8c329b-2d8b-4657-8cab-e01bfe803ba2","timestampMs":1711335339626,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:35.154016766Z level=info msg="Migration successfully executed" id="fix is_paused column for alert_rule_version table" duration=658.809µs simulator | 2024-03-25 02:55:39,492 INFO 172.17.0.8 - - [25/Mar/2024:02:55:33 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 88493 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.679+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:35.161186115Z level=info msg="Executing migration" id=create_alert_configuration_table simulator | 2024-03-25 02:55:39,677 INFO 172.17.0.9 - - [25/Mar/2024:02:55:39 +0000] "POST /events/POLICY-PDP-PAP HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.679+00:00|INFO|network|DMAAP-source-POLICY-HEARTBEAT] [IN|DMAAP|POLICY-HEARTBEAT] grafana | logger=migrator t=2024-03-25T02:52:35.162478669Z level=info msg="Migration successfully executed" id=create_alert_configuration_table duration=1.291434ms simulator | 2024-03-25 02:55:39,678 INFO 172.17.0.8 - - [25/Mar/2024:02:55:39 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 5424 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | } policy-pap | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.vnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.pnf.metadataSet.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:39.626663Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":8,"policyExecutedSuccessCount":8,"policyExecutedFailCount":0,"policyDeployCount":4,"policyDeploySuccessCount":4,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331413,"eventCount":1,"lastExecutionTime":18,"averageExecutionTime":18.0,"upTime":4889,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331534,"eventCount":1,"lastExecutionTime":20,"averageExecutionTime":20.0,"upTime":4988,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335332395,"eventCount":1,"lastExecutionTime":9,"averageExecutionTime":9.0,"upTime":5832,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338341,"eventCount":1,"lastExecutionTime":26,"averageExecutionTime":26.0,"upTime":5112,"lastEnterTime":0,"lastStart":1711335333229},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338406,"eventCount":1,"lastExecutionTime":19,"averageExecutionTime":19.0,"upTime":5163,"lastEnterTime":0,"lastStart":1711335333243},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338457,"eventCount":1,"lastExecutionTime":14,"averageExecutionTime":14.0,"upTime":5199,"lastEnterTime":0,"lastStart":1711335333258},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338501,"eventCount":1,"lastExecutionTime":12,"averageExecutionTime":12.0,"upTime":5228,"lastEnterTime":0,"lastStart":1711335333273},{"engineId":"NSOApexEngine-4:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333287,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333287},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339573,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339573},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339585,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339585},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339596,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339596},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339606,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339606}]},"response":{"responseTo":"fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.pnf.metadataSet.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"1d8c329b-2d8b-4657-8cab-e01bfe803ba2","timestampMs":1711335339626,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} grafana | logger=migrator t=2024-03-25T02:52:35.200955995Z level=info msg="Executing migration" id="Add column default in alert_configuration" policy-db-migrator | simulator | 2024-03-25 02:55:39,680 INFO 172.17.0.8 - - [25/Mar/2024:02:55:39 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 5424 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | fields { policy-pap | [2024-03-25T02:55:39.680+00:00|INFO|RequestIdDispatcher|DMAAP-source-POLICY-HEARTBEAT] no listener for request id fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e grafana | logger=migrator t=2024-03-25T02:52:35.209096525Z level=info msg="Migration successfully executed" id="Add column default in alert_configuration" duration=8.14463ms policy-db-migrator | > upgrade 0890-FK_ToscaServiceTemplate_policyTypesName.sql policy-apex-pdp | key: "prepare-environment-logs" policy-pap | [2024-03-25T02:55:39.680+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:35.212549164Z level=info msg="Executing migration" id="alert alert_configuration alertmanager_configuration column from TEXT to MEDIUMTEXT if mysql" simulator | 2024-03-25 02:55:39,680 INFO 172.17.0.9 - - [25/Mar/2024:02:55:39 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 5424 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | value { policy-pap | [2024-03-25T02:55:39.680+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:35.212710856Z level=info msg="Migration successfully executed" id="alert alert_configuration alertmanager_configuration column from TEXT to MEDIUMTEXT if mysql" duration=160.962µs policy-db-migrator | -------------- simulator | 2024-03-25 02:55:39,739 INFO 172.17.0.8 - - [25/Mar/2024:02:55:39 +0000] "POST /events/POLICY-NOTIFICATION HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | list_value { policy-pap | [2024-03-25T02:55:39.683+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping grafana | logger=migrator t=2024-03-25T02:52:35.21577559Z level=info msg="Executing migration" id="add column org_id in alert_configuration" policy-db-migrator | CREATE INDEX FK_ToscaServiceTemplate_policyTypesName ON toscaservicetemplate(policyTypesName, policyTypesVersion) simulator | 2024-03-25 02:55:44,724 INFO Topic APEX-CL-MGT2: added policy-apex-pdp | values { policy-pap | [2024-03-25T02:55:39.683+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping enqueue grafana | logger=migrator t=2024-03-25T02:52:35.222289542Z level=info msg="Migration successfully executed" id="add column org_id in alert_configuration" duration=6.513822ms policy-db-migrator | -------------- simulator | 2024-03-25 02:55:44,724 INFO Topic APEX-CL-MGT2: add consumer group: script policy-apex-pdp | string_value: "Installed pip packages:\n requirements.txt\n\n" policy-pap | [2024-03-25T02:55:39.683+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping timer grafana | logger=migrator t=2024-03-25T02:52:35.22662614Z level=info msg="Executing migration" id="add index in alert_configuration table on org_id column" policy-db-migrator | simulator | 2024-03-25 02:55:44,726 INFO 172.17.0.1 - - [25/Mar/2024:02:55:44 +0000] "GET /events/APEX-CL-MGT2/script/1?limit=1&timeout=0 HTTP/1.1" 200 2 "-" "python-requests/2.27.1" policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.683+00:00|INFO|TimerManager|DMAAP-source-POLICY-PDP-PAP] update timer cancelled Timer [name=fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e, expireMs=1711335369476] grafana | logger=migrator t=2024-03-25T02:52:35.228001855Z level=info msg="Migration successfully executed" id="add index in alert_configuration table on org_id column" duration=1.372305ms policy-db-migrator | simulator | 2024-03-25 02:55:44,735 INFO 172.17.0.1 - - [25/Mar/2024:02:55:44 +0000] "POST /events/unauthenticated.DCAE_CL_OUTPUT HTTP/1.1" 200 28 "-" "python-requests/2.27.1" policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.683+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopping listener grafana | logger=migrator t=2024-03-25T02:52:35.23121618Z level=info msg="Executing migration" id="add configuration_hash column to alert_configuration" policy-db-migrator | > upgrade 0900-FK_ToscaServiceTemplate_relationshipTypesName.sql simulator | 2024-03-25 02:55:44,735 INFO 172.17.0.9 - - [25/Mar/2024:02:55:31 +0000] "GET /events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000 HTTP/1.1" 200 668 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.683+00:00|INFO|ServiceManager|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate stopped grafana | logger=migrator t=2024-03-25T02:52:35.237860505Z level=info msg="Migration successfully executed" id="add configuration_hash column to alert_configuration" duration=6.648415ms policy-db-migrator | -------------- simulator | 2024-03-25 02:55:44,756 INFO 172.17.0.9 - - [25/Mar/2024:02:55:44 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.694+00:00|INFO|RequestImpl|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 PdpUpdate successful grafana | logger=migrator t=2024-03-25T02:52:35.241132991Z level=info msg="Executing migration" id=create_ngalert_configuration_table policy-db-migrator | CREATE INDEX FK_ToscaServiceTemplate_relationshipTypesName ON toscaservicetemplate(relationshipTypesName, relationshipTypesVersion) simulator | 2024-03-25 02:55:44,756 INFO 172.17.0.1 - - [25/Mar/2024:02:55:44 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 646 "-" "python-requests/2.27.1" policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.694+00:00|INFO|PdpRequests|DMAAP-source-POLICY-PDP-PAP] apex-5bf804bd-e186-49c7-886a-2f49221cd8c4 has no more requests grafana | logger=migrator t=2024-03-25T02:52:35.241892219Z level=info msg="Migration successfully executed" id=create_ngalert_configuration_table duration=765.748µs policy-db-migrator | -------------- simulator | 2024-03-25 02:55:44,758 INFO 172.17.0.9 - - [25/Mar/2024:02:55:44 +0000] "GET /aai/v16/network/pnfs/pnf/demo-pnf HTTP/1.1" 200 283 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.694+00:00|INFO|network|Thread-8] [OUT|DMAAP|POLICY-NOTIFICATION] grafana | logger=migrator t=2024-03-25T02:52:35.246678792Z level=info msg="Executing migration" id="add index in ngalert_configuration on org_id column" policy-db-migrator | simulator | 2024-03-25 02:55:44,780 INFO 172.17.0.1 - - [25/Mar/2024:02:55:44 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 725 "-" "python-requests/2.27.1" policy-apex-pdp | } policy-pap | {"deployed-policies":[{"policy-type":"onap.policies.native.Apex","policy-type-version":"1.0.0","policy-id":"onap.policies.apex.pnf.metadataSet.Test","policy-version":"1.0.0","success-count":1,"failure-count":0,"incomplete-count":0}],"undeployed-policies":[]} grafana | logger=migrator t=2024-03-25T02:52:35.247477251Z level=info msg="Migration successfully executed" id="add index in ngalert_configuration on org_id column" duration=798.519µs policy-db-migrator | simulator | 2024-03-25 02:55:44,781 INFO 172.17.0.9 - - [25/Mar/2024:02:55:44 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | } policy-pap | [2024-03-25T02:55:39.734+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] sending 1 msgs to /events/POLICY-NOTIFICATION. Oldest: 40 ms grafana | logger=migrator t=2024-03-25T02:52:35.250887618Z level=info msg="Executing migration" id="add column send_alerts_to in ngalert_configuration" policy-db-migrator | > upgrade 0910-FK_ToscaTopologyTemplate_nodeTemplatesName.sql simulator | 2024-03-25 02:55:44,783 INFO Received request input to CDS: commonHeader { policy-apex-pdp | policy-pap | [2024-03-25T02:55:39.734+00:00|INFO|HttpClient|pool-4-thread-1] POST http://message-router:3904/events/POLICY-NOTIFICATION (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:35.260407695Z level=info msg="Migration successfully executed" id="add column send_alerts_to in ngalert_configuration" duration=9.520717ms policy-db-migrator | -------------- simulator | requestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" policy-apex-pdp | [2024-03-25T02:55:38.437+00:00|INFO|CdsProcessorHandler|grpc-default-executor-0] Completed blueprint(1.0.0:apex-example-cba) for action(1.0.0) policy-pap | [2024-03-25T02:55:39.739+00:00|INFO|HttpClient|pool-4-thread-1] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:35.263465158Z level=info msg="Executing migration" id="create provenance_type table" policy-db-migrator | CREATE INDEX FK_ToscaTopologyTemplate_nodeTemplatesName ON toscatopologytemplate(nodeTemplatesName, nodeTemplatessVersion) simulator | subRequestId: "927b2580-36d9-4f13-8421-3c9d43b7a57e" policy-apex-pdp | [2024-03-25T02:55:38.449+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:2] NaN policy-pap | [2024-03-25T02:55:39.740+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] cambria reply ok (6 ms):{"serverTimeMs":0,"count":1} grafana | logger=migrator t=2024-03-25T02:52:35.264368618Z level=info msg="Migration successfully executed" id="create provenance_type table" duration=902.55µs policy-db-migrator | -------------- simulator | originatorId: "POLICY" policy-apex-pdp | [2024-03-25T02:55:38.449+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:2] sending the status to log. policy-pap | [2024-03-25T02:55:40.262+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 grafana | logger=migrator t=2024-03-25T02:52:35.270931701Z level=info msg="Executing migration" id="add index to uniquify (record_key, record_type, org_id) columns" policy-db-migrator | simulator | } policy-apex-pdp | [2024-03-25T02:55:38.449+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:2] LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e5460141"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1711335338447,"status" : "SUCCESS","message" : "ConfigModify request is successful. Sending restart request to CDS.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} policy-pap | [2024-03-25T02:55:40.263+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.271973703Z level=info msg="Migration successfully executed" id="add index to uniquify (record_key, record_type, org_id) columns" duration=1.041153ms simulator | actionIdentifiers { policy-apex-pdp | [2024-03-25T02:55:38.455+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:2] DMaaP Response after sending LogEvent: (200,{"serverTimeMs":0,"count":1}) policy-pap | [2024-03-25T02:55:45.352+00:00|INFO|SessionData|http-nio-6969-exec-1] cache group defaultGroup policy-db-migrator | > upgrade 0920-FK_ToscaTopologyTemplate_policyName.sql grafana | logger=migrator t=2024-03-25T02:52:35.275096247Z level=info msg="Executing migration" id="create alert_image table" simulator | blueprintName: "controlloop-hostname-update" policy-apex-pdp | [2024-03-25T02:55:38.460+00:00|INFO|CdsProcessorHandler|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSRestartRequestProducer-17:0] Processing blueprint(1.0.0:apex-example-cba) for action(1.0.0) policy-pap | [2024-03-25T02:55:45.926+00:00|INFO|SessionData|http-nio-6969-exec-3] cache group defaultGroup policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.276094318Z level=info msg="Migration successfully executed" id="create alert_image table" duration=997.661µs simulator | blueprintVersion: "1.0.4" policy-apex-pdp | [2024-03-25T02:55:38.461+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSRestartRequestProducer-17:0] [OUT|REST|gRPC://grpc-sim:6680/] policy-pap | [2024-03-25T02:55:46.744+00:00|INFO|SessionData|http-nio-6969-exec-4] cache group defaultGroup policy-db-migrator | CREATE INDEX FK_ToscaTopologyTemplate_policyName ON toscatopologytemplate(policyName, policyVersion) grafana | logger=migrator t=2024-03-25T02:52:35.279323884Z level=info msg="Executing migration" id="add unique index on token to alert_image table" simulator | actionName: "update-config" policy-apex-pdp | commonHeader { policy-pap | [2024-03-25T02:55:54.684+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.280329705Z level=info msg="Migration successfully executed" id="add unique index on token to alert_image table" duration=1.005981ms simulator | mode: "sync" policy-apex-pdp | requestId: "ad066d05-6d11-4d65-9d56-334f50b4ee3d" policy-pap | [2024-03-25T02:55:54.684+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.285857817Z level=info msg="Executing migration" id="support longer URLs in alert_image table" simulator | } policy-apex-pdp | subRequestId: "fault0000245" policy-pap | [2024-03-25T02:55:54.684+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.285924147Z level=info msg="Migration successfully executed" id="support longer URLs in alert_image table" duration=67.23µs simulator | payload { policy-apex-pdp | originatorId: "POLICY" policy-pap | [2024-03-25T02:55:55.266+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | > upgrade 0940-PdpPolicyStatus_PdpGroup.sql grafana | logger=migrator t=2024-03-25T02:52:35.289133242Z level=info msg="Executing migration" id=create_alert_configuration_history_table simulator | fields { policy-apex-pdp | } policy-pap | [2024-03-25T02:55:55.266+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.290851492Z level=info msg="Migration successfully executed" id=create_alert_configuration_history_table duration=1.71744ms simulator | key: "update-config-request" policy-apex-pdp | actionIdentifiers { policy-pap | [2024-03-25T02:55:55.267+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | CREATE INDEX PdpPolicyStatus_PdpGroup ON pdppolicystatus(PDPGROUP) grafana | logger=migrator t=2024-03-25T02:52:35.29436409Z level=info msg="Executing migration" id="drop non-unique orgID index on alert_configuration" simulator | value { policy-apex-pdp | blueprintName: "apex-example-cba" policy-pap | [2024-03-25T02:55:56.082+00:00|INFO|TimerManager|Thread-9] update timer discarded (expired) Timer [name=a6c770f9-032d-45b8-8d39-a7f1c9708cf1, expireMs=1711335356082] policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.295499753Z level=info msg="Migration successfully executed" id="drop non-unique orgID index on alert_configuration" duration=1.137273ms simulator | struct_value { policy-apex-pdp | blueprintVersion: "1.0.0" policy-pap | [2024-03-25T02:56:09.691+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.300712821Z level=info msg="Executing migration" id="drop unique orgID index on alert_configuration if exists" simulator | fields { policy-apex-pdp | actionName: "restart" policy-pap | [2024-03-25T02:56:09.692+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.301224846Z level=warn msg="Skipping migration: Already executed, but not recorded in migration log" id="drop unique orgID index on alert_configuration if exists" simulator | key: "hostname" policy-apex-pdp | mode: "sync" policy-pap | [2024-03-25T02:56:09.692+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-db-migrator | > upgrade 0950-TscaServiceTemplatetopologyTemplateParentLocalName.sql grafana | logger=migrator t=2024-03-25T02:52:35.304479392Z level=info msg="Executing migration" id="extract alertmanager configuration history to separate table" simulator | value { policy-apex-pdp | } policy-pap | [2024-03-25T02:56:10.270+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.304952488Z level=info msg="Migration successfully executed" id="extract alertmanager configuration history to separate table" duration=473.186µs simulator | string_value: "hostmgaif6" policy-apex-pdp | payload { policy-pap | [2024-03-25T02:56:10.271+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-db-migrator | CREATE INDEX TscaServiceTemplatetopologyTemplateParentLocalName ON toscaservicetemplate(topologyTemplateParentLocalName, topologyTemplateLocalName, topologyTemplateParentKeyVersion, topologyTemplateParentKeyName) grafana | logger=migrator t=2024-03-25T02:52:35.308043442Z level=info msg="Executing migration" id="add unique index on orgID to alert_configuration" simulator | } policy-apex-pdp | fields { policy-pap | [2024-03-25T02:56:10.271+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.309073473Z level=info msg="Migration successfully executed" id="add unique index on orgID to alert_configuration" duration=1.025771ms simulator | } policy-apex-pdp | key: "restart-request" policy-pap | [2024-03-25T02:56:24.696+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.314910998Z level=info msg="Executing migration" id="add last_applied column to alert_configuration_history" simulator | fields { policy-apex-pdp | value { policy-pap | [2024-03-25T02:56:24.697+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.324515495Z level=info msg="Migration successfully executed" id="add last_applied column to alert_configuration_history" duration=9.602537ms simulator | key: "IP" policy-apex-pdp | struct_value { policy-pap | [2024-03-25T02:56:24.697+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... grafana | logger=migrator t=2024-03-25T02:52:35.327887192Z level=info msg="Executing migration" id="create library_element table v1" simulator | value { policy-apex-pdp | fields { policy-pap | [2024-03-25T02:56:25.274+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | > upgrade 0960-FK_ToscaNodeTemplate_capabilitiesName.sql grafana | logger=migrator t=2024-03-25T02:52:35.329120725Z level=info msg="Migration successfully executed" id="create library_element table v1" duration=1.230723ms simulator | string_value: "10.10.10.10" policy-apex-pdp | key: "vfStatus" policy-pap | [2024-03-25T02:56:25.275+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.332193369Z level=info msg="Executing migration" id="add index library_element org_id-folder_id-name-kind" simulator | } policy-apex-pdp | value { policy-pap | [2024-03-25T02:56:25.275+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | ALTER TABLE toscanodetemplate ADD CONSTRAINT FK_ToscaNodeTemplate_capabilitiesName FOREIGN KEY (capabilitiesName, capabilitiesVersion) REFERENCES toscacapabilityassignments (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT grafana | logger=migrator t=2024-03-25T02:52:35.333422953Z level=info msg="Migration successfully executed" id="add index library_element org_id-folder_id-name-kind" duration=1.229264ms simulator | } policy-apex-pdp | string_value: "Active" policy-pap | [2024-03-25T02:56:39.701+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] --> HTTP/1.1 200 OK policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.338793463Z level=info msg="Executing migration" id="create library_element_connection table v1" simulator | fields { policy-apex-pdp | } policy-pap | [2024-03-25T02:56:39.701+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-HEARTBEAT] UEB GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.339724123Z level=info msg="Migration successfully executed" id="create library_element_connection table v1" duration=929.85µs simulator | key: "pnfName" policy-apex-pdp | } policy-pap | [2024-03-25T02:56:39.701+00:00|INFO|HttpClient|DMAAP-source-POLICY-HEARTBEAT] GET http://message-router:3904/events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 (anonymous) ... policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.342893568Z level=info msg="Executing migration" id="add index library_element_connection element_id-kind-connection_id" simulator | value { policy-apex-pdp | fields { policy-pap | [2024-03-25T02:56:40.279+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | > upgrade 0970-FK_ToscaNodeTemplate_requirementsName.sql grafana | logger=migrator t=2024-03-25T02:52:35.34393721Z level=info msg="Migration successfully executed" id="add index library_element_connection element_id-kind-connection_id" duration=1.040082ms simulator | string_value: "demo-pnf" policy-apex-pdp | key: "update-properties" policy-pap | [2024-03-25T02:56:40.279+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.347438839Z level=info msg="Executing migration" id="add unique index library_element org_id_uid" simulator | } policy-apex-pdp | value { policy-pap | [2024-03-25T02:56:40.279+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 (anonymous) ... policy-db-migrator | ALTER TABLE toscanodetemplate ADD CONSTRAINT FK_ToscaNodeTemplate_requirementsName FOREIGN KEY (requirementsName, requirementsVersion) REFERENCES toscarequirements (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT grafana | logger=migrator t=2024-03-25T02:52:35.349862526Z level=info msg="Migration successfully executed" id="add unique index library_element org_id_uid" duration=2.422147ms simulator | } policy-apex-pdp | struct_value { policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.356267517Z level=info msg="Executing migration" id="increase max description length to 2048" simulator | } policy-apex-pdp | fields { policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.356307257Z level=info msg="Migration successfully executed" id="increase max description length to 2048" duration=41.89µs simulator | } policy-apex-pdp | key: "service-instance.service-instance-id" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.359659144Z level=info msg="Executing migration" id="alter library_element model to mediumtext" simulator | } policy-apex-pdp | value { policy-db-migrator | > upgrade 0980-FK_ToscaNodeType_requirementsName.sql grafana | logger=migrator t=2024-03-25T02:52:35.359735085Z level=info msg="Migration successfully executed" id="alter library_element model to mediumtext" duration=76.561µs simulator | } policy-apex-pdp | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.362191882Z level=info msg="Executing migration" id="clone move dashboard alerts to unified alerting" simulator | policy-apex-pdp | } policy-db-migrator | ALTER TABLE toscanodetype ADD CONSTRAINT FK_ToscaNodeType_requirementsName FOREIGN KEY (requirementsName, requirementsVersion) REFERENCES toscarequirements (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT grafana | logger=migrator t=2024-03-25T02:52:35.362634907Z level=info msg="Migration successfully executed" id="clone move dashboard alerts to unified alerting" duration=442.665µs simulator | 2024-03-25 02:55:44,785 INFO Fetching response from controlloop-hostname-update-update-config.json policy-apex-pdp | } policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.365853832Z level=info msg="Executing migration" id="create data_keys table" simulator | 2024-03-25 02:55:44,828 INFO 172.17.0.9 - - [25/Mar/2024:02:55:44 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | fields { policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.367137377Z level=info msg="Migration successfully executed" id="create data_keys table" duration=1.282945ms simulator | 2024-03-25 02:55:44,828 INFO 172.17.0.1 - - [25/Mar/2024:02:55:44 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1 HTTP/1.1" 200 650 "-" "python-requests/2.27.1" policy-apex-pdp | key: "generic-vnf.vnf-id" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.372468586Z level=info msg="Executing migration" id="create secrets table" simulator | 2024-03-25 02:55:45,488 INFO 172.17.0.1 - - [25/Mar/2024:02:55:45 +0000] "GET /events/APEX-CL-MGT/script/1?limit=1&timeout=0 HTTP/1.1" 200 2 "-" "python-requests/2.27.1" policy-apex-pdp | value { policy-db-migrator | > upgrade 0990-FK_ToscaServiceTemplate_capabilityTypesName.sql grafana | logger=migrator t=2024-03-25T02:52:35.374192435Z level=info msg="Migration successfully executed" id="create secrets table" duration=1.723149ms simulator | 2024-03-25 02:55:45,497 INFO 172.17.0.9 - - [25/Mar/2024:02:55:39 +0000] "GET /events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000 HTTP/1.1" 200 668 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | string_value: "vfw-cnf-cds-test-1-vnf" policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.378108399Z level=info msg="Executing migration" id="rename data_keys name column to id" simulator | 2024-03-25 02:55:45,498 INFO 172.17.0.1 - - [25/Mar/2024:02:55:45 +0000] "POST /events/unauthenticated.DCAE_CL_OUTPUT HTTP/1.1" 200 28 "-" "python-requests/2.27.1" policy-apex-pdp | } policy-db-migrator | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_capabilityTypesName FOREIGN KEY (capabilityTypesName, capabilityTypesVersion) REFERENCES toscacapabilitytypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT grafana | logger=migrator t=2024-03-25T02:52:35.410835281Z level=info msg="Migration successfully executed" id="rename data_keys name column to id" duration=32.727642ms simulator | 2024-03-25 02:55:45,560 INFO 172.17.0.9 - - [25/Mar/2024:02:55:45 +0000] "GET /aai/v16/network/pnfs/pnf/demo-pnf HTTP/1.1" 200 283 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | } policy-db-migrator | -------------- simulator | 2024-03-25 02:55:45,573 INFO 172.17.0.9 - - [25/Mar/2024:02:55:45 +0000] "POST /events/APEX-CL-MGT2 HTTP/1.1" 200 28 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | fields { grafana | logger=migrator t=2024-03-25T02:52:35.413836364Z level=info msg="Executing migration" id="add name column into data_keys" policy-db-migrator | simulator | 2024-03-25 02:55:45,611 INFO 172.17.0.9 - - [25/Mar/2024:02:55:45 +0000] "POST /events/APEX-CL-MGT2 HTTP/1.1" 200 28 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | key: "data" grafana | logger=migrator t=2024-03-25T02:52:35.42065095Z level=info msg="Migration successfully executed" id="add name column into data_keys" duration=6.811646ms policy-db-migrator | policy-apex-pdp | value { policy-db-migrator | > upgrade 1000-FK_ToscaServiceTemplate_dataTypesName.sql simulator | 2024-03-25 02:55:45,622 INFO Received request input to CDS: commonHeader { grafana | logger=migrator t=2024-03-25T02:52:35.426316823Z level=info msg="Executing migration" id="copy data_keys id column values into name" policy-apex-pdp | struct_value { policy-db-migrator | -------------- simulator | requestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" grafana | logger=migrator t=2024-03-25T02:52:35.426458894Z level=info msg="Migration successfully executed" id="copy data_keys id column values into name" duration=141.981µs policy-apex-pdp | fields { policy-db-migrator | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_dataTypesName FOREIGN KEY (dataTypesName, dataTypesVersion) REFERENCES toscadatatypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT simulator | subRequestId: "927b2580-36d9-4f13-8421-3c9d43b7a57e" grafana | logger=migrator t=2024-03-25T02:52:35.429291736Z level=info msg="Executing migration" id="rename data_keys name column to label" policy-apex-pdp | key: "active-streams" policy-db-migrator | -------------- simulator | originatorId: "POLICY" grafana | logger=migrator t=2024-03-25T02:52:35.461367681Z level=info msg="Migration successfully executed" id="rename data_keys name column to label" duration=32.075525ms policy-apex-pdp | value { policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.464347334Z level=info msg="Executing migration" id="rename data_keys id column back to name" policy-apex-pdp | string_value: "7" policy-db-migrator | simulator | actionIdentifiers { grafana | logger=migrator t=2024-03-25T02:52:35.491491944Z level=info msg="Migration successfully executed" id="rename data_keys id column back to name" duration=27.13272ms policy-apex-pdp | } policy-db-migrator | > upgrade 1010-FK_ToscaServiceTemplate_nodeTypesName.sql simulator | blueprintName: "controlloop-hostname-update" grafana | logger=migrator t=2024-03-25T02:52:35.495095294Z level=info msg="Executing migration" id="create kv_store table v1" policy-apex-pdp | } policy-db-migrator | -------------- simulator | blueprintVersion: "1.0.4" grafana | logger=migrator t=2024-03-25T02:52:35.495851943Z level=info msg="Migration successfully executed" id="create kv_store table v1" duration=756.939µs policy-apex-pdp | } policy-db-migrator | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_nodeTypesName FOREIGN KEY (nodeTypesName, nodeTypesVersion) REFERENCES toscanodetypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT simulator | actionName: "update-config" grafana | logger=migrator t=2024-03-25T02:52:35.50013962Z level=info msg="Executing migration" id="add index kv_store.org_id-namespace-key" policy-apex-pdp | } policy-db-migrator | -------------- simulator | mode: "sync" grafana | logger=migrator t=2024-03-25T02:52:35.50092634Z level=info msg="Migration successfully executed" id="add index kv_store.org_id-namespace-key" duration=785.94µs policy-apex-pdp | } policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.505813333Z level=info msg="Executing migration" id="update dashboard_uid and panel_id from existing annotations" policy-apex-pdp | } policy-db-migrator | simulator | payload { grafana | logger=migrator t=2024-03-25T02:52:35.506044036Z level=info msg="Migration successfully executed" id="update dashboard_uid and panel_id from existing annotations" duration=230.973µs policy-apex-pdp | } policy-db-migrator | > upgrade 1020-FK_ToscaServiceTemplate_policyTypesName.sql simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:35.509422234Z level=info msg="Executing migration" id="create permission table" policy-apex-pdp | } policy-db-migrator | -------------- simulator | key: "update-config-request" grafana | logger=migrator t=2024-03-25T02:52:35.511082112Z level=info msg="Migration successfully executed" id="create permission table" duration=1.658988ms policy-apex-pdp | } policy-db-migrator | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_policyTypesName FOREIGN KEY (policyTypesName, policyTypesVersion) REFERENCES toscapolicytypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT simulator | value { grafana | logger=migrator t=2024-03-25T02:52:35.515841155Z level=info msg="Executing migration" id="add unique index permission.role_id" policy-apex-pdp | } policy-db-migrator | -------------- simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:35.517511043Z level=info msg="Migration successfully executed" id="add unique index permission.role_id" duration=1.669358ms policy-apex-pdp | } policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:35.521499097Z level=info msg="Executing migration" id="add unique index role_id_action_scope" policy-apex-pdp | } policy-db-migrator | simulator | key: "hostname" grafana | logger=migrator t=2024-03-25T02:52:35.522567759Z level=info msg="Migration successfully executed" id="add unique index role_id_action_scope" duration=1.068102ms policy-apex-pdp | policy-db-migrator | > upgrade 1030-FK_ToscaServiceTemplate_relationshipTypesName.sql simulator | value { grafana | logger=migrator t=2024-03-25T02:52:35.52626034Z level=info msg="Executing migration" id="create role table" policy-apex-pdp | [2024-03-25T02:55:38.482+00:00|INFO|network|grpc-default-executor-0] [IN|REST|gRPC://grpc-sim:6680/] policy-db-migrator | -------------- simulator | string_value: "hostrof87r" grafana | logger=migrator t=2024-03-25T02:52:35.527221461Z level=info msg="Migration successfully executed" id="create role table" duration=961.071µs policy-apex-pdp | commonHeader { policy-db-migrator | ALTER TABLE toscaservicetemplate ADD CONSTRAINT FK_ToscaServiceTemplate_relationshipTypesName FOREIGN KEY (relationshipTypesName, relationshipTypesVersion) REFERENCES toscarelationshiptypes (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.531604229Z level=info msg="Executing migration" id="add column display_name" policy-apex-pdp | timestamp: "2020-12-16T10:30:46.213Z" policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.539135883Z level=info msg="Migration successfully executed" id="add column display_name" duration=7.531634ms policy-apex-pdp | requestId: "f392e439-c176-411b-b972-8acadac0f8df" policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:35.542739542Z level=info msg="Executing migration" id="add column group_name" policy-apex-pdp | subRequestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" policy-db-migrator | simulator | key: "IP" grafana | logger=migrator t=2024-03-25T02:52:35.550039434Z level=info msg="Migration successfully executed" id="add column group_name" duration=7.296111ms policy-apex-pdp | originatorId: "POLICY" policy-db-migrator | > upgrade 1040-FK_ToscaTopologyTemplate_nodeTemplatesName.sql simulator | value { grafana | logger=migrator t=2024-03-25T02:52:35.590918817Z level=info msg="Executing migration" id="add index role.org_id" policy-apex-pdp | } policy-db-migrator | -------------- simulator | string_value: "10.10.10.10" grafana | logger=migrator t=2024-03-25T02:52:35.592758596Z level=info msg="Migration successfully executed" id="add index role.org_id" duration=1.841059ms policy-apex-pdp | actionIdentifiers { policy-db-migrator | ALTER TABLE toscatopologytemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_nodeTemplatesName FOREIGN KEY (nodeTemplatesName, nodeTemplatessVersion) REFERENCES toscanodetemplates (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.597513479Z level=info msg="Executing migration" id="add unique index role_org_id_name" policy-apex-pdp | blueprintName: "apex-example-cba" policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.59935099Z level=info msg="Migration successfully executed" id="add unique index role_org_id_name" duration=1.837071ms policy-apex-pdp | blueprintVersion: "1.0.0" policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:35.603273783Z level=info msg="Executing migration" id="add index role_org_id_uid" policy-apex-pdp | actionName: "restart" policy-db-migrator | simulator | key: "pnfName" grafana | logger=migrator t=2024-03-25T02:52:35.605053453Z level=info msg="Migration successfully executed" id="add index role_org_id_uid" duration=1.77865ms policy-apex-pdp | mode: "sync" policy-db-migrator | > upgrade 1050-FK_ToscaTopologyTemplate_policyName.sql simulator | value { grafana | logger=migrator t=2024-03-25T02:52:35.608526832Z level=info msg="Executing migration" id="create team role table" policy-apex-pdp | } policy-db-migrator | -------------- simulator | string_value: "demo-pnf" grafana | logger=migrator t=2024-03-25T02:52:35.609381821Z level=info msg="Migration successfully executed" id="create team role table" duration=854.649µs policy-apex-pdp | status { policy-db-migrator | ALTER TABLE toscatopologytemplate ADD CONSTRAINT FK_ToscaTopologyTemplate_policyName FOREIGN KEY (policyName, policyVersion) REFERENCES toscapolicies (name, version) ON UPDATE RESTRICT ON DELETE RESTRICT simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.613936792Z level=info msg="Executing migration" id="add index team_role.org_id" policy-apex-pdp | code: 200 policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.615276996Z level=info msg="Migration successfully executed" id="add index team_role.org_id" duration=1.338784ms policy-apex-pdp | message: "success" policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.619058149Z level=info msg="Executing migration" id="add unique index team_role_org_id_team_id_role_id" policy-apex-pdp | eventType: EVENT_COMPONENT_EXECUTED policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.620865988Z level=info msg="Migration successfully executed" id="add unique index team_role_org_id_team_id_role_id" duration=1.807359ms policy-apex-pdp | timestamp: "2020-12-16T10:30:46.828Z" policy-db-migrator | > upgrade 1060-TscaServiceTemplatetopologyTemplateParentLocalName.sql simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.624291517Z level=info msg="Executing migration" id="add index team_role.team_id" policy-apex-pdp | } policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.625270967Z level=info msg="Migration successfully executed" id="add index team_role.team_id" duration=979.21µs policy-apex-pdp | payload { simulator | policy-db-migrator | ALTER TABLE toscaservicetemplate ADD CONSTRAINT TscaServiceTemplatetopologyTemplateParentLocalName FOREIGN KEY (topologyTemplateParentLocalName, topologyTemplateLocalName, topologyTemplateParentKeyVersion, topologyTemplateParentKeyName) REFERENCES toscatopologytemplate (parentLocalName, localName, parentKeyVersion, parentKeyName) ON UPDATE RESTRICT ON DELETE RESTRICT grafana | logger=migrator t=2024-03-25T02:52:35.629562594Z level=info msg="Executing migration" id="create user role table" policy-apex-pdp | fields { simulator | 2024-03-25 02:55:45,623 INFO Fetching response from controlloop-hostname-update-update-config.json policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.630476725Z level=info msg="Migration successfully executed" id="create user role table" duration=914.521µs policy-apex-pdp | key: "restart-response" simulator | 2024-03-25 02:55:45,650 INFO 172.17.0.9 - - [25/Mar/2024:02:55:45 +0000] "POST /events/APEX-CL-MGT2 HTTP/1.1" 200 28 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.634006104Z level=info msg="Executing migration" id="add index user_role.org_id" policy-apex-pdp | value { simulator | 2024-03-25 02:55:46,837 INFO 172.17.0.4 - - [25/Mar/2024:02:55:31 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.635678553Z level=info msg="Migration successfully executed" id="add index user_role.org_id" duration=1.672099ms policy-apex-pdp | struct_value { simulator | 2024-03-25 02:55:46,838 INFO --> HTTP/1.1 200 OK policy-db-migrator | > upgrade 0100-pdp.sql grafana | logger=migrator t=2024-03-25T02:52:35.639133291Z level=info msg="Executing migration" id="add unique index user_role_org_id_user_id_role_id" policy-apex-pdp | fields { simulator | 2024-03-25 02:55:46,838 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.640374924Z level=info msg="Migration successfully executed" id="add unique index user_role_org_id_user_id_role_id" duration=1.242273ms policy-apex-pdp | key: "execute-command-logs" simulator | 2024-03-25 02:55:46,839 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-db-migrator | ALTER TABLE pdp ADD COLUMN LASTUPDATE datetime NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER HEALTHY grafana | logger=migrator t=2024-03-25T02:52:35.645831475Z level=info msg="Executing migration" id="add index user_role.user_id" policy-apex-pdp | value { simulator | 2024-03-25 02:55:46,839 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.646859737Z level=info msg="Migration successfully executed" id="add index user_role.user_id" duration=1.027362ms policy-apex-pdp | list_value { simulator | 2024-03-25 02:55:46,841 INFO 172.17.0.4 - - [25/Mar/2024:02:55:31 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.650055032Z level=info msg="Executing migration" id="create builtin role table" simulator | 2024-03-25 02:55:46,841 INFO --> HTTP/1.1 200 OK policy-apex-pdp | values { policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.650936422Z level=info msg="Migration successfully executed" id="create builtin role table" duration=881.02µs simulator | 2024-03-25 02:55:46,841 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-apex-pdp | string_value: "INFO:root:Arguments : Active,," policy-db-migrator | > upgrade 0110-idx_tsidx1.sql grafana | logger=migrator t=2024-03-25T02:52:35.655133359Z level=info msg="Executing migration" id="add index builtin_role.role_id" simulator | 2024-03-25 02:55:46,842 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-apex-pdp | } policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.65623243Z level=info msg="Migration successfully executed" id="add index builtin_role.role_id" duration=1.098601ms simulator | 2024-03-25 02:55:46,842 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-apex-pdp | } policy-db-migrator | CREATE INDEX IDX_TSIDX1 ON pdpstatistics(timeStamp, name, version) grafana | logger=migrator t=2024-03-25T02:52:35.660955563Z level=info msg="Executing migration" id="add index builtin_role.name" simulator | 2024-03-25 02:55:46,881 INFO 172.17.0.1 - - [25/Mar/2024:02:55:46 +0000] "GET /events/APEX-CL-MGT2/script/1?limit=1&timeout=0 HTTP/1.1" 200 647 "-" "python-requests/2.27.1" policy-apex-pdp | } policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.662069735Z level=info msg="Migration successfully executed" id="add index builtin_role.name" duration=1.114152ms simulator | 2024-03-25 02:55:46,896 INFO 172.17.0.9 - - [25/Mar/2024:02:55:38 +0000] "GET /events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000 HTTP/1.1" 200 821 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | } policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.666937619Z level=info msg="Executing migration" id="Add column org_id to builtin_role table" simulator | 2024-03-25 02:55:46,896 INFO 172.17.0.1 - - [25/Mar/2024:02:55:46 +0000] "POST /events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT HTTP/1.1" 200 28 "-" "python-requests/2.27.1" policy-apex-pdp | fields { policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.678373875Z level=info msg="Migration successfully executed" id="Add column org_id to builtin_role table" duration=11.437196ms simulator | 2024-03-25 02:55:46,917 INFO 172.17.0.9 - - [25/Mar/2024:02:55:46 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | key: "prepare-environment-logs" policy-db-migrator | > upgrade 0120-pk_pdpstatistics.sql grafana | logger=migrator t=2024-03-25T02:52:35.682115007Z level=info msg="Executing migration" id="add index builtin_role.org_id" simulator | 2024-03-25 02:55:46,923 INFO 172.17.0.9 - - [25/Mar/2024:02:55:46 +0000] "GET /aai/v16/network/generic-vnfs/generic-vnf?vnf-name=vfw-cnf-cds-test-1-vnf HTTP/1.1" 200 1646 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-apex-pdp | value { policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.683118988Z level=info msg="Migration successfully executed" id="add index builtin_role.org_id" duration=1.003481ms policy-apex-pdp | list_value { policy-db-migrator | ALTER TABLE pdpstatistics DROP PRIMARY KEY simulator | 2024-03-25 02:55:46,944 INFO 172.17.0.9 - - [25/Mar/2024:02:55:46 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:35.687188093Z level=info msg="Executing migration" id="add unique index builtin_role_org_id_role_id_role" policy-apex-pdp | values { policy-db-migrator | -------------- simulator | 2024-03-25 02:55:46,954 INFO Received request input to CDS: commonHeader { grafana | logger=migrator t=2024-03-25T02:52:35.688236224Z level=info msg="Migration successfully executed" id="add unique index builtin_role_org_id_role_id_role" duration=1.052081ms policy-apex-pdp | string_value: "Installed pip packages:\n requirements.txt\n\n" policy-db-migrator | simulator | requestId: "30676550-8992-4333-89bd-6b7457a4ab00" grafana | logger=migrator t=2024-03-25T02:52:35.691487251Z level=info msg="Executing migration" id="Remove unique index role_org_id_uid" policy-apex-pdp | } policy-db-migrator | simulator | subRequestId: "fault0000245" grafana | logger=migrator t=2024-03-25T02:52:35.692519022Z level=info msg="Migration successfully executed" id="Remove unique index role_org_id_uid" duration=1.031151ms policy-apex-pdp | } policy-db-migrator | > upgrade 0130-pdpstatistics.sql simulator | originatorId: "POLICY" policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:35.695735408Z level=info msg="Executing migration" id="add unique index role.uid" policy-db-migrator | -------------- policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:35.696810539Z level=info msg="Migration successfully executed" id="add unique index role.uid" duration=1.071651ms simulator | } policy-db-migrator | ALTER TABLE pdpstatistics ADD COLUMN POLICYUNDEPLOYCOUNT BIGINT DEFAULT NULL AFTER POLICYEXECUTEDSUCCESSCOUNT, ADD COLUMN POLICYUNDEPLOYFAILCOUNT BIGINT DEFAULT NULL, ADD COLUMN POLICYUNDEPLOYSUCCESSCOUNT BIGINT DEFAULT NULL, ADD COLUMN ID BIGINT NOT NULL policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:35.701022496Z level=info msg="Executing migration" id="create seed assignment table" simulator | actionIdentifiers { policy-db-migrator | -------------- policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:35.702210269Z level=info msg="Migration successfully executed" id="create seed assignment table" duration=1.186533ms simulator | blueprintName: "apex-example-cba" policy-db-migrator | policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:35.706073423Z level=info msg="Executing migration" id="add unique index builtin_role_role_name" simulator | blueprintVersion: "1.0.0" policy-db-migrator | policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:35.707793301Z level=info msg="Migration successfully executed" id="add unique index builtin_role_role_name" duration=1.720378ms simulator | actionName: "modify-config" policy-db-migrator | > upgrade 0140-pk_pdpstatistics.sql policy-apex-pdp | grafana | logger=migrator t=2024-03-25T02:52:35.711546553Z level=info msg="Executing migration" id="add column hidden to role table" simulator | mode: "sync" policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:38.482+00:00|INFO|CdsProcessorHandler|grpc-default-executor-0] Completed blueprint(1.0.0:apex-example-cba) for action(1.0.0) grafana | logger=migrator t=2024-03-25T02:52:35.72118122Z level=info msg="Migration successfully executed" id="add column hidden to role table" duration=9.633907ms simulator | } policy-db-migrator | UPDATE pdpstatistics as p JOIN (SELECT name, version, timeStamp, ROW_NUMBER() OVER (ORDER BY timeStamp ASC) AS row_num FROM pdpstatistics GROUP BY name, version, timeStamp) AS t ON (p.name=t.name AND p.version=t.version AND p.timeStamp = t.timeStamp) SET p.id=t.row_num policy-apex-pdp | [2024-03-25T02:55:38.494+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:3] sending the status to log. grafana | logger=migrator t=2024-03-25T02:52:35.727203826Z level=info msg="Executing migration" id="permission kind migration" simulator | payload { policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:38.494+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:3] LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e5460141"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1711335338493,"status" : "FINAL_SUCCESS","message" : "Successfully processed the VES Event. Restart is complete.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} grafana | logger=migrator t=2024-03-25T02:52:35.734198494Z level=info msg="Migration successfully executed" id="permission kind migration" duration=6.993108ms simulator | fields { policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:38.501+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:3] DMaaP Response after sending LogEvent: (200,{"serverTimeMs":0,"count":1}) grafana | logger=migrator t=2024-03-25T02:52:35.737320339Z level=info msg="Executing migration" id="permission attribute migration" simulator | key: "modify-config-request" policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:39.490+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:35.745403819Z level=info msg="Migration successfully executed" id="permission attribute migration" duration=8.08221ms simulator | value { policy-db-migrator | ALTER TABLE pdpstatistics ADD CONSTRAINT PK_PDPSTATISTICS PRIMARY KEY (ID, name, version) policy-apex-pdp | [2024-03-25T02:55:39.496+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] grafana | logger=migrator t=2024-03-25T02:52:35.749087869Z level=info msg="Executing migration" id="permission identifier migration" simulator | struct_value { policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.757213439Z level=info msg="Migration successfully executed" id="permission identifier migration" duration=8.12514ms policy-apex-pdp | {"source":"pap-9d557457-c950-41d5-818b-7d785f699cb1","description":"The default group that registers all supported policy types and pdps.","policiesToBeDeployed":[{"type":"onap.policies.native.Apex","type_version":"1.0.0","properties":{"engineServiceParameters":{"name":"NSOApexEngine","version":"0.0.1","id":45,"instanceCount":4,"deploymentPort":12561,"engineParameters":{"executorParameters":{"JAVASCRIPT":{"parameterClassName":"org.onap.policy.apex.plugins.executor.javascript.JavascriptExecutorParameters"}},"contextParameters":{"parameterClassName":"org.onap.policy.apex.context.parameters.ContextParameters","schemaParameters":{"Avro":{"parameterClassName":"org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"}}},"taskParameters":[{"key":"logUrl","value":"http://message-router:3904/events/APEX-CL-MGT2"}]}},"eventInputParameters":{"SimpleCL_DCAEConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_VesEvent"},"SimpleCL_AAIResponseConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters","parameters":{"url":"http://aai-sim:6666/aai/v16/network/pnfs/pnf/{pnfName}","httpMethod":"GET","httpCodeFilter":"[2-5][0-1][0-9]","httpHeaders":[["Accept","application/json"],["Content-Type","application/json"],["X-FromAppId","dcae-curl"],["x-transactionId","9998"],["Authorization","Basic QUFJOkFBSQ=="]]}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIProducer2","requestorTimeout":2000},"SimpleCL_CDSConfigModifyResponseConsumer2":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventName":"SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyRequestProducer2","requestorTimeout":500}},"eventOutputParameters":{"SimpleCL_AAIProducer2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTREQUESTOR","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_AAIRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_AAIResponseConsumer2","requestorTimeout":2000},"SimpleCL_CDSConfigModifyRequestProducer2":{"carrierTechnologyParameters":{"carrierTechnology":"GRPC","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters","parameters":{"host":"grpc-sim","port":6680,"username":"ccsdkapps","password":"ccsdkapps","timeout":60}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_CDSConfigModifyRequestEvent","requestorMode":true,"requestorPeer":"SimpleCL_CDSConfigModifyResponseConsumer2","requestorTimeout":500},"SimpleCL_logOutputter2":{"carrierTechnologyParameters":{"carrierTechnology":"RESTCLIENT","parameterClassName":"org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters","parameters":{"url":"http://message-router:3904/events/APEX-CL-MGT2"}},"eventProtocolParameters":{"eventProtocol":"JSON"},"eventNameFilter":"SimpleCL_LogEvent"}}},"name":"onap.policies.apex.pnf.metadataSet.Test","version":"1.0.0","metadata":{"metadataSetName":"apex.metadata.pnf","metadataSetVersion":"1.0.0","policy-id":"onap.policies.apex.pnf.metadataSet.Test","policy-version":"1.0.0","metadataSet":{"apexPolicyModel":{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"keyInformation":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"keyInfoMap":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"UUID":"7218fb2f-59e3-321d-9ae1-bc97b19eb4ae","description":"Generated description for concept referred to by key \"SimpleBooleanType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"UUID":"c8a29e27-0a15-354a-84f9-4c7f207e5c81","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"UUID":"5e843cee-0180-39b9-8989-180b2ffe11c0","description":"Generated description for concept referred to by key \"SimpleCL_AAIFailureResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"UUID":"90291c92-9b27-3cd9-8720-db572419c048","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestErrorType:0.0.1\""}},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"UUID":"7b7e6751-4e0b-389d-98c0-5567bbc0294c","description":"Generated description for concept referred to by key \"SimpleCL_AAIRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"UUID":"63d5680c-14ef-3505-8d34-ebb646bba07b","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"UUID":"a84ca97d-6e94-39a2-91f9-59a6c9aa435e","description":"Generated description for concept referred to by key \"SimpleCL_AAISuccessResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"UUID":"0e2ee622-7fd3-3e49-82e2-539c4f5e9624","description":"Generated description for concept referred to by key \"SimpleCL_CDSActionIdentifiersType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"UUID":"e84f8682-ea33-3ad0-8626-8bc4634581fc","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"UUID":"a252f835-2479-38ef-9ef4-20af62725752","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"UUID":"cfc46ea9-b8c1-38dd-ac9c-304c916daf34","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyFailureResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"UUID":"1e7095d6-a455-3f89-acae-486e35d7e311","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"UUID":"d22ea83b-695d-3da9-b9f5-41f16ca433bf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"UUID":"e9fe2e40-1f0d-30dd-8b9e-885695878693","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"UUID":"5e04fa76-0a17-38a9-8524-23b2d1a23fa5","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"UUID":"15866380-40f5-3f8e-87d9-13747a36d352","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"UUID":"2c3d76ce-dd42-32ac-a397-ab418534e1cf","description":"Generated description for concept referred to by key \"SimpleCL_CDSConfigModifySuccessResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"UUID":"b99c44da-dae7-3c96-b528-58852537d063","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"UUID":"1db688e2-3afe-3b03-9795-fdbfa80fa240","description":"Generated description for concept referred to by key \"SimpleCL_CDSFailureResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"UUID":"31022456-e85b-3a9b-9ecb-a09691792d3e","description":"Generated description for concept referred to by key \"SimpleCL_CDSRequestCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"UUID":"d6075720-622e-3a0d-827a-aa4580a2f5d7","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1\""}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"UUID":"948359ff-3308-3ac5-a5ec-6e3c1b9cd4d5","description":"Generated description for concept referred to by key \"SimpleCL_CDSSuccessResponseStatusType:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"UUID":"63a6fd26-2fd6-3a0e-8a27-49a5d2ea4644","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbum:0.0.1\""}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"UUID":"a0407d0b-5719-38bf-9529-25ad62ace8c4","description":"Generated description for concept referred to by key \"SimpleCL_EventDetailsAlbumType:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"UUID":"28e894dc-4ab8-3469-aab7-d81bd05bb4c9","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAIFailureResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"UUID":"073f1433-999e-3506-98ad-ef820d2fa7f0","description":"Generated description for concept referred to by key \"SimpleCL_HandleAAISuccessResponseTask2:0.0.1\""}},{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"UUID":"afc6ed46-6801-3c85-bb4c-0ab5b0dd4a74","description":"Generated description for concept referred to by key \"SimpleCL_HandleVesEventTask2:0.0.1\""}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"UUID":"317be184-a01a-3e2d-9ae4-cafaa405de70","description":"Generated description for concept referred to by key \"SimpleCL_LogEvent:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"UUID":"be7fc79b-9b73-381a-8e23-9dd6e6b1233d","description":"Generated description for concept referred to by key \"SimpleCL_LogEventComponentType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"UUID":"1a082851-49e3-3f4c-b023-c05236cc8389","description":"Generated description for concept referred to by key \"SimpleCL_LogEventOtherFieldsType:0.0.1\""}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"UUID":"cab6cd51-ea7b-3241-a173-ea8a24e29737","description":"Generated description for concept referred to by key \"SimpleCL_LogEventTargetType:0.0.1\""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"UUID":"0f57665a-f0a9-314e-ad0a-04c1f5758174","description":"Generated description for concept referred to by key \"SimpleCL_VesEvent:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"UUID":"ba5d9a46-8cb4-3fbe-84fd-eabba5b7dd4b","description":"Generated description for concept referred to by key \"SimpleCL_VesEventHandlerPolicy2:0.0.1\""}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"UUID":"9fd7a967-57d4-36ef-81e9-c3396f3aa8d1","description":"Generated description for concept referred to by key \"SimpleCL_VesEventType:0.0.1\""}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"UUID":"2dfcd9ec-a6f9-3f9f-958f-9b36cf4ac574","description":"Generated description for concept referred to by key \"SimpleLongType:0.0.1\""}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"UUID":"8a4957cf-9493-3a76-8c22-a208e23259af","description":"Generated description for concept referred to by key \"SimpleStringType:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2","version":"0.0.1"},"UUID":"ecc97b87-f30b-344c-a476-d36501bf5cbd","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"UUID":"1469671a-56dd-3a68-bf6c-77a5cf7a9487","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Albums:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"UUID":"23c4eee4-aba5-36f6-96d6-46f40061bfed","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Events:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_KeyInfo","version":"0.0.1"},"UUID":"ea9e73ff-483c-3827-896c-6eaa9d69bc6e","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_KeyInfo:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"UUID":"38c068e5-bb9a-3997-9e50-ec77c66825c8","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Policies:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"UUID":"38514b27-8b9b-3d06-844a-3aced27deb0a","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Schemas:0.0.1\""}},{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"value":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"UUID":"0e0387b5-07fa-30e4-8554-eb51d2e18939","description":"Generated description for concept referred to by key \"onap.policies.apex.Simplecontrolloop2_Tasks:0.0.1\""}}]}},"policies":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Policies","version":"0.0.1"},"policyMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAIFailureResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAIFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAIFailureResponseState"},"trigger":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAIFailureStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"SimpleCL_AAIFailureResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAIFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAIFailureResponseState","localName":"AAIFailureStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAIFailureResponseState"}},{"key":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_AAISuccessResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveAAISuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveAAISuccessResponseState"},"trigger":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"AAISuccessStateOutput","value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"},"outgoingEvent":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"SimpleCL_AAISuccessResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_AAISuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveAAISuccessResponseState","localName":"AAISuccessStateOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveAAISuccessResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifyFailureResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifyFailureResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifyFailureResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifyFailureResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifyFailureResponseState","localName":"ConfigModifyFailureResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifyFailureResponseState"}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_CDSConfigModifySuccessResponseState","value":{"stateKey":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_CDSConfigModifySuccessResponseState"},"trigger":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"ConfigModifySuccessResponseOutput","value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"},"outgoingEvent":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_CDSConfigModifySuccessResponseHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_CDSConfigModifySuccessResponseState","localName":"ConfigModifySuccessResponseOutput"}}}]}}}]},"firstState":"SimpleCL_CDSConfigModifySuccessResponseState"}},{"key":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"value":{"policyKey":{"name":"SimpleCL_VesEventHandlerPolicy2","version":"0.0.1"},"template":"Freestyle","state":{"entry":[{"key":"SimpleCL_ReceiveVesState","value":{"stateKey":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"NULL","localName":"SimpleCL_ReceiveVesState"},"trigger":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"stateOutputs":{"entry":[{"key":"VesOutput","value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"},"outgoingEvent":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"outgoingEventReference":[{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},{"name":"SimpleCL_LogEvent","version":"0.0.1"}],"nextState":{"parentKeyName":"NULL","parentKeyVersion":"0.0.0","parentLocalName":"NULL","localName":"NULL"}}}]},"contextAlbumReference":[],"taskSelectionLogic":{"key":"NULL","logicFlavour":"UNDEFINED","logic":""},"stateFinalizerLogicMap":{"entry":[]},"defaultTask":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"taskReferences":{"entry":[{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"SimpleCL_VesEventHandlerPolicy2"},"outputType":"DIRECT","output":{"parentKeyName":"SimpleCL_VesEventHandlerPolicy2","parentKeyVersion":"0.0.1","parentLocalName":"SimpleCL_ReceiveVesState","localName":"VesOutput"}}}]}}}]},"firstState":"SimpleCL_ReceiveVesState"}}]}},"tasks":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Tasks","version":"0.0.1"},"taskMap":{"entry":[{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar errorMessage = \"CDS operation failed. Error message from CDS - \" + executor.inFields.get(\"status\").get(\"errorMessage\");\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + errorMessage);\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\n\nvar logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_SUCCESS\", \"Successfully processed the VES event. Hostname is updated.\")\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAIFailureResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"},"outputEvents":{"entry":[{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar longType = java.lang.Long;\nvar HashMapType = java.util.HashMap;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\n\nvar aaiErrorMessage = \"AAI operation failed. Error message from AAI - \" + executor.inFields.get(\"requestError\").get(\"serviceException\").get(\"text\");\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + aaiErrorMessage)\nexecutor.addFieldsToOutput(logEventFields);\nexecutor.logger.info(executor.outFieldsList);\ntrue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleAAISuccessResponseTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""},"outputEvents":{"entry":[{"key":"SimpleCL_CDSConfigModifyRequestEvent","value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar albumID = executor.getExecutionProperties().getProperty(\"albumId\");\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").get(albumID.toString());\nexecutor.logger.info(\"HandleAAISuccessResponseTask extracted context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nvar commonEventHeader = eventDetailsAlbum.get(\"commonEventHeader\");\nvar otherFieldsMap = eventDetailsAlbum.get(\"otherFields\").get(\"hashMap\");\n\nvar targetEntityName = executor.inFields.get(\"pnf-name\")\nvar logMessage = \"\";\nvar existingHostname = executor.inFields.get(\"pnf-name2\");\nvar hostnameInVesEvent = otherFieldsMap.get(\"hostname\");\n\nvar albumSchemaHelper = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper();\nvar target = albumSchemaHelper.createNewSubInstance(\"target\");\ntarget.put(\"targetType\", \"PNF\")\nvar entityInfo = albumSchemaHelper.createNewSubInstance(\"entityInfo\");\nentityInfo.put(\"name\",targetEntityName);\ntarget.put(\"entityInfo\", entityInfo);\neventDetailsAlbum.put(\"target\", target);\n\nvar returnVal = true;\nif ((String(hostnameInVesEvent) != \"UNDEFINED\") && (String(existingHostname) != String(hostnameInVesEvent))) {\n logMessage = \"Hostname available in AAI does not match with the hostname received in the VES Event.\";\n returnVal = false\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"FINAL_FAILURE\", \"Failed to process VES event. Reason: \" + logMessage)\n executor.addFieldsToOutput(logEventFields);\n} else {\n logMessage = \"Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.\";\n\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", albumID.toString());\n commonHeader.put(\"requestId\", commonEventHeader.get(\"eventId\"));\n commonHeader.put(\"originatorId\", \"POLICY\");\n\n var blueprintName = \"controlloop-hostname-update\";\n var blueprintVersion = \"1.0.4\";\n var newHostname = \"host\" + Math.random().toString(36).substring(7);\n eventDetailsAlbum.put(\"generatedHostname\", newHostname);\n\n var actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"actionIdentifiers\").createNewInstance();\n actionIdentifiers.put(\"mode\", \"sync\");\n actionIdentifiers.put(\"blueprintName\", blueprintName);\n actionIdentifiers.put(\"blueprintVersion\", blueprintVersion);\n actionIdentifiers.put(\"actionName\", \"update-config\");\n\n var payloadEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", executor.inFields.get(\"ipaddress-v4-oam\"));\n payloadEntry.put(\"pnfName\", otherFieldsMap.get(\"pnfName\"));\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_CDSConfigModifyRequestEvent\", \"payload\").createNewInstance();\n payload.put(\"update_DasH_config_DasH_request\", payloadEntry);\n\n var cdsRequestEventFields = java.util.HashMap();\n cdsRequestEventFields.put(\"commonHeader\", commonHeader);\n cdsRequestEventFields.put(\"actionIdentifiers\", actionIdentifiers);\n cdsRequestEventFields.put(\"payload\", payload);\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(commonEventHeader.get(\"eventId\"), otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage)\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}},{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_HandleVesEventTask2","version":"0.0.1"},"inputEvent":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"},"outputEvents":{"entry":[{"key":"SimpleCL_AAIRequestEvent","value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":"SimpleCL_LogEvent","value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}}]},"taskParameters":{"entry":[]},"contextAlbumReference":[{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"}],"taskLogic":{"key":"TaskLogic","logicFlavour":"JAVASCRIPT","logic":"var uuidType = java.util.UUID;\nvar HashMapType = java.util.HashMap;\nvar longType = java.lang.Long;\n\nvar eventDetailsAlbum = executor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;\n\nvar event = executor.inFields.get(\"event\");\nexecutor.logger.info(\"HandleVesEventTask processing VES event - \" + event);\n\nvar commonEventHeader = event.get(\"commonEventHeader\");\nvar otherFields = event.get(\"otherFields\");\n// albumID will be used to fetch info from our album later. Storing event data in album by sourceId / AAI pnf-id, the same will be sent to CDS request payload as subRequestId\nvar albumID = commonEventHeader.get(\"sourceId\");\n// save the event processing start time in apex\ncommonEventHeader.put(\"startEpochMicrosec\", longType(new Date().getTime()));\n//save the incoming event details to album\neventDetailsAlbum.put(\"commonEventHeader\", commonEventHeader);\neventDetailsAlbum.put(\"otherFields\", otherFields);\nexecutor.getContextAlbum(\"SimpleCL_EventDetailsAlbum\").put(albumID.toString(), eventDetailsAlbum);\nexecutor.logger.info(\"HandleVesEventTask storing context album - \" + albumID.toString() + \"::\" + eventDetailsAlbum);\n\nexecutor.getExecutionProperties().setProperty(\"albumId\", albumID);\nexecutor.getExecutionProperties().setProperty(\"pnfName\", otherFields.get(\"hashMap\").get(\"pnfName\"));\n\nvar logEventFields = populateLogEventFields(eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\"), otherFields.get(\"hashMap\").get(\"pnfName\"), \"PNF\", \"ACTIVE\", \"VES event has been received. Going to fetch details from AAI.\")\n\nexecutor.addFieldsToOutput(logEventFields);\n\nexecutor.logger.info(executor.outFieldsList);\nreturnValue;\n\nfunction populateLogEventFields(eventId, pnfName, targetType, status, message) {\n // populate logEventFields\n var timestamp = longType(new Date().getTime());\n var logEventFields = java.util.HashMap();\n logEventFields.put(\"id\", eventId);\n \n var entityInfo = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewSubInstance(\"entityInfo\");\n entityInfo.put(\"pnf_DasH_name\", pnfName);\n var target = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"target\").createNewInstance();\n target.put(\"entityInfo\", entityInfo);\n target.put(\"targetType\", targetType)\n logEventFields.put(\"target\", target);\n \n var artifacts = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewSubInstance(\"artifacts\");\n artifacts.put(\"policyName\", \"onap.policies.apex.Simplecontrolloop2\");\n artifacts.put(\"policyVersion\", \"1.0.0\");\n var component = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"component\").createNewInstance();\n component.put(\"artifacts\", artifacts);\n component.put(\"name\", \"Policy\")\n component.put(\"flavour\", \"Apex-PDP\")\n component.put(\"timestamp\", timestamp)\n component.put(\"status\", status)\n component.put(\"message\", message)\n logEventFields.put(\"component\", component);\n \n var otherFieldsEntry = executor.subject.getOutFieldSchemaHelper(\"SimpleCL_LogEvent\", \"otherFields\").createNewInstance();\n otherFieldsEntry.put(\"useCaseName\", \"simple-controlloop-usecase\");\n logEventFields.put(\"otherFields\", otherFieldsEntry);\n \n return logEventFields;\n}"}}}]}},"events":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Events","version":"0.0.1"},"eventMap":{"entry":[{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"requestError","value":{"key":"requestError","fieldSchemaKey":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"optional":false}}]}},"toscaPolicyState":"EXIT_FAILURE"},{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"AAI","parameter":{"entry":[{"key":"aaifield","value":{"key":"aaifield","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAISuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"AAI","target":"APEX","parameter":{"entry":[{"key":"equip-model","value":{"key":"equip-model","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-type","value":{"key":"equip-type","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"equip-vendor","value":{"key":"equip-vendor","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"frame-id","value":{"key":"frame-id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"in-maint","value":{"key":"in-maint","fieldSchemaKey":{"name":"SimpleBooleanType","version":"0.0.1"},"optional":false}},{"key":"ipaddress-v4-oam","value":{"key":"ipaddress-v4-oam","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"nf-role","value":{"key":"nf-role","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-ipv4-address","value":{"key":"pnf-ipv4-address","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"pnf-name","value":{"key":"pnf-name","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"resource-version","value":{"key":"resource-version","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyFailureResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_FAILURE"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifySuccessResponseEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"CDS","target":"APEX","parameter":{"entry":[{"key":"actionIdentifiers","value":{"key":"actionIdentifiers","fieldSchemaKey":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"optional":false}},{"key":"commonHeader","value":{"key":"commonHeader","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"optional":false}},{"key":"payload","value":{"key":"payload","fieldSchemaKey":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"optional":false}},{"key":"status","value":{"key":"status","fieldSchemaKey":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"EXIT_SUCCESS"}},{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"APEX","target":"DCAE","parameter":{"entry":[{"key":"component","value":{"key":"component","fieldSchemaKey":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"optional":false}},{"key":"id","value":{"key":"id","fieldSchemaKey":{"name":"SimpleStringType","version":"0.0.1"},"optional":false}},{"key":"otherFields","value":{"key":"otherFields","fieldSchemaKey":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"optional":false}},{"key":"target","value":{"key":"target","fieldSchemaKey":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":""}},{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEvent","version":"0.0.1"},"nameSpace":"org.onap.policy.apex.simplecontrolloop","source":"DCAE","target":"APEX","parameter":{"entry":[{"key":"event","value":{"key":"event","fieldSchemaKey":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"optional":false}}]},"toscaPolicyState":"ENTRY"}}]}},"albums":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Albums","version":"0.0.1"},"albums":{"entry":[{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbum","version":"0.0.1"},"scope":"policy","isWritable":true,"itemSchema":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"}}}]}},"schemas":{"key":{"name":"onap.policies.apex.Simplecontrolloop2_Schemas","version":"0.0.1"},"schemas":{"entry":[{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"value":{"key":{"name":"SimpleBooleanType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Boolean"}},{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_AAIRequestErrorType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"AAIRequestErrorType\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"serviceException\",\n \"type\": {\n \"name\": \"serviceException\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"messageId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"text\",\n \"type\": \"string\"\n },\n {\n \"name\": \"variables\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSActionIdentifiersType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"fields\": [\n {\n \"name\": \"actionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"blueprintVersion\",\n \"type\": \"string\"\n },\n {\n \"name\": \"mode\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyRequestPayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSConfigModifyRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"IP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n }\n ]\n }\n}"}},{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSConfigModifyResponsePayloadType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"CDSConfigResponsePayloadEntry\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": {\n \"name\": \"update_DasH_config_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"execute_DasH_command_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n },\n {\n \"name\": \"prepare_DasH_environment_DasH_logs\",\n \"type\": {\n \"type\": \"array\",\n \"items\": \"string\"\n }\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSFailureResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"errorMessage\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSRequestCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseCommonHeaderType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"fields\": [\n {\n \"name\": \"originatorId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"requestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subRequestId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_CDSSuccessResponseStatusType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"fields\": [\n {\n \"name\": \"code\",\n \"type\": \"int\"\n },\n {\n \"name\": \"eventType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_EventDetailsAlbumType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"eventDetails\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"commonEventHeader\",\n \"type\": {\n \"name\": \"commonEventHeader\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"domain\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"eventName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"lastEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"priority\",\n \"type\": \"string\"\n },\n {\n \"name\": \"reportingEntityName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sequence\",\n \"type\": \"int\"\n },\n {\n \"name\": \"sourceId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"sourceName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"startEpochMicrosec\",\n \"type\": \"long\"\n },\n {\n \"name\": \"timeZoneOffset\",\n \"type\": \"string\"\n },\n {\n \"name\": \"version\",\n \"type\": \"string\"\n },\n {\n \"name\": \"internalHeaderFields\",\n \"type\": {\n \"name\": \"internalHeaderFields\",\n \"type\": \"record\",\n \"fields\": []\n }\n },\n {\n \"name\": \"vesEventListenerVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFields\",\n \"type\": {\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hashMap\",\n \"type\": {\n \"name\": \"hashMap\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"hostname\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"pnfId\",\n \"type\": \"string\"\n },\n {\n \"name\": \"ip\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"otherFieldsVersion\",\n \"type\": \"string\"\n }\n ]\n }\n },\n {\n \"name\": \"target\",\n \"type\": {\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"generatedHostname\",\n \"type\": \"string\"\n }\n ]\n}"}},{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventComponentType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"component\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"name\",\n \"type\": \"string\"\n },\n {\n \"name\": \"flavour\",\n \"type\": \"string\"\n },\n {\n \"name\": \"timestamp\",\n \"type\": \"long\"\n },\n {\n \"name\": \"status\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n },\n {\n \"name\": \"artifacts\",\n \"type\": {\n \"name\": \"artifacts\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyVersion\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventOtherFieldsType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"}},{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_LogEventTargetType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\": \"target\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"targetType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"entityInfo\",\n \"type\": {\n \"name\": \"entityInfo\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"pnf_DasH_name\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }"}},{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"value":{"key":{"name":"SimpleCL_VesEventType","version":"0.0.1"},"schemaFlavour":"Avro","schemaDefinition":"{\n \"name\":\"event\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"commonEventHeader\",\n \"type\":{\n \"name\":\"commonEventHeader\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"domain\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"eventName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"lastEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"priority\",\n \"type\":\"string\"\n },\n {\n \"name\":\"reportingEntityName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sequence\",\n \"type\":\"int\"\n },\n {\n \"name\":\"sourceId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"sourceName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"startEpochMicrosec\",\n \"type\":\"long\"\n },\n {\n \"name\":\"version\",\n \"type\":\"string\"\n },\n {\n \"name\":\"internalHeaderFields\",\n \"type\":{\n \"name\":\"internalHeaderFields\",\n \"type\":\"record\",\n \"fields\":[\n\n ]\n }\n },\n {\n \"name\":\"vesEventListenerVersion\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFields\",\n \"type\":{\n \"name\":\"otherFields\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hashMap\",\n \"type\":{\n \"name\":\"hashMap\",\n \"type\":\"record\",\n \"fields\":[\n {\n \"name\":\"hostname\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfName\",\n \"type\":\"string\"\n },\n {\n \"name\":\"pnfId\",\n \"type\":\"string\"\n },\n {\n \"name\":\"ip\",\n \"type\":\"string\"\n }\n ]\n }\n },\n {\n \"name\":\"otherFieldsVersion\",\n \"type\":\"string\"\n }\n ]\n }\n }\n ]\n}"}},{"key":{"name":"SimpleLongType","version":"0.0.1"},"value":{"key":{"name":"SimpleLongType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.Long"}},{"key":{"name":"SimpleStringType","version":"0.0.1"},"value":{"key":{"name":"SimpleStringType","version":"0.0.1"},"schemaFlavour":"Java","schemaDefinition":"java.lang.String"}}]}}}}}}],"policiesToBeUndeployed":[],"messageName":"PDP_UPDATE","requestId":"fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e","timestampMs":1711335339456,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} simulator | fields { policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.763669121Z level=info msg="Executing migration" id="add permission identifier index" policy-apex-pdp | [2024-03-25T02:55:39.499+00:00|WARN|Registry|DMAAP-source-POLICY-PDP-PAP] replacing previously registered: object:apex/tosca/policy/list simulator | key: "vfStatus" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.765004046Z level=info msg="Migration successfully executed" id="add permission identifier index" duration=1.333605ms policy-apex-pdp | [2024-03-25T02:55:39.506+00:00|INFO|ApexEngineHandler|DMAAP-source-POLICY-PDP-PAP] Starting apex engine for policy onap.policies.apex.pnf.metadataSet.Test 1.0.0 simulator | value { policy-db-migrator | > upgrade 0150-pdpstatistics.sql grafana | logger=migrator t=2024-03-25T02:52:35.768870458Z level=info msg="Executing migration" id="add permission action scope role_id index" policy-apex-pdp | [2024-03-25T02:55:39.521+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-0:0.0.1 . simulator | string_value: "Active" policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.770398476Z level=info msg="Migration successfully executed" id="add permission action scope role_id index" duration=1.527288ms policy-apex-pdp | [2024-03-25T02:55:39.521+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-1:0.0.1 . simulator | } policy-db-migrator | ALTER TABLE pdpstatistics MODIFY COLUMN timeStamp datetime(6) NULL grafana | logger=migrator t=2024-03-25T02:52:35.774714773Z level=info msg="Executing migration" id="remove permission role_id action scope index" policy-apex-pdp | [2024-03-25T02:55:39.521+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-2:0.0.1 . simulator | } policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.775831726Z level=info msg="Migration successfully executed" id="remove permission role_id action scope index" duration=1.116573ms policy-apex-pdp | [2024-03-25T02:55:39.521+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Created apex engine NSOApexEngine-3:0.0.1 . simulator | fields { policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.779981791Z level=info msg="Executing migration" id="create query_history table v1" policy-apex-pdp | [2024-03-25T02:55:39.521+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] APEX service created. simulator | key: "update-properties" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.780994683Z level=info msg="Migration successfully executed" id="create query_history table v1" duration=1.011632ms policy-apex-pdp | [2024-03-25T02:55:39.550+00:00|WARN|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] apex model update forced, supplied model with key "onap.policies.apex.Simplecontrolloop2:0.0.1" is not a compatible model update from the existing engine model with key "onap.policies.apex.Example:0.0.1" simulator | value { policy-db-migrator | > upgrade 0160-jpapdpstatistics_enginestats.sql grafana | logger=migrator t=2024-03-25T02:52:35.784283939Z level=info msg="Executing migration" id="add index query_history.org_id-created_by-datasource_uid" policy-apex-pdp | [2024-03-25T02:55:39.550+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-0:0.0.1 simulator | struct_value { policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.785438812Z level=info msg="Migration successfully executed" id="add index query_history.org_id-created_by-datasource_uid" duration=1.154833ms policy-apex-pdp | [2024-03-25T02:55:39.550+00:00|WARN|EngineService|DMAAP-source-POLICY-PDP-PAP] apex model update forced, supplied model with key "onap.policies.apex.Simplecontrolloop2:0.0.1" is not a compatible model update from the existing engine model with key "onap.policies.apex.Example:0.0.1" simulator | fields { policy-db-migrator | ALTER TABLE jpapdpstatistics_enginestats ADD COLUMN ID BIGINT DEFAULT NULL AFTER UPTIME grafana | logger=migrator t=2024-03-25T02:52:35.789435237Z level=info msg="Executing migration" id="alter table query_history alter column created_by type to bigint" policy-apex-pdp | [2024-03-25T02:55:39.551+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-1:0.0.1 simulator | key: "service-instance.service-instance-id" policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.789511557Z level=info msg="Migration successfully executed" id="alter table query_history alter column created_by type to bigint" duration=76.701µs policy-apex-pdp | [2024-03-25T02:55:39.552+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-2:0.0.1 simulator | value { policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.793118887Z level=info msg="Executing migration" id="rbac disabled migrator" policy-apex-pdp | [2024-03-25T02:55:39.553+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Registering apex model on engine NSOApexEngine-3:0.0.1 simulator | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.793208488Z level=info msg="Migration successfully executed" id="rbac disabled migrator" duration=90.261µs policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleBooleanType:0.0.1 is used by multiple policies. simulator | } policy-db-migrator | > upgrade 0170-jpapdpstatistics_enginestats.sql grafana | logger=migrator t=2024-03-25T02:52:35.796278162Z level=info msg="Executing migration" id="teams permissions migration" policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_AAIRequestErrorType:0.0.1 is used by multiple policies. simulator | } policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.79704676Z level=info msg="Migration successfully executed" id="teams permissions migration" duration=768.458µs policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_CDSActionIdentifiersType:0.0.1 is used by multiple policies. simulator | fields { policy-db-migrator | UPDATE jpapdpstatistics_enginestats a grafana | logger=migrator t=2024-03-25T02:52:35.800437408Z level=info msg="Executing migration" id="dashboard permissions" policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_CDSConfigModifyRequestPayloadType:0.0.1 is used by multiple policies. simulator | key: "generic-vnf.vnf-id" policy-db-migrator | JOIN pdpstatistics b grafana | logger=migrator t=2024-03-25T02:52:35.80147362Z level=info msg="Migration successfully executed" id="dashboard permissions" duration=1.037032ms policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_CDSConfigModifyResponsePayloadType:0.0.1 is used by multiple policies. simulator | value { policy-db-migrator | ON a.name = b.name AND a.version = b.version AND a.timeStamp = b.timeStamp grafana | logger=migrator t=2024-03-25T02:52:35.805565135Z level=info msg="Executing migration" id="dashboard permissions uid scopes" policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_CDSFailureResponseCommonHeaderType:0.0.1 is used by multiple policies. simulator | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" policy-db-migrator | SET a.id = b.id grafana | logger=migrator t=2024-03-25T02:52:35.806326304Z level=info msg="Migration successfully executed" id="dashboard permissions uid scopes" duration=761.869µs policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_CDSFailureResponseStatusType:0.0.1 is used by multiple policies. simulator | } policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.810805223Z level=info msg="Executing migration" id="drop managed folder create actions" simulator | } policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_CDSRequestCommonHeaderType:0.0.1 is used by multiple policies. policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.811150557Z level=info msg="Migration successfully executed" id="drop managed folder create actions" duration=339.613µs simulator | fields { policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_CDSSuccessResponseCommonHeaderType:0.0.1 is used by multiple policies. policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.814571115Z level=info msg="Executing migration" id="alerting notification permissions" simulator | key: "data" policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_CDSSuccessResponseStatusType:0.0.1 is used by multiple policies. policy-db-migrator | > upgrade 0180-jpapdpstatistics_enginestats.sql grafana | logger=migrator t=2024-03-25T02:52:35.815406474Z level=info msg="Migration successfully executed" id="alerting notification permissions" duration=834.969µs simulator | value { policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_EventDetailsAlbumType:0.0.1 is used by multiple policies. policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.820375759Z level=info msg="Executing migration" id="create query_history_star table v1" simulator | struct_value { policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_LogEventComponentType:0.0.1 is used by multiple policies. policy-db-migrator | ALTER TABLE jpapdpstatistics_enginestats DROP COLUMN timeStamp grafana | logger=migrator t=2024-03-25T02:52:35.822241499Z level=info msg="Migration successfully executed" id="create query_history_star table v1" duration=1.86513ms simulator | fields { policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_LogEventOtherFieldsType:0.0.1 is used by multiple policies. policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.826541978Z level=info msg="Executing migration" id="add index query_history.user_id-query_uid" simulator | key: "active-streams" policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_LogEventTargetType:0.0.1 is used by multiple policies. policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.828159765Z level=info msg="Migration successfully executed" id="add index query_history.user_id-query_uid" duration=1.617517ms simulator | value { policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleCL_VesEventType:0.0.1 is used by multiple policies. policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.832739556Z level=info msg="Executing migration" id="add column org_id in query_history_star" simulator | string_value: "7" policy-apex-pdp | [2024-03-25T02:55:39.609+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleLongType:0.0.1 is used by multiple policies. policy-db-migrator | > upgrade 0190-jpapolicyaudit.sql grafana | logger=migrator t=2024-03-25T02:52:35.841784646Z level=info msg="Migration successfully executed" id="add column org_id in query_history_star" duration=9.04212ms simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same schema - SimpleStringType:0.0.1 is used by multiple policies. policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.845909132Z level=info msg="Executing migration" id="alter table query_history_star_mig column user_id type to bigint" simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same event - SimpleCL_AAIFailureResponseEvent:0.0.1 is used by multiple policies. policy-db-migrator | CREATE TABLE IF NOT EXISTS jpapolicyaudit (ACTION INT DEFAULT NULL, PDPGROUP VARCHAR(255) NULL, PDPTYPE VARCHAR(255) NULL, TIMESTAMP datetime DEFAULT NULL, USER VARCHAR(255) NULL, ID BIGINT NOT NULL, name VARCHAR(120) NOT NULL, version VARCHAR(20) NOT NULL, PRIMARY KEY PK_JPAPOLICYAUDIT (ID, name, version)) grafana | logger=migrator t=2024-03-25T02:52:35.846104755Z level=info msg="Migration successfully executed" id="alter table query_history_star_mig column user_id type to bigint" duration=195.722µs simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same event - SimpleCL_AAIRequestEvent:0.0.1 is used by multiple policies. policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.850864137Z level=info msg="Executing migration" id="create correlation table v1" simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same event - SimpleCL_AAISuccessResponseEvent:0.0.1 is used by multiple policies. policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.854229395Z level=info msg="Migration successfully executed" id="create correlation table v1" duration=3.364038ms simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same event - SimpleCL_CDSConfigModifyFailureResponseEvent:0.0.1 is used by multiple policies. policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:35.859998419Z level=info msg="Executing migration" id="add index correlations.uid" simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same event - SimpleCL_CDSConfigModifyRequestEvent:0.0.1 is used by multiple policies. policy-db-migrator | > upgrade 0200-JpaPolicyAuditIndex_timestamp.sql grafana | logger=migrator t=2024-03-25T02:52:35.861610576Z level=info msg="Migration successfully executed" id="add index correlations.uid" duration=1.611507ms simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same event - SimpleCL_CDSConfigModifySuccessResponseEvent:0.0.1 is used by multiple policies. policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.866620541Z level=info msg="Executing migration" id="add index correlations.source_uid" simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same event - SimpleCL_LogEvent:0.0.1 is used by multiple policies. policy-db-migrator | CREATE INDEX JpaPolicyAuditIndex_timestamp ON jpapolicyaudit(TIMESTAMP) grafana | logger=migrator t=2024-03-25T02:52:35.868151759Z level=info msg="Migration successfully executed" id="add index correlations.source_uid" duration=1.529908ms simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same event - SimpleCL_VesEvent:0.0.1 is used by multiple policies. policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:35.871691728Z level=info msg="Executing migration" id="add correlation config column" simulator | } policy-apex-pdp | [2024-03-25T02:55:39.610+00:00|INFO|PolicyModelMerger|DMAAP-source-POLICY-PDP-PAP] Same album - SimpleCL_EventDetailsAlbum:0.0.1 is used by multiple policies. policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.880834089Z level=info msg="Migration successfully executed" id="add correlation config column" duration=9.141831ms policy-apex-pdp | [2024-03-25T02:55:39.612+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.884339507Z level=info msg="Executing migration" id="drop index IDX_correlation_uid - v1" policy-apex-pdp | [2024-03-25T02:55:39.613+00:00|INFO|CdsProcessorGrpcClient|DMAAP-source-POLICY-PDP-PAP] CdsProcessorListener started policy-db-migrator | > upgrade 0210-sequence.sql simulator | grafana | logger=migrator t=2024-03-25T02:52:35.885123707Z level=info msg="Migration successfully executed" id="drop index IDX_correlation_uid - v1" duration=783.74µs policy-apex-pdp | [2024-03-25T02:55:39.615+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-db-migrator | -------------- simulator | 2024-03-25 02:55:46,955 INFO Fetching response from apex-example-cba-modify-config.json grafana | logger=migrator t=2024-03-25T02:52:35.889252372Z level=info msg="Executing migration" id="drop index IDX_correlation_source_uid - v1" policy-apex-pdp | [2024-03-25T02:55:39.617+00:00|INFO|EngineServiceImpl|DMAAP-source-POLICY-PDP-PAP] Added the action listener to the engine policy-db-migrator | CREATE TABLE IF NOT EXISTS sequence (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38) DEFAULT NULL, PRIMARY KEY PK_SEQUENCE (SEQ_NAME)) simulator | 2024-03-25 02:55:46,978 INFO 172.17.0.9 - - [25/Mar/2024:02:55:46 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:35.891100643Z level=info msg="Migration successfully executed" id="drop index IDX_correlation_source_uid - v1" duration=1.848171ms policy-apex-pdp | [2024-03-25T02:55:39.628+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [OUT|DMAAP|POLICY-PDP-PAP] policy-db-migrator | -------------- simulator | 2024-03-25 02:55:46,988 INFO Received request input to CDS: commonHeader { grafana | logger=migrator t=2024-03-25T02:52:35.894969355Z level=info msg="Executing migration" id="Rename table correlation to correlation_tmp_qwerty - v1" policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.vnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.pnf.metadataSet.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:39.626663Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":8,"policyExecutedSuccessCount":8,"policyExecutedFailCount":0,"policyDeployCount":4,"policyDeploySuccessCount":4,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331413,"eventCount":1,"lastExecutionTime":18,"averageExecutionTime":18.0,"upTime":4889,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331534,"eventCount":1,"lastExecutionTime":20,"averageExecutionTime":20.0,"upTime":4988,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335332395,"eventCount":1,"lastExecutionTime":9,"averageExecutionTime":9.0,"upTime":5832,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338341,"eventCount":1,"lastExecutionTime":26,"averageExecutionTime":26.0,"upTime":5112,"lastEnterTime":0,"lastStart":1711335333229},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338406,"eventCount":1,"lastExecutionTime":19,"averageExecutionTime":19.0,"upTime":5163,"lastEnterTime":0,"lastStart":1711335333243},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338457,"eventCount":1,"lastExecutionTime":14,"averageExecutionTime":14.0,"upTime":5199,"lastEnterTime":0,"lastStart":1711335333258},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338501,"eventCount":1,"lastExecutionTime":12,"averageExecutionTime":12.0,"upTime":5228,"lastEnterTime":0,"lastStart":1711335333273},{"engineId":"NSOApexEngine-4:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333287,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333287},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339573,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339573},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339585,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339585},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339596,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339596},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339606,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339606}]},"response":{"responseTo":"fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.pnf.metadataSet.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"1d8c329b-2d8b-4657-8cab-e01bfe803ba2","timestampMs":1711335339626,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | simulator | requestId: "ee0ee0cb-53b4-4cb9-9f7b-8b13c7cf7b83" grafana | logger=migrator t=2024-03-25T02:52:35.917221972Z level=info msg="Migration successfully executed" id="Rename table correlation to correlation_tmp_qwerty - v1" duration=22.251757ms policy-apex-pdp | [2024-03-25T02:55:39.628+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-db-migrator | simulator | subRequestId: "fault0000245" grafana | logger=migrator t=2024-03-25T02:52:35.921583631Z level=info msg="Executing migration" id="create correlation v2" policy-apex-pdp | [2024-03-25T02:55:39.628+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-db-migrator | > upgrade 0220-sequence.sql simulator | originatorId: "POLICY" grafana | logger=migrator t=2024-03-25T02:52:35.922683733Z level=info msg="Migration successfully executed" id="create correlation v2" duration=1.100522ms policy-apex-pdp | [2024-03-25T02:55:39.673+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 45 ms policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.92611018Z level=info msg="Executing migration" id="create index IDX_correlation_uid - v2" policy-apex-pdp | [2024-03-25T02:55:39.673+00:00|INFO|HttpClient|pool-2-thread-1] POST http://message-router:3904/events/POLICY-PDP-PAP (anonymous) ... policy-db-migrator | INSERT INTO sequence(SEQ_NAME, SEQ_COUNT) VALUES('SEQ_GEN', (SELECT IFNULL(max(id),0) FROM pdpstatistics)) simulator | actionIdentifiers { grafana | logger=migrator t=2024-03-25T02:52:35.927416585Z level=info msg="Migration successfully executed" id="create index IDX_correlation_uid - v2" duration=1.305415ms policy-apex-pdp | [2024-03-25T02:55:39.680+00:00|INFO|HttpClient|pool-2-thread-1] --> HTTP/1.1 200 OK policy-db-migrator | -------------- simulator | blueprintName: "apex-example-cba" grafana | logger=migrator t=2024-03-25T02:52:35.93146978Z level=info msg="Executing migration" id="create index IDX_correlation_source_uid - v2" policy-apex-pdp | [2024-03-25T02:55:39.680+00:00|INFO|CambriaSimplerBatchPublisher|pool-2-thread-1] cambria reply ok (7 ms):{"serverTimeMs":0,"count":1} policy-db-migrator | simulator | blueprintVersion: "1.0.0" grafana | logger=migrator t=2024-03-25T02:52:35.933613634Z level=info msg="Migration successfully executed" id="create index IDX_correlation_source_uid - v2" duration=2.142754ms policy-apex-pdp | [2024-03-25T02:55:39.681+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-db-migrator | simulator | actionName: "restart" grafana | logger=migrator t=2024-03-25T02:52:35.937983113Z level=info msg="Executing migration" id="create index IDX_correlation_org_id - v2" policy-apex-pdp | [2024-03-25T02:55:39.682+00:00|INFO|network|DMAAP-source-POLICY-PDP-PAP] [IN|DMAAP|POLICY-PDP-PAP] policy-db-migrator | > upgrade 0100-jpatoscapolicy_targets.sql simulator | mode: "sync" grafana | logger=migrator t=2024-03-25T02:52:35.939209966Z level=info msg="Migration successfully executed" id="create index IDX_correlation_org_id - v2" duration=1.225733ms policy-apex-pdp | {"pdpType":"apex","state":"ACTIVE","healthy":"HEALTHY","description":"Pdp status response message for PdpUpdate","policies":[{"name":"onap.policies.native.apex.Sampledomain","version":"1.0.0"},{"name":"onap.policies.apex.pnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.vnf.Test","version":"1.0.0"},{"name":"onap.policies.apex.pnf.metadataSet.Test","version":"1.0.0"}],"statistics":{"pdpInstanceId":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","timeStamp":"2024-03-25T02:55:39.626663Z","pdpGroupName":"defaultGroup","pdpSubGroupName":"apex","policyExecutedCount":8,"policyExecutedSuccessCount":8,"policyExecutedFailCount":0,"policyDeployCount":4,"policyDeploySuccessCount":4,"policyDeployFailCount":0,"policyUndeployCount":0,"policyUndeploySuccessCount":0,"policyUndeployFailCount":0,"engineStats":[{"engineId":"MyApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335217538,"eventCount":1,"lastExecutionTime":81,"averageExecutionTime":81.0,"upTime":4535,"lastEnterTime":0,"lastStart":1711335213003},{"engineId":"MyApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213103,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213103},{"engineId":"MyApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213154,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213154},{"engineId":"MyApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335213200,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335213200},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331413,"eventCount":1,"lastExecutionTime":18,"averageExecutionTime":18.0,"upTime":4889,"lastEnterTime":0,"lastStart":1711335326524},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335331534,"eventCount":1,"lastExecutionTime":20,"averageExecutionTime":20.0,"upTime":4988,"lastEnterTime":0,"lastStart":1711335326546},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335332395,"eventCount":1,"lastExecutionTime":9,"averageExecutionTime":9.0,"upTime":5832,"lastEnterTime":0,"lastStart":1711335326563},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335326579,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335326579},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338341,"eventCount":1,"lastExecutionTime":26,"averageExecutionTime":26.0,"upTime":5112,"lastEnterTime":0,"lastStart":1711335333229},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338406,"eventCount":1,"lastExecutionTime":19,"averageExecutionTime":19.0,"upTime":5163,"lastEnterTime":0,"lastStart":1711335333243},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338457,"eventCount":1,"lastExecutionTime":14,"averageExecutionTime":14.0,"upTime":5199,"lastEnterTime":0,"lastStart":1711335333258},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335338501,"eventCount":1,"lastExecutionTime":12,"averageExecutionTime":12.0,"upTime":5228,"lastEnterTime":0,"lastStart":1711335333273},{"engineId":"NSOApexEngine-4:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335333287,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335333287},{"engineId":"NSOApexEngine-0:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339573,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339573},{"engineId":"NSOApexEngine-1:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339585,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339585},{"engineId":"NSOApexEngine-2:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339596,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339596},{"engineId":"NSOApexEngine-3:0.0.1","engineWorkerState":"READY","engineTimeStamp":1711335339606,"eventCount":0,"lastExecutionTime":0,"averageExecutionTime":0.0,"upTime":0,"lastEnterTime":0,"lastStart":1711335339606}]},"response":{"responseTo":"fba3a4f2-6c9d-4dcd-99bb-8b566353fa0e","responseStatus":"SUCCESS","responseMessage":"Apex engine started. Deployed policies are: onap.policies.apex.pnf.metadataSet.Test:1.0.0 "},"messageName":"PDP_STATUS","requestId":"1d8c329b-2d8b-4657-8cab-e01bfe803ba2","timestampMs":1711335339626,"name":"apex-5bf804bd-e186-49c7-886a-2f49221cd8c4","pdpGroup":"defaultGroup","pdpSubgroup":"apex"} policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:35.942241099Z level=info msg="Executing migration" id="copy correlation v1 to v2" policy-apex-pdp | [2024-03-25T02:55:39.683+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS policy-db-migrator | ALTER TABLE jpatoscapolicy_targets ADD COLUMN toscaPolicyName VARCHAR(120) NOT NULL, ADD COLUMN toscaPolicyVersion VARCHAR(20) NOT NULL, ADD CONSTRAINT PK_JPATOSCAPOLICY_TARGETS PRIMARY KEY (toscaPolicyName, toscaPolicyVersion) simulator | payload { grafana | logger=migrator t=2024-03-25T02:52:35.942669774Z level=info msg="Migration successfully executed" id="copy correlation v1 to v2" duration=428.355µs policy-apex-pdp | [2024-03-25T02:55:39.683+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-db-migrator | -------------- simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:35.946012521Z level=info msg="Executing migration" id="drop correlation_tmp_qwerty" policy-apex-pdp | [2024-03-25T02:55:39.684+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-db-migrator | simulator | key: "restart-request" grafana | logger=migrator t=2024-03-25T02:52:35.946924732Z level=info msg="Migration successfully executed" id="drop correlation_tmp_qwerty" duration=907.741µs policy-apex-pdp | [2024-03-25T02:55:44.743+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:3] HandleVesEventTask processing VES event - {"commonEventHeader": {"domain": "other", "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "eventName": "Report hostname & IP", "lastEpochMicrosec": 1597952499468, "priority": "Normal", "reportingEntityName": "DCAE", "sequence": 1, "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "sourceName": "demo-pnf", "startEpochMicrosec": 1597953057126, "version": "4.0.1", "internalHeaderFields": {}, "vesEventListenerVersion": "7.1"}, "otherFields": {"hashMap": {"hostname": "UNDEFINED", "pnfName": "demo-pnf", "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "ip": "10.101.200.10"}, "otherFieldsVersion": "3.0"}} policy-db-migrator | simulator | value { grafana | logger=migrator t=2024-03-25T02:52:35.951105178Z level=info msg="Executing migration" id="add provisioning column" policy-apex-pdp | [2024-03-25T02:55:44.744+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:3] HandleVesEventTask storing context album - 927b2580-36d9-4f13-8421-3c9d43b7a57e::{"commonEventHeader": {"domain": "other", "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "eventName": "Report hostname & IP", "lastEpochMicrosec": 1597952499468, "priority": "Normal", "reportingEntityName": "DCAE", "sequence": 1, "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "sourceName": "demo-pnf", "startEpochMicrosec": 1711335344743, "version": "4.0.1", "internalHeaderFields": {}, "vesEventListenerVersion": "7.1"}, "otherFields": {"hashMap": {"hostname": "UNDEFINED", "pnfName": "demo-pnf", "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "ip": "10.101.200.10"}, "otherFieldsVersion": "3.0"}, "target": null, "generatedHostname": null} policy-db-migrator | > upgrade 0110-jpatoscapolicytype_targets.sql simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:35.963616887Z level=info msg="Migration successfully executed" id="add provisioning column" duration=12.510499ms policy-apex-pdp | [2024-03-25T02:55:44.746+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:3] [{aaifield=null}, {component={"name": "Policy", "flavour": "Apex-PDP", "timestamp": 1711335344744, "status": "ACTIVE", "message": "VES event has been received. Going to fetch details from AAI.", "artifacts": {"policyName": "onap.policies.apex.Simplecontrolloop", "policyVersion": "1.0.0"}}, id=8c7935a4-79d8-4ec0-b661-dcca3cd68006, otherFields={"useCaseName": "simple-controlloop-usecase"}, target={"targetType": "PNF", "entityInfo": {"pnf_DasH_name": "demo-pnf"}}}] policy-db-migrator | -------------- simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:36.011123632Z level=info msg="Executing migration" id="create entity_events table" policy-apex-pdp | [2024-03-25T02:55:44.749+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [OUT|REST|http://message-router:3904/events/APEX-CL-MGT] policy-db-migrator | ALTER TABLE jpatoscapolicytype_targets ADD COLUMN toscaPolicyTypeName VARCHAR(120) NOT NULL, ADD COLUMN toscaPolicyTypeVersion VARCHAR(20) NOT NULL, ADD CONSTRAINT PK_JPATOSCAPOLICYTYPE_TARGETS PRIMARY KEY (toscaPolicyTypeName, toscaPolicyTypeVersion) simulator | key: "vfStatus" grafana | logger=migrator t=2024-03-25T02:52:36.012877925Z level=info msg="Migration successfully executed" id="create entity_events table" duration=1.758333ms policy-apex-pdp | { policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:36.019112223Z level=info msg="Executing migration" id="create dashboard public config v1" policy-apex-pdp | "name": "SimpleCL_LogEvent", policy-db-migrator | simulator | string_value: "Active" grafana | logger=migrator t=2024-03-25T02:52:36.020993597Z level=info msg="Migration successfully executed" id="create dashboard public config v1" duration=1.880784ms policy-apex-pdp | "version": "0.0.1", policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:36.024718205Z level=info msg="Executing migration" id="drop index UQE_dashboard_public_config_uid - v1" policy-apex-pdp | "nameSpace": "org.onap.policy.apex.simplecontrolloop", policy-db-migrator | > upgrade 0120-toscatrigger.sql simulator | } grafana | logger=migrator t=2024-03-25T02:52:36.025630982Z level=warn msg="Skipping migration: Already executed, but not recorded in migration log" id="drop index UQE_dashboard_public_config_uid - v1" policy-apex-pdp | "source": "APEX", policy-db-migrator | -------------- simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:36.02953362Z level=info msg="Executing migration" id="drop index IDX_dashboard_public_config_org_id_dashboard_uid - v1" policy-apex-pdp | "target": { policy-db-migrator | DROP TABLE IF EXISTS toscatrigger simulator | key: "update-properties" grafana | logger=migrator t=2024-03-25T02:52:36.030003214Z level=warn msg="Skipping migration: Already executed, but not recorded in migration log" id="drop index IDX_dashboard_public_config_org_id_dashboard_uid - v1" policy-apex-pdp | "targetType": "PNF", policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:36.035012641Z level=info msg="Executing migration" id="Drop old dashboard public config table" policy-apex-pdp | "entityInfo": { policy-db-migrator | simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:36.035777607Z level=info msg="Migration successfully executed" id="Drop old dashboard public config table" duration=764.616µs policy-apex-pdp | "pnf-name": "demo-pnf" policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:36.041851412Z level=info msg="Executing migration" id="recreate dashboard public config v1" policy-apex-pdp | } policy-db-migrator | > upgrade 0130-jpatoscapolicytype_triggers.sql simulator | key: "service-instance.service-instance-id" grafana | logger=migrator t=2024-03-25T02:52:36.043123312Z level=info msg="Migration successfully executed" id="recreate dashboard public config v1" duration=1.272809ms policy-apex-pdp | }, policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:36.047538865Z level=info msg="Executing migration" id="create index UQE_dashboard_public_config_uid - v1" policy-apex-pdp | "toscaPolicyState": "", policy-db-migrator | ALTER TABLE jpatoscapolicytype_triggers MODIFY COLUMN triggers LONGBLOB simulator | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" grafana | logger=migrator t=2024-03-25T02:52:36.048627323Z level=info msg="Migration successfully executed" id="create index UQE_dashboard_public_config_uid - v1" duration=1.088248ms policy-apex-pdp | "component": { policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:36.056106739Z level=info msg="Executing migration" id="create index IDX_dashboard_public_config_org_id_dashboard_uid - v1" policy-apex-pdp | "name": "Policy", policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:36.058302115Z level=info msg="Migration successfully executed" id="create index IDX_dashboard_public_config_org_id_dashboard_uid - v1" duration=2.195176ms policy-apex-pdp | "flavour": "Apex-PDP", policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:36.063384902Z level=info msg="Executing migration" id="drop index UQE_dashboard_public_config_uid - v2" policy-apex-pdp | "timestamp": 1.711335344744E12, policy-db-migrator | > upgrade 0140-toscaparameter.sql simulator | key: "generic-vnf.vnf-id" grafana | logger=migrator t=2024-03-25T02:52:36.064541811Z level=info msg="Migration successfully executed" id="drop index UQE_dashboard_public_config_uid - v2" duration=1.157209ms policy-apex-pdp | "status": "ACTIVE", policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:36.067840326Z level=info msg="Executing migration" id="drop index IDX_dashboard_public_config_org_id_dashboard_uid - v2" policy-apex-pdp | "message": "VES event has been received. Going to fetch details from AAI.", policy-db-migrator | DROP TABLE IF EXISTS toscaparameter simulator | string_value: "vfw-cnf-cds-test-1-vnf" grafana | logger=migrator t=2024-03-25T02:52:36.069097854Z level=info msg="Migration successfully executed" id="drop index IDX_dashboard_public_config_org_id_dashboard_uid - v2" duration=1.254068ms policy-apex-pdp | "artifacts": { policy-db-migrator | -------------- simulator | } grafana | logger=migrator t=2024-03-25T02:52:36.077950391Z level=info msg="Executing migration" id="Drop public config table" policy-apex-pdp | "policyName": "onap.policies.apex.Simplecontrolloop", policy-db-migrator | simulator | } grafana | logger=migrator t=2024-03-25T02:52:36.078939178Z level=info msg="Migration successfully executed" id="Drop public config table" duration=991.617µs policy-apex-pdp | "policyVersion": "1.0.0" policy-db-migrator | simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:36.082324143Z level=info msg="Executing migration" id="Recreate dashboard public config v2" policy-apex-pdp | } policy-db-migrator | > upgrade 0150-toscaproperty.sql simulator | key: "data" grafana | logger=migrator t=2024-03-25T02:52:36.083688894Z level=info msg="Migration successfully executed" id="Recreate dashboard public config v2" duration=1.364441ms policy-apex-pdp | }, policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:36.088569389Z level=info msg="Executing migration" id="create index UQE_dashboard_public_config_uid - v2" policy-apex-pdp | "id": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", policy-db-migrator | DROP TABLE IF EXISTS jpatoscaproperty_constraints simulator | struct_value { grafana | logger=migrator t=2024-03-25T02:52:36.090882127Z level=info msg="Migration successfully executed" id="create index UQE_dashboard_public_config_uid - v2" duration=2.317848ms policy-apex-pdp | "otherFields": { policy-db-migrator | -------------- simulator | fields { grafana | logger=migrator t=2024-03-25T02:52:36.098108311Z level=info msg="Executing migration" id="create index IDX_dashboard_public_config_org_id_dashboard_uid - v2" policy-apex-pdp | "useCaseName": "simple-controlloop-usecase" policy-db-migrator | simulator | key: "active-streams" grafana | logger=migrator t=2024-03-25T02:52:36.100202816Z level=info msg="Migration successfully executed" id="create index IDX_dashboard_public_config_org_id_dashboard_uid - v2" duration=2.091725ms policy-apex-pdp | } policy-db-migrator | -------------- simulator | value { grafana | logger=migrator t=2024-03-25T02:52:36.103957834Z level=info msg="Executing migration" id="create index UQE_dashboard_public_config_access_token - v2" policy-apex-pdp | } policy-apex-pdp | [2024-03-25T02:55:44.756+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [IN|REST|http://message-router:3904/events/APEX-CL-MGT] simulator | string_value: "7" policy-db-migrator | DROP TABLE IF EXISTS jpatoscaproperty_metadata policy-apex-pdp | {"serverTimeMs":0,"count":1} grafana | logger=migrator t=2024-03-25T02:52:36.10603959Z level=info msg="Migration successfully executed" id="create index UQE_dashboard_public_config_access_token - v2" duration=2.081186ms simulator | } policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:44.759+00:00|INFO|network|RestRequestRunner_0] [IN|REST|http://aai-sim:6666/aai/v16/network/pnfs/pnf/demo-pnf] grafana | logger=migrator t=2024-03-25T02:52:36.114069639Z level=info msg="Executing migration" id="Rename table dashboard_public_config to dashboard_public - v2" simulator | } policy-db-migrator | policy-apex-pdp | { grafana | logger=migrator t=2024-03-25T02:52:36.139960412Z level=info msg="Migration successfully executed" id="Rename table dashboard_public_config to dashboard_public - v2" duration=25.889893ms simulator | } policy-db-migrator | -------------- policy-apex-pdp | "equip-vendor":"Vendor-A", grafana | logger=migrator t=2024-03-25T02:52:36.143033555Z level=info msg="Executing migration" id="add annotations_enabled column" simulator | } policy-db-migrator | DROP TABLE IF EXISTS toscaproperty policy-apex-pdp | "ipaddress-v4-oam":"10.10.10.10", grafana | logger=migrator t=2024-03-25T02:52:36.149196861Z level=info msg="Migration successfully executed" id="add annotations_enabled column" duration=6.158656ms simulator | } policy-db-migrator | -------------- policy-apex-pdp | "in-maint":false, grafana | logger=migrator t=2024-03-25T02:52:36.152089282Z level=info msg="Executing migration" id="add time_selection_enabled column" simulator | } policy-apex-pdp | "pnf-ipv4-address":"3.3.3.3", grafana | logger=migrator t=2024-03-25T02:52:36.160954608Z level=info msg="Migration successfully executed" id="add time_selection_enabled column" duration=8.861156ms policy-db-migrator | simulator | } policy-apex-pdp | "resource-version":"1570746989505", grafana | logger=migrator t=2024-03-25T02:52:36.165617853Z level=info msg="Executing migration" id="delete orphaned public dashboards" policy-db-migrator | simulator | } policy-apex-pdp | "nf-role":"ToR DC101", grafana | logger=migrator t=2024-03-25T02:52:36.165918915Z level=info msg="Migration successfully executed" id="delete orphaned public dashboards" duration=301.262µs policy-db-migrator | > upgrade 0160-jpapolicyaudit_pk.sql simulator | } policy-apex-pdp | "equip-type":"Router", grafana | logger=migrator t=2024-03-25T02:52:36.169531042Z level=info msg="Executing migration" id="add share column" policy-db-migrator | -------------- simulator | } policy-apex-pdp | "equip-model":"model-123456", grafana | logger=migrator t=2024-03-25T02:52:36.178501488Z level=info msg="Migration successfully executed" id="add share column" duration=8.969376ms policy-db-migrator | ALTER TABLE jpapolicyaudit DROP PRIMARY KEY simulator | } policy-apex-pdp | "frame-id":"3", grafana | logger=migrator t=2024-03-25T02:52:36.18413036Z level=info msg="Executing migration" id="backfill empty share column fields with default of public" policy-db-migrator | -------------- simulator | } policy-apex-pdp | "pnf-name":"demo-pnf" grafana | logger=migrator t=2024-03-25T02:52:36.184353882Z level=info msg="Migration successfully executed" id="backfill empty share column fields with default of public" duration=223.522µs policy-db-migrator | simulator | policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.187491216Z level=info msg="Executing migration" id="create file table" policy-db-migrator | -------------- simulator | 2024-03-25 02:55:46,989 INFO Fetching response from apex-example-cba-restart.json policy-apex-pdp | grafana | logger=migrator t=2024-03-25T02:52:36.189014707Z level=info msg="Migration successfully executed" id="create file table" duration=1.52269ms policy-db-migrator | ALTER TABLE jpapolicyaudit ADD CONSTRAINT PK_JPAPOLICYAUDIT PRIMARY KEY (ID) simulator | 2024-03-25 02:55:47,007 INFO 172.17.0.9 - - [25/Mar/2024:02:55:47 +0000] "POST /events/APEX-CL-MGT HTTP/1.1" 200 28 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | [2024-03-25T02:55:44.765+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:0] HandleAAISuccessResponseTask extracted context album - 927b2580-36d9-4f13-8421-3c9d43b7a57e::{"commonEventHeader": {"domain": "other", "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "eventName": "Report hostname & IP", "lastEpochMicrosec": 1597952499468, "priority": "Normal", "reportingEntityName": "DCAE", "sequence": 1, "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "sourceName": "demo-pnf", "startEpochMicrosec": 1711335344743, "version": "4.0.1", "internalHeaderFields": {}, "vesEventListenerVersion": "7.1"}, "otherFields": {"hashMap": {"hostname": "UNDEFINED", "pnfName": "demo-pnf", "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "ip": "10.101.200.10"}, "otherFieldsVersion": "3.0"}, "target": null, "generatedHostname": null} grafana | logger=migrator t=2024-03-25T02:52:36.193729262Z level=info msg="Executing migration" id="file table idx: path natural pk" policy-db-migrator | -------------- simulator | 2024-03-25 02:55:54,684 INFO 172.17.0.8 - - [25/Mar/2024:02:55:39 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | [2024-03-25T02:55:44.769+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:0] [{actionIdentifiers={"actionName": "update-config", "blueprintName": "controlloop-hostname-update", "blueprintVersion": "1.0.4", "mode": "sync"}, commonHeader={"originatorId": "POLICY", "requestId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "subRequestId": "927b2580-36d9-4f13-8421-3c9d43b7a57e"}, payload={update_DasH_config_DasH_request={"hostname": "hostmgaif6", "IP": "10.10.10.10", "pnfName": "demo-pnf"}}}, {component={"name": "Policy", "flavour": "Apex-PDP", "timestamp": 1711335344767, "status": "SUCCESS", "message": "Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.", "artifacts": {"policyName": "onap.policies.apex.Simplecontrolloop", "policyVersion": "1.0.0"}}, id=8c7935a4-79d8-4ec0-b661-dcca3cd68006, otherFields={"useCaseName": "simple-controlloop-usecase"}, target={"targetType": "PNF", "entityInfo": {"pnf_DasH_name": "demo-pnf"}}}] grafana | logger=migrator t=2024-03-25T02:52:36.195347573Z level=info msg="Migration successfully executed" id="file table idx: path natural pk" duration=1.619401ms policy-db-migrator | simulator | 2024-03-25 02:55:54,687 INFO 172.17.0.9 - - [25/Mar/2024:02:55:39 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | [2024-03-25T02:55:44.773+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [OUT|REST|http://message-router:3904/events/APEX-CL-MGT] grafana | logger=migrator t=2024-03-25T02:52:36.198939131Z level=info msg="Executing migration" id="file table idx: parent_folder_path_hash fast folder retrieval" policy-db-migrator | simulator | 2024-03-25 02:55:55,266 INFO 172.17.0.8 - - [25/Mar/2024:02:55:40 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | { grafana | logger=migrator t=2024-03-25T02:52:36.200043729Z level=info msg="Migration successfully executed" id="file table idx: parent_folder_path_hash fast folder retrieval" duration=1.103818ms policy-db-migrator | > upgrade 0170-pdpstatistics_pk.sql simulator | 2024-03-25 02:56:01,844 INFO --> HTTP/1.1 200 OK policy-apex-pdp | "name": "SimpleCL_LogEvent", grafana | logger=migrator t=2024-03-25T02:52:36.203786986Z level=info msg="Executing migration" id="create file_meta table" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:01,844 INFO 172.17.0.4 - - [25/Mar/2024:02:55:46 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | "version": "0.0.1", grafana | logger=migrator t=2024-03-25T02:52:36.204653773Z level=info msg="Migration successfully executed" id="create file_meta table" duration=866.727µs policy-db-migrator | ALTER TABLE pdpstatistics DROP PRIMARY KEY simulator | 2024-03-25 02:56:01,844 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-apex-pdp | "nameSpace": "org.onap.policy.apex.simplecontrolloop", grafana | logger=migrator t=2024-03-25T02:52:36.208666903Z level=info msg="Executing migration" id="file table idx: path key" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:01,845 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-apex-pdp | "source": "APEX", grafana | logger=migrator t=2024-03-25T02:52:36.210315245Z level=info msg="Migration successfully executed" id="file table idx: path key" duration=1.648752ms policy-db-migrator | simulator | 2024-03-25 02:56:01,845 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-apex-pdp | "target": { grafana | logger=migrator t=2024-03-25T02:52:36.216915664Z level=info msg="Executing migration" id="set path collation in file table" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:01,846 INFO 172.17.0.4 - - [25/Mar/2024:02:55:46 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | "targetType": "PNF", grafana | logger=migrator t=2024-03-25T02:52:36.217027085Z level=info msg="Migration successfully executed" id="set path collation in file table" duration=114.131µs policy-db-migrator | ALTER TABLE pdpstatistics ADD CONSTRAINT PK_PDPSTATISTICS PRIMARY KEY (ID) simulator | 2024-03-25 02:56:01,846 INFO --> HTTP/1.1 200 OK policy-apex-pdp | "entityInfo": { grafana | logger=migrator t=2024-03-25T02:52:36.22317638Z level=info msg="Executing migration" id="migrate contents column to mediumblob for MySQL" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:01,846 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-apex-pdp | "pnf-name": "demo-pnf" grafana | logger=migrator t=2024-03-25T02:52:36.223322201Z level=info msg="Migration successfully executed" id="migrate contents column to mediumblob for MySQL" duration=147.831µs policy-db-migrator | simulator | 2024-03-25 02:56:01,847 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.226317713Z level=info msg="Executing migration" id="managed permissions migration" policy-db-migrator | simulator | 2024-03-25 02:56:01,847 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-apex-pdp | }, grafana | logger=migrator t=2024-03-25T02:52:36.227305112Z level=info msg="Migration successfully executed" id="managed permissions migration" duration=988.848µs policy-db-migrator | > upgrade 0180-jpatoscanodetemplate_metadata.sql simulator | 2024-03-25 02:56:09,688 INFO 172.17.0.8 - - [25/Mar/2024:02:55:54 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | "toscaPolicyState": "", grafana | logger=migrator t=2024-03-25T02:52:36.232710382Z level=info msg="Executing migration" id="managed folder permissions alert actions migration" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:09,692 INFO 172.17.0.9 - - [25/Mar/2024:02:55:54 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | "component": { grafana | logger=migrator t=2024-03-25T02:52:36.232973884Z level=info msg="Migration successfully executed" id="managed folder permissions alert actions migration" duration=264.052µs policy-db-migrator | ALTER TABLE jpatoscanodetemplate_metadata MODIFY COLUMN METADATA LONGTEXT simulator | 2024-03-25 02:56:10,270 INFO 172.17.0.8 - - [25/Mar/2024:02:55:55 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-apex-pdp | "name": "Policy", grafana | logger=migrator t=2024-03-25T02:52:36.236231838Z level=info msg="Executing migration" id="RBAC action name migrator" policy-db-migrator | -------------- policy-apex-pdp | "flavour": "Apex-PDP", grafana | logger=migrator t=2024-03-25T02:52:36.238519105Z level=info msg="Migration successfully executed" id="RBAC action name migrator" duration=2.285827ms simulator | 2024-03-25 02:56:14,760 INFO 172.17.0.9 - - [25/Mar/2024:02:55:44 +0000] "GET /events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000 HTTP/1.1" 200 2 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-db-migrator | policy-apex-pdp | "timestamp": 1.711335344767E12, grafana | logger=migrator t=2024-03-25T02:52:36.242084001Z level=info msg="Executing migration" id="Add UID column to playlist" simulator | 2024-03-25 02:56:15,564 INFO 172.17.0.9 - - [25/Mar/2024:02:55:45 +0000] "GET /events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000 HTTP/1.1" 200 2 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-db-migrator | policy-apex-pdp | "status": "SUCCESS", grafana | logger=migrator t=2024-03-25T02:52:36.253594947Z level=info msg="Migration successfully executed" id="Add UID column to playlist" duration=11.509816ms simulator | 2024-03-25 02:56:16,849 INFO 172.17.0.4 - - [25/Mar/2024:02:56:01 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | > upgrade 0100-upgrade.sql policy-apex-pdp | "message": "Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.", grafana | logger=migrator t=2024-03-25T02:52:36.258366912Z level=info msg="Executing migration" id="Update uid column values in playlist" simulator | 2024-03-25 02:56:16,849 INFO --> HTTP/1.1 200 OK policy-db-migrator | -------------- policy-apex-pdp | "artifacts": { grafana | logger=migrator t=2024-03-25T02:52:36.258503863Z level=info msg="Migration successfully executed" id="Update uid column values in playlist" duration=137.311µs simulator | 2024-03-25 02:56:16,849 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-db-migrator | select 'upgrade to 1100 completed' as msg policy-apex-pdp | "policyName": "onap.policies.apex.Simplecontrolloop", grafana | logger=migrator t=2024-03-25T02:52:36.262432372Z level=info msg="Executing migration" id="Add index for uid in playlist" simulator | 2024-03-25 02:56:16,850 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. policy-db-migrator | -------------- policy-apex-pdp | "policyVersion": "1.0.0" grafana | logger=migrator t=2024-03-25T02:52:36.264058235Z level=info msg="Migration successfully executed" id="Add index for uid in playlist" duration=1.624023ms simulator | 2024-03-25 02:56:16,850 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... policy-db-migrator | policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.26744097Z level=info msg="Executing migration" id="update group index for alert rules" simulator | 2024-03-25 02:56:16,851 INFO --> HTTP/1.1 200 OK policy-db-migrator | msg policy-apex-pdp | }, grafana | logger=migrator t=2024-03-25T02:52:36.268058774Z level=info msg="Migration successfully executed" id="update group index for alert rules" duration=618.854µs simulator | 2024-03-25 02:56:16,851 INFO 172.17.0.4 - - [25/Mar/2024:02:56:01 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | upgrade to 1100 completed policy-apex-pdp | "id": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", grafana | logger=migrator t=2024-03-25T02:52:36.271574581Z level=info msg="Executing migration" id="managed folder permissions alert actions repeated migration" simulator | 2024-03-25 02:56:16,851 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator policy-db-migrator | policy-apex-pdp | "otherFields": { grafana | logger=migrator t=2024-03-25T02:52:36.271836873Z level=info msg="Migration successfully executed" id="managed folder permissions alert actions repeated migration" duration=263.242µs simulator | 2024-03-25 02:56:16,852 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. policy-db-migrator | > upgrade 0100-jpapolicyaudit_renameuser.sql policy-apex-pdp | "useCaseName": "simple-controlloop-usecase" grafana | logger=migrator t=2024-03-25T02:52:36.276655978Z level=info msg="Executing migration" id="admin only folder/dashboard permission" simulator | 2024-03-25 02:56:16,852 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... policy-db-migrator | -------------- policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.277150832Z level=info msg="Migration successfully executed" id="admin only folder/dashboard permission" duration=496.074µs simulator | 2024-03-25 02:56:16,949 INFO 172.17.0.9 - - [25/Mar/2024:02:55:46 +0000] "GET /events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000 HTTP/1.1" 200 2 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" policy-db-migrator | ALTER TABLE jpapolicyaudit RENAME COLUMN USER TO USERNAME policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.280286566Z level=info msg="Executing migration" id="add action column to seed_assignment" simulator | 2024-03-25 02:56:24,695 INFO 172.17.0.8 - - [25/Mar/2024:02:56:09 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | -------------- policy-apex-pdp | [2024-03-25T02:55:44.774+00:00|INFO|CdsProcessorHandler|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_CDSConfigModifyRequestProducer-6:0] Processing blueprint(1.0.4:controlloop-hostname-update) for action(1.0.4) grafana | logger=migrator t=2024-03-25T02:52:36.293196381Z level=info msg="Migration successfully executed" id="add action column to seed_assignment" duration=12.909795ms simulator | 2024-03-25 02:56:24,703 INFO 172.17.0.9 - - [25/Mar/2024:02:56:09 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | policy-apex-pdp | [2024-03-25T02:55:44.776+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_CDSConfigModifyRequestProducer-6:0] [OUT|REST|gRPC://grpc-sim:6680/] grafana | logger=migrator t=2024-03-25T02:52:36.297688705Z level=info msg="Executing migration" id="add scope column to seed_assignment" simulator | 2024-03-25 02:56:25,274 INFO 172.17.0.8 - - [25/Mar/2024:02:56:10 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | policy-apex-pdp | commonHeader { grafana | logger=migrator t=2024-03-25T02:52:36.304944599Z level=info msg="Migration successfully executed" id="add scope column to seed_assignment" duration=7.251204ms simulator | 2024-03-25 02:56:31,854 INFO 172.17.0.4 - - [25/Mar/2024:02:56:16 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" policy-db-migrator | > upgrade 0110-idx_tsidx1.sql policy-apex-pdp | requestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" grafana | logger=migrator t=2024-03-25T02:52:36.309078729Z level=info msg="Executing migration" id="remove unique index builtin_role_role_name before nullable update" simulator | 2024-03-25 02:56:31,854 INFO --> HTTP/1.1 200 OK policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:36.310350638Z level=info msg="Migration successfully executed" id="remove unique index builtin_role_role_name before nullable update" duration=1.272719ms simulator | 2024-03-25 02:56:31,855 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator policy-apex-pdp | subRequestId: "927b2580-36d9-4f13-8421-3c9d43b7a57e" policy-db-migrator | DROP INDEX IDX_TSIDX1 ON pdpstatistics simulator | 2024-03-25 02:56:31,855 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:36.313982846Z level=info msg="Executing migration" id="update seed_assignment role_name column to nullable" policy-apex-pdp | originatorId: "POLICY" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:31,855 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:36.39119548Z level=info msg="Migration successfully executed" id="update seed_assignment role_name column to nullable" duration=77.203474ms policy-apex-pdp | } policy-db-migrator | simulator | 2024-03-25 02:56:31,856 INFO 172.17.0.4 - - [25/Mar/2024:02:56:16 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:36.419913654Z level=info msg="Executing migration" id="add unique index builtin_role_name back" policy-apex-pdp | actionIdentifiers { policy-db-migrator | -------------- simulator | 2024-03-25 02:56:31,856 INFO --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:36.422566484Z level=info msg="Migration successfully executed" id="add unique index builtin_role_name back" duration=2.6652ms policy-apex-pdp | blueprintName: "controlloop-hostname-update" policy-db-migrator | CREATE INDEX IDXTSIDX1 ON pdpstatistics(timeStamp, name, version) simulator | 2024-03-25 02:56:31,856 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator grafana | logger=migrator t=2024-03-25T02:52:36.428480258Z level=info msg="Executing migration" id="add unique index builtin_role_action_scope" policy-apex-pdp | blueprintVersion: "1.0.4" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:31,857 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:36.429979158Z level=info msg="Migration successfully executed" id="add unique index builtin_role_action_scope" duration=1.49988ms policy-apex-pdp | actionName: "update-config" policy-db-migrator | simulator | 2024-03-25 02:56:31,857 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:36.433706497Z level=info msg="Executing migration" id="add primary key to seed_assigment" policy-apex-pdp | mode: "sync" policy-db-migrator | simulator | 2024-03-25 02:56:39,701 INFO 172.17.0.8 - - [25/Mar/2024:02:56:24 +0000] "GET /events/POLICY-PDP-PAP/policy-pap/929d32b3-e2db-4e1e-903d-982a73570d1b?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:36.458947814Z level=info msg="Migration successfully executed" id="add primary key to seed_assigment" duration=25.237327ms policy-apex-pdp | } policy-db-migrator | > upgrade 0120-audit_sequence.sql simulator | 2024-03-25 02:56:39,707 INFO 172.17.0.9 - - [25/Mar/2024:02:56:24 +0000] "GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:36.464218153Z level=info msg="Executing migration" id="add origin column to seed_assignment" policy-apex-pdp | payload { policy-db-migrator | -------------- simulator | 2024-03-25 02:56:40,279 INFO 172.17.0.8 - - [25/Mar/2024:02:56:25 +0000] "GET /events/POLICY-PDP-PAP/365d21c0-dc5b-47eb-a529-b81e7eb8cdb4/policy-pap?timeout=15000 HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:36.479835999Z level=info msg="Migration successfully executed" id="add origin column to seed_assignment" duration=15.612556ms policy-apex-pdp | fields { policy-db-migrator | CREATE TABLE IF NOT EXISTS audit_sequence (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38) DEFAULT NULL, PRIMARY KEY PK_SEQUENCE (SEQ_NAME)) simulator | 2024-03-25 02:56:44,835 INFO 172.17.0.9 - - [25/Mar/2024:02:56:14 +0000] "GET /events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000 HTTP/1.1" 200 2 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:36.484196092Z level=info msg="Executing migration" id="add origin to plugin seed_assignment" policy-apex-pdp | key: "update-config-request" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:45,582 INFO 172.17.0.9 - - [25/Mar/2024:02:56:15 +0000] "GET /events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000 HTTP/1.1" 200 2 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:36.484648586Z level=info msg="Migration successfully executed" id="add origin to plugin seed_assignment" duration=452.774µs policy-apex-pdp | value { policy-db-migrator | simulator | 2024-03-25 02:56:46,859 INFO 172.17.0.4 - - [25/Mar/2024:02:56:31 +0000] "GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:36.488541924Z level=info msg="Executing migration" id="prevent seeding OnCall access" policy-apex-pdp | struct_value { policy-db-migrator | -------------- simulator | 2024-03-25 02:56:46,859 INFO --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:36.488753016Z level=info msg="Migration successfully executed" id="prevent seeding OnCall access" duration=211.152µs policy-apex-pdp | fields { policy-db-migrator | INSERT INTO audit_sequence(SEQ_NAME, SEQ_COUNT) VALUES('SEQ_GEN', (SELECT IFNULL(max(id),0) FROM jpapolicyaudit)) simulator | 2024-03-25 02:56:46,860 INFO UEB GET /events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator grafana | logger=migrator t=2024-03-25T02:52:36.49475392Z level=info msg="Executing migration" id="managed folder permissions alert actions repeated fixed migration" policy-apex-pdp | key: "hostname" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:46,860 INFO --> HTTP/1.1 200 OK grafana | logger=migrator t=2024-03-25T02:52:36.495069612Z level=info msg="Migration successfully executed" id="managed folder permissions alert actions repeated fixed migration" duration=313.922µs policy-apex-pdp | value { policy-db-migrator | simulator | 2024-03-25 02:56:46,860 INFO 172.17.0.4 - - [25/Mar/2024:02:56:31 +0000] "GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator HTTP/1.1" 200 2 "-" "Apache-HttpClient/4.5.14 (Java/11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:36.5040614Z level=info msg="Executing migration" id="managed folder permissions library panel actions migration" policy-apex-pdp | string_value: "hostmgaif6" policy-db-migrator | simulator | 2024-03-25 02:56:46,860 WARN GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:36.504474863Z level=info msg="Migration successfully executed" id="managed folder permissions library panel actions migration" duration=414.043µs policy-apex-pdp | } policy-db-migrator | > upgrade 0130-statistics_sequence.sql simulator | 2024-03-25 02:56:46,860 INFO GET http://simulator:3904/events/APPC-CL/4d1bfbcc-5d98-4b1d-805c-5735fd7513ed/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:36.508327721Z level=info msg="Executing migration" id="migrate external alertmanagers to datsourcse" policy-apex-pdp | } policy-db-migrator | -------------- simulator | 2024-03-25 02:56:46,860 INFO UEB GET /events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator grafana | logger=migrator t=2024-03-25T02:52:36.508752144Z level=info msg="Migration successfully executed" id="migrate external alertmanagers to datsourcse" duration=424.603µs policy-apex-pdp | fields { policy-db-migrator | CREATE TABLE IF NOT EXISTS statistics_sequence (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38) DEFAULT NULL, PRIMARY KEY PK_SEQUENCE (SEQ_NAME)) simulator | 2024-03-25 02:56:46,861 WARN GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator will send credentials over a clear channel. grafana | logger=migrator t=2024-03-25T02:52:36.512680144Z level=info msg="Executing migration" id="create folder table" policy-apex-pdp | key: "IP" policy-db-migrator | -------------- simulator | 2024-03-25 02:56:46,861 INFO GET http://simulator:3904/events/APPC-LCM-READ/7df8b30c-ce30-460e-aee3-b81222500af9/simulator (as some-key) ... grafana | logger=migrator t=2024-03-25T02:52:36.513932993Z level=info msg="Migration successfully executed" id="create folder table" duration=1.256469ms policy-apex-pdp | value { policy-db-migrator | simulator | 2024-03-25 02:56:46,975 INFO 172.17.0.9 - - [25/Mar/2024:02:56:16 +0000] "GET /events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT/ApexExampleCG1/1?timeout=30000 HTTP/1.1" 200 2 "-" "Jersey/2.39 (HttpUrlConnection 11.0.19)" grafana | logger=migrator t=2024-03-25T02:52:36.517319028Z level=info msg="Executing migration" id="Add index for parent_uid" policy-apex-pdp | string_value: "10.10.10.10" policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:36.518791619Z level=info msg="Migration successfully executed" id="Add index for parent_uid" duration=1.471891ms policy-apex-pdp | } policy-db-migrator | INSERT INTO statistics_sequence(SEQ_NAME, SEQ_COUNT) VALUES('SEQ_GEN', (SELECT IFNULL(max(id),0) FROM pdpstatistics)) grafana | logger=migrator t=2024-03-25T02:52:36.523547345Z level=info msg="Executing migration" id="Add unique index for folder.uid and folder.org_id" policy-apex-pdp | } policy-db-migrator | -------------- grafana | logger=migrator t=2024-03-25T02:52:36.524924654Z level=info msg="Migration successfully executed" id="Add unique index for folder.uid and folder.org_id" duration=1.377449ms policy-apex-pdp | fields { policy-db-migrator | grafana | logger=migrator t=2024-03-25T02:52:36.528459491Z level=info msg="Executing migration" id="Update folder title length" policy-apex-pdp | key: "pnfName" policy-db-migrator | policyadmin: OK: upgrade (1200) grafana | logger=migrator t=2024-03-25T02:52:36.528508781Z level=info msg="Migration successfully executed" id="Update folder title length" duration=46.65µs policy-apex-pdp | value { policy-db-migrator | name version grafana | logger=migrator t=2024-03-25T02:52:36.53232484Z level=info msg="Executing migration" id="Add unique index for folder.title and folder.parent_uid" policy-apex-pdp | string_value: "demo-pnf" policy-db-migrator | policyadmin 1200 grafana | logger=migrator t=2024-03-25T02:52:36.534833919Z level=info msg="Migration successfully executed" id="Add unique index for folder.title and folder.parent_uid" duration=2.508249ms policy-db-migrator | ID script operation from_version to_version tag success atTime policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.54186077Z level=info msg="Executing migration" id="Remove unique index for folder.title and folder.parent_uid" policy-db-migrator | 1 0100-jpapdpgroup_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.543222501Z level=info msg="Migration successfully executed" id="Remove unique index for folder.title and folder.parent_uid" duration=1.361831ms policy-db-migrator | 2 0110-jpapdpstatistics_enginestats.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.54987421Z level=info msg="Executing migration" id="Add unique index for title, parent_uid, and org_id" policy-db-migrator | 3 0120-jpapdpsubgroup_policies.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.552376329Z level=info msg="Migration successfully executed" id="Add unique index for title, parent_uid, and org_id" duration=2.506179ms policy-db-migrator | 4 0130-jpapdpsubgroup_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.556458849Z level=info msg="Executing migration" id="Sync dashboard and folder table" policy-db-migrator | 5 0140-jpapdpsubgroup_supportedpolicytypes.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.557068734Z level=info msg="Migration successfully executed" id="Sync dashboard and folder table" duration=611.825µs policy-db-migrator | 6 0150-jpatoscacapabilityassignment_attributes.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | grafana | logger=migrator t=2024-03-25T02:52:36.561816369Z level=info msg="Executing migration" id="Remove ghost folders from the folder table" policy-db-migrator | 7 0160-jpatoscacapabilityassignment_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | [2024-03-25T02:55:44.781+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [IN|REST|http://message-router:3904/events/APEX-CL-MGT] grafana | logger=migrator t=2024-03-25T02:52:36.562133691Z level=info msg="Migration successfully executed" id="Remove ghost folders from the folder table" duration=318.912µs policy-db-migrator | 8 0170-jpatoscacapabilityassignment_occurrences.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | {"serverTimeMs":0,"count":1} grafana | logger=migrator t=2024-03-25T02:52:36.565367836Z level=info msg="Executing migration" id="Remove unique index UQE_folder_uid_org_id" policy-db-migrator | 9 0180-jpatoscacapabilityassignment_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | [2024-03-25T02:55:44.791+00:00|INFO|network|grpc-default-executor-0] [IN|REST|gRPC://grpc-sim:6680/] grafana | logger=migrator t=2024-03-25T02:52:36.566611835Z level=info msg="Migration successfully executed" id="Remove unique index UQE_folder_uid_org_id" duration=1.243449ms policy-db-migrator | 10 0190-jpatoscacapabilitytype_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | commonHeader { grafana | logger=migrator t=2024-03-25T02:52:36.570184411Z level=info msg="Executing migration" id="Add unique index UQE_folder_org_id_uid" policy-db-migrator | 11 0200-jpatoscacapabilitytype_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | timestamp: "2020-08-24T14:45:07.491Z" grafana | logger=migrator t=2024-03-25T02:52:36.571439971Z level=info msg="Migration successfully executed" id="Add unique index UQE_folder_org_id_uid" duration=1.25514ms policy-db-migrator | 12 0210-jpatoscadatatype_constraints.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | requestId: "123456" grafana | logger=migrator t=2024-03-25T02:52:36.575669582Z level=info msg="Executing migration" id="Remove unique index UQE_folder_title_parent_uid_org_id" policy-db-migrator | 13 0220-jpatoscadatatype_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | subRequestId: "123-123" grafana | logger=migrator t=2024-03-25T02:52:36.577906408Z level=info msg="Migration successfully executed" id="Remove unique index UQE_folder_title_parent_uid_org_id" duration=2.236306ms policy-db-migrator | 14 0230-jpatoscadatatype_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | originatorId: "CDS" grafana | logger=migrator t=2024-03-25T02:52:36.581741667Z level=info msg="Executing migration" id="Add unique index UQE_folder_org_id_parent_uid_title" policy-db-migrator | 15 0240-jpatoscanodetemplate_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.584261286Z level=info msg="Migration successfully executed" id="Add unique index UQE_folder_org_id_parent_uid_title" duration=2.518139ms policy-db-migrator | 16 0250-jpatoscanodetemplate_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | actionIdentifiers { grafana | logger=migrator t=2024-03-25T02:52:36.589938988Z level=info msg="Executing migration" id="Remove index IDX_folder_parent_uid_org_id" policy-db-migrator | 17 0260-jpatoscanodetype_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | blueprintName: "controlloop-hostname-update" grafana | logger=migrator t=2024-03-25T02:52:36.591069607Z level=info msg="Migration successfully executed" id="Remove index IDX_folder_parent_uid_org_id" duration=1.133359ms policy-db-migrator | 18 0270-jpatoscanodetype_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | blueprintVersion: "1.0.4" grafana | logger=migrator t=2024-03-25T02:52:36.595422419Z level=info msg="Executing migration" id="create anon_device table" policy-db-migrator | 19 0280-jpatoscapolicy_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | actionName: "update-config" grafana | logger=migrator t=2024-03-25T02:52:36.597415964Z level=info msg="Migration successfully executed" id="create anon_device table" duration=1.985295ms policy-db-migrator | 20 0290-jpatoscapolicy_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | mode: "sync" policy-db-migrator | 21 0300-jpatoscapolicy_targets.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.601570164Z level=info msg="Executing migration" id="add unique index anon_device.device_id" policy-db-migrator | 22 0310-jpatoscapolicytype_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | status { grafana | logger=migrator t=2024-03-25T02:52:36.603586799Z level=info msg="Migration successfully executed" id="add unique index anon_device.device_id" duration=2.012265ms policy-db-migrator | 23 0320-jpatoscapolicytype_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | code: 200 grafana | logger=migrator t=2024-03-25T02:52:36.608815189Z level=info msg="Executing migration" id="add index anon_device.updated_at" policy-db-migrator | 24 0330-jpatoscapolicytype_targets.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:36 policy-apex-pdp | message: "success" grafana | logger=migrator t=2024-03-25T02:52:36.609974407Z level=info msg="Migration successfully executed" id="add index anon_device.updated_at" duration=1.159128ms policy-db-migrator | 25 0340-jpatoscapolicytype_triggers.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | eventType: EVENT_COMPONENT_EXECUTED grafana | logger=migrator t=2024-03-25T02:52:36.613664735Z level=info msg="Executing migration" id="create signing_key table" policy-db-migrator | 26 0350-jpatoscaproperty_constraints.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | timestamp: "2020-08-24T14:45:12.863Z" grafana | logger=migrator t=2024-03-25T02:52:36.614910894Z level=info msg="Migration successfully executed" id="create signing_key table" duration=1.245479ms policy-db-migrator | 27 0360-jpatoscaproperty_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.618224358Z level=info msg="Executing migration" id="add unique index signing_key.key_id" policy-db-migrator | 28 0370-jpatoscarelationshiptype_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | payload { grafana | logger=migrator t=2024-03-25T02:52:36.619968871Z level=info msg="Migration successfully executed" id="add unique index signing_key.key_id" duration=1.744513ms policy-db-migrator | 29 0380-jpatoscarelationshiptype_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | fields { grafana | logger=migrator t=2024-03-25T02:52:36.626669481Z level=info msg="Executing migration" id="set legacy alert migration status in kvstore" policy-db-migrator | 30 0390-jpatoscarequirement_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | key: "update-config-response" grafana | logger=migrator t=2024-03-25T02:52:36.627921061Z level=info msg="Migration successfully executed" id="set legacy alert migration status in kvstore" duration=1.24724ms policy-db-migrator | 31 0400-jpatoscarequirement_occurrences.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | value { grafana | logger=migrator t=2024-03-25T02:52:36.633456532Z level=info msg="Executing migration" id="migrate record of created folders during legacy migration to kvstore" policy-db-migrator | 32 0410-jpatoscarequirement_properties.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | struct_value { grafana | logger=migrator t=2024-03-25T02:52:36.634075096Z level=info msg="Migration successfully executed" id="migrate record of created folders during legacy migration to kvstore" duration=618.674µs policy-db-migrator | 33 0420-jpatoscaservicetemplate_metadata.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | fields { grafana | logger=migrator t=2024-03-25T02:52:36.637633302Z level=info msg="Executing migration" id="Add folder_uid for dashboard" policy-db-migrator | 34 0430-jpatoscatopologytemplate_inputs.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | key: "execute-command-logs" grafana | logger=migrator t=2024-03-25T02:52:36.650117626Z level=info msg="Migration successfully executed" id="Add folder_uid for dashboard" duration=12.482454ms policy-db-migrator | 35 0440-pdpgroup_pdpsubgroup.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | value { grafana | logger=migrator t=2024-03-25T02:52:36.653650582Z level=info msg="Executing migration" id="Populate dashboard folder_uid column" policy-db-migrator | 36 0450-pdpgroup.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | list_value { grafana | logger=migrator t=2024-03-25T02:52:36.654297777Z level=info msg="Migration successfully executed" id="Populate dashboard folder_uid column" duration=648.365µs policy-db-migrator | 37 0460-pdppolicystatus.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | values { grafana | logger=migrator t=2024-03-25T02:52:36.658298597Z level=info msg="Executing migration" id="Add unique index for dashboard_org_id_folder_uid_title" policy-db-migrator | 38 0470-pdp.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | string_value: "INFO:root:" grafana | logger=migrator t=2024-03-25T02:52:36.660420262Z level=info msg="Migration successfully executed" id="Add unique index for dashboard_org_id_folder_uid_title" duration=2.121475ms policy-db-migrator | 39 0480-pdpstatistics.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.66822145Z level=info msg="Executing migration" id="Delete unique index for dashboard_org_id_folder_id_title" policy-db-migrator | 40 0490-pdpsubgroup_pdp.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | values { grafana | logger=migrator t=2024-03-25T02:52:36.670213785Z level=info msg="Migration successfully executed" id="Delete unique index for dashboard_org_id_folder_id_title" duration=1.988045ms policy-db-migrator | 41 0500-pdpsubgroup.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 policy-apex-pdp | string_value: "INFO:root:configuring Device...." grafana | logger=migrator t=2024-03-25T02:52:36.673660551Z level=info msg="Executing migration" id="Delete unique index for dashboard_org_id_folder_uid_title" policy-apex-pdp | } policy-db-migrator | 42 0510-toscacapabilityassignment.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 grafana | logger=migrator t=2024-03-25T02:52:36.675002321Z level=info msg="Migration successfully executed" id="Delete unique index for dashboard_org_id_folder_uid_title" duration=1.34232ms policy-apex-pdp | values { policy-db-migrator | 43 0520-toscacapabilityassignments.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 grafana | logger=migrator t=2024-03-25T02:52:36.67891512Z level=info msg="Executing migration" id="Add unique index for dashboard_org_id_folder_uid_title_is_folder" policy-apex-pdp | string_value: "INFO:root:Done Device Configuration Successfully" policy-db-migrator | 44 0530-toscacapabilityassignments_toscacapabilityassignment.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 grafana | logger=migrator t=2024-03-25T02:52:36.68018796Z level=info msg="Migration successfully executed" id="Add unique index for dashboard_org_id_folder_uid_title_is_folder" duration=1.27346ms policy-apex-pdp | } policy-db-migrator | 45 0540-toscacapabilitytype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 grafana | logger=migrator t=2024-03-25T02:52:36.683561745Z level=info msg="Executing migration" id="Restore index for dashboard_org_id_folder_id_title" policy-apex-pdp | values { policy-db-migrator | 46 0550-toscacapabilitytypes.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 grafana | logger=migrator t=2024-03-25T02:52:36.684632922Z level=info msg="Migration successfully executed" id="Restore index for dashboard_org_id_folder_id_title" duration=1.075557ms policy-apex-pdp | string_value: "INFO:root:Device Configuration After modification" policy-db-migrator | 47 0560-toscacapabilitytypes_toscacapabilitytype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 grafana | logger=migrator t=2024-03-25T02:52:36.688532911Z level=info msg="Executing migration" id="create sso_setting table" policy-apex-pdp | } policy-db-migrator | 48 0570-toscadatatype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:37 grafana | logger=migrator t=2024-03-25T02:52:36.689556939Z level=info msg="Migration successfully executed" id="create sso_setting table" duration=1.023688ms policy-apex-pdp | values { grafana | logger=migrator t=2024-03-25T02:52:36.695587594Z level=info msg="Executing migration" id="copy kvstore migration status to each org" policy-db-migrator | 49 0580-toscadatatypes.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | string_value: "INFO:root:http://10.101.200.10:32777/restconf/config/network-topology:network-topology/topology/topology-netconf/node/927b2580-36d9-4f13-8421-3c9d43b7a57e/yang-ext:mount" grafana | logger=migrator t=2024-03-25T02:52:36.696912563Z level=info msg="Migration successfully executed" id="copy kvstore migration status to each org" duration=1.327659ms policy-db-migrator | 50 0590-toscadatatypes_toscadatatype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.705299056Z level=info msg="Executing migration" id="add back entry for orgid=0 migrated status" policy-db-migrator | 51 0600-toscanodetemplate.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | values { grafana | logger=migrator t=2024-03-25T02:52:36.70584193Z level=info msg="Migration successfully executed" id="add back entry for orgid=0 migrated status" duration=547.324µs policy-db-migrator | 52 0610-toscanodetemplates.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | string_value: "INFO:root:testhost-1212332324343" grafana | logger=migrator t=2024-03-25T02:52:36.709135715Z level=info msg="Executing migration" id="alter kv_store.value to longtext" policy-db-migrator | 53 0620-toscanodetemplates_toscanodetemplate.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.709260005Z level=info msg="Migration successfully executed" id="alter kv_store.value to longtext" duration=125.63µs policy-db-migrator | 54 0630-toscanodetype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.713363996Z level=info msg="Executing migration" id="add notification_settings column to alert_rule table" policy-db-migrator | 55 0640-toscanodetypes.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.723630822Z level=info msg="Migration successfully executed" id="add notification_settings column to alert_rule table" duration=10.260906ms policy-db-migrator | 56 0650-toscanodetypes_toscanodetype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=migrator t=2024-03-25T02:52:36.727181368Z level=info msg="Executing migration" id="add notification_settings column to alert_rule_version table" policy-db-migrator | 57 0660-toscaparameter.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | fields { grafana | logger=migrator t=2024-03-25T02:52:36.736640359Z level=info msg="Migration successfully executed" id="add notification_settings column to alert_rule_version table" duration=9.449551ms policy-db-migrator | 58 0670-toscapolicies.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | key: "prepare-environment-logs" grafana | logger=migrator t=2024-03-25T02:52:36.741658696Z level=info msg="Executing migration" id="removing scope from alert.instances:read action migration" policy-db-migrator | 59 0680-toscapolicies_toscapolicy.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | value { grafana | logger=migrator t=2024-03-25T02:52:36.742038829Z level=info msg="Migration successfully executed" id="removing scope from alert.instances:read action migration" duration=380.203µs policy-db-migrator | 60 0690-toscapolicy.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | list_value { grafana | logger=migrator t=2024-03-25T02:52:36.745532195Z level=info msg="migrations completed" performed=548 skipped=0 duration=4.782739525s policy-db-migrator | 61 0700-toscapolicytype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | values { grafana | logger=sqlstore t=2024-03-25T02:52:36.753156333Z level=info msg="Created default admin" user=admin policy-db-migrator | 62 0710-toscapolicytypes.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | string_value: "Installed pip packages:\n requirements.txt\n\n" grafana | logger=sqlstore t=2024-03-25T02:52:36.753440895Z level=info msg="Created default organization" policy-db-migrator | 63 0720-toscapolicytypes_toscapolicytype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=secrets t=2024-03-25T02:52:36.757986638Z level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1 policy-db-migrator | 64 0730-toscaproperty.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=plugin.store t=2024-03-25T02:52:36.791855279Z level=info msg="Loading plugins..." policy-db-migrator | 65 0740-toscarelationshiptype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=local.finder t=2024-03-25T02:52:36.850508996Z level=warn msg="Skipping finding plugins as directory does not exist" path=/usr/share/grafana/plugins-bundled policy-db-migrator | 66 0750-toscarelationshiptypes.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=plugin.store t=2024-03-25T02:52:36.850549156Z level=info msg="Plugins loaded" count=55 duration=58.697387ms policy-db-migrator | 67 0760-toscarelationshiptypes_toscarelationshiptype.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=query_data t=2024-03-25T02:52:36.85507421Z level=info msg="Query Service initialization" policy-db-migrator | 68 0770-toscarequirement.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=live.push_http t=2024-03-25T02:52:36.860720412Z level=info msg="Live Push Gateway initialization" policy-db-migrator | 69 0780-toscarequirements.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=ngalert.migration t=2024-03-25T02:52:36.869770569Z level=info msg=Starting policy-db-migrator | 70 0790-toscarequirements_toscarequirement.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:38 policy-apex-pdp | } grafana | logger=ngalert.migration t=2024-03-25T02:52:36.870311423Z level=info msg="Applying transition" currentType=Legacy desiredType=UnifiedAlerting cleanOnDowngrade=false cleanOnUpgrade=false policy-db-migrator | 71 0800-toscaservicetemplate.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | grafana | logger=ngalert.migration orgID=1 t=2024-03-25T02:52:36.870793587Z level=info msg="Migrating alerts for organisation" policy-db-migrator | 72 0810-toscatopologytemplate.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | [2024-03-25T02:55:44.792+00:00|INFO|CdsProcessorHandler|grpc-default-executor-0] Completed blueprint(1.0.4:controlloop-hostname-update) for action(1.0.4) grafana | logger=ngalert.migration orgID=1 t=2024-03-25T02:52:36.871552203Z level=info msg="Alerts found to migrate" alerts=0 policy-db-migrator | 73 0820-toscatrigger.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | [2024-03-25T02:55:44.810+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-4:1] [{component={"name": "Policy", "flavour": "Apex-PDP", "timestamp": 1711335344808, "status": "FINAL_SUCCESS", "message": "Successfully processed the VES event. Hostname is updated.", "artifacts": {"policyName": "onap.policies.apex.Simplecontrolloop", "policyVersion": "1.0.0"}}, id=8c7935a4-79d8-4ec0-b661-dcca3cd68006, otherFields={"useCaseName": "simple-controlloop-usecase"}, target={"targetType": "PNF", "entityInfo": {"pnf_DasH_name": "demo-pnf"}}}] grafana | logger=ngalert.migration t=2024-03-25T02:52:36.873600908Z level=info msg="Completed alerting migration" policy-db-migrator | 74 0830-FK_ToscaNodeTemplate_capabilitiesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | [2024-03-25T02:55:44.814+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [OUT|REST|http://message-router:3904/events/APEX-CL-MGT] grafana | logger=ngalert.state.manager t=2024-03-25T02:52:36.905306923Z level=info msg="Running in alternative execution of Error/NoData mode" policy-db-migrator | 75 0840-FK_ToscaNodeTemplate_requirementsName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | { grafana | logger=infra.usagestats.collector t=2024-03-25T02:52:36.907380449Z level=info msg="registering usage stat providers" usageStatsProvidersLen=2 policy-db-migrator | 76 0850-FK_ToscaNodeType_requirementsName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "name": "SimpleCL_LogEvent", grafana | logger=provisioning.datasources t=2024-03-25T02:52:36.909856377Z level=info msg="inserting datasource from configuration" name=PolicyPrometheus uid=dkSf71fnz policy-db-migrator | 77 0860-FK_ToscaServiceTemplate_capabilityTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "version": "0.0.1", grafana | logger=provisioning.alerting t=2024-03-25T02:52:36.925381283Z level=info msg="starting to provision alerting" policy-db-migrator | 78 0870-FK_ToscaServiceTemplate_dataTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "nameSpace": "org.onap.policy.apex.simplecontrolloop", grafana | logger=provisioning.alerting t=2024-03-25T02:52:36.925398083Z level=info msg="finished to provision alerting" policy-db-migrator | 79 0880-FK_ToscaServiceTemplate_nodeTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "source": "APEX", grafana | logger=ngalert.state.manager t=2024-03-25T02:52:36.925555054Z level=info msg="Warming state cache for startup" policy-db-migrator | 80 0890-FK_ToscaServiceTemplate_policyTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "target": { grafana | logger=ngalert.state.manager t=2024-03-25T02:52:36.925815216Z level=info msg="State cache has been initialized" states=0 duration=259.142µs policy-db-migrator | 81 0900-FK_ToscaServiceTemplate_relationshipTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "targetType": "PNF", grafana | logger=grafanaStorageLogger t=2024-03-25T02:52:36.927867841Z level=info msg="Storage starting" policy-db-migrator | 82 0910-FK_ToscaTopologyTemplate_nodeTemplatesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "entityInfo": { grafana | logger=ngalert.scheduler t=2024-03-25T02:52:36.928065353Z level=info msg="Starting scheduler" tickInterval=10s maxAttempts=1 policy-db-migrator | 83 0920-FK_ToscaTopologyTemplate_policyName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "pnf-name": "demo-pnf" grafana | logger=ticker t=2024-03-25T02:52:36.928180654Z level=info msg=starting first_tick=2024-03-25T02:52:40Z policy-db-migrator | 84 0940-PdpPolicyStatus_PdpGroup.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | } grafana | logger=ngalert.multiorg.alertmanager t=2024-03-25T02:52:36.928203044Z level=info msg="Starting MultiOrg Alertmanager" policy-db-migrator | 85 0950-TscaServiceTemplatetopologyTemplateParentLocalName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | }, grafana | logger=http.server t=2024-03-25T02:52:36.934170508Z level=info msg="HTTP Server Listen" address=[::]:3000 protocol=http subUrl= socket= policy-db-migrator | 86 0960-FK_ToscaNodeTemplate_capabilitiesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "toscaPolicyState": "", grafana | logger=provisioning.dashboard t=2024-03-25T02:52:36.956410413Z level=info msg="starting to provision dashboards" policy-db-migrator | 87 0970-FK_ToscaNodeTemplate_requirementsName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "component": { grafana | logger=sqlstore.transactions t=2024-03-25T02:52:37.012042641Z level=info msg="Database locked, sleeping then retrying" error="database is locked" retry=0 code="database is locked" policy-db-migrator | 88 0980-FK_ToscaNodeType_requirementsName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "name": "Policy", grafana | logger=plugins.update.checker t=2024-03-25T02:52:37.039583839Z level=info msg="Update check succeeded" duration=113.140339ms policy-db-migrator | 89 0990-FK_ToscaServiceTemplate_capabilityTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:39 policy-apex-pdp | "flavour": "Apex-PDP", grafana | logger=sqlstore.transactions t=2024-03-25T02:52:37.068457882Z level=info msg="Database locked, sleeping then retrying" error="database is locked" retry=0 code="database is locked" policy-db-migrator | 90 1000-FK_ToscaServiceTemplate_dataTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:40 policy-apex-pdp | "timestamp": 1.711335344808E12, grafana | logger=sqlstore.transactions t=2024-03-25T02:52:37.087802539Z level=info msg="Database locked, sleeping then retrying" error="database is locked" retry=1 code="database is locked" policy-db-migrator | 91 1010-FK_ToscaServiceTemplate_nodeTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:40 policy-apex-pdp | "status": "FINAL_SUCCESS", grafana | logger=grafana.update.checker t=2024-03-25T02:52:37.089019882Z level=info msg="Update check succeeded" duration=162.688583ms policy-db-migrator | 92 1020-FK_ToscaServiceTemplate_policyTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:40 policy-apex-pdp | "message": "Successfully processed the VES event. Hostname is updated.", grafana | logger=sqlstore.transactions t=2024-03-25T02:52:37.098695831Z level=info msg="Database locked, sleeping then retrying" error="database is locked" retry=2 code="database is locked" policy-db-migrator | 93 1030-FK_ToscaServiceTemplate_relationshipTypesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:40 policy-apex-pdp | "artifacts": { grafana | logger=sqlstore.transactions t=2024-03-25T02:52:37.110122259Z level=info msg="Database locked, sleeping then retrying" error="database is locked" retry=3 code="database is locked" policy-db-migrator | 94 1040-FK_ToscaTopologyTemplate_nodeTemplatesName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:40 policy-apex-pdp | "policyName": "onap.policies.apex.Simplecontrolloop", grafana | logger=provisioning.dashboard t=2024-03-25T02:52:37.272967642Z level=info msg="finished to provision dashboards" policy-db-migrator | 95 1050-FK_ToscaTopologyTemplate_policyName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:40 policy-apex-pdp | "policyVersion": "1.0.0" grafana | logger=grafana-apiserver t=2024-03-25T02:52:37.40041049Z level=info msg="Adding GroupVersion playlist.grafana.app v0alpha1 to ResourceManager" policy-db-migrator | 96 1060-TscaServiceTemplatetopologyTemplateParentLocalName.sql upgrade 0 0800 2503240252350800u 1 2024-03-25 02:52:40 policy-apex-pdp | } grafana | logger=grafana-apiserver t=2024-03-25T02:52:37.400897645Z level=info msg="Adding GroupVersion featuretoggle.grafana.app v0alpha1 to ResourceManager" policy-db-migrator | 97 0100-pdp.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | }, grafana | logger=infra.usagestats t=2024-03-25T02:53:55.939524974Z level=info msg="Usage stats are ready to report" policy-db-migrator | 98 0110-idx_tsidx1.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | "id": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", policy-db-migrator | 99 0120-pk_pdpstatistics.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | "otherFields": { policy-db-migrator | 100 0130-pdpstatistics.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | "useCaseName": "simple-controlloop-usecase" policy-db-migrator | 101 0140-pk_pdpstatistics.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | } policy-db-migrator | 102 0150-pdpstatistics.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | } policy-db-migrator | 103 0160-jpapdpstatistics_enginestats.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | [2024-03-25T02:55:44.828+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter-7:0] [IN|REST|http://message-router:3904/events/APEX-CL-MGT] policy-db-migrator | 104 0170-jpapdpstatistics_enginestats.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | {"serverTimeMs":0,"count":1} policy-db-migrator | 105 0180-jpapdpstatistics_enginestats.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | [2024-03-25T02:55:44.859+00:00|INFO|RequestLog|qtp614580607-24] 172.17.0.1 - policyadmin [25/Mar/2024:02:55:44 +0000] "GET /metrics?null HTTP/1.1" 200 23729 "-" "python-requests/2.27.1" policy-db-migrator | 106 0190-jpapolicyaudit.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | [2024-03-25T02:55:44.898+00:00|INFO|RequestLog|qtp614580607-30] 172.17.0.1 - policyadmin [25/Mar/2024:02:55:44 +0000] "GET /policy/apex-pdp/v1/healthcheck?null HTTP/1.1" 200 109 "-" "python-requests/2.27.1" policy-db-migrator | 107 0200-JpaPolicyAuditIndex_timestamp.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:40 policy-apex-pdp | [2024-03-25T02:55:45.520+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-26:0] HandleVesEventTask processing VES event - {"commonEventHeader": {"domain": "other", "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "eventName": "Report hostname & IP", "lastEpochMicrosec": 1597952499468, "priority": "Normal", "reportingEntityName": "DCAE", "sequence": 1, "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "sourceName": "demo-pnf", "startEpochMicrosec": 1597953057126, "version": "4.0.1", "internalHeaderFields": {}, "vesEventListenerVersion": "7.1"}, "otherFields": {"hashMap": {"hostname": "UNDEFINED", "pnfName": "demo-pnf", "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "ip": "10.101.200.10"}, "otherFieldsVersion": "3.0"}} policy-db-migrator | 108 0210-sequence.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:41 policy-db-migrator | 109 0220-sequence.sql upgrade 0800 0900 2503240252350900u 1 2024-03-25 02:52:41 policy-db-migrator | 110 0100-jpatoscapolicy_targets.sql upgrade 0900 1000 2503240252351000u 1 2024-03-25 02:52:41 policy-apex-pdp | [2024-03-25T02:55:45.522+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-26:0] HandleVesEventTask storing context album - 927b2580-36d9-4f13-8421-3c9d43b7a57e::{"commonEventHeader": {"domain": "other", "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "eventName": "Report hostname & IP", "lastEpochMicrosec": 1597952499468, "priority": "Normal", "reportingEntityName": "DCAE", "sequence": 1, "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "sourceName": "demo-pnf", "startEpochMicrosec": 1711335345521, "version": "4.0.1", "internalHeaderFields": {}, "vesEventListenerVersion": "7.1"}, "otherFields": {"hashMap": {"hostname": "UNDEFINED", "pnfName": "demo-pnf", "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "ip": "10.101.200.10"}, "otherFieldsVersion": "3.0"}, "target": null, "generatedHostname": null} policy-db-migrator | 111 0110-jpatoscapolicytype_targets.sql upgrade 0900 1000 2503240252351000u 1 2024-03-25 02:52:41 policy-apex-pdp | [2024-03-25T02:55:45.524+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-26:0] [{aaifield=null}, {component={"name": "Policy", "flavour": "Apex-PDP", "timestamp": 1711335345522, "status": "ACTIVE", "message": "VES event has been received. Going to fetch details from AAI.", "artifacts": {"policyName": "onap.policies.apex.Simplecontrolloop2", "policyVersion": "1.0.0"}}, id=8c7935a4-79d8-4ec0-b661-dcca3cd68006, otherFields={"useCaseName": "simple-controlloop-usecase"}, target={"targetType": "PNF", "entityInfo": {"pnf_DasH_name": "demo-pnf"}}}] policy-db-migrator | 112 0120-toscatrigger.sql upgrade 0900 1000 2503240252351000u 1 2024-03-25 02:52:41 policy-apex-pdp | [2024-03-25T02:55:45.530+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter2-29:0] [OUT|REST|http://message-router:3904/events/APEX-CL-MGT2] policy-db-migrator | 113 0130-jpatoscapolicytype_triggers.sql upgrade 0900 1000 2503240252351000u 1 2024-03-25 02:52:41 policy-apex-pdp | { policy-db-migrator | 114 0140-toscaparameter.sql upgrade 0900 1000 2503240252351000u 1 2024-03-25 02:52:41 policy-apex-pdp | "name": "SimpleCL_LogEvent", policy-db-migrator | 115 0150-toscaproperty.sql upgrade 0900 1000 2503240252351000u 1 2024-03-25 02:52:41 policy-apex-pdp | "version": "0.0.1", policy-db-migrator | 116 0160-jpapolicyaudit_pk.sql upgrade 0900 1000 2503240252351000u 1 2024-03-25 02:52:41 policy-apex-pdp | "nameSpace": "org.onap.policy.apex.simplecontrolloop", policy-db-migrator | 117 0170-pdpstatistics_pk.sql upgrade 0900 1000 2503240252351000u 1 2024-03-25 02:52:41 policy-apex-pdp | "source": "APEX", policy-db-migrator | 118 0180-jpatoscanodetemplate_metadata.sql upgrade 0900 1000 2503240252351000u 1 2024-03-25 02:52:41 policy-apex-pdp | "target": { policy-db-migrator | 119 0100-upgrade.sql upgrade 1000 1100 2503240252351100u 1 2024-03-25 02:52:41 policy-apex-pdp | "targetType": "PNF", policy-db-migrator | 120 0100-jpapolicyaudit_renameuser.sql upgrade 1100 1200 2503240252351200u 1 2024-03-25 02:52:41 policy-apex-pdp | "entityInfo": { policy-db-migrator | 121 0110-idx_tsidx1.sql upgrade 1100 1200 2503240252351200u 1 2024-03-25 02:52:41 policy-apex-pdp | "pnf-name": "demo-pnf" policy-db-migrator | 122 0120-audit_sequence.sql upgrade 1100 1200 2503240252351200u 1 2024-03-25 02:52:41 policy-apex-pdp | } policy-db-migrator | 123 0130-statistics_sequence.sql upgrade 1100 1200 2503240252351200u 1 2024-03-25 02:52:41 policy-apex-pdp | }, policy-db-migrator | policyadmin: OK @ 1200 policy-apex-pdp | "toscaPolicyState": "", policy-apex-pdp | "component": { policy-apex-pdp | "name": "Policy", policy-apex-pdp | "flavour": "Apex-PDP", policy-apex-pdp | "timestamp": 1.711335345522E12, policy-apex-pdp | "status": "ACTIVE", policy-apex-pdp | "message": "VES event has been received. Going to fetch details from AAI.", policy-apex-pdp | "artifacts": { policy-apex-pdp | "policyName": "onap.policies.apex.Simplecontrolloop2", policy-apex-pdp | "policyVersion": "1.0.0" policy-apex-pdp | } policy-apex-pdp | }, policy-apex-pdp | "id": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", policy-apex-pdp | "otherFields": { policy-apex-pdp | "useCaseName": "simple-controlloop-usecase" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | [2024-03-25T02:55:45.562+00:00|INFO|network|RestRequestRunner_0] [IN|REST|http://aai-sim:6666/aai/v16/network/pnfs/pnf/demo-pnf] policy-apex-pdp | { policy-apex-pdp | "equip-vendor":"Vendor-A", policy-apex-pdp | "ipaddress-v4-oam":"10.10.10.10", policy-apex-pdp | "in-maint":false, policy-apex-pdp | "pnf-ipv4-address":"3.3.3.3", policy-apex-pdp | "resource-version":"1570746989505", policy-apex-pdp | "nf-role":"ToR DC101", policy-apex-pdp | "equip-type":"Router", policy-apex-pdp | "equip-model":"model-123456", policy-apex-pdp | "frame-id":"3", policy-apex-pdp | "pnf-name":"demo-pnf" policy-apex-pdp | } policy-apex-pdp | policy-apex-pdp | [2024-03-25T02:55:45.574+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter2-29:0] [IN|REST|http://message-router:3904/events/APEX-CL-MGT2] policy-apex-pdp | {"serverTimeMs":0,"count":1} policy-apex-pdp | [2024-03-25T02:55:45.595+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-26:1] HandleAAISuccessResponseTask extracted context album - 927b2580-36d9-4f13-8421-3c9d43b7a57e::{"commonEventHeader": {"domain": "other", "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "eventName": "Report hostname & IP", "lastEpochMicrosec": 1597952499468, "priority": "Normal", "reportingEntityName": "DCAE", "sequence": 1, "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "sourceName": "demo-pnf", "startEpochMicrosec": 1711335345521, "version": "4.0.1", "internalHeaderFields": {}, "vesEventListenerVersion": "7.1"}, "otherFields": {"hashMap": {"hostname": "UNDEFINED", "pnfName": "demo-pnf", "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e", "ip": "10.101.200.10"}, "otherFieldsVersion": "3.0"}, "target": null, "generatedHostname": null} policy-apex-pdp | [2024-03-25T02:55:45.603+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-26:1] [{actionIdentifiers={"actionName": "update-config", "blueprintName": "controlloop-hostname-update", "blueprintVersion": "1.0.4", "mode": "sync"}, commonHeader={"originatorId": "POLICY", "requestId": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", "subRequestId": "927b2580-36d9-4f13-8421-3c9d43b7a57e"}, payload={update_DasH_config_DasH_request={"hostname": "hostrof87r", "IP": "10.10.10.10", "pnfName": "demo-pnf"}}}, {component={"name": "Policy", "flavour": "Apex-PDP", "timestamp": 1711335345602, "status": "SUCCESS", "message": "Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.", "artifacts": {"policyName": "onap.policies.apex.Simplecontrolloop2", "policyVersion": "1.0.0"}}, id=8c7935a4-79d8-4ec0-b661-dcca3cd68006, otherFields={"useCaseName": "simple-controlloop-usecase"}, target={"targetType": "PNF", "entityInfo": {"pnf_DasH_name": "demo-pnf"}}}] policy-apex-pdp | [2024-03-25T02:55:45.606+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter2-29:0] [OUT|REST|http://message-router:3904/events/APEX-CL-MGT2] policy-apex-pdp | { policy-apex-pdp | "name": "SimpleCL_LogEvent", policy-apex-pdp | "version": "0.0.1", policy-apex-pdp | "nameSpace": "org.onap.policy.apex.simplecontrolloop", policy-apex-pdp | "source": "APEX", policy-apex-pdp | "target": { policy-apex-pdp | "targetType": "PNF", policy-apex-pdp | "entityInfo": { policy-apex-pdp | "pnf-name": "demo-pnf" policy-apex-pdp | } policy-apex-pdp | }, policy-apex-pdp | "toscaPolicyState": "", policy-apex-pdp | "component": { policy-apex-pdp | "name": "Policy", policy-apex-pdp | "flavour": "Apex-PDP", policy-apex-pdp | "timestamp": 1.711335345602E12, policy-apex-pdp | "status": "SUCCESS", policy-apex-pdp | "message": "Received response from AAI successfully. Hostname in AAI matches with the one in Ves event. Going to make the update-config request to CDS.", policy-apex-pdp | "artifacts": { policy-apex-pdp | "policyName": "onap.policies.apex.Simplecontrolloop2", policy-apex-pdp | "policyVersion": "1.0.0" policy-apex-pdp | } policy-apex-pdp | }, policy-apex-pdp | "id": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", policy-apex-pdp | "otherFields": { policy-apex-pdp | "useCaseName": "simple-controlloop-usecase" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | [2024-03-25T02:55:45.606+00:00|INFO|CdsProcessorHandler|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_CDSConfigModifyRequestProducer2-28:0] Processing blueprint(1.0.4:controlloop-hostname-update) for action(1.0.4) policy-apex-pdp | [2024-03-25T02:55:45.608+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_CDSConfigModifyRequestProducer2-28:0] [OUT|REST|gRPC://grpc-sim:6680/] policy-apex-pdp | commonHeader { policy-apex-pdp | requestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" policy-apex-pdp | subRequestId: "927b2580-36d9-4f13-8421-3c9d43b7a57e" policy-apex-pdp | originatorId: "POLICY" policy-apex-pdp | } policy-apex-pdp | actionIdentifiers { policy-apex-pdp | blueprintName: "controlloop-hostname-update" policy-apex-pdp | blueprintVersion: "1.0.4" policy-apex-pdp | actionName: "update-config" policy-apex-pdp | mode: "sync" policy-apex-pdp | } policy-apex-pdp | payload { policy-apex-pdp | fields { policy-apex-pdp | key: "update-config-request" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "hostname" policy-apex-pdp | value { policy-apex-pdp | string_value: "hostrof87r" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "IP" policy-apex-pdp | value { policy-apex-pdp | string_value: "10.10.10.10" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "pnfName" policy-apex-pdp | value { policy-apex-pdp | string_value: "demo-pnf" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | policy-apex-pdp | [2024-03-25T02:55:45.612+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter2-29:0] [IN|REST|http://message-router:3904/events/APEX-CL-MGT2] policy-apex-pdp | {"serverTimeMs":0,"count":1} policy-apex-pdp | [2024-03-25T02:55:45.630+00:00|INFO|network|grpc-default-executor-0] [IN|REST|gRPC://grpc-sim:6680/] policy-apex-pdp | commonHeader { policy-apex-pdp | timestamp: "2020-08-24T14:45:07.491Z" policy-apex-pdp | requestId: "123456" policy-apex-pdp | subRequestId: "123-123" policy-apex-pdp | originatorId: "CDS" policy-apex-pdp | } policy-apex-pdp | actionIdentifiers { policy-apex-pdp | blueprintName: "controlloop-hostname-update" policy-apex-pdp | blueprintVersion: "1.0.4" policy-apex-pdp | actionName: "update-config" policy-apex-pdp | mode: "sync" policy-apex-pdp | } policy-apex-pdp | status { policy-apex-pdp | code: 200 policy-apex-pdp | message: "success" policy-apex-pdp | eventType: EVENT_COMPONENT_EXECUTED policy-apex-pdp | timestamp: "2020-08-24T14:45:12.863Z" policy-apex-pdp | } policy-apex-pdp | payload { policy-apex-pdp | fields { policy-apex-pdp | key: "update-config-response" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "execute-command-logs" policy-apex-pdp | value { policy-apex-pdp | list_value { policy-apex-pdp | values { policy-apex-pdp | string_value: "INFO:root:" policy-apex-pdp | } policy-apex-pdp | values { policy-apex-pdp | string_value: "INFO:root:configuring Device...." policy-apex-pdp | } policy-apex-pdp | values { policy-apex-pdp | string_value: "INFO:root:Done Device Configuration Successfully" policy-apex-pdp | } policy-apex-pdp | values { policy-apex-pdp | string_value: "INFO:root:Device Configuration After modification" policy-apex-pdp | } policy-apex-pdp | values { policy-apex-pdp | string_value: "INFO:root:http://10.101.200.10:32777/restconf/config/network-topology:network-topology/topology/topology-netconf/node/927b2580-36d9-4f13-8421-3c9d43b7a57e/yang-ext:mount" policy-apex-pdp | } policy-apex-pdp | values { policy-apex-pdp | string_value: "INFO:root:testhost-1212332324343" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "prepare-environment-logs" policy-apex-pdp | value { policy-apex-pdp | list_value { policy-apex-pdp | values { policy-apex-pdp | string_value: "Installed pip packages:\n requirements.txt\n\n" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | policy-apex-pdp | [2024-03-25T02:55:45.630+00:00|INFO|CdsProcessorHandler|grpc-default-executor-0] Completed blueprint(1.0.4:controlloop-hostname-update) for action(1.0.4) policy-apex-pdp | [2024-03-25T02:55:45.641+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-26:2] [{component={"name": "Policy", "flavour": "Apex-PDP", "timestamp": 1711335345639, "status": "FINAL_SUCCESS", "message": "Successfully processed the VES event. Hostname is updated.", "artifacts": {"policyName": "onap.policies.apex.Simplecontrolloop2", "policyVersion": "1.0.0"}}, id=8c7935a4-79d8-4ec0-b661-dcca3cd68006, otherFields={"useCaseName": "simple-controlloop-usecase"}, target={"targetType": "PNF", "entityInfo": {"pnf_DasH_name": "demo-pnf"}}}] policy-apex-pdp | [2024-03-25T02:55:45.645+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter2-29:0] [OUT|REST|http://message-router:3904/events/APEX-CL-MGT2] policy-apex-pdp | { policy-apex-pdp | "name": "SimpleCL_LogEvent", policy-apex-pdp | "version": "0.0.1", policy-apex-pdp | "nameSpace": "org.onap.policy.apex.simplecontrolloop", policy-apex-pdp | "source": "APEX", policy-apex-pdp | "target": { policy-apex-pdp | "targetType": "PNF", policy-apex-pdp | "entityInfo": { policy-apex-pdp | "pnf-name": "demo-pnf" policy-apex-pdp | } policy-apex-pdp | }, policy-apex-pdp | "toscaPolicyState": "", policy-apex-pdp | "component": { policy-apex-pdp | "name": "Policy", policy-apex-pdp | "flavour": "Apex-PDP", policy-apex-pdp | "timestamp": 1.711335345639E12, policy-apex-pdp | "status": "FINAL_SUCCESS", policy-apex-pdp | "message": "Successfully processed the VES event. Hostname is updated.", policy-apex-pdp | "artifacts": { policy-apex-pdp | "policyName": "onap.policies.apex.Simplecontrolloop2", policy-apex-pdp | "policyVersion": "1.0.0" policy-apex-pdp | } policy-apex-pdp | }, policy-apex-pdp | "id": "8c7935a4-79d8-4ec0-b661-dcca3cd68006", policy-apex-pdp | "otherFields": { policy-apex-pdp | "useCaseName": "simple-controlloop-usecase" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | [2024-03-25T02:55:45.651+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:SimpleCL_logOutputter2-29:0] [IN|REST|http://message-router:3904/events/APEX-CL-MGT2] policy-apex-pdp | {"serverTimeMs":0,"count":1} policy-apex-pdp | [2024-03-25T02:55:46.048+00:00|INFO|RequestLog|qtp1144146266-50] 172.17.0.1 - - [25/Mar/2024:02:55:45 +0000] "PUT /apex/FirstConsumer/EventIn HTTP/1.1" 200 588 "-" "python-requests/2.27.1" policy-apex-pdp | [2024-03-25T02:55:46.910+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:4] ApexExample_HandleVesEventTask processing VES event - {"commonEventHeader": {"domain": "fault", "eventId": "fault0000245", "eventName": "Fault_Vscf:PilotNumberPoolExhaustion", "lastEpochMicrosec": 1413378172000000, "priority": "High", "reportingEntityName": "ibcx0001vm002oam001", "sequence": 1, "sourceId": "de305d54-75b4-431b-adb2-eb6b9e5460141", "sourceName": "vfw-cnf-cds-test-1-vnf", "startEpochMicrosec": 1413378172000000, "timeZoneOffset": "UTC-05:30", "version": "4.0.1", "vesEventListenerVersion": "7.0.1"}, "faultFields": {"alarmAdditionalInformation": {"PilotNumberPoolSize": "1000"}, "alarmCondition": "PilotNumberPoolExhaustion", "eventSeverity": "CRITICAL", "eventSourceType": "other", "faultFieldsVersion": 4, "specificProblem": "Calls cannot complete - pilot numbers are unavailable", "vfStatus": "Active"}} policy-apex-pdp | [2024-03-25T02:55:46.911+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:4] sending the status to log. policy-apex-pdp | [2024-03-25T02:55:46.911+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:4] LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e5460141"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1711335346911,"status" : "ACTIVE","message" : "VES event has been received. Going to fetch VNF details from AAI.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} policy-apex-pdp | [2024-03-25T02:55:46.918+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:4] DMaaP Response after sending LogEvent: (200,{"serverTimeMs":0,"count":1}) policy-apex-pdp | [2024-03-25T02:55:46.918+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:4] {aaifield=null} policy-apex-pdp | [2024-03-25T02:55:46.923+00:00|INFO|network|RestRequestRunner_0] [IN|REST|http://aai-sim:6666/aai/v16/network/generic-vnfs/generic-vnf?vnf-name=vfw-cnf-cds-test-1-vnf] policy-apex-pdp | { policy-apex-pdp | "vnf-id": "37b008b9-b367-4359-93fd-74d3ce0ee1a0", policy-apex-pdp | "vnf-name": "vfw-cnf-cds-test-1-vnf", policy-apex-pdp | "vnf-type": "vfw_cnf_cds/null", policy-apex-pdp | "service-id": "37b008b9-b367-4359-93fd-74d3ce0ee1a0", policy-apex-pdp | "prov-status": "ACTIVE", policy-apex-pdp | "orchestration-status": "Assigned", policy-apex-pdp | "in-maint": false, policy-apex-pdp | "is-closed-loop-disabled": false, policy-apex-pdp | "resource-version": "1607506390862", policy-apex-pdp | "model-invariant-id": "vTEST_XYZ", policy-apex-pdp | "model-version-id": "vTEST", policy-apex-pdp | "model-customization-id": "37b008b9-b367-4359-93fd-74d3ce0ee1a0", policy-apex-pdp | "relationship-list": { policy-apex-pdp | "relationship": [ policy-apex-pdp | { policy-apex-pdp | "related-to": "service-instance", policy-apex-pdp | "relationship-label": "org.onap.relationships.inventory.ComposedOf", policy-apex-pdp | "related-link": "/aai/v14/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2", policy-apex-pdp | "relationship-data": [ policy-apex-pdp | { policy-apex-pdp | "relationship-key": "customer.global-customer-id", policy-apex-pdp | "relationship-value": "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf" policy-apex-pdp | }, policy-apex-pdp | { policy-apex-pdp | "relationship-key": "service-subscription.service-type", policy-apex-pdp | "relationship-value": "vFWDT" policy-apex-pdp | }, policy-apex-pdp | { policy-apex-pdp | "relationship-key": "service-instance.service-instance-id", policy-apex-pdp | "relationship-value": "55322ada-145a-492e-b196-0d171539a4b2" policy-apex-pdp | } policy-apex-pdp | ], policy-apex-pdp | "related-to-property": [ policy-apex-pdp | { policy-apex-pdp | "property-key": "service-instance.service-instance-name", policy-apex-pdp | "property-value": "Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659" policy-apex-pdp | } policy-apex-pdp | ] policy-apex-pdp | } policy-apex-pdp | ] policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | policy-apex-pdp | policy-apex-pdp | [2024-03-25T02:55:46.935+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] ApexExample_HandleAAISuccessResponseTask processing event - {in-maint=false, is-closed-loop-disabled=false, model-customization-id=37b008b9-b367-4359-93fd-74d3ce0ee1a0, model-invariant-id=vTEST_XYZ, model-version-id=vTEST, orchestration-status=Assigned, prov-status=ACTIVE, relationship-list={"relationship": [{"related_DasH_to": "service-instance", "relationship_DasH_label": "org.onap.relationships.inventory.ComposedOf", "related_DasH_link": "/aai/v14/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2", "relationship_DasH_data": [{"relationship_DasH_key": "customer.global-customer-id", "relationship_DasH_value": "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf"}, {"relationship_DasH_key": "service-subscription.service-type", "relationship_DasH_value": "vFWDT"}, {"relationship_DasH_key": "service-instance.service-instance-id", "relationship_DasH_value": "55322ada-145a-492e-b196-0d171539a4b2"}], "related_DasH_to_DasH_property": [{"property_DasH_key": "service-instance.service-instance-name", "property_DasH_value": "Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659"}]}]}, resource-version=1607506390862, service-id=37b008b9-b367-4359-93fd-74d3ce0ee1a0, vnf-id=37b008b9-b367-4359-93fd-74d3ce0ee1a0, vnf-name=vfw-cnf-cds-test-1-vnf, vnf-type=vfw_cnf_cds/null} policy-apex-pdp | [2024-03-25T02:55:46.937+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] CDS modify config request payload - {"modify-config-request":{"vfStatus":"Active","update-properties":{"service-instance.service-instance-id":"37b008b9-b367-4359-93fd-74d3ce0ee1a0","generic-vnf.vnf-id":"37b008b9-b367-4359-93fd-74d3ce0ee1a0","data":{"active-streams":"7"}}}} policy-apex-pdp | [2024-03-25T02:55:46.938+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] sending the status to log. policy-apex-pdp | [2024-03-25T02:55:46.938+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e5460141"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1711335346937,"status" : "SUCCESS","message" : "VNF details are received from AAI successfully. Sending ConfigModify request to CDS.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} policy-apex-pdp | [2024-03-25T02:55:46.945+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:0] DMaaP Response after sending LogEvent: (200,{"serverTimeMs":0,"count":1}) policy-apex-pdp | [2024-03-25T02:55:46.948+00:00|INFO|CdsProcessorHandler|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSConfigModifyRequestProducer-16:0] Processing blueprint(1.0.0:apex-example-cba) for action(1.0.0) policy-apex-pdp | [2024-03-25T02:55:46.949+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSConfigModifyRequestProducer-16:0] [OUT|REST|gRPC://grpc-sim:6680/] policy-apex-pdp | commonHeader { policy-apex-pdp | requestId: "30676550-8992-4333-89bd-6b7457a4ab00" policy-apex-pdp | subRequestId: "fault0000245" policy-apex-pdp | originatorId: "POLICY" policy-apex-pdp | } policy-apex-pdp | actionIdentifiers { policy-apex-pdp | blueprintName: "apex-example-cba" policy-apex-pdp | blueprintVersion: "1.0.0" policy-apex-pdp | actionName: "modify-config" policy-apex-pdp | mode: "sync" policy-apex-pdp | } policy-apex-pdp | payload { policy-apex-pdp | fields { policy-apex-pdp | key: "modify-config-request" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "vfStatus" policy-apex-pdp | value { policy-apex-pdp | string_value: "Active" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "update-properties" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "service-instance.service-instance-id" policy-apex-pdp | value { policy-apex-pdp | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "generic-vnf.vnf-id" policy-apex-pdp | value { policy-apex-pdp | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "data" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "active-streams" policy-apex-pdp | value { policy-apex-pdp | string_value: "7" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | policy-apex-pdp | [2024-03-25T02:55:46.960+00:00|INFO|network|grpc-default-executor-0] [IN|REST|gRPC://grpc-sim:6680/] policy-apex-pdp | commonHeader { policy-apex-pdp | timestamp: "2020-12-16T10:29:00.450Z" policy-apex-pdp | requestId: "f392e439-c176-411b-b972-8acadac0f8df" policy-apex-pdp | subRequestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" policy-apex-pdp | originatorId: "POLICY" policy-apex-pdp | } policy-apex-pdp | actionIdentifiers { policy-apex-pdp | blueprintName: "apex-example-cba" policy-apex-pdp | blueprintVersion: "1.0.0" policy-apex-pdp | actionName: "modify-config" policy-apex-pdp | mode: "sync" policy-apex-pdp | } policy-apex-pdp | status { policy-apex-pdp | code: 200 policy-apex-pdp | message: "success" policy-apex-pdp | eventType: EVENT_COMPONENT_EXECUTED policy-apex-pdp | timestamp: "2020-12-16T10:29:01.737Z" policy-apex-pdp | } policy-apex-pdp | payload { policy-apex-pdp | fields { policy-apex-pdp | key: "modify-config-response" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "execute-command-logs" policy-apex-pdp | value { policy-apex-pdp | list_value { policy-apex-pdp | values { policy-apex-pdp | string_value: "INFO:root:Arguments : Active,," policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "prepare-environment-logs" policy-apex-pdp | value { policy-apex-pdp | list_value { policy-apex-pdp | values { policy-apex-pdp | string_value: "Installed pip packages:\n requirements.txt\n\n" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | policy-apex-pdp | [2024-03-25T02:55:46.960+00:00|INFO|CdsProcessorHandler|grpc-default-executor-0] Completed blueprint(1.0.0:apex-example-cba) for action(1.0.0) policy-apex-pdp | [2024-03-25T02:55:46.971+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:1] NaN policy-apex-pdp | [2024-03-25T02:55:46.971+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:1] sending the status to log. policy-apex-pdp | [2024-03-25T02:55:46.971+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:1] LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e5460141"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1711335346969,"status" : "SUCCESS","message" : "ConfigModify request is successful. Sending restart request to CDS.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} policy-apex-pdp | [2024-03-25T02:55:46.979+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:1] DMaaP Response after sending LogEvent: (200,{"serverTimeMs":0,"count":1}) policy-apex-pdp | [2024-03-25T02:55:46.982+00:00|INFO|CdsProcessorHandler|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSRestartRequestProducer-17:0] Processing blueprint(1.0.0:apex-example-cba) for action(1.0.0) policy-apex-pdp | [2024-03-25T02:55:46.983+00:00|INFO|network|Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSRestartRequestProducer-17:0] [OUT|REST|gRPC://grpc-sim:6680/] policy-apex-pdp | commonHeader { policy-apex-pdp | requestId: "ee0ee0cb-53b4-4cb9-9f7b-8b13c7cf7b83" policy-apex-pdp | subRequestId: "fault0000245" policy-apex-pdp | originatorId: "POLICY" policy-apex-pdp | } policy-apex-pdp | actionIdentifiers { policy-apex-pdp | blueprintName: "apex-example-cba" policy-apex-pdp | blueprintVersion: "1.0.0" policy-apex-pdp | actionName: "restart" policy-apex-pdp | mode: "sync" policy-apex-pdp | } policy-apex-pdp | payload { policy-apex-pdp | fields { policy-apex-pdp | key: "restart-request" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "vfStatus" policy-apex-pdp | value { policy-apex-pdp | string_value: "Active" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "update-properties" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "service-instance.service-instance-id" policy-apex-pdp | value { policy-apex-pdp | string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "generic-vnf.vnf-id" policy-apex-pdp | value { policy-apex-pdp | string_value: "vfw-cnf-cds-test-1-vnf" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "data" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "active-streams" policy-apex-pdp | value { policy-apex-pdp | string_value: "7" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | policy-apex-pdp | [2024-03-25T02:55:46.993+00:00|INFO|network|grpc-default-executor-0] [IN|REST|gRPC://grpc-sim:6680/] policy-apex-pdp | commonHeader { policy-apex-pdp | timestamp: "2020-12-16T10:30:46.213Z" policy-apex-pdp | requestId: "f392e439-c176-411b-b972-8acadac0f8df" policy-apex-pdp | subRequestId: "8c7935a4-79d8-4ec0-b661-dcca3cd68006" policy-apex-pdp | originatorId: "POLICY" policy-apex-pdp | } policy-apex-pdp | actionIdentifiers { policy-apex-pdp | blueprintName: "apex-example-cba" policy-apex-pdp | blueprintVersion: "1.0.0" policy-apex-pdp | actionName: "restart" policy-apex-pdp | mode: "sync" policy-apex-pdp | } policy-apex-pdp | status { policy-apex-pdp | code: 200 policy-apex-pdp | message: "success" policy-apex-pdp | eventType: EVENT_COMPONENT_EXECUTED policy-apex-pdp | timestamp: "2020-12-16T10:30:46.828Z" policy-apex-pdp | } policy-apex-pdp | payload { policy-apex-pdp | fields { policy-apex-pdp | key: "restart-response" policy-apex-pdp | value { policy-apex-pdp | struct_value { policy-apex-pdp | fields { policy-apex-pdp | key: "execute-command-logs" policy-apex-pdp | value { policy-apex-pdp | list_value { policy-apex-pdp | values { policy-apex-pdp | string_value: "INFO:root:Arguments : Active,," policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | fields { policy-apex-pdp | key: "prepare-environment-logs" policy-apex-pdp | value { policy-apex-pdp | list_value { policy-apex-pdp | values { policy-apex-pdp | string_value: "Installed pip packages:\n requirements.txt\n\n" policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | } policy-apex-pdp | policy-apex-pdp | [2024-03-25T02:55:46.993+00:00|INFO|CdsProcessorHandler|grpc-default-executor-0] Completed blueprint(1.0.0:apex-example-cba) for action(1.0.0) policy-apex-pdp | [2024-03-25T02:55:47.001+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:2] sending the status to log. policy-apex-pdp | [2024-03-25T02:55:47.001+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:2] LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e5460141"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1711335347000,"status" : "FINAL_SUCCESS","message" : "Successfully processed the VES Event. Restart is complete.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} policy-apex-pdp | [2024-03-25T02:55:47.007+00:00|INFO|TaskExecutionLogging|Apex-apex-engine-service-14:2] DMaaP Response after sending LogEvent: (200,{"serverTimeMs":0,"count":1}) policy-apex-pdp | [2024-03-25T02:55:54.688+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:55:54.688+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:55:54.688+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:55:56.082+00:00|INFO|RequestLog|qtp614580607-27] 172.17.0.2 - policyadmin [25/Mar/2024:02:55:56 +0000] "GET /metrics HTTP/1.1" 200 26634 "-" "Prometheus/2.51.0" policy-apex-pdp | [2024-03-25T02:56:09.696+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:56:09.696+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:56:09.698+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:56:24.703+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:56:24.703+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:56:24.704+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... policy-apex-pdp | [2024-03-25T02:56:39.707+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] --> HTTP/1.1 200 OK policy-apex-pdp | [2024-03-25T02:56:39.707+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp policy-apex-pdp | [2024-03-25T02:56:39.707+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET http://message-router:3904/events/POLICY-PDP-PAP/3aa23aff-999e-4586-abad-fba41e277daa/policy-apex-pdp (anonymous) ... ++ echo 'Tearing down containers...' Tearing down containers... ++ docker-compose down -v --remove-orphans Stopping policy-apex-pdp ... Stopping policy-pap ... Stopping policy-api ... Stopping grafana ... Stopping mariadb ... Stopping prometheus ... Stopping simulator ... Stopping grafana ... done Stopping prometheus ... done Stopping policy-apex-pdp ... done Stopping policy-pap ... done Stopping mariadb ... done Stopping simulator ... done Stopping policy-api ... done Removing policy-apex-pdp ... Removing policy-pap ... Removing policy-api ... Removing grafana ... Removing policy-db-migrator ... Removing mariadb ... Removing prometheus ... Removing simulator ... Removing policy-api ... done Removing policy-pap ... done Removing grafana ... done Removing mariadb ... done Removing simulator ... done Removing prometheus ... done Removing policy-apex-pdp ... done Removing policy-db-migrator ... done Removing network compose_default ++ cd /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp + load_set + _setopts=hxB ++ echo braceexpand:hashall:interactive-comments:xtrace ++ tr : ' ' + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o braceexpand + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o hashall + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o interactive-comments + for i in $(echo "${SHELLOPTS}" | tr ':' ' ') + set +o xtrace ++ echo hxB ++ sed 's/./& /g' + for i in $(echo "$_setopts" | sed 's/./& /g') + set +h + for i in $(echo "$_setopts" | sed 's/./& /g') + set +x + [[ -n /tmp/tmp.eGCs7ITusJ ]] + rsync -av /tmp/tmp.eGCs7ITusJ/ /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/csit/archives/apex-pdp sending incremental file list ./ log.html output.xml report.html testplan.txt sent 2,314,208 bytes received 95 bytes 4,628,606.00 bytes/sec total size is 2,313,325 speedup is 1.00 + rm -rf /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/models + exit 0 $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 2114 killed; [ssh-agent] Stopped. Robot results publisher started... INFO: Checking test criticality is deprecated and will be dropped in a future release! -Parsing output xml: Done! WARNING! Could not find file: **/log.html WARNING! Could not find file: **/report.html -Copying log files to build dir: Done! -Assigning results to build: Done! -Checking thresholds: Done! Done publishing Robot results. [PostBuildScript] - [INFO] Executing post build scripts. [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash /tmp/jenkins10915690699218086666.sh ---> sysstat.sh [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash /tmp/jenkins118930536912701553.sh ---> package-listing.sh ++ facter osfamily ++ tr '[:upper:]' '[:lower:]' + OS_FAMILY=debian + workspace=/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp + START_PACKAGES=/tmp/packages_start.txt + END_PACKAGES=/tmp/packages_end.txt + DIFF_PACKAGES=/tmp/packages_diff.txt + PACKAGES=/tmp/packages_start.txt + '[' /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp ']' + PACKAGES=/tmp/packages_end.txt + case "${OS_FAMILY}" in + dpkg -l + grep '^ii' + '[' -f /tmp/packages_start.txt ']' + '[' -f /tmp/packages_end.txt ']' + diff /tmp/packages_start.txt /tmp/packages_end.txt + '[' /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp ']' + mkdir -p /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/archives/ + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/archives/ [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash /tmp/jenkins14889147734450021313.sh ---> capture-instance-metadata.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-0mDw from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-0mDw/bin to PATH INFO: Running in OpenStack, capturing instance metadata [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash /tmp/jenkins18001877892600138928.sh provisioning config files... copy managed file [jenkins-log-archives-settings] to file:/w/workspace/policy-apex-pdp-london-project-csit-apex-pdp@tmp/config12563369452414826326tmp Regular expression run condition: Expression=[^.*logs-s3.*], Label=[] Run condition [Regular expression match] preventing perform for step [Provide Configuration files] [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content SERVER_ID=logs [EnvInject] - Variables injected successfully. [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash /tmp/jenkins18004756090214724532.sh ---> create-netrc.sh [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash /tmp/jenkins10907240584310171114.sh ---> python-tools-install.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-0mDw from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-0mDw/bin to PATH [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash /tmp/jenkins7331652767789694205.sh ---> sudo-logs.sh Archiving 'sudo' log.. [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash /tmp/jenkins4652499360260869278.sh ---> job-cost.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-0mDw from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 lf-activate-venv(): INFO: Adding /tmp/venv-0mDw/bin to PATH INFO: No Stack... INFO: Retrieving Pricing Info for: v3-standard-8 INFO: Archiving Costs [policy-apex-pdp-london-project-csit-apex-pdp] $ /bin/bash -l /tmp/jenkins11629768830283936475.sh ---> logs-deploy.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/policy-apex-pdp-london-project-csit-apex-pdp/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-0mDw from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-0mDw/bin to PATH INFO: Nexus URL https://nexus.onap.org path production/vex-yul-ecomp-jenkins-1/policy-apex-pdp-london-project-csit-apex-pdp/313 INFO: archiving workspace using pattern(s): -p **/target/surefire-reports/*-output.txt Archives upload complete. INFO: archiving logs to Nexus ---> uname -a: Linux prd-ubuntu1804-docker-8c-8g-17885 4.15.0-192-generic #203-Ubuntu SMP Wed Aug 10 17:40:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ---> lscpu: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8 On-line CPU(s) list: 0-7 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 8 NUMA node(s): 1 Vendor ID: AuthenticAMD CPU family: 23 Model: 49 Model name: AMD EPYC-Rome Processor Stepping: 0 CPU MHz: 2799.998 BogoMIPS: 5599.99 Virtualization: AMD-V Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 512K L3 cache: 16384K NUMA node0 CPU(s): 0-7 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl xtopology cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr arat npt nrip_save umip rdpid arch_capabilities ---> nproc: 8 ---> df -h: Filesystem Size Used Avail Use% Mounted on udev 16G 0 16G 0% /dev tmpfs 3.2G 708K 3.2G 1% /run /dev/vda1 155G 13G 143G 8% / tmpfs 16G 0 16G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 16G 0 16G 0% /sys/fs/cgroup /dev/vda15 105M 4.4M 100M 5% /boot/efi tmpfs 3.2G 0 3.2G 0% /run/user/1001 ---> free -m: total used free shared buff/cache available Mem: 32167 827 26530 0 4808 30883 Swap: 1023 0 1023 ---> ip addr: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 link/ether fa:16:3e:48:20:24 brd ff:ff:ff:ff:ff:ff inet 10.30.107.202/23 brd 10.30.107.255 scope global dynamic ens3 valid_lft 85832sec preferred_lft 85832sec inet6 fe80::f816:3eff:fe48:2024/64 scope link valid_lft forever preferred_lft forever 3: docker0: mtu 1500 qdisc noqueue state DOWN group default link/ether 02:42:c1:72:15:60 brd ff:ff:ff:ff:ff:ff inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 valid_lft forever preferred_lft forever ---> sar -b -r -n DEV: Linux 4.15.0-192-generic (prd-ubuntu1804-docker-8c-8g-17885) 03/25/24 _x86_64_ (8 CPU) 02:48:44 LINUX RESTART (8 CPU) 02:49:01 tps rtps wtps bread/s bwrtn/s 02:50:01 160.56 83.39 77.17 6119.78 58865.66 02:51:01 105.62 17.41 88.20 1236.33 28851.32 02:52:01 116.93 9.61 107.31 1691.17 31644.79 02:53:01 385.57 11.80 373.77 782.74 101225.76 02:54:01 19.35 0.52 18.83 23.60 22808.72 02:55:01 14.35 0.00 14.35 0.00 19791.02 02:56:01 19.36 0.00 19.36 0.00 20546.81 02:57:01 18.61 0.03 18.58 3.47 15726.85 02:58:01 54.61 1.93 52.68 111.93 2493.14 Average: 99.44 13.85 85.58 1107.60 33548.44 02:49:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 02:50:01 30220640 31683692 2718580 8.25 56152 1726212 1489296 4.38 884652 1559672 87880 02:51:01 29959396 31719600 2979824 9.05 79644 1982300 1413276 4.16 856852 1812028 117408 02:52:01 27488512 31678816 5450708 16.55 111604 4301336 1582276 4.66 981804 4039760 2121804 02:53:01 25391052 29948872 7548168 22.92 132848 4549692 7203652 21.19 2801692 4242616 424 02:54:01 23713724 28421120 9225496 28.01 133128 4663248 10224168 30.08 4366340 4339120 284 02:55:01 23711724 28419520 9227496 28.01 133168 4663432 10203980 30.02 4367656 4339304 336 02:56:01 23325896 28040664 9613324 29.19 133344 4667980 10316668 30.35 4751104 4337792 172 02:57:01 23366356 28108280 9572864 29.06 133592 4696844 9597356 28.24 4701304 4352872 132 02:58:01 27176172 31632796 5763048 17.50 135336 4521468 1504348 4.43 1208172 4087952 2644 Average: 26039275 29961484 6899945 20.95 116535 3974724 5948336 17.50 2768842 3679013 259009 02:49:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 02:50:01 lo 1.87 1.87 0.19 0.19 0.00 0.00 0.00 0.00 02:50:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 02:50:01 ens3 375.62 249.61 1544.42 60.37 0.00 0.00 0.00 0.00 02:51:01 lo 1.33 1.33 0.13 0.13 0.00 0.00 0.00 0.00 02:51:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 02:51:01 ens3 40.76 28.26 551.37 6.30 0.00 0.00 0.00 0.00 02:52:01 lo 10.80 10.80 0.99 0.99 0.00 0.00 0.00 0.00 02:52:01 br-65b5057df63a 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 02:52:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 02:52:01 ens3 564.66 320.24 19403.17 24.81 0.00 0.00 0.00 0.00 02:53:01 veth9b3ed3b 1.32 1.48 0.08 0.09 0.00 0.00 0.00 0.00 02:53:01 veth2423c3a 50.52 61.39 19.71 16.44 0.00 0.00 0.00 0.00 02:53:01 lo 1.07 1.07 0.08 0.08 0.00 0.00 0.00 0.00 02:53:01 veth63dbdf9 0.13 0.62 0.01 0.04 0.00 0.00 0.00 0.00 02:54:01 veth9b3ed3b 22.31 18.70 8.64 26.59 0.00 0.00 0.00 0.00 02:54:01 veth2423c3a 21.20 26.50 28.83 10.01 0.00 0.00 0.00 0.00 02:54:01 lo 5.12 5.12 9.73 9.73 0.00 0.00 0.00 0.00 02:54:01 veth63dbdf9 2.10 2.15 7.84 2.59 0.00 0.00 0.00 0.00 02:55:01 veth9b3ed3b 3.30 3.03 1.49 1.08 0.00 0.00 0.00 0.00 02:55:01 veth2423c3a 1.40 2.02 0.88 0.53 0.00 0.00 0.00 0.00 02:55:01 lo 5.63 5.63 0.84 0.84 0.00 0.00 0.00 0.00 02:55:01 veth63dbdf9 0.45 0.28 0.05 0.07 0.00 0.00 0.00 0.00 02:56:01 veth9b3ed3b 103.22 84.35 35.15 176.05 0.00 0.00 0.00 0.01 02:56:01 veth2423c3a 126.88 157.79 268.47 51.98 0.00 0.00 0.00 0.02 02:56:01 lo 17.28 17.28 32.12 32.12 0.00 0.00 0.00 0.00 02:56:01 veth63dbdf9 6.33 6.90 15.37 5.39 0.00 0.00 0.00 0.00 02:57:01 veth9b3ed3b 1.30 1.52 0.51 0.12 0.00 0.00 0.00 0.00 02:57:01 veth2423c3a 0.00 0.02 0.00 0.00 0.00 0.00 0.00 0.00 02:57:01 lo 15.30 15.30 0.96 0.96 0.00 0.00 0.00 0.00 02:57:01 veth63dbdf9 1.28 1.08 0.12 0.14 0.00 0.00 0.00 0.00 02:58:01 lo 0.67 0.67 0.07 0.07 0.00 0.00 0.00 0.00 02:58:01 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 02:58:01 ens3 1079.66 673.38 21581.72 158.49 0.00 0.00 0.00 0.00 Average: lo 6.56 6.56 5.01 5.01 0.00 0.00 0.00 0.00 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 Average: ens3 119.35 74.19 2398.34 17.54 0.00 0.00 0.00 0.00 ---> sar -P ALL: Linux 4.15.0-192-generic (prd-ubuntu1804-docker-8c-8g-17885) 03/25/24 _x86_64_ (8 CPU) 02:48:44 LINUX RESTART (8 CPU) 02:49:01 CPU %user %nice %system %iowait %steal %idle 02:50:01 all 9.29 0.00 1.77 5.43 0.05 83.47 02:50:01 0 5.86 0.00 0.73 0.38 0.05 92.97 02:50:01 1 4.85 0.00 1.12 0.79 0.05 93.19 02:50:01 2 21.66 0.00 1.92 2.26 0.07 74.09 02:50:01 3 24.12 0.00 2.09 9.85 0.07 63.86 02:50:01 4 5.04 0.00 1.13 5.21 0.03 88.59 02:50:01 5 7.60 0.00 0.85 1.12 0.02 90.41 02:50:01 6 2.50 0.00 5.31 23.47 0.07 68.65 02:50:01 7 2.70 0.00 1.02 0.47 0.02 95.79 02:51:01 all 9.98 0.00 0.81 3.17 0.03 86.01 02:51:01 0 1.27 0.00 0.22 2.48 0.05 95.99 02:51:01 1 0.47 0.00 0.57 15.13 0.02 83.81 02:51:01 2 18.68 0.00 1.69 0.84 0.05 78.75 02:51:01 3 33.94 0.00 1.65 1.82 0.07 62.52 02:51:01 4 13.43 0.00 0.79 1.00 0.03 84.75 02:51:01 5 8.95 0.00 0.65 0.68 0.03 89.68 02:51:01 6 0.72 0.00 0.35 3.05 0.00 95.88 02:51:01 7 2.43 0.00 0.52 0.40 0.02 96.63 02:52:01 all 12.52 0.00 5.06 2.52 0.10 79.80 02:52:01 0 8.67 0.00 4.70 11.94 0.08 74.61 02:52:01 1 11.00 0.00 4.70 2.12 0.12 82.05 02:52:01 2 11.20 0.00 3.96 1.80 0.07 82.98 02:52:01 3 27.30 0.00 7.00 2.23 0.14 63.33 02:52:01 4 14.71 0.00 4.65 0.44 0.08 80.11 02:52:01 5 8.53 0.00 5.10 0.70 0.08 85.59 02:52:01 6 12.42 0.00 5.98 0.73 0.10 80.77 02:52:01 7 6.43 0.00 4.38 0.19 0.07 88.93 02:53:01 all 19.09 0.00 4.51 9.69 0.10 66.61 02:53:01 0 20.49 0.00 4.66 17.96 0.12 56.77 02:53:01 1 21.26 0.00 5.61 22.09 0.12 50.92 02:53:01 2 16.96 0.00 4.04 17.08 0.10 61.82 02:53:01 3 19.50 0.00 3.67 7.71 0.10 69.01 02:53:01 4 20.99 0.00 4.64 3.49 0.10 70.78 02:53:01 5 17.23 0.00 4.54 8.00 0.10 70.13 02:53:01 6 19.91 0.00 4.64 0.54 0.10 74.80 02:53:01 7 16.41 0.00 4.23 0.61 0.10 78.64 02:54:01 all 19.18 0.00 3.09 1.66 0.08 75.99 02:54:01 0 19.63 0.00 3.23 0.02 0.07 77.06 02:54:01 1 18.31 0.00 2.74 11.46 0.08 67.40 02:54:01 2 17.15 0.00 2.90 1.71 0.07 78.17 02:54:01 3 20.50 0.00 2.91 0.00 0.08 76.50 02:54:01 4 14.07 0.00 1.98 0.00 0.05 83.89 02:54:01 5 20.76 0.00 3.22 0.00 0.08 75.94 02:54:01 6 20.20 0.00 3.81 0.07 0.10 75.82 02:54:01 7 22.82 0.00 3.94 0.00 0.08 73.16 02:55:01 all 0.83 0.00 0.11 1.36 0.03 97.67 02:55:01 0 0.47 0.00 0.15 0.00 0.03 99.35 02:55:01 1 0.97 0.00 0.07 10.82 0.02 88.13 02:55:01 2 0.89 0.00 0.10 0.00 0.03 98.98 02:55:01 3 0.89 0.00 0.07 0.00 0.03 99.01 02:55:01 4 1.27 0.00 0.07 0.00 0.02 98.65 02:55:01 5 0.67 0.00 0.20 0.00 0.05 99.08 02:55:01 6 0.62 0.00 0.10 0.00 0.02 99.26 02:55:01 7 0.88 0.00 0.08 0.00 0.02 99.02 02:56:01 all 7.66 0.00 0.83 1.08 0.06 90.37 02:56:01 0 6.39 0.00 0.54 0.10 0.07 92.91 02:56:01 1 7.90 0.00 0.89 8.49 0.07 82.65 02:56:01 2 7.26 0.00 0.90 0.02 0.05 91.77 02:56:01 3 7.19 0.00 0.69 0.00 0.05 92.07 02:56:01 4 8.03 0.00 0.82 0.00 0.05 91.10 02:56:01 5 7.91 0.00 0.99 0.03 0.05 91.02 02:56:01 6 8.40 0.00 0.99 0.02 0.07 90.53 02:56:01 7 8.14 0.00 0.90 0.03 0.08 90.85 02:57:01 all 1.27 0.00 0.44 4.19 0.06 94.04 02:57:01 0 1.10 0.00 0.47 0.65 0.08 97.70 02:57:01 1 0.90 0.00 0.37 31.29 0.07 67.37 02:57:01 2 0.69 0.00 0.39 0.02 0.07 98.84 02:57:01 3 1.48 0.00 0.44 0.13 0.07 97.88 02:57:01 4 1.19 0.00 0.33 0.45 0.05 97.97 02:57:01 5 1.02 0.00 0.45 0.40 0.07 98.06 02:57:01 6 2.04 0.00 0.48 0.57 0.07 96.84 02:57:01 7 1.74 0.00 0.54 0.02 0.05 97.66 02:58:01 all 6.69 0.00 0.63 0.36 0.03 92.29 02:58:01 0 5.64 0.00 0.82 1.69 0.03 91.83 02:58:01 1 6.77 0.00 0.55 0.40 0.02 92.27 02:58:01 2 0.57 0.00 0.47 0.00 0.02 98.95 02:58:01 3 3.13 0.00 0.54 0.12 0.02 96.20 02:58:01 4 13.14 0.00 0.62 0.18 0.07 86.00 02:58:01 5 7.97 0.00 0.70 0.22 0.03 91.08 02:58:01 6 0.88 0.00 0.53 0.13 0.02 98.43 02:58:01 7 15.37 0.00 0.82 0.15 0.03 83.63 Average: all 9.59 0.00 1.91 3.27 0.06 85.18 Average: 0 7.70 0.00 1.72 3.90 0.07 86.62 Average: 1 8.01 0.00 1.83 11.40 0.06 78.69 Average: 2 10.54 0.00 1.81 2.62 0.06 84.96 Average: 3 15.33 0.00 2.11 2.43 0.07 80.06 Average: 4 10.18 0.00 1.66 1.20 0.05 86.90 Average: 5 8.94 0.00 1.84 1.23 0.06 87.93 Average: 6 7.48 0.00 2.45 3.17 0.06 86.83 Average: 7 8.53 0.00 1.81 0.21 0.05 89.40