3 "id": "8e7ebfe0.72ff08",
4 "type": "service-logic",
5 "name": "A1-ADAPTER-API ${project.version}",
6 "module": "A1-ADAPTER-API",
7 "version": "${project.version}",
9 "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}'>",
11 "x": 313.33331298828125,
12 "y": 173.33334350585938,
13 "z": "863e4485.36834",
21 "id": "c7c9e9f7.d04ec8",
23 "name": "method getHealthCheck",
24 "xml": "<method rpc='getHealthCheck' mode='sync'>\n",
27 "x": 374.33331298828125,
28 "y": 293.3333435058594,
29 "z": "863e4485.36834",
37 "id": "4933972c.609698",
40 "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 Adapter Health Check. Near RT RIC ID\"/>\n<parameter name=\"field2\" value=\"`$get-health-check-input.near-rt-ric-id`\"/>",
43 "x": 838.3333129882812,
44 "y": 108.33334350585938,
45 "z": "863e4485.36834",
51 "id": "957adfb6.ddf508",
53 "name": "block : atomic",
54 "xml": "<block atomic='true'>",
58 "x": 579.3333129882812,
59 "y": 247.33334350585938,
60 "z": "863e4485.36834",
72 "id": "9f0c6496.1b93b8",
76 "x": 246.33331298828125,
77 "y": 109.33334350585938,
78 "z": "863e4485.36834",
86 "id": "ecffa919.3560a",
88 "name": "set default status value",
89 "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='A1 is Healthy' />",
91 "x": 889.3333129882812,
92 "y": 174.33334350585938,
93 "z": "863e4485.36834",
97 "id": "211ee71f.5d59e",
99 "name": "execute Properties",
100 "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",
103 "x": 878.3333129882812,
104 "y": 215.33334350585938,
105 "z": "863e4485.36834",
111 "id": "a018bb23.9e0ca",
112 "type": "switchNode",
113 "name": "A1 Mediator Deployed",
114 "xml": "<switch test='`$prop.ric-plt-A1Mediator-deployed`'>\n",
117 "x": 828.3333129882812,
118 "y": 271.3333435058594,
119 "z": "863e4485.36834",
128 "id": "ec705860.7bcea",
131 "xml": "<outcome value='true'>\n",
134 "x": 1112.3333587646484,
135 "y": 131.33340883255005,
136 "z": "863e4485.36834",
144 "id": "de3ed957.5c052",
146 "name": "block : atomic",
147 "xml": "<block atomic='true'>",
151 "x": 1115.3333282470703,
152 "y": 321.33335304260254,
153 "z": "863e4485.36834",
161 "id": "2dcdc91.9c6f936",
163 "name": "A1 Mediator RestAPI Invocation",
164 "xml": "<block atomic='true'>",
168 "x": 1291.3333435058594,
169 "y": 241.33334589004517,
170 "z": "863e4485.36834",
178 "id": "70f1a125.1f0a4",
180 "name": "Not Deployed",
181 "xml": "<outcome value='false'>\n",
184 "x": 1065.333381652832,
185 "y": 566.3334050178528,
186 "z": "863e4485.36834",
194 "id": "470d338e.212154",
201 "x": 1280.3334197998047,
202 "y": 695.3333578109741,
203 "z": "863e4485.36834",
213 "id": "438edf7e.a454",
214 "type": "returnFailure",
215 "name": "return failure",
216 "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\" />",
218 "x": 1405.3331756591797,
219 "y": 776.3333423137665,
220 "z": "863e4485.36834",
224 "id": "b80804b5.6bd018",
226 "name": "No DMAAP Response Payload",
229 "x": 1583.3333129882812,
230 "y": 182.33334350585938,
231 "z": "863e4485.36834",
235 "id": "378d063c.6c5492",
237 "name": "A1 Mediator RestAPI Invocation",
238 "xml": "<block atomic='true'>",
242 "x": 1262.3333129882812,
243 "y": 411.3333574831486,
244 "z": "863e4485.36834",
254 "id": "13dfae39.e04c3a",
256 "name": "set tmp variables for A1 Mediator REST API call",
257 "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=\"`'http://' + $get-health-check-input.host-ip-address + ':' + $prop.nearric.port + '/' + $prop.restapi.healthcheck`\"/>",
259 "x": 1650.3343811035156,
260 "y": 317.2224413752556,
261 "z": "863e4485.36834",
265 "id": "7bef8064.cd04a",
268 "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`\"/>",
271 "x": 1542.3333435058594,
272 "y": 376.3333463668823,
273 "z": "863e4485.36834",
279 "id": "47770c6c.1f130c",
281 "name": "Check A1 Mediator Health",
282 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$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",
285 "x": 1575.3338012695312,
286 "y": 456.34373331069946,
287 "z": "863e4485.36834",
296 "id": "17b8a3a8.316fdc",
299 "xml": "<outcome value='failure'>\n",
302 "x": 1536.3333435058594,
303 "y": 539.333456993103,
304 "z": "863e4485.36834",
312 "id": "7e32c0b0.5e187",
315 "xml": "<outcome value='success'>\n",
318 "x": 1780.3335876464844,
319 "y": 410.33336544036865,
320 "z": "863e4485.36834",
328 "id": "940040d7.e1c9e8",
329 "type": "returnFailure",
330 "name": "return failure",
331 "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\" />",
333 "x": 1696.3339233398438,
334 "y": 646.3334264755249,
335 "z": "863e4485.36834",
339 "id": "8ba7cacf.63acd",
346 "x": 1930.3331928253174,
347 "y": 374.3333954811096,
348 "z": "863e4485.36834",
356 "id": "62890421.6f075c",
359 "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.\"/>",
362 "x": 2107.3333435058594,
363 "y": 347.33334255218506,
364 "z": "863e4485.36834",
370 "id": "5da1b590.6d16c4",
372 "name": "DMAAP Reponse Publish",
373 "xml": "<block atomic='true'>",
377 "x": 2066.3334350585938,
378 "y": 743.3334951400757,
379 "z": "863e4485.36834",
389 "id": "acc0fdd3.1ae4e",
391 "name": "execute DmaapMsg",
392 "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' />",
395 "x": 2415.3336334228516,
396 "y": 921.3328998088837,
397 "z": "863e4485.36834",
406 "id": "15f0f687.0ed609",
409 "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\" />",
411 "x": 2404.00040435791,
412 "y": 711.3334798812866,
413 "z": "863e4485.36834",
417 "id": "7e5d132d.992734",
420 "xml": "<outcome value='failure'>\n",
423 "x": 2630.8335189819336,
424 "y": 844.2502036094666,
425 "z": "863e4485.36834",
433 "id": "2b9cd050.e0a3f",
436 "xml": "<outcome value='success'>\n",
439 "x": 2634.833438873291,
440 "y": 983.2500462532043,
441 "z": "863e4485.36834",
449 "id": "42b7c211.c51e7c",
456 "x": 2790.8333530426025,
457 "y": 846.2502045631409,
458 "z": "863e4485.36834",
466 "id": "ec8b878d.8d17b",
467 "type": "returnFailure",
468 "name": "return failure",
469 "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. \" />",
471 "x": 2972.8330841064453,
472 "y": 837.250280380249,
473 "z": "863e4485.36834",
477 "id": "b3c45cc1.212db",
484 "x": 2817.8330821990967,
485 "y": 976.2501549720764,
486 "z": "863e4485.36834",
494 "id": "8bde839d.15fa48",
497 "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=\"DMAAP A1Policy message Successfully Published \"/>",
500 "x": 3003.833236694336,
501 "y": 964.2504787445068,
502 "z": "863e4485.36834",
508 "id": "76df102e.4d504",
511 "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=\"Before DMAAP Event - template file name, restapiURL\"/>\n<parameter name='field3' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.dmaap-publish-generic-response.template`\" />\n<parameter name='field4' value=\"`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`\" />\n<parameter name='field5' value=\"Status Code and Status Value to be published\" />\n<parameter name='field6' value=\"`$tmp.a1Adapter-dmaap-resp.status-code`\" />\n<parameter name='field7' value=\"`$tmp.a1Adapter-dmaap-resp.status-value`\" />\n<parameter name='field8' value=\"A1 Adapter DMAAP Response Payload Not Required\" />\n<parameter name='field9' value=\"`$tmp.a1Policy-dmaap-resp.payload`\" />\n<parameter name='field10' value=\"RPC Name\" />\n<parameter name='field11' value=\"`$tmp.a1-adapter-api.rpc-name`\" />",
514 "x": 2411.833564758301,
515 "y": 797.7884044647217,
516 "z": "863e4485.36834",
522 "id": "3b9faa0f.cad236",
525 "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='A1 Mediator Not Deployed'/>\n",
527 "x": 1481.3334655761719,
528 "y": 628.3333649635315,
529 "z": "863e4485.36834",
533 "id": "2db79f9b.99031",
536 "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='A1 Mediator Not Healthy'/>\n",
538 "x": 1856.0872764587402,
539 "y": 475.3372411727905,
540 "z": "863e4485.36834",
544 "id": "8850d349.ceeb4",
551 "x": 822.0872077941895,
552 "y": 885.3372793197632,
553 "z": "863e4485.36834",
562 "id": "8983f326.7db1b8",
563 "type": "returnSuccess",
564 "name": "return success",
565 "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",
567 "x": 972.087251663208,
568 "y": 967.3372488021851,
569 "z": "863e4485.36834",
573 "id": "6bad57a1.4e0058",
580 "x": 1682.3371849060059,
581 "y": 542.3372716903687,
582 "z": "863e4485.36834",