--- /dev/null
+[\r
+ {\r
+ "id": "b83fc37f.f69e88",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 160,\r
+ "y": 45,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "78e991f6.6f7c58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1dd92dc7.5da5d2",\r
+ "type": "method",\r
+ "name": "method get-data-from-policy",\r
+ "xml": "<method rpc='get-data-from-policy' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 750,\r
+ "y": 45,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "33ec20fb.28aa18"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "78e991f6.6f7c58",\r
+ "type": "service-logic",\r
+ "name": "GENERIC-RESOURCE-API ${project.version}",\r
+ "module": "GENERIC-RESOURCE-API",\r
+ "version": "${project.version}",\r
+ "comments": "",\r
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",\r
+ "outputs": 1,\r
+ "x": 427.9403991699219,\r
+ "y": 45.32145690917969,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "1dd92dc7.5da5d2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "cbf06f1d.725928",\r
+ "type": "comment",\r
+ "name": "Call Policy Manager getPolicy",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 314,\r
+ "y": 228,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "46375ae1.7b558c",\r
+ "type": "execute",\r
+ "name": "execute RestapiCallNode",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.pm.getpolicy.templatefile`\" />\n <parameter name='restapiUrl' value=\"`$prop.policy-manager.url + '/pdp/api/getConfig'`\" />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' /> \n <parameter name='customHttpHeaders'\n value=\"`'Authorization=Basic ' + $prop.policy-manager.authorization + ',ClientAuth=Basic ' + $prop.policy-manager.clientauth + ',Environment=' + $prop.policy-manager.environment `\" />\n\t<parameter name=\"responsePrefix\" value=\"tmp.pm-response\" />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 468,\r
+ "y": 352,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "a789fff2.8e6668",\r
+ "f694d7c1.52ec1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "19b66f4d.72dee9",\r
+ "type": "set",\r
+ "name": "set",\r
+ "xml": "<set>\n<parameter name='tmp.policy-name' value=\"`$get-data-from-policy-input.policy-instance-name`\" />\n",\r
+ "comments": "",\r
+ "x": 414,\r
+ "y": 273,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4ce19c9e.b25124",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 271,\r
+ "y": 271,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "19b66f4d.72dee9",\r
+ "46375ae1.7b558c",\r
+ "ac19e1c6.8e36a8",\r
+ "d8d1e5cb.101cc",\r
+ "f617542d.84f16",\r
+ "a278ba14.2107c8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ac19e1c6.8e36a8",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: restapi-call-node Call Policy Manager getPolicy\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 414,\r
+ "y": 313,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "d7e1c7cf.a18d1",\r
+ "type": "execute",\r
+ "name": "execute readProperties",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 977,\r
+ "y": 117,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "59fd6138.91c4f8",\r
+ "d5dccc24.0e693"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "59fd6138.91c4f8",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1224,\r
+ "y": 95,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "b5511e69.3d8618"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d5dccc24.0e693",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1222,\r
+ "y": 136,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "947a2b69.ec9398"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "33ec20fb.28aa18",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 162,\r
+ "y": 85,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "4ce19c9e.b25124",\r
+ "a8f9fb15.acf4e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "72af1062.d19fd8",\r
+ "type": "comment",\r
+ "name": "Read properties",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 952,\r
+ "y": 70,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f3a9b2ce.918548",\r
+ "type": "comment",\r
+ "name": "Process Policy Manager response",\r
+ "info": "Use the three naming components returned from Policy Manager to build the name\n\nExtract from json response three data components:\n\n1. VNFNAME\n2. CONSTANT_TAG\n3. SEQUENCE",\r
+ "comments": "",\r
+ "x": 498,\r
+ "y": 443,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d8d1e5cb.101cc",\r
+ "type": "execute",\r
+ "name": "execute jsonStringToCtx",\r
+ "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"policy-config\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"true\" />\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 474,\r
+ "y": 523,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "9bb879f3.58bda",\r
+ "8ddbc03f.308d9"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f617542d.84f16",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: call jsonStringToCtx\"/>\n<parameter name='field3' value='`$policy-config`' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 419,\r
+ "y": 481,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a789fff2.8e6668",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 671,\r
+ "y": 342,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "b2b110f6.fc0288"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9a2680ce.7f8d88",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: Error calling Policy Manager getPolicy\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 932,\r
+ "y": 303,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f694d7c1.52ec1",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 673,\r
+ "y": 384,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "4b6fc822.22489"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f53edd55.57cb58",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: getPolicy SUCCESS\"/>\n<parameter name='field3' value='`$tmp.pm-response.type`' />\n<parameter name='field4' value='`$tmp.pm-response.matchingConditions`' />\n<parameter name='field5' value='`$tmp.pm-response.config`' />\n<parameter name='field6' value='`$tmp.pm-response.response-code`' />\n<parameter name='field7' value='`$tmp.pm-response.response-message`' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 927,\r
+ "y": 380,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "bf2f9549.b5432",\r
+ "type": "set",\r
+ "name": "set",\r
+ "xml": "<set>\n<parameter name='policy-config' value=\"`$tmp.pm-response.config`\" />\n",\r
+ "comments": "",\r
+ "x": 928,\r
+ "y": 418,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "9bb879f3.58bda",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 671,\r
+ "y": 524,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "e4a38d89.8cc9c8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "bb351685.940688",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: Error calling jsonStringToCtx\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 925,\r
+ "y": 515,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "8ddbc03f.308d9",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 491,\r
+ "y": 573,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "3c75d70f.d3c808"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "596244e1.06352c",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: jsonStringToCtx SUCCESS: policyName|policy-data|\"/>\n<parameter name='field3' value='`$jsonContextPrefix.policyName`' />\n<parameter name='field4' value='`$jsonContextPrefix.content.policy-data`' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 674,\r
+ "y": 620,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3c75d70f.d3c808",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 502,\r
+ "y": 616,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "596244e1.06352c",\r
+ "dd037e4c.c7bb3",\r
+ "5c9052.5d187fb",\r
+ "17b1aaaa.debfa5",\r
+ "11920eb2.868ba1"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6c8a4a5d.6a7de4",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='get-data-from-policy: getPolicy call to Policy Manger failed' />\n",\r
+ "comments": "",\r
+ "x": 950,\r
+ "y": 341,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f2b6fd24.7801",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='504' />\n<parameter name='error-message' value='get-data-from-policy: failed to parse Policy Manger getPolicy response' />\n",\r
+ "comments": "",\r
+ "x": 941,\r
+ "y": 554,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b2b110f6.fc0288",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 798,\r
+ "y": 341,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "9a2680ce.7f8d88",\r
+ "6c8a4a5d.6a7de4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e4a38d89.8cc9c8",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 799,\r
+ "y": 524,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "bb351685.940688",\r
+ "f2b6fd24.7801"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "61c23f62.ad7b28",\r
+ "type": "comment",\r
+ "name": "Validate inputs",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 948,\r
+ "y": 178,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "392811b2.b8197e",\r
+ "type": "switchNode",\r
+ "name": "switch input.policy-instance-name",\r
+ "xml": "<switch test='`$get-data-from-policy-input.policy-instance-name`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1007,\r
+ "y": 226,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "71c6380.f2d7cc8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "71c6380.f2d7cc8",\r
+ "type": "other",\r
+ "name": "Blank",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1224,\r
+ "y": 229,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "ac7758e6.06c038"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a8f9fb15.acf4e",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 270,\r
+ "y": 178,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "d7e1c7cf.a18d1",\r
+ "392811b2.b8197e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d0858194.bb868",\r
+ "type": "comment",\r
+ "name": "Read properties and validate inputs",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 341,\r
+ "y": 132,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4b6fc822.22489",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 799,\r
+ "y": 385,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "f53edd55.57cb58",\r
+ "bf2f9549.b5432",\r
+ "9c6a1592.fb19c8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9c6a1592.fb19c8",\r
+ "type": "switchNode",\r
+ "name": "switch response-code",\r
+ "xml": "<switch test='`$tmp.pm-response.response-code`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 983,\r
+ "y": 462,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "6e86997d.26955"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6e86997d.26955",\r
+ "type": "outcome",\r
+ "name": "500",\r
+ "xml": "<outcome value='500'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1165,\r
+ "y": 463,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "659860d.dc39e2"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "659860d.dc39e2",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1168,\r
+ "y": 511,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "10b87f4.b81b681",\r
+ "cb7b17e7.127258"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "10b87f4.b81b681",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: Error calling Policy Manager getPolicy\"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1316,\r
+ "y": 489,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "cb7b17e7.127258",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='get-data-from-policy: getPolicy call to Policy Manger failed' />\n",\r
+ "comments": "",\r
+ "x": 1336,\r
+ "y": 528,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b5511e69.3d8618",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1380,\r
+ "y": 95,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "4f062576.7b6584"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "947a2b69.ec9398",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1359,\r
+ "y": 138,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "24195f46.ca98f8",\r
+ "566a8d54.f462dc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4f062576.7b6584",\r
+ "type": "GenericXML",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: read properties file.\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1527,\r
+ "y": 95,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "24195f46.ca98f8",\r
+ "type": "GenericXML",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: Could not read properties file.\"/>\n<parameter name=\"field3\" value='`$prop.restapi.pm.getpolicy.templatefile`'/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1528,\r
+ "y": 135,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "566a8d54.f462dc",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='501' />\n<parameter name='error-message' value='get-data-from-policy: could not read generic-resource-api properties' />\n",\r
+ "comments": "",\r
+ "x": 1547,\r
+ "y": 176,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ac7758e6.06c038",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1368,\r
+ "y": 229,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "d28d8a99.9ae948",\r
+ "3c7d35d5.15560a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d28d8a99.9ae948",\r
+ "type": "GenericXML",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: input.policy-instance-name is not set\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1530,\r
+ "y": 228,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "3c7d35d5.15560a",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='507' />\n<parameter name='error-message' value='get-data-from-policy: input.policy-instance-name is not set' />\n",\r
+ "comments": "",\r
+ "x": 1545,\r
+ "y": 264,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "925a65d4.ac3ab8",\r
+ "type": "comment",\r
+ "name": "Loop thru policy-data when it is a list",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 588,\r
+ "y": 691,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "c1f590f5.8f2c5",\r
+ "type": "for",\r
+ "name": "for each policy-data element",\r
+ "xml": "<for index='policyDataIndex' start='0' end='`$jsonContextPrefix.content.policy-data_length`' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1014,\r
+ "y": 737,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "e9c505d9.7641f8",\r
+ "27b7d1c2.c574de"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "56f2caaf.a21404",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 793,\r
+ "y": 737,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "c1f590f5.8f2c5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e9c505d9.7641f8",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: policyDataIndex|nf-role|rule-1|rule-2:\"/>\n<parameter name='field3' value='`$policyDataIndex`' />\n<parameter name='field4' value='`$jsonContextPrefix.content.policy-data[$policyDataIndex].nf-role`' />\n<parameter name='field5' value='`$jsonContextPrefix.content.policy-data[$policyDataIndex].rule-1`' />\n<parameter name='field6' value='`$jsonContextPrefix.content.policy-data[$policyDataIndex].rule-2`' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 987,\r
+ "y": 837,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "5c9052.5d187fb",\r
+ "type": "set",\r
+ "name": "set known policy-data element name and value",\r
+ "xml": "<set>\n<parameter name='get-data-from-policy-output.' value='`$jsonContextPrefix.content.policy-data.`' />",\r
+ "comments": "",\r
+ "x": 619,\r
+ "y": 1187,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3f8ba63d.63076a",\r
+ "type": "for",\r
+ "name": "for each nested extended-params element extract name and value",\r
+ "xml": "<for index='policyDataExtendedParamsIndex' start='0' end='`$jsonContextPrefix.content.policy-data.extended-params_length`' >",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1125,\r
+ "y": 947,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "46e505f4.b9ba4c",\r
+ "f735acce.c6ff4",\r
+ "478129ad.d071b8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a2112800.e14638",\r
+ "type": "comment",\r
+ "name": "Get extended-params when policy-data is not a list",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 627,\r
+ "y": 893,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "dff4e845.8c2d38",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 792,\r
+ "y": 947,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "3f8ba63d.63076a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "46e505f4.b9ba4c",\r
+ "type": "set",\r
+ "name": "set name and value from extended params element",\r
+ "xml": "<set>\n<parameter name='output-param-name' value='`$jsonContextPrefix.content.policy-data.extended-params[$policyDataExtendedParamsIndex].param-name`' />\n<parameter name='output-param-value' value='`$jsonContextPrefix.content.policy-data.extended-params[$policyDataExtendedParamsIndex].param-value`' />",\r
+ "comments": "",\r
+ "x": 1115,\r
+ "y": 1000,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "dd037e4c.c7bb3",\r
+ "type": "switchNode",\r
+ "name": "switch",\r
+ "xml": "<switch test='`$jsonContextPrefix.content.policy-data_length > 0`'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 505,\r
+ "y": 737,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "72c5a068.2a844"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "72c5a068.2a844",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 634,\r
+ "y": 737,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "56f2caaf.a21404"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "1414756.a77f98b",\r
+ "type": "comment",\r
+ "name": "Set known output params",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 550,\r
+ "y": 1140,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "17b1aaaa.debfa5",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: get-data-from-policy-output.:\"/>\n<parameter name='field3' value='`$get-data-from-policy-output.`' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 499,\r
+ "y": 1232,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "11920eb2.868ba1",\r
+ "type": "switchNode",\r
+ "name": "switch",\r
+ "xml": "<switch test='`$jsonContextPrefix.content.policy-data.extended-params_length > 0`'>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 504,\r
+ "y": 947,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "6f485d54.b981f4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f485d54.b981f4",\r
+ "type": "outcomeTrue",\r
+ "name": "true",\r
+ "xml": "<outcome value='true'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 633,\r
+ "y": 947,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ [\r
+ "dff4e845.8c2d38"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f7e9500f.a774f",\r
+ "type": "execute",\r
+ "name": "printContext",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/get-data-from-policy.log' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 516,\r
+ "y": 1305,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "a278ba14.2107c8",\r
+ "type": "returnSuccess",\r
+ "name": "return success",\r
+ "xml": "<return status='success'>",\r
+ "comments": "",\r
+ "x": 473,\r
+ "y": 1413,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "f735acce.c6ff4",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: policyDataExtendedParamsIndex|output-param-name|output-param-value:\"/>\n<parameter name='field3' value='`$policyDataExtendedParamsIndex`' />\n<parameter name='field4' value='`$output-param-name`' />\n<parameter name='field5' value='`$output-param-value`' />",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 977,\r
+ "y": 1100,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "478129ad.d071b8",\r
+ "type": "set",\r
+ "name": "set output name and value pair from extended params",\r
+ "xml": "<set>\n<parameter name=\"`'get-data-from-policy-output.' + $output-param-name`\" value=\"`$output-param-value`\" />",\r
+ "comments": "",\r
+ "x": 1119,\r
+ "y": 1048,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "56f0abfe.71e324",\r
+ "type": "set",\r
+ "name": "set output element for name and values",\r
+ "xml": "<set>\n<parameter name=\"`'get-data-from-policy-output[' + $policyDataIndex + '].nf-role'`\" value= '`$jsonContextPrefix.content.policy-data[$policyDataIndex].nf-role`' />\n<parameter name=\"`'get-data-from-policy-output[' + $policyDataIndex + '].rule-1'`\" value= '`$jsonContextPrefix.content.policy-data[$policyDataIndex].rule-1`' />\n<parameter name=\"`'get-data-from-policy-output[' + $policyDataIndex + '].rule-2'`\" value= '`$jsonContextPrefix.content.policy-data[$policyDataIndex].rule-2`' />",\r
+ "comments": "",\r
+ "x": 1350,\r
+ "y": 737,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "27b7d1c2.c574de",\r
+ "type": "set",\r
+ "name": "set known policy-data element name and value",\r
+ "xml": "<set>\n<parameter name=\"`'get-data-from-policy-output[' + $policyDataIndex + ']'`.\" value= '`$jsonContextPrefix.content.policy-data[$policyDataIndex].`' />",\r
+ "comments": "",\r
+ "x": 1107,\r
+ "y": 789,\r
+ "z": "9eef7e7e.8f1058",\r
+ "wires": []\r
+ }\r
+]
\ No newline at end of file