-[
- {
- "id": "c219d1cd.b24c6",
- "type": "service-logic",
- "name": "A1-ADAPTER-API ${project.version}",
- "module": "A1-ADAPTER-API",
- "version": "${project.version}",
- "comments": "",
- "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='A1-ADAPTER-API' version='${project.version}'>",
- "outputs": 1,
- "x": 160,
- "y": 193.0000033378601,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "9062821.e79448"
- ]
- ]
- },
- {
- "id": "9062821.e79448",
- "type": "method",
- "name": "method getA1PolicyType",
- "xml": "<method rpc='getA1PolicyType' mode='sync'>\n",
- "comments": "",
- "outputs": 1,
- "x": 223.00000762939453,
- "y": 316.00001287460327,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "b06c71a4.a1c38"
- ]
- ]
- },
- {
- "id": "6b437f41.4e82c",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Get Policy Type:\"/>\n<parameter name=\"field2\" value=\"`$get-a1-policy-type-input.near-rt-ric-url`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 688.0000267028809,
- "y": 129.0000023841858,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- },
- {
- "id": "b06c71a4.a1c38",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 426,
- "y": 267.0000033378601,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "6b437f41.4e82c",
- "b3ae1bd6.d9e298",
- "5e269c0a.ba2164",
- "10718683.4eee19",
- "7cdd0fec.392c7"
- ]
- ]
- },
- {
- "id": "e8848e67.6f55e",
- "type": "dgstart",
- "name": "DGSTART",
- "outputs": 1,
- "x": 93,
- "y": 129.0000033378601,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "c219d1cd.b24c6"
- ]
- ]
- },
- {
- "id": "b3ae1bd6.d9e298",
- "type": "set",
- "name": "set default status value",
- "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='getA1PolicyType executed successfully' />",
- "comments": "",
- "x": 725.0001068115234,
- "y": 182.00000143051147,
- "z": "db67b85c.6b1fb8",
- "wires": []
- },
- {
- "id": "5e269c0a.ba2164",
- "type": "execute",
- "name": "execute Properties",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/a1-adapter-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
- "comments": "",
- "outputs": 1,
- "x": 725,
- "y": 235.0000033378601,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- },
- {
- "id": "7cdd0fec.392c7",
- "type": "block",
- "name": "A1 Mediator RestAPI Invocation",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 749.0001525878906,
- "y": 320.99999713897705,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "b1799881.cfcac8",
- "b226a8f0.348128",
- "8754f00.41fc21"
- ]
- ]
- },
- {
- "id": "b1799881.cfcac8",
- "type": "set",
- "name": "set tmp variables for A1 Mediator REST API call",
- "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-url\" value=\"`$get-a1-policy-type-input.near-rt-ric-url`\"/>",
- "comments": "",
- "x": 1199.00146484375,
- "y": 253.88914489746094,
- "z": "db67b85c.6b1fb8",
- "wires": []
- },
- {
- "id": "b226a8f0.348128",
- "type": "execute",
- "name": "Get Policy Types",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.near-rt-ric-url`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"a1MediatorRsp\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1006.000602722168,
- "y": 382.01037979125977,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "37dbc1e3.6a3a5e",
- "debfb4b6.a67ed8"
- ]
- ]
- },
- {
- "id": "37dbc1e3.6a3a5e",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1110.0000610351562,
- "y": 467.0001220703125,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "4eefe752.1c7e88"
- ]
- ]
- },
- {
- "id": "debfb4b6.a67ed8",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1286.000244140625,
- "y": 378.0000305175781,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "9ab3dc21.fe41a"
- ]
- ]
- },
- {
- "id": "54c0577b.f3ecf8",
- "type": "returnFailure",
- "name": "return failure",
- "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"404\" />\n<parameter name=\"response-message\" value=\"Error in Getting A1 Policy Type. Aborting\" />",
- "comments": "",
- "x": 1382.0006103515625,
- "y": 520.0001220703125,
- "z": "db67b85c.6b1fb8",
- "wires": []
- },
- {
- "id": "9ab3dc21.fe41a",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1405.9999084472656,
- "y": 340.00007581710815,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "a9c5eacf.c24728",
- "82bcac96.18a1",
- "c00428bd.5a7f58"
- ]
- ]
- },
- {
- "id": "a9c5eacf.c24728",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A1 Policy Type Information \"/>\n<parameter name=\"field2\" value=\"`$a1MediatorRsp.httpResponse`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1644,
- "y": 249.00000524520874,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- },
- {
- "id": "1ba71083.247e6f",
- "type": "set",
- "name": "set",
- "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
- "comments": "",
- "x": 1364.7539672851562,
- "y": 418.0039367675781,
- "z": "db67b85c.6b1fb8",
- "wires": []
- },
- {
- "id": "10718683.4eee19",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 686.7539405822754,
- "y": 443.0039978027344,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "f62ba5fc.044078"
- ]
- ]
- },
- {
- "id": "f62ba5fc.044078",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='A1 Adapter is healthy'/>\n<parameter name='health-status' value='200'/>\n<parameter name='ack-final' value='Y'/>\n",
- "comments": "",
- "x": 901.7540321350098,
- "y": 443.0039367675781,
- "z": "db67b85c.6b1fb8",
- "wires": []
- },
- {
- "id": "4eefe752.1c7e88",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 1238.0039367675781,
- "y": 469.00392150878906,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "54c0577b.f3ecf8",
- "1ba71083.247e6f"
- ]
- ]
- },
- {
- "id": "8754f00.41fc21",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for A1 Adapter Get Policy Type.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-url`\"/>",
- "comments": "",
- "outputs": 1,
- "x": 1129.9999351501465,
- "y": 304.0000157356262,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- },
- {
- "id": "c00428bd.5a7f58",
- "type": "execute",
- "name": "Object to string - ctxSetAttribute",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxSetAttribute'>\n\t<parameter name='object' value=\t\"`$a1MediatorRsp.httpResponse`\" />\n\t<parameter name='key' value='a1PolicyTypeResponse' />",
- "comments": "",
- "outputs": 1,
- "x": 1718.0001220703125,
- "y": 366.00001287460327,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- },
- {
- "id": "82bcac96.18a1",
- "type": "execute",
- "name": "printContext",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/A1-Adapter-getPolicytype-specific-context.log' />\n\n\n",
- "comments": "",
- "outputs": 1,
- "x": 1672.0000038146973,
- "y": 425.00000524520874,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- },
- {
- "id": "c2524ba6.93b3f8",
- "type": "execute",
- "name": "execute jsonStringToCtx",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='a1MediatorRsp.httpResponse' />\n\t<parameter name='outputPath' value='a1MediatorgetPolicyType' />\n\t<parameter name='isEscaped' value='false' />",
- "comments": "",
- "outputs": 1,
- "x": 1694.0001220703125,
- "y": 318.00001287460327,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- },
- {
- "id": "4d5a07cf.0a3ee8",
- "type": "execute",
- "name": "remove new lines",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >\n <parameter name=\"source\" value=\"`$a1MediatorRsp.httpResponse`\"/>\n <parameter name=\"outputPath\" value=\"tmp.a1-mediator-restapi.payload\"/>\n <parameter name=\"target\" value=\"\\n\"/>\n <parameter name=\"replacement\" value=\"\"/>\n",
- "comments": "",
- "outputs": 1,
- "x": 2497.0001525878906,
- "y": 457.0000305175781,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "4a30bb8b.273024",
- "8c2e4d0d.9cbb2"
- ]
- ]
- },
- {
- "id": "4a30bb8b.273024",
- "type": "success",
- "name": "success",
- "xml": "<outcome value='success'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2804.5001831054688,
- "y": 418.00004386901855,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "3483ac68.9da354"
- ]
- ]
- },
- {
- "id": "3483ac68.9da354",
- "type": "block",
- "name": "block : atomic",
- "xml": "<block atomic='true'>",
- "atomic": "true",
- "comments": "",
- "outputs": 1,
- "x": 2939.5003356933594,
- "y": 488.0000762939453,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "3e399081.d736e"
- ]
- ]
- },
- {
- "id": "3e399081.d736e",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Redndred template with lines removed \\r\"/>\n<parameter name='field3' value='`$tmp.a1-mediator-restapi.payload`' />",
- "comments": "",
- "outputs": 1,
- "x": 3122.500473022461,
- "y": 491.0000686645508,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- },
- {
- "id": "8c2e4d0d.9cbb2",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 2814.5001525878906,
- "y": 578.0000788271427,
- "z": "db67b85c.6b1fb8",
- "wires": [
- [
- "ee8be8b9.4a4c48"
- ]
- ]
- },
- {
- "id": "ee8be8b9.4a4c48",
- "type": "block",
- "name": "block",
- "xml": "<block>\n",
- "atomic": "false",
- "comments": "",
- "outputs": 1,
- "x": 2967.5,
- "y": 554.0000715255737,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- },
- {
- "id": "22994ac1.2145d6",
- "type": "execute",
- "name": "Unescape http response",
- "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='unescapeJsonString'>\n\t<parameter name='source' value=\t\"`$a1MediatorRsp.httpResponse`\" />\n\t<parameter name='target' value='a1MediatorRsp.unescaped.httpResponse' />",
- "comments": "",
- "outputs": 1,
- "x": 2517,
- "y": 393.0000023841858,
- "z": "db67b85c.6b1fb8",
- "wires": [
- []
- ]
- }
+[\r
+ {\r
+ "id": "2f4671b1.4a364e",\r
+ "type": "service-logic",\r
+ "name": "A1-ADAPTER-API ${project.version}",\r
+ "module": "A1-ADAPTER-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='A1-ADAPTER-API' version='${project.version}'>",\r
+ "outputs": 1,\r
+ "x": 173,\r
+ "y": 202.11087036132812,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "74d6a6f.e349e58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "74d6a6f.e349e58",\r
+ "type": "method",\r
+ "name": "method getA1PolicyType",\r
+ "xml": "<method rpc='getA1PolicyType' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 236.00000762939453,\r
+ "y": 325.1108798980713,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "f761005e.026d4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "ded0e1ed.d90b8",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Get Policy Type:\"/>\n<parameter name=\"field2\" value=\"`$get-a1-policy-type-input.near-rt-ric-url`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 701.0000267028809,\r
+ "y": 138.1108694076538,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "f761005e.026d4",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 439,\r
+ "y": 276.1108703613281,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "ded0e1ed.d90b8",\r
+ "2baff500.547f5c",\r
+ "fe3000ed.24c2b",\r
+ "16444abc.b89ea5",\r
+ "8cd7c8b3.03d4d8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a30ec915.db69b8",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 106,\r
+ "y": 138.11087036132812,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "2f4671b1.4a364e"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "2baff500.547f5c",\r
+ "type": "set",\r
+ "name": "set default status value",\r
+ "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='getA1PolicyType executed successfully' />",\r
+ "comments": "",\r
+ "x": 738.0001068115234,\r
+ "y": 191.1108684539795,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "fe3000ed.24c2b",\r
+ "type": "execute",\r
+ "name": "execute Properties",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/a1-adapter-api-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 738,\r
+ "y": 244.11087036132812,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "8cd7c8b3.03d4d8",\r
+ "type": "block",\r
+ "name": "A1 Mediator RestAPI Invocation",\r
+ "xml": "<block atomic='true'>",\r
+ "atomic": "true",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 762.0001525878906,\r
+ "y": 330.11086416244507,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "176964cc.05c21b",\r
+ "a874e667.eb9a98",\r
+ "f71606ee.f54688",\r
+ "63821578.3e8abc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "176964cc.05c21b",\r
+ "type": "set",\r
+ "name": "set tmp variables for A1 Mediator REST API call",\r
+ "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-url\" value=\"`$get-a1-policy-type-input.near-rt-ric-url`\"/>\n<parameter name=\"tmp.proxy-url\" value=\"`$prop.a1Mediator.proxy.url`\"/>",\r
+ "comments": "",\r
+ "x": 1149.00146484375,\r
+ "y": 225,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "a874e667.eb9a98",\r
+ "type": "execute",\r
+ "name": "Get Policy Types",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.near-rt-ric-url`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"a1MediatorRsp\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>\n<parameter name=\"proxyUrl\" value=\"`$tmp.proxy-url`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1048.0006103515625,\r
+ "y": 504.1212463378906,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "526251db.acb75",\r
+ "6f33632a.dc1fac"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "526251db.acb75",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1229.0000610351562,\r
+ "y": 562.1109890937805,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "b5ba372c.92ad48"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6f33632a.dc1fac",\r
+ "type": "success",\r
+ "name": "success",\r
+ "xml": "<outcome value='success'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1230.0002136230469,\r
+ "y": 458.11088848114014,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "3914e552.85e15a"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fef8b587.543ac8",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='response-code' value='`$a1MediatorRsp.response-code`'/>\n<parameter name='response-message' value='`$a1MediatorRsp.response-message`'/>",\r
+ "comments": "",\r
+ "x": 1518.0006103515625,\r
+ "y": 596.1109924316406,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "3914e552.85e15a",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1393.9998779296875,\r
+ "y": 432.1109313964844,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "a2b706cb.13b4b8",\r
+ "90dda7a5.529068",\r
+ "85fe9dc4.e41ff"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "a2b706cb.13b4b8",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A1 Policy Type Information \"/>\n<parameter name=\"field2\" value=\"`$tmp.a1-mediator-restapi.httpResponse`\"/>\n<parameter name='field3' value='`$a1MediatorRsp.response-code`'/>\n<parameter name='field4' value='`$a1MediatorRsp.response-message`'/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1565.9999694824219,\r
+ "y": 436.11084842681885,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "e91418e5.8658e8",\r
+ "type": "set",\r
+ "name": "set",\r
+ "xml": "<set>\n<parameter name='response-code' value='`$a1MediatorRsp.response-code`'/>\n<parameter name='response-message' value='`$a1MediatorRsp.response-message`'/>\n",\r
+ "comments": "",\r
+ "x": 1500.75390625,\r
+ "y": 536.1148071289062,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "16444abc.b89ea5",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 685.7539367675781,\r
+ "y": 597.1148681640625,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "35da5f95.df0a6"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "35da5f95.df0a6",\r
+ "type": "returnSuccess",\r
+ "name": "return success",\r
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='A1 Adapter is healthy'/>\n<parameter name='health-status' value='200'/>\n<parameter name='ack-final' value='Y'/>\n",\r
+ "comments": "",\r
+ "x": 900.7540283203125,\r
+ "y": 597.1148071289062,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b5ba372c.92ad48",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1357.0039367675781,\r
+ "y": 564.1147885322571,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "fef8b587.543ac8",\r
+ "e91418e5.8658e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f71606ee.f54688",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for A1 Adapter Get Policy Type.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-url`\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1023.9998779296875,\r
+ "y": 440.1108703613281,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "90dda7a5.529068",\r
+ "type": "execute",\r
+ "name": "set",\r
+ "xml": "<set>\n<parameter name='responseBody' value=\"`$tmp.a1-mediator-restapi.httpResponse`\"/>\n<parameter name='response-code' value='`$a1MediatorRsp.response-code`'/>\n<parameter name='response-message' value='`$a1MediatorRsp.response-message`'/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1567.0000915527344,\r
+ "y": 491.1108589172363,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "85fe9dc4.e41ff",\r
+ "type": "execute",\r
+ "name": "execute",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >\n <parameter name=\"source\" value=\"`$a1MediatorRsp.httpResponse`\"/>\n <parameter name=\"outputPath\" value=\"tmp.a1-mediator-restapi.httpResponse\"/>\n <parameter name=\"target\" value=\"\\n\"/>\n <parameter name=\"replacement\" value=\"\"/>",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1568.9999694824219,\r
+ "y": 387.11084842681885,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "46ef0e6f.ac078",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Get Policy Type: No proxy found on properties file \"/>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1745,\r
+ "y": 258.1108703613281,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "77d9a0fa.cb6ed",\r
+ "type": "outcome",\r
+ "name": "No proxy URL",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1577,\r
+ "y": 258.1108703613281,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "46ef0e6f.ac078"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "4908d507.106ffc",\r
+ "type": "outcome",\r
+ "name": "Otherwise",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1573,\r
+ "y": 326.1108703613281,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "57e4f785.2a2818"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "9126aa92.42c718",\r
+ "type": "switchNode",\r
+ "name": "switch",\r
+ "xml": "<switch test='`$tmp.proxy-url`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1398,\r
+ "y": 292.1108703613281,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "77d9a0fa.cb6ed",\r
+ "4908d507.106ffc"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "57e4f785.2a2818",\r
+ "type": "record",\r
+ "name": "record",\r
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Get Policy Type: Proxy url: \"/>\n<parameter name=\"field2\" value=\"`$tmp.proxy-url`\"/>\n\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1727,\r
+ "y": 326.1108703613281,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "63821578.3e8abc",\r
+ "type": "block",\r
+ "name": "block Substitute proxy address if available",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1131,\r
+ "y": 292.1108703613281,\r
+ "z": "1f7e4863.a496f8",\r
+ "wires": [\r
+ [\r
+ "9126aa92.42c718"\r
+ ]\r
+ ]\r
+ }\r
]
\ No newline at end of file