diff options
author | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-10-08 11:57:13 +0100 |
---|---|---|
committer | a.sreekumar <ajith.sreekumar@bell.ca> | 2021-10-08 14:45:24 +0100 |
commit | d3719ee727e12ecdcf84fdbab8774be9f00eba0d (patch) | |
tree | d961c22c0cc112d9d2f4a3f01301cef9779c3eaa /testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx | |
parent | e035272e96ed241bbe3192c9c8fcadc975514608 (diff) |
APEX-PDP S3P changes for Istanbul
Change-Id: I58f564ef19df39f2c0fff64a72c9f083faf88556
Issue-ID: POLICY-3655
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx')
-rw-r--r-- | testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx | 6142 |
1 files changed, 5487 insertions, 655 deletions
diff --git a/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx b/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx index afeb77fab..60879c202 100644 --- a/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx +++ b/testsuites/apex-pdp-stability/src/main/resources/apexPdpStabilityTestPlan.jmx @@ -4,6 +4,7 @@ ONAP Apex-PDP ================================================================================ Copyright (C) 2020-2021 Nordix Foundation.All rights reserved. + Modifications Copyright (C) 2021 Bell Canada. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -18,7 +19,7 @@ limitations under the License. ============LICENSE_END========================================================= --> -<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3"> +<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.1"> <hashTree> <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="APEX PDP STABILITY TEST PLAN" enabled="true"> <stringProp name="TestPlan.comments"></stringProp> @@ -67,43 +68,48 @@ </elementProp> <elementProp name="threadsTimeOutInMs" elementType="Argument"> <stringProp name="Argument.name">threadsTimeOutInMs</stringProp> - <stringProp name="Argument.value">${__P(threadsTimeOutInMs,5000)}</stringProp> + <stringProp name="Argument.value">${__P(threadsTimeOutInMs,2000)}</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> <elementProp name="wait" elementType="Argument"> <stringProp name="Argument.name">wait</stringProp> - <stringProp name="Argument.value">${__P(wait,10000)}</stringProp> + <stringProp name="Argument.value">${__P(wait,5000)}</stringProp> <stringProp name="Argument.desc">Wait time between requests to apex-pdp</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> <elementProp name="PAP_PORT" elementType="Argument"> <stringProp name="Argument.name">PAP_PORT</stringProp> - <stringProp name="Argument.value">${__P(PAP_PORT,30211)}</stringProp> + <stringProp name="Argument.value">${__P(PAP_PORT,31262)}</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> <elementProp name="API_PORT" elementType="Argument"> <stringProp name="Argument.name">API_PORT</stringProp> - <stringProp name="Argument.value">${__P(API_PORT,30785)}</stringProp> + <stringProp name="Argument.value">${__P(API_PORT,30421)}</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> <elementProp name="APEX_PORT" elementType="Argument"> <stringProp name="Argument.name">APEX_PORT</stringProp> - <stringProp name="Argument.value">${__P(APEX_PORT,30687)}</stringProp> + <stringProp name="Argument.value">${__P(APEX_PORT,31151)}</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> <elementProp name="DMAAP_PORT" elementType="Argument"> <stringProp name="Argument.name">DMAAP_PORT</stringProp> - <stringProp name="Argument.value">${__P(DMAAP_PORT,31345)}</stringProp> + <stringProp name="Argument.value">${__P(DMAAP_PORT,31054)}</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> <elementProp name="HOSTNAME" elementType="Argument"> <stringProp name="Argument.name">HOSTNAME</stringProp> - <stringProp name="Argument.value">${__P(HOSTNAME,10.2.0.120)}</stringProp> + <stringProp name="Argument.value">${__P(HOSTNAME,172.16.2.18)}</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> <elementProp name="LOG_PATH" elementType="Argument"> <stringProp name="Argument.name">LOG_PATH</stringProp> - <stringProp name="Argument.value">${__P(LOG_PATH,/home/arkadiusza/apex_stability)}</stringProp> + <stringProp name="Argument.value">${__P(LOG_PATH,/home/asreekumar/jmeter_results/apex_stability)}</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + <elementProp name="SIM_HOST" elementType="Argument"> + <stringProp name="Argument.name">SIM_HOST</stringProp> + <stringProp name="Argument.value">${__P(SIM_HOST,172.16.2.18)}</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> </collectionProp> @@ -150,7 +156,7 @@ <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> </SetupThreadGroup> <hashTree> - <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Create Policy" enabled="true"> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="CreatePolicy-ApexExample" enabled="true"> <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <collectionProp name="Arguments.arguments"> @@ -161,15 +167,17 @@ "topology_template": {
 "policies": [
 {
 - "operational.apex.stabilityTestDefaultDomain": {
 + "onap.policies.apex.Example": {
 "type": "onap.policies.native.Apex",
 "type_version": "1.0.0",
 + "name": "onap.policies.apex.Example",
 + "version": "1.0.0",
 "properties": {
 "engineServiceParameters": {
 - "name": "MyApexEngine",
 + "name": "NSOApexEngine",
 "version": "0.0.1",
 "id": 45,
 - "instanceCount": 4,
 + "instanceCount": 5,
 "deploymentPort": 12561,
 "engineParameters": {
 "executorParameters": {
 @@ -184,467 +192,599 @@ "parameterClassName": "org.onap.policy.apex.plugins.context.schema.avro.AvroSchemaHelperParameters"
 }
 }
 - }
 + },
 + "taskParameters": [
 + {
 + "key": "logUrl",
 + "value": "http://172.16.2.18:31054/events/APEX-CL-MGT"
 + }
 + ]
 },
 "policy_type_impl": {
 "apexPolicyModel": {
 "key": {
 - "name": "APEXgRPCPolicy",
 + "name": "onap.policies.apex.Example",
 "version": "0.0.1"
 },
 "keyInformation": {
 "key": {
 - "name": "APEXgRPCPolicy_KeyInfo",
 + "name": "onap.policies.apex.Example_KeyInfo",
 "version": "0.0.1"
 },
 "keyInfoMap": {
 "entry": [
 {
 "key": {
 - "name": "APEXgRPCPolicy",
 + "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": "APEXgRPCPolicy",
 + "name": "ApexExample_AAIRequestEvent",
 "version": "0.0.1"
 },
 - "UUID": "b8424cdb-29fb-3566-b77a-f4f847d81cc9",
 - "description": "Generated description for concept referred to by key \"APEXgRPCPolicy: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": "APEXgRPCPolicy_Albums",
 + "name": "ApexExample_AAISuccessResponseEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "APEXgRPCPolicy_Albums",
 + "name": "ApexExample_AAISuccessResponseEvent",
 "version": "0.0.1"
 },
 - "UUID": "9922906c-ccaa-34f7-95e2-bcc36e77821b",
 - "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Albums: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": "APEXgRPCPolicy_Events",
 + "name": "ApexExample_AAISuccessResponseHandlerPolicy",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "APEXgRPCPolicy_Events",
 + "name": "ApexExample_AAISuccessResponseHandlerPolicy",
 "version": "0.0.1"
 },
 - "UUID": "5bf28afd-787c-3138-a3e1-b33ad94a038a",
 - "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Events: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": "APEXgRPCPolicy_KeyInfo",
 + "name": "ApexExample_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "APEXgRPCPolicy_KeyInfo",
 + "name": "ApexExample_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 - "UUID": "68abaa6f-8d03-3a53-9590-007115817d5c",
 - "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_KeyInfo: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": "APEXgRPCPolicy_Policies",
 + "name": "ApexExample_CDSConfigModifyFailureResponseEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "APEXgRPCPolicy_Policies",
 + "name": "ApexExample_CDSConfigModifyFailureResponseEvent",
 "version": "0.0.1"
 },
 - "UUID": "819d06c3-33c2-3031-aa78-96281aa4270a",
 - "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Policies: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": "APEXgRPCPolicy_Schemas",
 + "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "APEXgRPCPolicy_Schemas",
 + "name": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
 "version": "0.0.1"
 },
 - "UUID": "8e67d466-f990-3a39-9fd7-4490cac342dc",
 - "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Schemas: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": "APEXgRPCPolicy_Tasks",
 + "name": "ApexExample_CDSConfigModifyFailureResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "APEXgRPCPolicy_Tasks",
 + "name": "ApexExample_CDSConfigModifyFailureResponseTask",
 "version": "0.0.1"
 },
 - "UUID": "4668db3d-6fe2-3885-8e47-f30cd0102f0a",
 - "description": "Generated description for concept referred to by key \"APEXgRPCPolicy_Tasks: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": "CDSActionIdentifiersType",
 + "name": "ApexExample_CDSConfigModifyRequestEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSActionIdentifiersType",
 + "name": "ApexExample_CDSConfigModifyRequestEvent",
 "version": "0.0.1"
 },
 - "UUID": "6e5fa19b-14df-37e3-a4ae-8c537e861a82",
 - "description": "Generated description for concept referred to by key \"CDSActionIdentifiersType: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": "CDSCreateSubscriptionPayloadType",
 + "name": "ApexExample_CDSConfigModifyResponsePayloadType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSCreateSubscriptionPayloadType",
 + "name": "ApexExample_CDSConfigModifyResponsePayloadType",
 "version": "0.0.1"
 },
 - "UUID": "8350ac5e-c157-38b9-9614-a0f93a830e60",
 - "description": "Generated description for concept referred to by key \"CDSCreateSubscriptionPayloadType: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": "CDSDeleteSubscriptionPayloadType",
 + "name": "ApexExample_CDSConfigModifySuccessResponseEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSDeleteSubscriptionPayloadType",
 + "name": "ApexExample_CDSConfigModifySuccessResponseEvent",
 "version": "0.0.1"
 },
 - "UUID": "12658406-9147-3c9d-a38c-5ad5e30b092b",
 - "description": "Generated description for concept referred to by key \"CDSDeleteSubscriptionPayloadType: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": "CDSRequestCommonHeaderType",
 + "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSRequestCommonHeaderType",
 + "name": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
 "version": "0.0.1"
 },
 - "UUID": "35590ac0-062c-39f1-8786-b4ff716e30b1",
 - "description": "Generated description for concept referred to by key \"CDSRequestCommonHeaderType: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": "CDSResponseCommonHeaderType",
 + "name": "ApexExample_CDSConfigModifySuccessResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseCommonHeaderType",
 + "name": "ApexExample_CDSConfigModifySuccessResponseTask",
 "version": "0.0.1"
 },
 - "UUID": "dd7e1805-885a-350b-aaf9-ed541321ae3c",
 - "description": "Generated description for concept referred to by key \"CDSResponseCommonHeaderType: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": "CDSResponseEvent",
 + "name": "ApexExample_CDSFailureResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseEvent",
 + "name": "ApexExample_CDSFailureResponseCommonHeaderType",
 "version": "0.0.1"
 },
 - "UUID": "15161037-9ac8-3223-820f-4e743562a345",
 - "description": "Generated description for concept referred to by key \"CDSResponseEvent: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": "CDSResponsePayloadType",
 + "name": "ApexExample_CDSFailureResponseStatusType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponsePayloadType",
 + "name": "ApexExample_CDSFailureResponseStatusType",
 "version": "0.0.1"
 },
 - "UUID": "97dc5f58-25bb-3c20-8d53-fdb70d7ca256",
 - "description": "Generated description for concept referred to by key \"CDSResponsePayloadType: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": "CDSResponsePolicy",
 + "name": "ApexExample_CDSRequestCommonHeaderType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponsePolicy",
 + "name": "ApexExample_CDSRequestCommonHeaderType",
 "version": "0.0.1"
 },
 - "UUID": "c28b05a8-7436-3ac0-82ca-6d5fc18c9584",
 - "description": "Generated description for concept referred to by key \"CDSResponsePolicy: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": "CDSResponseStatusEvent",
 + "name": "ApexExample_CDSRequestPayloadType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseStatusEvent",
 + "name": "ApexExample_CDSRequestPayloadType",
 "version": "0.0.1"
 },
 - "UUID": "7986e21b-32f7-302e-9554-31f21b673493",
 - "description": "Generated description for concept referred to by key \"CDSResponseStatusEvent: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": "CDSResponseStatusType",
 + "name": "ApexExample_CDSRestartFailureResponseEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseStatusType",
 + "name": "ApexExample_CDSRestartFailureResponseEvent",
 "version": "0.0.1"
 },
 - "UUID": "92b8a2cf-344e-3ce1-8cc0-2b7d3cb695fa",
 - "description": "Generated description for concept referred to by key \"CDSResponseStatusType: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": "CDSResponseTask",
 + "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseTask",
 + "name": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
 "version": "0.0.1"
 },
 - "UUID": "d22c78a5-272c-391d-8083-28588280caf9",
 - "description": "Generated description for concept referred to by key \"CDSResponseTask: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": "CreateSubscriptionPayloadEvent",
 + "name": "ApexExample_CDSRestartFailureResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CreateSubscriptionPayloadEvent",
 + "name": "ApexExample_CDSRestartFailureResponseTask",
 "version": "0.0.1"
 },
 - "UUID": "92162397-1a8e-3a3f-a469-d2af7700af4a",
 - "description": "Generated description for concept referred to by key \"CreateSubscriptionPayloadEvent: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": "CreateSubscriptionPayloadTask",
 + "name": "ApexExample_CDSRestartRequestEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CreateSubscriptionPayloadTask",
 + "name": "ApexExample_CDSRestartRequestEvent",
 "version": "0.0.1"
 },
 - "UUID": "bc0c69f0-52ed-38ea-b468-ae4a6fd1730d",
 - "description": "Generated description for concept referred to by key \"CreateSubscriptionPayloadTask: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": "CreateSubscriptionRequestEvent",
 + "name": "ApexExample_CDSRestartResponsePayloadType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CreateSubscriptionRequestEvent",
 + "name": "ApexExample_CDSRestartResponsePayloadType",
 "version": "0.0.1"
 },
 - "UUID": "7cfcf843-337e-3f41-b755-5043cb0a08fc",
 - "description": "Generated description for concept referred to by key \"CreateSubscriptionRequestEvent: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": "CreateSubscriptionRequestTask",
 + "name": "ApexExample_CDSRestartSuccessResponseEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CreateSubscriptionRequestTask",
 + "name": "ApexExample_CDSRestartSuccessResponseEvent",
 "version": "0.0.1"
 },
 - "UUID": "89cb75e9-f06c-30d3-b4ff-698d45f63869",
 - "description": "Generated description for concept referred to by key \"CreateSubscriptionRequestTask: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": "DeleteSubscriptionPayloadEvent",
 + "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "DeleteSubscriptionPayloadEvent",
 + "name": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
 "version": "0.0.1"
 },
 - "UUID": "994fa441-04ab-33bb-832d-1cd12ab5d074",
 - "description": "Generated description for concept referred to by key \"DeleteSubscriptionPayloadEvent: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": "DeleteSubscriptionPayloadTask",
 + "name": "ApexExample_CDSRestartSuccessResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "DeleteSubscriptionPayloadTask",
 + "name": "ApexExample_CDSRestartSuccessResponseTask",
 "version": "0.0.1"
 },
 - "UUID": "0f519117-5fea-3e4b-941f-8f778100465f",
 - "description": "Generated description for concept referred to by key \"DeleteSubscriptionPayloadTask: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": "DeleteSubscriptionRequestEvent",
 + "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "DeleteSubscriptionRequestEvent",
 + "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
 "version": "0.0.1"
 },
 - "UUID": "15d618d8-1689-3a05-89a5-05efa9388f65",
 - "description": "Generated description for concept referred to by key \"DeleteSubscriptionRequestEvent: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": "DeleteSubscriptionRequestTask",
 + "name": "ApexExample_CDSSuccessResponseStatusType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "DeleteSubscriptionRequestTask",
 + "name": "ApexExample_CDSSuccessResponseStatusType",
 "version": "0.0.1"
 },
 - "UUID": "acb772fe-d442-39e3-98f9-b1080caf4150",
 - "description": "Generated description for concept referred to by key \"DeleteSubscriptionRequestTask: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": "PMSubscriptionAlbum",
 + "name": "ApexExample_EventDetailsAlbum",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "PMSubscriptionAlbum",
 + "name": "ApexExample_EventDetailsAlbum",
 "version": "0.0.1"
 },
 - "UUID": "c2bd6f0d-6854-317a-9be2-97c08338428c",
 - "description": "Generated description for concept referred to by key \"PMSubscriptionAlbum: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": "PMSubscriptionOutputEvent",
 + "name": "ApexExample_EventDetailsAlbumType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "PMSubscriptionOutputEvent",
 + "name": "ApexExample_EventDetailsAlbumType",
 "version": "0.0.1"
 },
 - "UUID": "992b7819-9f69-3aa0-bb0f-6e45ea15ce05",
 - "description": "Generated description for concept referred to by key \"PMSubscriptionOutputEvent: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": "PMSubscriptionType",
 + "name": "ApexExample_HandleAAIFailureResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "PMSubscriptionType",
 + "name": "ApexExample_HandleAAIFailureResponseTask",
 "version": "0.0.1"
 },
 - "UUID": "73c1c397-4fc3-357f-93b6-a8ad707fbaae",
 - "description": "Generated description for concept referred to by key \"PMSubscriptionType: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": "ReceiveEventPolicy",
 + "name": "ApexExample_HandleAAISuccessResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "ReceiveEventPolicy",
 + "name": "ApexExample_HandleAAISuccessResponseTask",
 "version": "0.0.1"
 },
 - "UUID": "568b7345-9de1-36d3-b6a3-9b857e6809a1",
 - "description": "Generated description for concept referred to by key \"ReceiveEventPolicy: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": "ReceivePMSubscriptionTask",
 + "name": "ApexExample_HandleVesEventTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "ReceivePMSubscriptionTask",
 + "name": "ApexExample_HandleVesEventTask",
 "version": "0.0.1"
 },
 - "UUID": "6c1c6c45-26e0-3591-94bf-679d20e283f4",
 - "description": "Generated description for concept referred to by key \"ReceivePMSubscriptionTask: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": "SimpleIntType",
 + "name": "ApexExample_LogStatusEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "SimpleIntType",
 + "name": "ApexExample_LogStatusEvent",
 "version": "0.0.1"
 },
 - "UUID": "153791fd-ae0a-36a7-88a5-309a7936415d",
 - "description": "Generated description for concept referred to by key \"SimpleIntType: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\""
 }
 },
 {
 @@ -663,58 +803,100 @@ },
 {
 "key": {
 - "name": "SubscriptionStatusType",
 + "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": "SubscriptionStatusType",
 + "name": "onap.policies.apex.Example_Albums",
 "version": "0.0.1"
 },
 - "UUID": "597643b1-9db1-31ce-85d0-e1c63c43b30b",
 - "description": "Generated description for concept referred to by key \"SubscriptionStatusType: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": "SubscriptionType",
 + "name": "onap.policies.apex.Example_Events",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "SubscriptionType",
 + "name": "onap.policies.apex.Example_Events",
 "version": "0.0.1"
 },
 - "UUID": "184547bb-7d64-3cb2-a273-d7185102c5ce",
 - "description": "Generated description for concept referred to by key \"SubscriptionType: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": "UUIDType",
 + "name": "onap.policies.apex.Example_KeyInfo",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "UUIDType",
 + "name": "onap.policies.apex.Example_KeyInfo",
 "version": "0.0.1"
 },
 - "UUID": "6a8cc68e-dfc8-3403-9c6d-071c886b319c",
 - "description": "Generated description for concept referred to by key \"UUIDType: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": "testPolicyB",
 + "name": "onap.policies.apex.Example_Policies",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "testPolicyB",
 + "name": "onap.policies.apex.Example_Policies",
 "version": "0.0.1"
 },
 - "UUID": "ead590a3-ba2e-3a01-b6e9-9329f5c8fee1",
 - "description": "Generated description for concept referred to by key \"testPolicyB: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\""
 }
 }
 ]
 @@ -722,50 +904,50 @@ },
 "policies": {
 "key": {
 - "name": "APEXgRPCPolicy_Policies",
 + "name": "onap.policies.apex.Example_Policies",
 "version": "0.0.1"
 },
 "policyMap": {
 "entry": [
 {
 "key": {
 - "name": "CDSResponsePolicy",
 + "name": "ApexExample_AAIFailureResponseHandlerPolicy",
 "version": "0.0.1"
 },
 "value": {
 "policyKey": {
 - "name": "CDSResponsePolicy",
 + "name": "ApexExample_AAIFailureResponseHandlerPolicy",
 "version": "0.0.1"
 },
 "template": "Freestyle",
 "state": {
 "entry": [
 {
 - "key": "CDSResponseState",
 + "key": "ApexExample_ReceiveAAIFailureResponseState",
 "value": {
 "stateKey": {
 - "parentKeyName": "CDSResponsePolicy",
 + "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 "parentLocalName": "NULL",
 - "localName": "CDSResponseState"
 + "localName": "ApexExample_ReceiveAAIFailureResponseState"
 },
 "trigger": {
 - "name": "CDSResponseEvent",
 + "name": "ApexExample_AAIFailureResponseEvent",
 "version": "0.0.1"
 },
 "stateOutputs": {
 "entry": [
 {
 - "key": "ResponseOutput",
 + "key": "ApexExample_AAIFailureStateOutput",
 "value": {
 "key": {
 - "parentKeyName": "CDSResponsePolicy",
 + "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CDSResponseState",
 - "localName": "ResponseOutput"
 + "parentLocalName": "ApexExample_ReceiveAAIFailureResponseState",
 + "localName": "ApexExample_AAIFailureStateOutput"
 },
 "outgoingEvent": {
 - "name": "CDSResponseStatusEvent",
 + "name": "ApexExample_LogStatusEvent",
 "version": "0.0.1"
 },
 "nextState": {
 @@ -788,29 +970,29 @@ "entry": []
 },
 "defaultTask": {
 - "name": "CDSResponseTask",
 + "name": "ApexExample_HandleAAIFailureResponseTask",
 "version": "0.0.1"
 },
 "taskReferences": {
 "entry": [
 {
 "key": {
 - "name": "CDSResponseTask",
 + "name": "ApexExample_HandleAAIFailureResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "parentKeyName": "CDSResponsePolicy",
 + "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CDSResponseState",
 - "localName": "CDSResponsePolicy"
 + "parentLocalName": "ApexExample_ReceiveAAIFailureResponseState",
 + "localName": "ApexExample_AAIFailureResponseHandlerPolicy"
 },
 "outputType": "DIRECT",
 "output": {
 - "parentKeyName": "CDSResponsePolicy",
 + "parentKeyName": "ApexExample_AAIFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CDSResponseState",
 - "localName": "ResponseOutput"
 + "parentLocalName": "ApexExample_ReceiveAAIFailureResponseState",
 + "localName": "ApexExample_AAIFailureStateOutput"
 }
 }
 }
 @@ -820,173 +1002,336 @@ }
 ]
 },
 - "firstState": "CDSResponseState"
 + "firstState": "ApexExample_ReceiveAAIFailureResponseState"
 }
 },
 {
 "key": {
 - "name": "ReceiveEventPolicy",
 + "name": "ApexExample_AAISuccessResponseHandlerPolicy",
 "version": "0.0.1"
 },
 "value": {
 "policyKey": {
 - "name": "ReceiveEventPolicy",
 + "name": "ApexExample_AAISuccessResponseHandlerPolicy",
 "version": "0.0.1"
 },
 "template": "Freestyle",
 "state": {
 "entry": [
 {
 - "key": "CreateOrDeleteState",
 + "key": "ApexExample_ReceiveAAISuccessResponseState",
 "value": {
 "stateKey": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 "parentLocalName": "NULL",
 - "localName": "CreateOrDeleteState"
 + "localName": "ApexExample_ReceiveAAISuccessResponseState"
 },
 "trigger": {
 - "name": "PMSubscriptionOutputEvent",
 + "name": "ApexExample_AAISuccessResponseEvent",
 "version": "0.0.1"
 },
 "stateOutputs": {
 "entry": [
 {
 - "key": "CreateSubscriptionPayload",
 + "key": "ApexExample_AAISuccessStateOutput",
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_AAISuccessResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CreateOrDeleteState",
 - "localName": "CreateSubscriptionPayload"
 + "parentLocalName": "ApexExample_ReceiveAAISuccessResponseState",
 + "localName": "ApexExample_AAISuccessStateOutput"
 },
 "outgoingEvent": {
 - "name": "CreateSubscriptionPayloadEvent",
 + "name": "ApexExample_CDSConfigModifyRequestEvent",
 "version": "0.0.1"
 },
 "nextState": {
 - "parentKeyName": "ReceiveEventPolicy",
 - "parentKeyVersion": "0.0.1",
 + "parentKeyName": "NULL",
 + "parentKeyVersion": "0.0.0",
 "parentLocalName": "NULL",
 - "localName": "CreateSubscription"
 + "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": "DeleteSubscriptionPayload",
 + "key": "ApexExample_ConfigModifyFailureResponseOutput",
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CreateOrDeleteState",
 - "localName": "DeleteSubscriptionPayload"
 + "parentLocalName": "ApexExample_CDSConfigModifyFailureResponseState",
 + "localName": "ApexExample_ConfigModifyFailureResponseOutput"
 },
 "outgoingEvent": {
 - "name": "DeleteSubscriptionPayloadEvent",
 + "name": "ApexExample_LogStatusEvent",
 "version": "0.0.1"
 },
 "nextState": {
 - "parentKeyName": "ReceiveEventPolicy",
 - "parentKeyVersion": "0.0.1",
 + "parentKeyName": "NULL",
 + "parentKeyVersion": "0.0.0",
 "parentLocalName": "NULL",
 - "localName": "DeleteSubscription"
 + "localName": "NULL"
 }
 }
 }
 ]
 },
 - "contextAlbumReference": [
 - {
 - "name": "PMSubscriptionAlbum",
 - "version": "0.0.1"
 - }
 - ],
 + "contextAlbumReference": [],
 "taskSelectionLogic": {
 - "key": "TaskSelectionLogic",
 - "logicFlavour": "JAVASCRIPT",
 - "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix Foundation.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\nvar changeType = pmSubscriptionInfo.get(\"changeType\").toString()\n\nif (\"CREATE\".equals(changeType)) {\n executor.subject.getTaskKey(\"CreateSubscriptionPayloadTask\").copyTo(executor.selectedTask);\n}\nelse if (\"DELETE\".equals(changeType)) {\n executor.subject.getTaskKey(\"DeleteSubscriptionPayloadTask\").copyTo(executor.selectedTask);\n}\n\ntrue;"
 + "key": "NULL",
 + "logicFlavour": "UNDEFINED",
 + "logic": ""
 },
 "stateFinalizerLogicMap": {
 "entry": []
 },
 "defaultTask": {
 - "name": "CreateSubscriptionPayloadTask",
 + "name": "ApexExample_CDSConfigModifyFailureResponseTask",
 "version": "0.0.1"
 },
 "taskReferences": {
 "entry": [
 {
 "key": {
 - "name": "CreateSubscriptionPayloadTask",
 + "name": "ApexExample_CDSConfigModifyFailureResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CreateOrDeleteState",
 - "localName": "ReceiveEventPolicy"
 + "parentLocalName": "ApexExample_CDSConfigModifyFailureResponseState",
 + "localName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy"
 },
 "outputType": "DIRECT",
 "output": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSConfigModifyFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CreateOrDeleteState",
 - "localName": "CreateSubscriptionPayload"
 + "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": "DeleteSubscriptionPayloadTask",
 + "name": "ApexExample_CDSConfigModifySuccessResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CreateOrDeleteState",
 - "localName": "ReceiveEventPolicy"
 + "parentLocalName": "ApexExample_CDSConfigModifySuccessResponseState",
 + "localName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy"
 },
 "outputType": "DIRECT",
 "output": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSConfigModifySuccessResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CreateOrDeleteState",
 - "localName": "DeleteSubscriptionPayload"
 + "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": "CreateSubscription",
 + "key": "ApexExample_CDSRestartFailureResponseState",
 "value": {
 "stateKey": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 "parentLocalName": "NULL",
 - "localName": "CreateSubscription"
 + "localName": "ApexExample_CDSRestartFailureResponseState"
 },
 "trigger": {
 - "name": "CreateSubscriptionPayloadEvent",
 + "name": "ApexExample_CDSRestartFailureResponseEvent",
 "version": "0.0.1"
 },
 "stateOutputs": {
 "entry": [
 {
 - "key": "IssueCreateSubscriptionRequestOutput",
 + "key": "ApexExample_RestartFailureResponseOutput",
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CreateSubscription",
 - "localName": "IssueCreateSubscriptionRequestOutput"
 + "parentLocalName": "ApexExample_CDSRestartFailureResponseState",
 + "localName": "ApexExample_RestartFailureResponseOutput"
 },
 "outgoingEvent": {
 - "name": "CreateSubscriptionRequestEvent",
 + "name": "ApexExample_LogStatusEvent",
 "version": "0.0.1"
 },
 "nextState": {
 @@ -999,12 +1344,7 @@ }
 ]
 },
 - "contextAlbumReference": [
 - {
 - "name": "PMSubscriptionAlbum",
 - "version": "0.0.1"
 - }
 - ],
 + "contextAlbumReference": [],
 "taskSelectionLogic": {
 "key": "NULL",
 "logicFlavour": "UNDEFINED",
 @@ -1014,62 +1354,80 @@ "entry": []
 },
 "defaultTask": {
 - "name": "CreateSubscriptionRequestTask",
 + "name": "ApexExample_CDSRestartFailureResponseTask",
 "version": "0.0.1"
 },
 "taskReferences": {
 "entry": [
 {
 "key": {
 - "name": "CreateSubscriptionRequestTask",
 + "name": "ApexExample_CDSRestartFailureResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CreateSubscription",
 - "localName": "ReceiveEventPolicy"
 + "parentLocalName": "ApexExample_CDSRestartFailureResponseState",
 + "localName": "ApexExample_CDSRestartFailureResponseHandlerPolicy"
 },
 "outputType": "DIRECT",
 "output": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSRestartFailureResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "CreateSubscription",
 - "localName": "IssueCreateSubscriptionRequestOutput"
 + "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": "DeleteSubscription",
 + "key": "ApexExample_CDSRestartSuccessResponseState",
 "value": {
 "stateKey": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 "parentLocalName": "NULL",
 - "localName": "DeleteSubscription"
 + "localName": "ApexExample_CDSRestartSuccessResponseState"
 },
 "trigger": {
 - "name": "DeleteSubscriptionPayloadEvent",
 + "name": "ApexExample_CDSRestartSuccessResponseEvent",
 "version": "0.0.1"
 },
 "stateOutputs": {
 "entry": [
 {
 - "key": "IssueDeleteSubscriptionRequestOutput",
 + "key": "ApexExample_RestartSuccessResponseOutput",
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "DeleteSubscription",
 - "localName": "IssueDeleteSubscriptionRequestOutput"
 + "parentLocalName": "ApexExample_CDSRestartSuccessResponseState",
 + "localName": "ApexExample_RestartSuccessResponseOutput"
 },
 "outgoingEvent": {
 - "name": "DeleteSubscriptionRequestEvent",
 + "name": "ApexExample_LogStatusEvent",
 "version": "0.0.1"
 },
 "nextState": {
 @@ -1082,12 +1440,7 @@ }
 ]
 },
 - "contextAlbumReference": [
 - {
 - "name": "PMSubscriptionAlbum",
 - "version": "0.0.1"
 - }
 - ],
 + "contextAlbumReference": [],
 "taskSelectionLogic": {
 "key": "NULL",
 "logicFlavour": "UNDEFINED",
 @@ -1097,80 +1450,93 @@ "entry": []
 },
 "defaultTask": {
 - "name": "DeleteSubscriptionRequestTask",
 + "name": "ApexExample_CDSRestartSuccessResponseTask",
 "version": "0.0.1"
 },
 "taskReferences": {
 "entry": [
 {
 "key": {
 - "name": "DeleteSubscriptionRequestTask",
 + "name": "ApexExample_CDSRestartSuccessResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "DeleteSubscription",
 - "localName": "ReceiveEventPolicy"
 + "parentLocalName": "ApexExample_CDSRestartSuccessResponseState",
 + "localName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy"
 },
 "outputType": "DIRECT",
 "output": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_CDSRestartSuccessResponseHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "DeleteSubscription",
 - "localName": "IssueDeleteSubscriptionRequestOutput"
 + "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": "ReceiveSubscriptionState",
 + "key": "ApexExample_ReceiveVesState",
 "value": {
 "stateKey": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_VesEventHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 "parentLocalName": "NULL",
 - "localName": "ReceiveSubscriptionState"
 + "localName": "ApexExample_ReceiveVesState"
 },
 "trigger": {
 - "name": "testPolicyB",
 + "name": "ApexExample_VesEvent",
 "version": "0.0.1"
 },
 "stateOutputs": {
 "entry": [
 {
 - "key": "ReceivePMSubscriptionOutput",
 + "key": "ApexExample_VesOutput",
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_VesEventHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "ReceiveSubscriptionState",
 - "localName": "ReceivePMSubscriptionOutput"
 + "parentLocalName": "ApexExample_ReceiveVesState",
 + "localName": "ApexExample_VesOutput"
 },
 "outgoingEvent": {
 - "name": "PMSubscriptionOutputEvent",
 + "name": "ApexExample_AAIRequestEvent",
 "version": "0.0.1"
 },
 "nextState": {
 - "parentKeyName": "ReceiveEventPolicy",
 - "parentKeyVersion": "0.0.1",
 + "parentKeyName": "NULL",
 + "parentKeyVersion": "0.0.0",
 "parentLocalName": "NULL",
 - "localName": "CreateOrDeleteState"
 + "localName": "NULL"
 }
 }
 }
 ]
 },
 - "contextAlbumReference": [
 - {
 - "name": "PMSubscriptionAlbum",
 - "version": "0.0.1"
 - }
 - ],
 + "contextAlbumReference": [],
 "taskSelectionLogic": {
 "key": "NULL",
 "logicFlavour": "UNDEFINED",
 @@ -1180,29 +1546,29 @@ "entry": []
 },
 "defaultTask": {
 - "name": "ReceivePMSubscriptionTask",
 + "name": "ApexExample_HandleVesEventTask",
 "version": "0.0.1"
 },
 "taskReferences": {
 "entry": [
 {
 "key": {
 - "name": "ReceivePMSubscriptionTask",
 + "name": "ApexExample_HandleVesEventTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_VesEventHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "ReceiveSubscriptionState",
 - "localName": "ReceiveEventPolicy"
 + "parentLocalName": "ApexExample_ReceiveVesState",
 + "localName": "ApexExample_VesEventHandlerPolicy"
 },
 "outputType": "DIRECT",
 "output": {
 - "parentKeyName": "ReceiveEventPolicy",
 + "parentKeyName": "ApexExample_VesEventHandlerPolicy",
 "parentKeyVersion": "0.0.1",
 - "parentLocalName": "ReceiveSubscriptionState",
 - "localName": "ReceivePMSubscriptionOutput"
 + "parentLocalName": "ApexExample_ReceiveVesState",
 + "localName": "ApexExample_VesOutput"
 }
 }
 }
 @@ -1212,7 +1578,7 @@ }
 ]
 },
 - "firstState": "ReceiveSubscriptionState"
 + "firstState": "ApexExample_ReceiveVesState"
 }
 }
 ]
 @@ -1220,19 +1586,19 @@ },
 "tasks": {
 "key": {
 - "name": "APEXgRPCPolicy_Tasks",
 + "name": "onap.policies.apex.Example_Tasks",
 "version": "0.0.1"
 },
 "taskMap": {
 "entry": [
 {
 "key": {
 - "name": "CDSResponseTask",
 + "name": "ApexExample_CDSConfigModifyFailureResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseTask",
 + "name": "ApexExample_CDSConfigModifyFailureResponseTask",
 "version": "0.0.1"
 },
 "inputFields": {
 @@ -1242,7 +1608,7 @@ "value": {
 "key": "actionIdentifiers",
 "fieldSchemaKey": {
 - "name": "CDSActionIdentifiersType",
 + "name": "ApexExample_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1253,7 +1619,7 @@ "value": {
 "key": "commonHeader",
 "fieldSchemaKey": {
 - "name": "CDSResponseCommonHeaderType",
 + "name": "ApexExample_CDSFailureResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1264,7 +1630,7 @@ "value": {
 "key": "payload",
 "fieldSchemaKey": {
 - "name": "CDSResponsePayloadType",
 + "name": "ApexExample_CDSConfigModifyResponsePayloadType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1275,7 +1641,7 @@ "value": {
 "key": "status",
 "fieldSchemaKey": {
 - "name": "CDSResponseStatusType",
 + "name": "ApexExample_CDSFailureResponseStatusType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1286,11 +1652,11 @@ "outputFields": {
 "entry": [
 {
 - "key": "status",
 + "key": "message",
 "value": {
 - "key": "status",
 + "key": "message",
 "fieldSchemaKey": {
 - "name": "SubscriptionStatusType",
 + "name": "SimpleStringType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1303,35 +1669,68 @@ },
 "contextAlbumReference": [
 {
 - "name": "PMSubscriptionAlbum",
 + "name": "ApexExample_EventDetailsAlbum",
 "version": "0.0.1"
 }
 ],
 "taskLogic": {
 "key": "TaskLogic",
 "logicFlavour": "JAVASCRIPT",
 - "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\n\nvar uuidType = java.util.UUID;\n\nvar albumID = uuidType.fromString(\"d0050623-18e5-46c9-9298-9a567990cd7c\");\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(albumID.toString());\n\nvar responseStatus = executor.subject.getOutFieldSchemaHelper(\"status\").createNewInstance();\n\nresponseStatus.put(\"subscriptionName\", pmSubscriptionInfo.get(\"subscription\").get(\"subscriptionName\"))\nresponseStatus.put(\"nfName\", pmSubscriptionInfo.get(\"nfName\"))\nresponseStatus.put(\"changeType\", pmSubscriptionInfo.get(\"changeType\"))\n\nvar response = executor.inFields.get(\"payload\")\n\nif (\"failure\".equals(response.get(\"create_DasH_subscription_DasH_response\").get(\"odl_DasH_response\").get(\"status\"))) {\n responseStatus.put(\"message\", \"failed\")\n} else {\n responseStatus.put(\"message\", \"success\")\n}\n\nexecutor.outFields.put(\"status\", responseStatus)\n\ntrue;"
 + "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": "CreateSubscriptionPayloadTask",
 + "name": "ApexExample_CDSConfigModifySuccessResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CreateSubscriptionPayloadTask",
 + "name": "ApexExample_CDSConfigModifySuccessResponseTask",
 "version": "0.0.1"
 },
 "inputFields": {
 "entry": [
 {
 - "key": "albumID",
 + "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": "albumID",
 + "key": "payload",
 "fieldSchemaKey": {
 - "name": "UUIDType",
 + "name": "ApexExample_CDSConfigModifyResponsePayloadType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "status",
 + "value": {
 + "key": "status",
 + "fieldSchemaKey": {
 + "name": "ApexExample_CDSSuccessResponseStatusType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1342,11 +1741,22 @@ "outputFields": {
 "entry": [
 {
 - "key": "albumID",
 + "key": "actionIdentifiers",
 "value": {
 - "key": "albumID",
 + "key": "actionIdentifiers",
 "fieldSchemaKey": {
 - "name": "UUIDType",
 + "name": "ApexExample_CDSActionIdentifiersType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "commonHeader",
 + "value": {
 + "key": "commonHeader",
 + "fieldSchemaKey": {
 + "name": "ApexExample_CDSRequestCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1357,7 +1767,7 @@ "value": {
 "key": "payload",
 "fieldSchemaKey": {
 - "name": "CDSCreateSubscriptionPayloadType",
 + "name": "ApexExample_CDSRequestPayloadType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1370,35 +1780,46 @@ },
 "contextAlbumReference": [
 {
 - "name": "PMSubscriptionAlbum",
 + "name": "ApexExample_EventDetailsAlbum",
 "version": "0.0.1"
 }
 ],
 "taskLogic": {
 "key": "TaskLogic",
 "logicFlavour": "JAVASCRIPT",
 - "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"create_DasH_subscription_DasH_properties_record\");\n\npayloadProperties.put(\"nfName\", pmSubscriptionInfo.get(\"nfName\"))\npayloadProperties.put(\"subscriptionName\", pmSubscriptionInfo.get(\"subscription\").get(\"subscriptionName\"))\npayloadProperties.put(\"administrativeState\", pmSubscriptionInfo.get(\"subscription\").get(\"administrativeState\"))\npayloadProperties.put(\"fileBasedGP\", pmSubscriptionInfo.get(\"subscription\").get(\"fileBasedGP\").toString())\npayloadProperties.put(\"fileLocation\", pmSubscriptionInfo.get(\"subscription\").get(\"fileLocation\"))\npayloadProperties.put(\"measurementGroups\", pmSubscriptionInfo.get(\"subscription\").get(\"measurementGroups\"))\n\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"create_DasH_subscription_DasH_properties\", payloadProperties)\n\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"create_DasH_subscription_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"albumID\", executor.inFields.get(\"albumID\"))\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(\"Sending Create Subscription Event to CDS\")\n\ntrue;"
 + "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": "CreateSubscriptionRequestTask",
 + "name": "ApexExample_CDSRestartFailureResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CreateSubscriptionRequestTask",
 + "name": "ApexExample_CDSRestartFailureResponseTask",
 "version": "0.0.1"
 },
 "inputFields": {
 "entry": [
 {
 - "key": "albumID",
 + "key": "actionIdentifiers",
 + "value": {
 + "key": "actionIdentifiers",
 + "fieldSchemaKey": {
 + "name": "ApexExample_CDSActionIdentifiersType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "commonHeader",
 "value": {
 - "key": "albumID",
 + "key": "commonHeader",
 "fieldSchemaKey": {
 - "name": "UUIDType",
 + "name": "ApexExample_CDSFailureResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1409,7 +1830,18 @@ "value": {
 "key": "payload",
 "fieldSchemaKey": {
 - "name": "CDSCreateSubscriptionPayloadType",
 + "name": "ApexExample_CDSRestartResponsePayloadType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "status",
 + "value": {
 + "key": "status",
 + "fieldSchemaKey": {
 + "name": "ApexExample_CDSFailureResponseStatusType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1420,11 +1852,52 @@ "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": "CDSActionIdentifiersType",
 + "name": "ApexExample_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1435,7 +1908,7 @@ "value": {
 "key": "commonHeader",
 "fieldSchemaKey": {
 - "name": "CDSRequestCommonHeaderType",
 + "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1446,7 +1919,33 @@ "value": {
 "key": "payload",
 "fieldSchemaKey": {
 - "name": "CDSCreateSubscriptionPayloadType",
 + "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
 @@ -1459,35 +1958,35 @@ },
 "contextAlbumReference": [
 {
 - "name": "PMSubscriptionAlbum",
 + "name": "ApexExample_EventDetailsAlbum",
 "version": "0.0.1"
 }
 ],
 "taskLogic": {
 "key": "TaskLogic",
 "logicFlavour": "JAVASCRIPT",
 - "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\nvar payload = executor.inFields.get(\"payload\")\nvar actionName = \"create-subscription\"\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"originatorId\", \"sdnc\");\ncommonHeader.put(\"requestId\", \"123456-1000\");\ncommonHeader.put(\"subRequestId\", \"sub-123456-1000\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"actionName\", actionName);\nactionIdentifiers.put(\"blueprintName\", \"pm_control\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"mode\", \"sync\");\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(\"Sending Activate Subscription Event to CDS\")\n\ntrue;"
 + "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": "DeleteSubscriptionPayloadTask",
 + "name": "ApexExample_HandleAAIFailureResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "DeleteSubscriptionPayloadTask",
 + "name": "ApexExample_HandleAAIFailureResponseTask",
 "version": "0.0.1"
 },
 "inputFields": {
 "entry": [
 {
 - "key": "albumID",
 + "key": "requestError",
 "value": {
 - "key": "albumID",
 + "key": "requestError",
 "fieldSchemaKey": {
 - "name": "UUIDType",
 + "name": "ApexExample_AAIRequestErrorType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1498,22 +1997,11 @@ "outputFields": {
 "entry": [
 {
 - "key": "albumID",
 - "value": {
 - "key": "albumID",
 - "fieldSchemaKey": {
 - "name": "UUIDType",
 - "version": "0.0.1"
 - },
 - "optional": false
 - }
 - },
 - {
 - "key": "payload",
 + "key": "message",
 "value": {
 - "key": "payload",
 + "key": "message",
 "fieldSchemaKey": {
 - "name": "CDSDeleteSubscriptionPayloadType",
 + "name": "SimpleStringType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1526,46 +2014,167 @@ },
 "contextAlbumReference": [
 {
 - "name": "PMSubscriptionAlbum",
 + "name": "ApexExample_EventDetailsAlbum",
 "version": "0.0.1"
 }
 ],
 "taskLogic": {
 "key": "TaskLogic",
 "logicFlavour": "JAVASCRIPT",
 - "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\n\nvar payloadProperties = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"delete_DasH_subscription_DasH_properties_record\");\n\npayloadProperties.put(\"nfName\", pmSubscriptionInfo.get(\"nfName\"))\npayloadProperties.put(\"subscriptionName\", pmSubscriptionInfo.get(\"subscription\").get(\"subscriptionName\"))\npayloadProperties.put(\"administrativeState\", pmSubscriptionInfo.get(\"subscription\").get(\"administrativeState\"))\npayloadProperties.put(\"fileBasedGP\", pmSubscriptionInfo.get(\"subscription\").get(\"fileBasedGP\").toString())\npayloadProperties.put(\"fileLocation\", pmSubscriptionInfo.get(\"subscription\").get(\"fileLocation\"))\npayloadProperties.put(\"measurementGroups\", pmSubscriptionInfo.get(\"subscription\").get(\"measurementGroups\"))\n\nvar payloadEntry = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewSubInstance(\"CDSRequestPayloadEntry\");\npayloadEntry.put(\"delete_DasH_subscription_DasH_properties\", payloadProperties)\n\nvar payload = executor.subject.getOutFieldSchemaHelper(\"payload\").createNewInstance();\npayload.put(\"delete_DasH_subscription_DasH_request\", payloadEntry);\n\nexecutor.outFields.put(\"albumID\", executor.inFields.get(\"albumID\"))\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(\"Sending delete Subscription Event to CDS\")\n\ntrue;"
 + "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": "DeleteSubscriptionRequestTask",
 + "name": "ApexExample_HandleAAISuccessResponseTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "DeleteSubscriptionRequestTask",
 + "name": "ApexExample_HandleAAISuccessResponseTask",
 "version": "0.0.1"
 },
 "inputFields": {
 "entry": [
 {
 - "key": "albumID",
 + "key": "in-maint",
 "value": {
 - "key": "albumID",
 + "key": "in-maint",
 "fieldSchemaKey": {
 - "name": "UUIDType",
 + "name": "SimpleBooleanType",
 "version": "0.0.1"
 },
 "optional": false
 }
 },
 {
 - "key": "payload",
 + "key": "is-closed-loop-disabled",
 "value": {
 - "key": "payload",
 + "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": "CDSDeleteSubscriptionPayloadType",
 + "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
 @@ -1580,7 +2189,7 @@ "value": {
 "key": "actionIdentifiers",
 "fieldSchemaKey": {
 - "name": "CDSActionIdentifiersType",
 + "name": "ApexExample_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1591,7 +2200,7 @@ "value": {
 "key": "commonHeader",
 "fieldSchemaKey": {
 - "name": "CDSRequestCommonHeaderType",
 + "name": "ApexExample_CDSRequestCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1602,7 +2211,7 @@ "value": {
 "key": "payload",
 "fieldSchemaKey": {
 - "name": "CDSDeleteSubscriptionPayloadType",
 + "name": "ApexExample_CDSRequestPayloadType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1615,33 +2224,184 @@ },
 "contextAlbumReference": [
 {
 - "name": "PMSubscriptionAlbum",
 + "name": "ApexExample_EventDetailsAlbum",
 "version": "0.0.1"
 }
 ],
 "taskLogic": {
 "key": "TaskLogic",
 "logicFlavour": "JAVASCRIPT",
 - "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\n\nexecutor.logger.info(executor.subject.id);\n\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").get(executor.inFields.get(\"albumID\").toString())\nvar payload = executor.inFields.get(\"payload\")\nvar actionName = \"delete-subscription\"\n\nvar commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\ncommonHeader.put(\"originatorId\", \"sdnc\");\ncommonHeader.put(\"requestId\", \"123456-1000\");\ncommonHeader.put(\"subRequestId\", \"sub-123456-1000\");\n\nvar actionIdentifiers = executor.subject.getOutFieldSchemaHelper(\"actionIdentifiers\").createNewInstance();\nactionIdentifiers.put(\"actionName\", actionName);\nactionIdentifiers.put(\"blueprintName\", \"pm_control\");\nactionIdentifiers.put(\"blueprintVersion\", \"1.0.0\");\nactionIdentifiers.put(\"mode\", \"sync\");\n\nexecutor.outFields.put(\"commonHeader\", commonHeader);\nexecutor.outFields.put(\"actionIdentifiers\", actionIdentifiers);\nexecutor.outFields.put(\"payload\", payload);\n\nexecutor.logger.info(\"Sending Deactivate Subscription Event to CDS\")\n\ntrue;"
 + "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": "ReceivePMSubscriptionTask",
 + "name": "ApexExample_HandleVesEventTask",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "ReceivePMSubscriptionTask",
 + "name": "ApexExample_HandleVesEventTask",
 "version": "0.0.1"
 },
 "inputFields": {
 "entry": [
 {
 - "key": "changeType",
 + "key": "event",
 "value": {
 - "key": "changeType",
 + "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
 + }
 + }
 + ]
 + }
 + }
 + },
 + {
 + "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
 + }
 + }
 + ]
 + }
 + }
 + },
 + {
 + "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"
 @@ -1650,9 +2410,9 @@ }
 },
 {
 - "key": "closedLoopControlName",
 + "key": "model-invariant-id",
 "value": {
 - "key": "closedLoopControlName",
 + "key": "model-invariant-id",
 "fieldSchemaKey": {
 "name": "SimpleStringType",
 "version": "0.0.1"
 @@ -1661,9 +2421,9 @@ }
 },
 {
 - "key": "nfName",
 + "key": "model-version-id",
 "value": {
 - "key": "nfName",
 + "key": "model-version-id",
 "fieldSchemaKey": {
 "name": "SimpleStringType",
 "version": "0.0.1"
 @@ -1672,9 +2432,9 @@ }
 },
 {
 - "key": "policyName",
 + "key": "orchestration-status",
 "value": {
 - "key": "policyName",
 + "key": "orchestration-status",
 "fieldSchemaKey": {
 "name": "SimpleStringType",
 "version": "0.0.1"
 @@ -1683,70 +2443,212 @@ }
 },
 {
 - "key": "subscription",
 + "key": "prov-status",
 "value": {
 - "key": "subscription",
 + "key": "prov-status",
 "fieldSchemaKey": {
 - "name": "SubscriptionType",
 + "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
 }
 }
 ]
 + }
 + }
 + },
 + {
 + "key": {
 + "name": "ApexExample_CDSConfigModifyFailureResponseEvent",
 + "version": "0.0.1"
 + },
 + "value": {
 + "key": {
 + "name": "ApexExample_CDSConfigModifyFailureResponseEvent",
 + "version": "0.0.1"
 },
 - "outputFields": {
 + "nameSpace": "org.onap.policy.apex.example",
 + "source": "CDS",
 + "target": "APEX",
 + "parameter": {
 "entry": [
 {
 - "key": "albumID",
 + "key": "actionIdentifiers",
 "value": {
 - "key": "albumID",
 + "key": "actionIdentifiers",
 "fieldSchemaKey": {
 - "name": "UUIDType",
 + "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
 }
 }
 ]
 + }
 + }
 + },
 + {
 + "key": {
 + "name": "ApexExample_CDSConfigModifyRequestEvent",
 + "version": "0.0.1"
 + },
 + "value": {
 + "key": {
 + "name": "ApexExample_CDSConfigModifyRequestEvent",
 + "version": "0.0.1"
 },
 - "taskParameters": {
 - "entry": []
 - },
 - "contextAlbumReference": [
 - {
 - "name": "PMSubscriptionAlbum",
 - "version": "0.0.1"
 - }
 - ],
 - "taskLogic": {
 - "key": "TaskLogic",
 - "logicFlavour": "JAVASCRIPT",
 - "logic": "/*\n * ============LICENSE_START=======================================================\n * Copyright (C) 2020 Nordix. All rights reserved.\n * ================================================================================\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n * ============LICENSE_END=========================================================\n */\nvar uuidType = java.util.UUID;\n\n\n//albumID will be used to fetch info from our album later\nvar albumID = uuidType.fromString(\"d0050623-18e5-46c9-9298-9a567990cd7c\");\nvar pmSubscriptionInfo = executor.getContextAlbum(\"PMSubscriptionAlbum\").getSchemaHelper().createNewInstance();\nvar returnValue = true;;\n\nif(executor.inFields.get(\"policyName\") != null) {\n var changeType = executor.inFields.get(\"changeType\")\n var nfName = executor.inFields.get(\"nfName\")\n var policyName = executor.inFields.get(\"policyName\")\n var closedLoopControlName = executor.inFields.get(\"closedLoopControlName\")\n var subscription = executor.inFields.get(\"subscription\")\n\n pmSubscriptionInfo.put(\"nfName\", executor.inFields.get(\"nfName\"));\n pmSubscriptionInfo.put(\"changeType\", executor.inFields.get(\"changeType\"))\n pmSubscriptionInfo.put(\"policyName\", executor.inFields.get(\"policyName\"))\n pmSubscriptionInfo.put(\"closedLoopControlName\", executor.inFields.get(\"closedLoopControlName\"))\n pmSubscriptionInfo.put(\"subscription\", subscription)\n\n executor.getContextAlbum(\"PMSubscriptionAlbum\").put(albumID.toString(), pmSubscriptionInfo);\n\n executor.outFields.put(\"albumID\", albumID)\n} else {\n executor.message = \"Received invalid event\"\n returnValue = false;\n}\nreturnValue;"
 + "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
 + }
 + }
 + ]
 }
 }
 - }
 - ]
 - }
 - },
 - "events": {
 - "key": {
 - "name": "APEXgRPCPolicy_Events",
 - "version": "0.0.1"
 - },
 - "eventMap": {
 - "entry": [
 + },
 {
 "key": {
 - "name": "CDSResponseEvent",
 + "name": "ApexExample_CDSConfigModifySuccessResponseEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseEvent",
 + "name": "ApexExample_CDSConfigModifySuccessResponseEvent",
 "version": "0.0.1"
 },
 - "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 + "nameSpace": "org.onap.policy.apex.example",
 "source": "CDS",
 "target": "APEX",
 "parameter": {
 @@ -1756,7 +2658,7 @@ "value": {
 "key": "actionIdentifiers",
 "fieldSchemaKey": {
 - "name": "CDSActionIdentifiersType",
 + "name": "ApexExample_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1767,7 +2669,7 @@ "value": {
 "key": "commonHeader",
 "fieldSchemaKey": {
 - "name": "CDSResponseCommonHeaderType",
 + "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1778,7 +2680,7 @@ "value": {
 "key": "payload",
 "fieldSchemaKey": {
 - "name": "CDSResponsePayloadType",
 + "name": "ApexExample_CDSConfigModifyResponsePayloadType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1789,7 +2691,7 @@ "value": {
 "key": "status",
 "fieldSchemaKey": {
 - "name": "CDSResponseStatusType",
 + "name": "ApexExample_CDSSuccessResponseStatusType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1801,25 +2703,58 @@ },
 {
 "key": {
 - "name": "CDSResponseStatusEvent",
 + "name": "ApexExample_CDSRestartFailureResponseEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseStatusEvent",
 + "name": "ApexExample_CDSRestartFailureResponseEvent",
 "version": "0.0.1"
 },
 - "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 - "source": "APEX",
 - "target": "DCAE",
 + "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": "SubscriptionStatusType",
 + "name": "ApexExample_CDSFailureResponseStatusType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1831,25 +2766,36 @@ },
 {
 "key": {
 - "name": "CreateSubscriptionPayloadEvent",
 + "name": "ApexExample_CDSRestartRequestEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CreateSubscriptionPayloadEvent",
 + "name": "ApexExample_CDSRestartRequestEvent",
 "version": "0.0.1"
 },
 - "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 + "nameSpace": "org.onap.policy.apex.example",
 "source": "APEX",
 "target": "APEX",
 "parameter": {
 "entry": [
 {
 - "key": "albumID",
 + "key": "actionIdentifiers",
 "value": {
 - "key": "albumID",
 + "key": "actionIdentifiers",
 + "fieldSchemaKey": {
 + "name": "ApexExample_CDSActionIdentifiersType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "commonHeader",
 + "value": {
 + "key": "commonHeader",
 "fieldSchemaKey": {
 - "name": "UUIDType",
 + "name": "ApexExample_CDSRequestCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1860,7 +2806,7 @@ "value": {
 "key": "payload",
 "fieldSchemaKey": {
 - "name": "CDSCreateSubscriptionPayloadType",
 + "name": "ApexExample_CDSRequestPayloadType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1872,16 +2818,16 @@ },
 {
 "key": {
 - "name": "CreateSubscriptionRequestEvent",
 + "name": "ApexExample_CDSRestartSuccessResponseEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CreateSubscriptionRequestEvent",
 + "name": "ApexExample_CDSRestartSuccessResponseEvent",
 "version": "0.0.1"
 },
 - "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 - "source": "APEX",
 + "nameSpace": "org.onap.policy.apex.example",
 + "source": "CDS",
 "target": "APEX",
 "parameter": {
 "entry": [
 @@ -1890,7 +2836,7 @@ "value": {
 "key": "actionIdentifiers",
 "fieldSchemaKey": {
 - "name": "CDSActionIdentifiersType",
 + "name": "ApexExample_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1901,7 +2847,7 @@ "value": {
 "key": "commonHeader",
 "fieldSchemaKey": {
 - "name": "CDSRequestCommonHeaderType",
 + "name": "ApexExample_CDSSuccessResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1912,7 +2858,18 @@ "value": {
 "key": "payload",
 "fieldSchemaKey": {
 - "name": "CDSCreateSubscriptionPayloadType",
 + "name": "ApexExample_CDSRestartResponsePayloadType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "status",
 + "value": {
 + "key": "status",
 + "fieldSchemaKey": {
 + "name": "ApexExample_CDSSuccessResponseStatusType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1924,36 +2881,2548 @@ },
 {
 "key": {
 - "name": "DeleteSubscriptionPayloadEvent",
 + "name": "ApexExample_LogStatusEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "DeleteSubscriptionPayloadEvent",
 + "name": "ApexExample_LogStatusEvent",
 "version": "0.0.1"
 },
 - "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 + "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
 + }
 + }
 + ]
 + }
 + }
 + },
 + {
 + "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": "albumID",
 + "key": "event",
 "value": {
 - "key": "albumID",
 + "key": "event",
 "fieldSchemaKey": {
 - "name": "UUIDType",
 + "name": "ApexExample_VesEventType",
 "version": "0.0.1"
 },
 "optional": false
 }
 - },
 + }
 + ]
 + }
 + }
 + }
 + ]
 + }
 + },
 + "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://172.16.2.18:31054/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": "https://aai:8443/aai/v14/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": "policy-models-simulator",
 + "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": "policy-models-simulator",
 + "port": 6680,
 + "username": "ccsdkapps",
 + "password": "ccsdkapps",
 + "timeout": 10
 + }
 + },
 + "eventProtocolParameters": {
 + "eventProtocol": "JSON"
 + },
 + "eventNameFilter": "ApexExample_CDSRestartRequestEvent",
 + "requestorMode": true,
 + "requestorPeer": "ApexExample_CDSRestartResponseConsumer",
 + "requestorTimeout": 500
 + }
 + }
 + }
 + }
 + }
 + ]
 + }
 +}</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + </collectionProp> + </elementProp> + <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.port">${API_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">https</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/policy/api/v1/policies</stringProp> + <stringProp name="HTTPSampler.method">POST</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">1</intProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="CreatePolicy-SimpleCL" enabled="true"> + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> + <collectionProp name="Arguments.arguments"> + <elementProp name="" elementType="HTTPArgument"> + <boolProp name="HTTPArgument.always_encode">false</boolProp> + <stringProp name="Argument.value">{
 + "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
 + "topology_template": {
 + "policies": [
 + {
 + "onap.policies.apex.Simplecontrolloop": {
 + "type": "onap.policies.native.Apex",
 + "type_version": "1.0.0",
 + "name": "onap.policies.apex.Simplecontrolloop",
 + "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"
 + }
 + }
 + }
 + },
 + "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": "payload",
 + "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
 + }
 + }
 + ]
 + }
 + },
 + "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
 + }
 + }
 + ]
 + }
 + }
 + }
 + ]
 + },
 + "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
 + }
 + }
 + ]
 + }
 + },
 + "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
 + }
 + }
 + ]
 + }
 + }
 + }
 + ]
 + },
 + "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());\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
 + }
 + }
 + ]
 + }
 + },
 + "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
 + }
 + }
 + ]
 + }
 + }
 + }
 + ]
 + },
 + "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": "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": "ipaddress-v6-oam",
 + "value": {
 + "key": "ipaddress-v6-oam",
 + "fieldSchemaKey": {
 + "name": "SimpleStringType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "management-option",
 + "value": {
 + "key": "management-option",
 + "fieldSchemaKey": {
 + "name": "SimpleStringType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "pnf-id",
 + "value": {
 + "key": "pnf-id",
 + "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": "pnf-name2",
 + "value": {
 + "key": "pnf-name2",
 + "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
 + }
 + }
 + ]
 + }
 + },
 + "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
 + }
 + }
 + ]
 + }
 + }
 + },
 + {
 + "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
 + }
 + }
 + ]
 + }
 + }
 + }
 + ]
 + },
 + "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 eventId = eventDetailsAlbum.get(\"commonEventHeader\").get(\"eventId\");\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;\n\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(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 cdsRequestEventFields = populateCdsRequestEventFields(albumID.toString(), eventId, executor.inFields.get(\"ipaddress-v4-oam\"), otherFieldsMap.get(\"pnfName\"));\n executor.addFieldsToOutput(cdsRequestEventFields);\n\n var logEventFields = populateLogEventFields(eventId, otherFieldsMap.get(\"pnfName\"), \"PNF\", \"SUCCESS\", logMessage);\n executor.addFieldsToOutput(logEventFields);\n}\nexecutor.logger.info(executor.outFieldsList);\nreturnVal;\n\nfunction populateCdsRequestEventFields(subRequestId, requestId, ipAddress, pnfName) {\n var commonHeader = executor.subject.getOutFieldSchemaHelper(\"commonHeader\").createNewInstance();\n commonHeader.put(\"subRequestId\", subRequestId);\n commonHeader.put(\"requestId\", requestId);\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(\"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(\"payload\").createNewSubInstance(\"CDSConfigModifyRequestPayloadEntry\");\n payloadEntry.put(\"hostname\", newHostname)\n payloadEntry.put(\"IP\", ipAddress);\n payloadEntry.put(\"pnfName\", pnfName);\n\n var payload = executor.subject.getOutFieldSchemaHelper(\"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\n return cdsRequestEventFields;\n}\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
 + }
 + }
 + ]
 + }
 + },
 + "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
 + }
 + }
 + ]
 + }
 + }
 + },
 + {
 + "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
 + }
 + }
 + ]
 + }
 + }
 + }
 + ]
 + },
 + "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.\")\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": "CDSDeleteSubscriptionPayloadType",
 + "name": "SimpleCL_AAIRequestErrorType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1965,16 +5434,186 @@ },
 {
 "key": {
 - "name": "DeleteSubscriptionRequestEvent",
 + "name": "SimpleCL_AAIRequestEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "DeleteSubscriptionRequestEvent",
 + "name": "SimpleCL_AAIRequestEvent",
 "version": "0.0.1"
 },
 - "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 + "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
 + }
 + }
 + ]
 + }
 + }
 + },
 + {
 + "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": "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": "ipaddress-v6-oam",
 + "value": {
 + "key": "ipaddress-v6-oam",
 + "fieldSchemaKey": {
 + "name": "SimpleStringType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "management-option",
 + "value": {
 + "key": "management-option",
 + "fieldSchemaKey": {
 + "name": "SimpleStringType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "pnf-id",
 + "value": {
 + "key": "pnf-id",
 + "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": "pnf-name2",
 + "value": {
 + "key": "pnf-name2",
 + "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
 + }
 + }
 + ]
 + }
 + }
 + },
 + {
 + "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": [
 @@ -1983,7 +5622,7 @@ "value": {
 "key": "actionIdentifiers",
 "fieldSchemaKey": {
 - "name": "CDSActionIdentifiersType",
 + "name": "SimpleCL_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -1994,7 +5633,7 @@ "value": {
 "key": "commonHeader",
 "fieldSchemaKey": {
 - "name": "CDSRequestCommonHeaderType",
 + "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -2005,7 +5644,18 @@ "value": {
 "key": "payload",
 "fieldSchemaKey": {
 - "name": "CDSDeleteSubscriptionPayloadType",
 + "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "status",
 + "value": {
 + "key": "status",
 + "fieldSchemaKey": {
 + "name": "SimpleCL_CDSFailureResponseStatusType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -2017,25 +5667,47 @@ },
 {
 "key": {
 - "name": "PMSubscriptionOutputEvent",
 + "name": "SimpleCL_CDSConfigModifyRequestEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "PMSubscriptionOutputEvent",
 + "name": "SimpleCL_CDSConfigModifyRequestEvent",
 "version": "0.0.1"
 },
 - "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 + "nameSpace": "org.onap.policy.apex.simplecontrolloop",
 "source": "APEX",
 "target": "APEX",
 "parameter": {
 "entry": [
 {
 - "key": "albumID",
 + "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": "albumID",
 + "key": "payload",
 "fieldSchemaKey": {
 - "name": "UUIDType",
 + "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
 "version": "0.0.1"
 },
 "optional": false
 @@ -2047,56 +5719,97 @@ },
 {
 "key": {
 - "name": "testPolicyB",
 + "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "testPolicyB",
 + "name": "SimpleCL_CDSConfigModifySuccessResponseEvent",
 "version": "0.0.1"
 },
 - "nameSpace": "org.onap.policy.apex.onap.pmcontrol",
 - "source": "DCAE",
 + "nameSpace": "org.onap.policy.apex.simplecontrolloop",
 + "source": "CDS",
 "target": "APEX",
 "parameter": {
 "entry": [
 {
 - "key": "changeType",
 + "key": "actionIdentifiers",
 "value": {
 - "key": "changeType",
 + "key": "actionIdentifiers",
 "fieldSchemaKey": {
 - "name": "SimpleStringType",
 + "name": "SimpleCL_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "optional": false
 }
 },
 {
 - "key": "closedLoopControlName",
 + "key": "commonHeader",
 "value": {
 - "key": "closedLoopControlName",
 + "key": "commonHeader",
 "fieldSchemaKey": {
 - "name": "SimpleStringType",
 + "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "optional": false
 }
 },
 {
 - "key": "nfName",
 + "key": "payload",
 "value": {
 - "key": "nfName",
 + "key": "payload",
 "fieldSchemaKey": {
 - "name": "SimpleStringType",
 + "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "status",
 + "value": {
 + "key": "status",
 + "fieldSchemaKey": {
 + "name": "SimpleCL_CDSSuccessResponseStatusType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + }
 + ]
 + }
 + }
 + },
 + {
 + "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": "policyName",
 + "key": "id",
 "value": {
 - "key": "policyName",
 + "key": "id",
 "fieldSchemaKey": {
 "name": "SimpleStringType",
 "version": "0.0.1"
 @@ -2105,11 +5818,52 @@ }
 },
 {
 - "key": "subscription",
 + "key": "otherFields",
 + "value": {
 + "key": "otherFields",
 + "fieldSchemaKey": {
 + "name": "SimpleCL_LogEventOtherFieldsType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + },
 + {
 + "key": "target",
 "value": {
 - "key": "subscription",
 + "key": "target",
 "fieldSchemaKey": {
 - "name": "SubscriptionType",
 + "name": "SimpleCL_LogEventTargetType",
 + "version": "0.0.1"
 + },
 + "optional": false
 + }
 + }
 + ]
 + }
 + }
 + },
 + {
 + "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
 @@ -2124,25 +5878,25 @@ },
 "albums": {
 "key": {
 - "name": "APEXgRPCPolicy_Albums",
 + "name": "onap.policies.apex.Simplecontrolloop_Albums",
 "version": "0.0.1"
 },
 "albums": {
 "entry": [
 {
 "key": {
 - "name": "PMSubscriptionAlbum",
 + "name": "SimpleCL_EventDetailsAlbum",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "PMSubscriptionAlbum",
 + "name": "SimpleCL_EventDetailsAlbum",
 "version": "0.0.1"
 },
 "scope": "policy",
 "isWritable": true,
 "itemSchema": {
 - "name": "PMSubscriptionType",
 + "name": "SimpleCL_EventDetailsAlbumType",
 "version": "0.0.1"
 }
 }
 @@ -2152,191 +5906,247 @@ },
 "schemas": {
 "key": {
 - "name": "APEXgRPCPolicy_Schemas",
 + "name": "onap.policies.apex.Simplecontrolloop_Schemas",
 "version": "0.0.1"
 },
 "schemas": {
 "entry": [
 {
 "key": {
 - "name": "CDSActionIdentifiersType",
 + "name": "SimpleBooleanType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSActionIdentifiersType",
 + "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 \"type\": \"record\",\n \"name\": \"CDSActionIdentifiers_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\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}"
 + "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": "CDSCreateSubscriptionPayloadType",
 + "name": "SimpleCL_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSCreateSubscriptionPayloadType",
 + "name": "SimpleCL_CDSActionIdentifiersType",
 "version": "0.0.1"
 },
 "schemaFlavour": "Avro",
 - "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"create_DasH_subscription_DasH_properties\",\n \"type\": {\n \"name\": \"create_DasH_subscription_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"nfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"administrativeState\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileBasedGP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileLocation\",\n \"type\": \"string\"\n },\n {\n \"name\": \"measurementGroups\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"measurementGroups_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementGroup\",\n \"type\": {\n \"name\": \"measurementGroup\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementTypes\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"measurementTypes_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementType\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"managedObjectDNsBasic\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"managedObjectDNsBasic_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"DN\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n}"
 + "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": "CDSDeleteSubscriptionPayloadType",
 + "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSDeleteSubscriptionPayloadType",
 + "name": "SimpleCL_CDSConfigModifyRequestPayloadType",
 "version": "0.0.1"
 },
 "schemaFlavour": "Avro",
 - "schemaDefinition": "{\n \"type\": \"map\",\n \"values\": {\n \"type\": \"record\",\n \"name\": \"CDSRequestPayloadEntry\",\n \"fields\": [\n {\n \"name\": \"delete_DasH_subscription_DasH_properties\",\n \"type\": {\n \"name\": \"delete_DasH_subscription_DasH_properties_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"nfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"administrativeState\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileBasedGP\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileLocation\",\n \"type\": \"string\"\n },\n {\n \"name\": \"measurementGroups\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"measurementGroups_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementGroup\",\n \"type\": {\n \"name\": \"measurementGroup\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementTypes\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"measurementTypes_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementType\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"managedObjectDNsBasic\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"managedObjectDNsBasic_record\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"DN\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n}"
 + "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": "CDSRequestCommonHeaderType",
 + "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSRequestCommonHeaderType",
 + "name": "SimpleCL_CDSConfigModifyResponsePayloadType",
 "version": "0.0.1"
 },
 "schemaFlavour": "Avro",
 - "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSRequestCommonHeader_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\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}"
 + "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": "CDSResponseCommonHeaderType",
 + "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseCommonHeaderType",
 + "name": "SimpleCL_CDSFailureResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "schemaFlavour": "Avro",
 - "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseCommonHeader_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\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}"
 + "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": "CDSResponsePayloadType",
 + "name": "SimpleCL_CDSFailureResponseStatusType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponsePayloadType",
 + "name": "SimpleCL_CDSFailureResponseStatusType",
 "version": "0.0.1"
 },
 "schemaFlavour": "Avro",
 - "schemaDefinition": "{\n \"name\": \"CDSResponsePayloadEntry\",\n \"type\": \"record\",\n \"namespace\": \"com.acme.avro\",\n \"fields\": [\n {\n \"name\": \"create_DasH_subscription_DasH_response\",\n \"type\": {\n \"name\": \"create_DasH_subscription_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"odl_DasH_response\",\n \"type\": {\n \"name\": \"odl_DasH_response\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"status\",\n \"type\": \"string\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"
 + "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": "CDSResponseStatusType",
 + "name": "SimpleCL_CDSRequestCommonHeaderType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "CDSResponseStatusType",
 + "name": "SimpleCL_CDSRequestCommonHeaderType",
 "version": "0.0.1"
 },
 "schemaFlavour": "Avro",
 - "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"CDSResponseStatus_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\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}"
 + "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": "PMSubscriptionType",
 + "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "PMSubscriptionType",
 + "name": "SimpleCL_CDSSuccessResponseCommonHeaderType",
 "version": "0.0.1"
 },
 "schemaFlavour": "Avro",
 - "schemaDefinition": "{\n \"name\": \"PMSubscription\",\n \"type\": \"record\",\n \"namespace\": \"org.onap.policy.apex.onap.pmcontrol\",\n \"fields\": [\n {\n \"name\": \"nfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"changeType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"closedLoopControlName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"policyName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"subscription\",\n \"type\": {\n \"name\": \"subscription\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"administrativeState\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileBasedGP\",\n \"type\": \"int\"\n },\n {\n \"name\": \"fileLocation\",\n \"type\": \"string\"\n },\n {\n \"name\": \"measurementGroups\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Measurement_Groups_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementGroup\",\n \"type\": {\n \"name\": \"Measurement_Group_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementTypes\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Measurement_Types_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementType\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"managedObjectDNsBasic\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Managed_Object_Dns_Basic_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"DN\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n}"
 + "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": "SimpleIntType",
 + "name": "SimpleCL_CDSSuccessResponseStatusType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "SimpleIntType",
 + "name": "SimpleCL_CDSSuccessResponseStatusType",
 "version": "0.0.1"
 },
 - "schemaFlavour": "Java",
 - "schemaDefinition": "java.lang.Integer"
 + "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": "SimpleStringType",
 + "name": "SimpleCL_EventDetailsAlbumType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "SimpleStringType",
 + "name": "SimpleCL_EventDetailsAlbumType",
 "version": "0.0.1"
 },
 - "schemaFlavour": "Java",
 - "schemaDefinition": "java.lang.String"
 + "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": "SubscriptionStatusType",
 + "name": "SimpleCL_LogEventOtherFieldsType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "SubscriptionStatusType",
 + "name": "SimpleCL_LogEventOtherFieldsType",
 "version": "0.0.1"
 },
 "schemaFlavour": "Avro",
 - "schemaDefinition": "{\n \"type\": \"record\",\n \"name\": \"ActivateSubscriptionStatus_Type\",\n \"namespace\": \"org.onap.policy.apex.onap.helloworld\",\n \"fields\": [\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"nfName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"changeType\",\n \"type\": \"string\"\n },\n {\n \"name\": \"message\",\n \"type\": \"string\"\n }\n ]\n}"
 + "schemaDefinition": "{\n \"name\": \"otherFields\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"useCaseName\",\n \"type\": \"string\"\n }\n ]\n }"
 }
 },
 {
 "key": {
 - "name": "SubscriptionType",
 + "name": "SimpleCL_LogEventTargetType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "SubscriptionType",
 + "name": "SimpleCL_LogEventTargetType",
 "version": "0.0.1"
 },
 "schemaFlavour": "Avro",
 - "schemaDefinition": "{\n \"name\": \"subscription\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"subscriptionName\",\n \"type\": \"string\"\n },\n {\n \"name\": \"administrativeState\",\n \"type\": \"string\"\n },\n {\n \"name\": \"fileBasedGP\",\n \"type\": \"int\"\n },\n {\n \"name\": \"fileLocation\",\n \"type\": \"string\"\n },\n {\n \"name\": \"measurementGroups\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Measurement_Groups_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementGroup\",\n \"type\": {\n \"name\": \"Measurement_Group_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementTypes\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Measurement_Types_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"measurementType\",\n \"type\": \"string\"\n }\n ]\n }\n }\n },\n {\n \"name\": \"managedObjectDNsBasic\",\n \"type\": {\n \"type\": \"array\",\n \"items\": {\n \"name\": \"Managed_Object_Dns_Basic_Type\",\n \"type\": \"record\",\n \"fields\": [\n {\n \"name\": \"DN\",\n \"type\": \"string\"\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n }\n ]\n}"
 + "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": "UUIDType",
 + "name": "SimpleCL_VesEventType",
 "version": "0.0.1"
 },
 "value": {
 "key": {
 - "name": "UUIDType",
 + "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.util.UUID"
 + "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"
 }
 }
 ]
 @@ -2345,99 +6155,127 @@ }
 }
 },
 - "eventOutputParameters": {
 - "logOutputter": {
 + "eventInputParameters": {
 + "SimpleCL_DCAEConsumer": {
 "carrierTechnologyParameters": {
 - "carrierTechnology": "FILE",
 + "carrierTechnology": "RESTCLIENT",
 + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
 "parameters": {
 - "fileName": "outputevents.log"
 + "url": "http://172.16.2.18:31054/events/unauthenticated.DCAE_CL_OUTPUT/cl/apex?timeout=30000"
 }
 },
 "eventProtocolParameters": {
 "eventProtocol": "JSON"
 - }
 + },
 + "eventName": "SimpleCL_VesEvent"
 },
 - "CDSRequestProducer": {
 + "SimpleCL_AAIResponseConsumer": {
 "carrierTechnologyParameters": {
 - "carrierTechnology": "GRPC",
 - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
 + "carrierTechnology": "RESTREQUESTOR",
 + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters",
 "parameters": {
 - "host": "10.2.0.122",
 - "port": 54322,
 - "username": "ccsdkapps",
 - "password": "ccsdkapps",
 - "timeout": 60
 + "url": "https://aai:8443/aai/v14/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"
 },
 - "eventNameFilter": "(Create|Delete)SubscriptionRequestEvent",
 + "eventName": "SimpleCL_AAISuccessResponseEvent|SimpleCL_AAIFailureResponseEvent",
 "requestorMode": true,
 - "requestorPeer": "CDSRequestConsumer",
 - "requestorTimeout": 500
 + "requestorPeer": "SimpleCL_AAIProducer",
 + "requestorTimeout": 2000
 },
 - "CDSReplyProducer": {
 + "SimpleCL_CDSConfigModifyResponseConsumer": {
 "carrierTechnologyParameters": {
 - "carrierTechnology": "RESTCLIENT",
 - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
 - "parameters": {
 - "url": "http://message-router:3904/events/POLICY-CL-MGT"
 - }
 + "carrierTechnology": "GRPC",
 + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
 },
 "eventProtocolParameters": {
 "eventProtocol": "JSON"
 },
 - "eventNameFilter": "CDSResponseStatusEvent"
 + "eventName": "SimpleCL_CDSConfigModifySuccessResponseEvent|SimpleCL_CDSConfigModifyFailureResponseEvent",
 + "requestorMode": true,
 + "requestorPeer": "SimpleCL_CDSConfigModifyRequestProducer",
 + "requestorTimeout": 500
 }
 },
 - "eventInputParameters": {
 - "DCAEConsumer": {
 + "eventOutputParameters": {
 + "SimpleCL_AAIProducer": {
 "carrierTechnologyParameters": {
 - "carrierTechnology": "RESTCLIENT",
 - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
 - "parameters": {
 - "url": "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT/cg1/c1?timeout=30000"
 - }
 + "carrierTechnology": "RESTREQUESTOR",
 + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restrequestor.RestRequestorCarrierTechnologyParameters"
 },
 "eventProtocolParameters": {
 - "eventProtocol": "JSON",
 - "parameters": {
 - "nameAlias": "testPolicyB"
 - }
 + "eventProtocol": "JSON"
 },
 - "eventName": "testPolicyB",
 - "eventNameFilter": "testPolicyB"
 + "eventNameFilter": "SimpleCL_AAIRequestEvent",
 + "requestorMode": true,
 + "requestorPeer": "SimpleCL_AAIResponseConsumer",
 + "requestorTimeout": 2000
 },
 - "CDSRequestConsumer": {
 + "SimpleCL_CDSConfigModifyRequestProducer": {
 "carrierTechnologyParameters": {
 "carrierTechnology": "GRPC",
 - "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters"
 + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.grpc.GrpcCarrierTechnologyParameters",
 + "parameters": {
 + "host": "policy-models-simulator",
 + "port": 6680,
 + "username": "ccsdkapps",
 + "password": "ccsdkapps",
 + "timeout": 60
 + }
 },
 "eventProtocolParameters": {
 "eventProtocol": "JSON"
 },
 - "eventName": "CDSResponseEvent",
 - "eventNameFilter": "CDSResponseEvent",
 + "eventNameFilter": "SimpleCL_CDSConfigModifyRequestEvent",
 "requestorMode": true,
 - "requestorPeer": "CDSRequestProducer",
 + "requestorPeer": "SimpleCL_CDSConfigModifyResponseConsumer",
 "requestorTimeout": 500
 + },
 + "SimpleCL_LogEventProducer": {
 + "carrierTechnologyParameters": {
 + "carrierTechnology": "RESTCLIENT",
 + "parameterClassName": "org.onap.policy.apex.plugins.event.carrier.restclient.RestClientCarrierTechnologyParameters",
 + "parameters": {
 + "url": "http://172.16.2.18:31054/events/APEX-CL-MGT"
 + }
 + },
 + "eventProtocolParameters": {
 + "eventProtocol": "JSON"
 + },
 + "eventNameFilter": "SimpleCL_LogEvent"
 }
 }
 - },
 - "name": "operational.apex.stabilityTestDefaultDomain",
 - "version": "1.0.0",
 - "metadata": {
 - "policy-id": "operational.apex.stabilityTestDefaultDomain",
 - "policy-version": "1.0.0"
 }
 }
 }
 ]
 - },
 - "name": "ToscaServiceTemplateSimple",
 - "version": "1.0.0",
 - "metadata": {}
 + }
 }</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> @@ -2469,7 +6307,7 @@ </ResponseAssertion> <hashTree/> </hashTree> - <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy policy" enabled="true"> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Deploy policies" enabled="true"> <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <collectionProp name="Arguments.arguments"> @@ -2485,7 +6323,10 @@ "action": "POST",
 "policies": [
 {
 - "name": "operational.apex.stabilityTestDefaultDomain",
 + "name": "onap.policies.apex.Simplecontrolloop",
 + "version": "1.0.0"
 + }, {
 + "name": "onap.policies.apex.Example",
 "version": "1.0.0"
 }
 ]
 @@ -2524,6 +6365,10 @@ </ResponseAssertion> <hashTree/> </hashTree> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Constant Timer" enabled="true"> + <stringProp name="ConstantTimer.delay">${wait}</stringProp> + </ConstantTimer> + <hashTree/> </hashTree> <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"> <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> @@ -2578,78 +6423,139 @@ if (prev.getResponseCode() == '200') { </JSR223Assertion> <hashTree/> </hashTree> - <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test Controller" enabled="true"/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Prometheus Metrics" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.port">${APEX_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">https</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/metrics</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + </HTTPSamplerProxy> <hashTree> - <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="false"> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="false"> + <stringProp name="cacheKey">true</stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="script">import groovy.json.JsonSlurper; + +def res = []; +if (prev.getResponseCode() == '200') { + def jsonSlurper = new JsonSlurper(); + res = jsonSlurper.parseText(prev.getResponseDataAsString()); + + assert res instanceof Map; + assert res.healthy == true; + assert res.message == 'alive'; +} +</stringProp> + <stringProp name="scriptLanguage">groovy</stringProp> + </JSR223Assertion> + <hashTree/> + </hashTree> + <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Clean up DMaaP notification topic" enabled="true"/> + <hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Clean up DMaaP notification topic" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=100&timeout=500</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Clean up DMaaP notification topic</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + </hashTree> + <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test simple-cl policy - success" enabled="true"/> + <hashTree> + <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true"> <stringProp name="groupSize">${threads}</stringProp> <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp> </SyncTimer> <hashTree/> - <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Input Event" enabled="true"> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Trigger Event - simplecl success" enabled="true"> <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <collectionProp name="Arguments.arguments"> <elementProp name="" elementType="HTTPArgument"> <boolProp name="HTTPArgument.always_encode">false</boolProp> <stringProp name="Argument.value">{
 - "changeType": "CREATE",
 - "closedLoopControlName": "test",
 - "policyName": "test",
 - "nfName": "pnf300",
 - "subscription": {
 - "subscriptionName": "testPolicyB",
 - "administrativeState": "UNLOCKED",
 - "fileBasedGP": 15,
 - "fileLocation": "/pm/pm.xml",
 - "measurementGroups": [
 - {
 - "measurementGroup": {
 - "measurementTypes": [
 - {
 - "measurementType": "countera"
 - },
 - {
 - "measurementType": "counterb"
 - }
 - ],
 - "managedObjectDNsBasic": [
 - {
 - "DN": "dna"
 - },
 - {
 - "DN": "dnb"
 - }
 - ]
 - }
 + "event": {
 + "commonEventHeader": {
 + "startEpochMicrosec": 1597953057126,
 + "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57${__threadNum}",
 + "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd6800${__threadNum}",
 + "lastEpochMicrosec": 1597952499468,
 + "eventName": "Report hostname & IP",
 + "sourceName": "PNF101",
 + "reportingEntityName": "DCAE",
 + "vesEventListenerVersion": "7.1",
 + "internalHeaderFields": {},
 + "version": "4.0.1",
 + "priority": "Normal",
 + "sequence": 1,
 + "domain": "other"
 + },
 + "otherFields": {
 + "hashMap": {
 + "hostname": "UNDEFINED",
 + "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e",
 + "pnfName": "PNF101",
 + "ip": "10.101.200.10"
 },
 - {
 - "measurementGroup": {
 - "measurementTypes": [
 - {
 - "measurementType": "counterc"
 - },
 - {
 - "measurementType": "counterd"
 - }
 - ],
 - "managedObjectDNsBasic": [
 - {
 - "DN": "dnc"
 - },
 - {
 - "DN": "dnd"
 - }
 - ]
 - }
 - }
 - ]
 + "otherFieldsVersion": "3.0"
 + }
 }
 }</stringProp> <stringProp name="Argument.metadata">=</stringProp> </elementProp> </collectionProp> </elementProp> - <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> <stringProp name="HTTPSampler.protocol">http</stringProp> <stringProp name="HTTPSampler.contentEncoding"></stringProp> @@ -2662,7 +6568,7 @@ if (prev.getResponseCode() == '200') { <stringProp name="HTTPSampler.embedded_url_re"></stringProp> <stringProp name="HTTPSampler.connect_timeout"></stringProp> <stringProp name="HTTPSampler.response_timeout"></stringProp> - <stringProp name="TestPlan.comments">Send input event to apex-pdp</stringProp> + <stringProp name="TestPlan.comments">Send Trigger Event - simplecl success</stringProp> </HTTPSamplerProxy> <hashTree> <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> @@ -2677,20 +6583,79 @@ if (prev.getResponseCode() == '200') { <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> </ResponseAssertion> <hashTree/> - <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true"> - <stringProp name="ConstantTimer.delay">${wait}</stringProp> - </ConstantTimer> + </hashTree> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true"> + <stringProp name="ConstantTimer.delay">${wait}</stringProp> + </ConstantTimer> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Read notification events - simplecl success" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=50&timeout=30000</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Read notification events - simplecl success</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true"> + <stringProp name="cacheKey">true</stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="script">import groovy.json.JsonSlurper; + +def res = []; +if (prev.getResponseCode() == '200') { + def jsonSlurper = new JsonSlurper(); + def responseString = prev.getResponseDataAsString(); + res = jsonSlurper.parseText(responseString); + def expectedNumberOfNotifications = ${threads} * 3; + assert res instanceof List; + assert res.size() == expectedNumberOfNotifications; + assert responseString.contains("ACTIVE") + assert responseString.contains("SUCCESS") + assert responseString.contains("FINAL_SUCCESS") + assert !responseString.contains("FAILURE") +} +</stringProp> + <stringProp name="scriptLanguage">groovy</stringProp> + </JSR223Assertion> <hashTree/> </hashTree> - <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get the ouput event response" enabled="true"> + </hashTree> + <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Clean up DMaaP notification topic" enabled="true"/> + <hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Clean up DMaaP notification topic" enabled="true"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> - <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> <stringProp name="HTTPSampler.protocol">http</stringProp> <stringProp name="HTTPSampler.contentEncoding"></stringProp> - <stringProp name="HTTPSampler.path">/events/POLICY-CL-MGT/cg${__threadNum}/c1?timeout=30000</stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=100&timeout=500</stringProp> <stringProp name="HTTPSampler.method">GET</stringProp> <boolProp name="HTTPSampler.follow_redirects">true</boolProp> <boolProp name="HTTPSampler.auto_redirects">false</boolProp> @@ -2699,7 +6664,7 @@ if (prev.getResponseCode() == '200') { <stringProp name="HTTPSampler.embedded_url_re"></stringProp> <stringProp name="HTTPSampler.connect_timeout"></stringProp> <stringProp name="HTTPSampler.response_timeout"></stringProp> - <stringProp name="TestPlan.comments">Check output event </stringProp> + <stringProp name="TestPlan.comments">Clean up DMaaP notification topic</stringProp> </HTTPSamplerProxy> <hashTree> <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> @@ -2714,22 +6679,484 @@ if (prev.getResponseCode() == '200') { <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> </ResponseAssertion> <hashTree/> - <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="true"> + </hashTree> + </hashTree> + <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test simple-cl policy - failure" enabled="true"/> + <hashTree> + <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true"> + <stringProp name="groupSize">${threads}</stringProp> + <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp> + </SyncTimer> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Trigger Event - simplecl failure" enabled="true"> + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> + <collectionProp name="Arguments.arguments"> + <elementProp name="" elementType="HTTPArgument"> + <boolProp name="HTTPArgument.always_encode">false</boolProp> + <stringProp name="Argument.value">{
 + "event": {
 + "commonEventHeader": {
 + "startEpochMicrosec": 1597953057126,
 + "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57${__threadNum}",
 + "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd6800${__threadNum}",
 + "lastEpochMicrosec": 1597952499468,
 + "eventName": "Report hostname & IP",
 + "sourceName": "PNF101",
 + "reportingEntityName": "DCAE",
 + "vesEventListenerVersion": "7.1",
 + "internalHeaderFields": {},
 + "version": "4.0.1",
 + "priority": "Normal",
 + "sequence": 1,
 + "domain": "other"
 + },
 + "otherFields": {
 + "hashMap": {
 + "hostname": "UNDEFINED",
 + "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e",
 + "pnfName": "PNF_INVALID",
 + "ip": "10.101.200.10"
 + },
 + "otherFieldsVersion": "3.0"
 + }
 + }
 +}</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + </collectionProp> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/unauthenticated.DCAE_CL_OUTPUT</stringProp> + <stringProp name="HTTPSampler.method">POST</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Send Trigger Event - simplecl failure</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> <collectionProp name="Asserion.test_strings"> - <stringProp name="1608759622">org.onap.policy.apex.onap.pmcontrol</stringProp> - <stringProp name="1996002556">CREATE</stringProp> + <stringProp name="49586">200</stringProp> </collectionProp> <stringProp name="Assertion.custom_message"></stringProp> - <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> <boolProp name="Assertion.assume_success">false</boolProp> - <intProp name="Assertion.test_type">2</intProp> + <intProp name="Assertion.test_type">8</intProp> <stringProp name="Scope.variable">Response code</stringProp> - <stringProp name="TestPlan.comments">Assert response message coming back from apex-pdp</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> </ResponseAssertion> <hashTree/> - <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> - <stringProp name="ConstantTimer.delay">${wait}</stringProp> - </ConstantTimer> + </hashTree> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true"> + <stringProp name="ConstantTimer.delay">${wait}</stringProp> + </ConstantTimer> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Read notification events - simplecl failure" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=50&timeout=30000</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Read notification events - simplecl failure</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true"> + <stringProp name="cacheKey">true</stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="script">import groovy.json.JsonSlurper; + +def res = []; +if (prev.getResponseCode() == '200') { + def jsonSlurper = new JsonSlurper(); + def responseString = prev.getResponseDataAsString(); + res = jsonSlurper.parseText(responseString); + def expectedNumberOfNotifications = ${threads} * 2; + assert res instanceof List; + assert res.size() == expectedNumberOfNotifications; + assert responseString.contains("ACTIVE") + assert responseString.contains("FINAL_FAILURE") + assert !responseString.contains("FINAL_SUCCESS") +} +</stringProp> + <stringProp name="scriptLanguage">groovy</stringProp> + </JSR223Assertion> + <hashTree/> + </hashTree> + </hashTree> + <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Clean up DMaaP notification topic" enabled="true"/> + <hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Clean up DMaaP notification topic" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=100&timeout=500</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Clean up DMaaP notification topic</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + </hashTree> + <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test example policy - success" enabled="true"/> + <hashTree> + <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true"> + <stringProp name="groupSize">${threads}</stringProp> + <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp> + </SyncTimer> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Trigger Event - example success" enabled="true"> + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> + <collectionProp name="Arguments.arguments"> + <elementProp name="" elementType="HTTPArgument"> + <boolProp name="HTTPArgument.always_encode">false</boolProp> + <stringProp name="Argument.value">{
 + "event": {
 + "commonEventHeader": {
 + "domain": "fault",
 + "eventId": "fault0000245",
 + "eventName": "Fault_Vscf:PilotNumberPoolExhaustion",
 + "lastEpochMicrosec": 1413378172000000,
 + "priority": "High",
 + "reportingEntityName": "ibcx0001vm002oam001",
 + "sequence": 1,
 + "sourceId": "de305d54-75b4-431b-adb2-eb6b9e546014${__threadNum}",
 + "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"
 + }
 + }
 +}</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + </collectionProp> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT</stringProp> + <stringProp name="HTTPSampler.method">POST</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Send Trigger Event - example success</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true"> + <stringProp name="ConstantTimer.delay">${wait}</stringProp> + </ConstantTimer> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Read notification events - example success" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=50&timeout=30000</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Read notification events - example success</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true"> + <stringProp name="cacheKey">true</stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="script">import groovy.json.JsonSlurper; + +def res = []; +if (prev.getResponseCode() == '200') { + def jsonSlurper = new JsonSlurper(); + def responseString = prev.getResponseDataAsString(); + res = jsonSlurper.parseText(responseString); + def expectedNumberOfNotifications = ${threads} * 4; + assert res instanceof List; + assert res.size() == expectedNumberOfNotifications; + assert responseString.contains("ACTIVE") + assert responseString.contains("SUCCESS") + assert responseString.contains("FINAL_SUCCESS") + assert !responseString.contains("FAILURE") +} +</stringProp> + <stringProp name="scriptLanguage">groovy</stringProp> + </JSR223Assertion> + <hashTree/> + </hashTree> + </hashTree> + <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Clean up DMaaP notification topic" enabled="true"/> + <hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Clean up DMaaP notification topic" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=100&timeout=500</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Clean up DMaaP notification topic</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + </hashTree> + <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test example policy - failure" enabled="true"/> + <hashTree> + <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="true"> + <stringProp name="groupSize">${threads}</stringProp> + <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp> + </SyncTimer> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Trigger Event - example failure" enabled="true"> + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> + <collectionProp name="Arguments.arguments"> + <elementProp name="" elementType="HTTPArgument"> + <boolProp name="HTTPArgument.always_encode">false</boolProp> + <stringProp name="Argument.value">{
 + "event": {
 + "commonEventHeader": {
 + "domain": "fault",
 + "eventId": "fault0000245",
 + "eventName": "Fault_Vscf:PilotNumberPoolExhaustion",
 + "lastEpochMicrosec": 1413378172000000,
 + "priority": "High",
 + "reportingEntityName": "ibcx0001vm002oam001",
 + "sequence": 1,
 + "sourceId": "de305d54-75b4-431b-adb2-eb6b9e546014",
 + "sourceName": "vfw-cnf-cds-test-2-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": "InActive"
 + }
 + }
 +}</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + </collectionProp> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/unauthenticated.DCAE_POLICY_EXAMPLE_OUTPUT</stringProp> + <stringProp name="HTTPSampler.method">POST</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Send Trigger Event - example failure</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="true"> + <stringProp name="ConstantTimer.delay">${wait}</stringProp> + </ConstantTimer> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Read notification events - example failure" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${SIM_HOST}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=50&timeout=30000</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Read notification events - example failure</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true"> + <stringProp name="cacheKey">true</stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="script">import groovy.json.JsonSlurper; + +def res = []; +if (prev.getResponseCode() == '200') { + def jsonSlurper = new JsonSlurper(); + def responseString = prev.getResponseDataAsString(); + res = jsonSlurper.parseText(responseString); + def expectedNumberOfNotifications = ${threads} * 2; + assert res instanceof List; + assert res.size() == expectedNumberOfNotifications; + assert responseString.contains("ACTIVE") + assert responseString.contains("FINAL_FAILURE") + assert !responseString.contains("FINAL_SUCCESS") +} +</stringProp> + <stringProp name="scriptLanguage">groovy</stringProp> + </JSR223Assertion> <hashTree/> </hashTree> </hashTree> @@ -2764,7 +7191,10 @@ if (prev.getResponseCode() == '200') { "action": "DELETE",
 "policies": [
 {
 - "name": "operational.apex.stabilityTestDefaultDomain",
 + "name": "onap.policies.apex.Simplecontrolloop",
 + "version": "1.0.0"
 + }, {
 + "name": "onap.policies.apex.Example",
 "version": "1.0.0"
 }
 ]
 @@ -2811,7 +7241,7 @@ if (prev.getResponseCode() == '200') { <stringProp name="HTTPSampler.port">${API_PORT}</stringProp> <stringProp name="HTTPSampler.protocol">https</stringProp> <stringProp name="HTTPSampler.contentEncoding"></stringProp> - <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies/operational.apex.stabilityTestDefaultDomain/versions/1.0.0</stringProp> + <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies/onap.policies.apex.Simplecontrolloop/versions/1.0.0</stringProp> <stringProp name="HTTPSampler.method">DELETE</stringProp> <boolProp name="HTTPSampler.follow_redirects">true</boolProp> <boolProp name="HTTPSampler.auto_redirects">false</boolProp> @@ -2833,6 +7263,405 @@ if (prev.getResponseCode() == '200') { </ResponseAssertion> <hashTree/> </hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Delete Policy" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.port">${API_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">https</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/policy/api/v1/policytypes/onap.policies.native.Apex/versions/1.0.0/policies/onap.policies.apex.Example/versions/1.0.0</stringProp> + <stringProp name="HTTPSampler.method">DELETE</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">1</intProp> + </ResponseAssertion> + <hashTree/> + </hashTree> + </hashTree> + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Clear DMaaP" enabled="false"> + <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> + <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> + <boolProp name="LoopController.continue_forever">false</boolProp> + <intProp name="LoopController.loops">-1</intProp> + </elementProp> + <stringProp name="ThreadGroup.num_threads">${threads}</stringProp> + <stringProp name="ThreadGroup.ramp_time">1</stringProp> + <boolProp name="ThreadGroup.scheduler">true</boolProp> + <stringProp name="ThreadGroup.duration">259200</stringProp> + <stringProp name="ThreadGroup.delay"></stringProp> + <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> + </ThreadGroup> + <hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Health Check" enabled="false"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.port">${APEX_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">https</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/policy/apex-pdp/v1/healthcheck</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + </HTTPSamplerProxy> + <hashTree> + <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="JSR223 Assertion" enabled="true"> + <stringProp name="cacheKey">true</stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="script">import groovy.json.JsonSlurper; + +def res = []; +if (prev.getResponseCode() == '200') { + def jsonSlurper = new JsonSlurper(); + res = jsonSlurper.parseText(prev.getResponseDataAsString()); + + assert res instanceof Map; + assert res.healthy == true; + assert res.message == 'alive'; +} +</stringProp> + <stringProp name="scriptLanguage">groovy</stringProp> + </JSR223Assertion> + <hashTree/> + </hashTree> + <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Test Controller" enabled="true"/> + <hashTree> + <SyncTimer guiclass="TestBeanGUI" testclass="SyncTimer" testname="Synchronizing Timer" enabled="false"> + <stringProp name="groupSize">${threads}</stringProp> + <stringProp name="timeoutInMs">${threadsTimeOutInMs}</stringProp> + </SyncTimer> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Send Input Event" enabled="false"> + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> + <collectionProp name="Arguments.arguments"> + <elementProp name="" elementType="HTTPArgument"> + <boolProp name="HTTPArgument.always_encode">false</boolProp> + <stringProp name="Argument.value">{
 + "event": {
 + "commonEventHeader": {
 + "startEpochMicrosec": 1597953057126,
 + "sourceId": "927b2580-36d9-4f13-8421-3c9d43b7a57${__threadNum}",
 + "eventId": "8c7935a4-79d8-4ec0-b661-dcca3cd6800${__threadNum}",
 + "lastEpochMicrosec": 1597952499468,
 + "eventName": "Report hostname & IP",
 + "sourceName": "PNF101",
 + "reportingEntityName": "DCAE",
 + "vesEventListenerVersion": "7.1",
 + "internalHeaderFields": {},
 + "version": "4.0.1",
 + "priority": "Normal",
 + "sequence": 1,
 + "domain": "other"
 + },
 + "otherFields": {
 + "hashMap": {
 + "hostname": "UNDEFINED",
 + "pnfId": "927b2580-36d9-4f13-8421-3c9d43b7a57e",
 + "pnfName": "PNF101",
 + "ip": "10.101.200.10"
 + },
 + "otherFieldsVersion": "3.0"
 + }
 + }
 +}</stringProp> + <stringProp name="Argument.metadata">=</stringProp> + </elementProp> + </collectionProp> + </elementProp> + <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/unauthenticated.DCAE_CL_OUTPUT</stringProp> + <stringProp name="HTTPSampler.method">POST</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Send input event to apex-pdp</stringProp> + </HTTPSamplerProxy> + <hashTree> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> + <stringProp name="ConstantTimer.delay">1000</stringProp> + </ConstantTimer> + <hashTree/> + </hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get the ouput event response" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">172.16.2.173</stringProp> + <stringProp name="HTTPSampler.port">3904</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?timeout=30000</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Check output event </stringProp> + </HTTPSamplerProxy> + <hashTree> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> + <stringProp name="ConstantTimer.delay">1000</stringProp> + </ConstantTimer> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="1925346054">ACTIVE</stringProp> + <stringProp name="-310150889">VES event has been received. Going to fetch details from AAI.</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">2</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response message coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> + <stringProp name="ConstantTimer.delay">${wait}</stringProp> + </ConstantTimer> + <hashTree/> + </hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get the ouput event response" enabled="false"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=1&timeout=30000</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Check output event </stringProp> + </HTTPSamplerProxy> + <hashTree> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> + <stringProp name="ConstantTimer.delay">1000</stringProp> + </ConstantTimer> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="-1149187101">SUCCESS</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">2</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response message coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> + <stringProp name="ConstantTimer.delay">${wait}</stringProp> + </ConstantTimer> + <hashTree/> + </hashTree> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get the ouput event response" enabled="false"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?limit=1&timeout=30000</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Check output event </stringProp> + </HTTPSamplerProxy> + <hashTree> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> + <stringProp name="ConstantTimer.delay">1000</stringProp> + </ConstantTimer> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="439453178">FINAL_SUCCESS</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">2</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response message coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> + <stringProp name="ConstantTimer.delay">${wait}</stringProp> + </ConstantTimer> + <hashTree/> + </hashTree> + <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="While Controller" enabled="false"> + <stringProp name="WhileController.condition">${__javaScript(("${response}".indexOf("VES event has been received. Going to fetch details from AAI") == -1 && ${counter} < 5),)}</stringProp> + </WhileController> + <hashTree> + <CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="Counter" enabled="true"> + <stringProp name="CounterConfig.start">0</stringProp> + <stringProp name="CounterConfig.end">1</stringProp> + <stringProp name="CounterConfig.incr">1</stringProp> + <stringProp name="CounterConfig.name"></stringProp> + <stringProp name="CounterConfig.format"></stringProp> + <boolProp name="CounterConfig.per_user">false</boolProp> + </CounterConfig> + <hashTree/> + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Get the ouput event response" enabled="true"> + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> + <collectionProp name="Arguments.arguments"/> + </elementProp> + <stringProp name="HTTPSampler.domain">${HOSTNAME}</stringProp> + <stringProp name="HTTPSampler.port">${DMAAP_PORT}</stringProp> + <stringProp name="HTTPSampler.protocol">http</stringProp> + <stringProp name="HTTPSampler.contentEncoding"></stringProp> + <stringProp name="HTTPSampler.path">/events/APEX-CL-MGT/cg${__threadNum}/c1?timeout=30000</stringProp> + <stringProp name="HTTPSampler.method">GET</stringProp> + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> + <stringProp name="HTTPSampler.connect_timeout"></stringProp> + <stringProp name="HTTPSampler.response_timeout"></stringProp> + <stringProp name="TestPlan.comments">Check output event </stringProp> + </HTTPSamplerProxy> + <hashTree> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> + <stringProp name="ConstantTimer.delay">1000</stringProp> + </ConstantTimer> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Code" enabled="true"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="49586">200</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">8</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response code coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Assert Response Message" enabled="false"> + <collectionProp name="Asserion.test_strings"> + <stringProp name="1925346054">ACTIVE</stringProp> + <stringProp name="-310150889">VES event has been received. Going to fetch details from AAI.</stringProp> + </collectionProp> + <stringProp name="Assertion.custom_message"></stringProp> + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> + <boolProp name="Assertion.assume_success">false</boolProp> + <intProp name="Assertion.test_type">2</intProp> + <stringProp name="Scope.variable">Response code</stringProp> + <stringProp name="TestPlan.comments">Assert response message coming back from apex-pdp</stringProp> + </ResponseAssertion> + <hashTree/> + <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="WAIT" enabled="false"> + <stringProp name="ConstantTimer.delay">${wait}</stringProp> + </ConstantTimer> + <hashTree/> + <JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="JSR223 PostProcessor" enabled="true"> + <stringProp name="cacheKey">true</stringProp> + <stringProp name="filename"></stringProp> + <stringProp name="parameters"></stringProp> + <stringProp name="script">vars.put("response", prev.getResponseDataAsString());</stringProp> + <stringProp name="scriptLanguage">groovy</stringProp> + </JSR223PostProcessor> + <hashTree/> + </hashTree> + </hashTree> + </hashTree> </hashTree> <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true"> <boolProp name="ResultCollector.error_logging">false</boolProp> @@ -2863,11 +7692,12 @@ if (prev.getResponseCode() == '200') { <bytes>true</bytes> <sentBytes>true</sentBytes> <threadCounts>true</threadCounts> + <sampleCount>true</sampleCount> <idleTime>true</idleTime> <connectTime>true</connectTime> </value> </objProp> - <stringProp name="filename">/home/adityap/apex_stability/Stability.log</stringProp> + <stringProp name="filename">/home/asreekumar/jmeter_results/apex_stability/summary.log</stringProp> </ResultCollector> <hashTree/> <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> @@ -2899,11 +7729,12 @@ if (prev.getResponseCode() == '200') { <bytes>true</bytes> <sentBytes>true</sentBytes> <threadCounts>true</threadCounts> + <sampleCount>true</sampleCount> <idleTime>true</idleTime> <connectTime>true</connectTime> </value> </objProp> - <stringProp name="filename">/home/adityap/apex_stability/resultTree.log</stringProp> + <stringProp name="filename">/home/asreekumar/jmeter_results/apex_stability/resultTree.log</stringProp> </ResultCollector> <hashTree/> <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" enabled="true"> @@ -2935,11 +7766,12 @@ if (prev.getResponseCode() == '200') { <bytes>true</bytes> <sentBytes>true</sentBytes> <threadCounts>true</threadCounts> + <sampleCount>true</sampleCount> <idleTime>true</idleTime> <connectTime>true</connectTime> </value> </objProp> - <stringProp name="filename">/home/adityap/apex_stability/resultTable.log</stringProp> + <stringProp name="filename">/home/asreekumar/jmeter_results/apex_stability/resultTable.log</stringProp> </ResultCollector> <hashTree/> </hashTree> |