+ "id": "df3dcdff.980fa",
+ "type": "outcome",
+ "name": "Deployed",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 965.0000457763672,
+ "y": 47.000065326690674,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "d65603a6.a6255"
+ ]
+ ]
+ },
+ {
+ "id": "d65603a6.a6255",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 968.0000152587891,
+ "y": 237.00000953674316,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "fad8a7e7.6c01c8"
+ ]
+ ]
+ },
+ {
+ "id": "fad8a7e7.6c01c8",
+ "type": "block",
+ "name": "A1 Mediator RestAPI Invocation",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1144.0000305175781,
+ "y": 157.0000023841858,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "239aaf9f.539e4"
+ ]
+ ]
+ },
+ {
+ "id": "1b90a5eb.8a64ea",
+ "type": "outcome",
+ "name": "Not Deployed",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 918.0000686645508,
+ "y": 482.0000615119934,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "d91da8b7.4c9cd8"
+ ]
+ ]
+ },
+ {
+ "id": "d91da8b7.4c9cd8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1133.0001068115234,
+ "y": 611.0000143051147,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "373e75ec.2ef50a",
+ "ad639178.ea45b",
+ "1d8bf60c.0ab74a"
+ ]
+ ]
+ },
+ {
+ "id": "373e75ec.2ef50a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"A1 Mediator Not Deployed. Aborting Health Check\" />",
+ "comments": "",
+ "x": 1257.9998626708984,
+ "y": 691.9999988079071,
+ "z": "71073541.7e954c",
+ "wires": []
+ },
+ {
+ "id": "db9f306b.9d952",
+ "type": "comment",
+ "name": "No DMAAP Response Payload",
+ "info": "",
+ "comments": "",
+ "x": 1436,
+ "y": 98,
+ "z": "71073541.7e954c",
+ "wires": []
+ },
+ {
+ "id": "239aaf9f.539e4",
+ "type": "block",
+ "name": "A1 Mediator RestAPI Invocation",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1115,
+ "y": 327.0000139772892,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "a401c326.c2be8",
+ "34de0f9a.82fab",
+ "742ba549.33a0fc"
+ ]
+ ]
+ },
+ {
+ "id": "34de0f9a.82fab",
+ "type": "set",
+ "name": "set tmp variables for A1 Mediator REST API call",
+ "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$get-health-check-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.restapi.healthcheck-url\" value=\"`$prop.restapi.healthcheck`\"/>",
+ "comments": "",
+ "x": 1503.0010681152344,
+ "y": 232.8890978693962,
+ "z": "71073541.7e954c",
+ "wires": []
+ },
+ {
+ "id": "a401c326.c2be8",
+ "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 Health Check.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.restapi.healthcheck-url`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1395.0000305175781,
+ "y": 292.00000286102295,
+ "z": "71073541.7e954c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "742ba549.33a0fc",
+ "type": "execute",
+ "name": "Check A1 Mediator Health",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.a1Mediator.url + '/' + $tmp.restapi.healthcheck-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=\"false\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1428.00048828125,
+ "y": 372.0103898048401,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "54a96509.b22d6c",
+ "5a29f4f5.fc1fcc"
+ ]
+ ]
+ },
+ {
+ "id": "54a96509.b22d6c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1389.0000305175781,
+ "y": 455.00011348724365,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "fc4e3c1b.c7139"
+ ]
+ ]
+ },
+ {
+ "id": "5a29f4f5.fc1fcc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1633.0002746582031,
+ "y": 326.0000219345093,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "10397796.f90e08"
+ ]
+ ]
+ },
+ {
+ "id": "81144d1f.a8a31",
+ "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 A1 Mediator Health Check. Aborting A1 Health Check\" />",
+ "comments": "",
+ "x": 1549.0006103515625,
+ "y": 562.0000829696655,
+ "z": "71073541.7e954c",
+ "wires": []
+ },
+ {
+ "id": "10397796.f90e08",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1782.9998798370361,
+ "y": 290.00005197525024,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "acc2e27c.325de"
+ ]
+ ]
+ },
+ {
+ "id": "acc2e27c.325de",
+ "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 Mediator is Healthy.\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1960.0000305175781,
+ "y": 262.9999990463257,
+ "z": "71073541.7e954c",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ad639178.ea45b",
+ "type": "block",
+ "name": "DMAAP Reponse Publish",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1919.0001220703125,
+ "y": 659.0001516342163,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "52a8bbd0.8d15e4",
+ "1824af45.7c4c31",
+ "d55641b9.0d8a"
+ ]
+ ]
+ },
+ {
+ "id": "1824af45.7c4c31",
+ "type": "execute",
+ "name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`\" />\n <parameter name='restapiUrl' value=\"`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`\" />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name='responsePrefix' value='dmaap' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 2268.0003204345703,
+ "y": 836.9995563030243,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "b67eb7fa.2e8d88",
+ "b7c6de0.48aae2"
+ ]
+ ]
+ },
+ {
+ "id": "52a8bbd0.8d15e4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='getHealthCheck'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>\n<parameter name='tmp.a1Policy-dmaap-resp.payload' value=\"None\" />",
+ "comments": "",
+ "x": 2256.667091369629,
+ "y": 627.0001363754272,
+ "z": "71073541.7e954c",
+ "wires": []
+ },
+ {
+ "id": "b67eb7fa.2e8d88",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2483.5002059936523,
+ "y": 759.9168601036072,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "5004b5da.bc5e3c"
+ ]
+ ]
+ },
+ {
+ "id": "b7c6de0.48aae2",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2487.5001258850098,
+ "y": 898.916702747345,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "c46eaf10.81be1"
+ ]
+ ]
+ },
+ {
+ "id": "5004b5da.bc5e3c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2643.5000400543213,
+ "y": 761.9168610572815,
+ "z": "71073541.7e954c",
+ "wires": [
+ [
+ "1c492a8f.477515"
+ ]
+ ]
+ },
+ {
+ "id": "1c492a8f.477515",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"Error publishing DMAAP A1 Policy Response message. \" />",
+ "comments": "",
+ "x": 2825.499771118164,
+ "y": 752.9169368743896,
+ "z": "71073541.7e954c",
+ "wires": []
+ },
+ {
+ "id": "c46eaf10.81be1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",