3 "id": "6067cd4e.304ae4",
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}'>",
13 "z": "5e99e485.2d389c",
21 "id": "70ed549c.b5d70c",
23 "name": "method getPolicyTypes",
24 "xml": "<method rpc='getPolicyTypes' mode='sync'>\n",
29 "z": "5e99e485.2d389c",
37 "id": "31ba6243.302d2e",
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=\"Get All Policy Types from Near RT RIC ID\"/>\n<parameter name=\"field2\" value=\"`$get-policy-types-input.near-rt-ric-id`\"/>",
45 "z": "5e99e485.2d389c",
51 "id": "91bd15a2.424a98",
53 "name": "block : atomic",
54 "xml": "<block atomic='true'>",
60 "z": "5e99e485.2d389c",
72 "id": "987f4471.584818",
78 "z": "5e99e485.2d389c",
86 "id": "31915871.748968",
88 "name": "set default status value",
89 "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='getPolicyTypes executed successfully' />",
91 "x": 751.0000610351562,
93 "z": "5e99e485.2d389c",
97 "id": "58b6b3e3.593f7c",
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",
105 "z": "5e99e485.2d389c",
111 "id": "19d73ae2.c7f4a5",
112 "type": "switchNode",
113 "name": "A1 Mediator Deployed",
114 "xml": "<switch test='`$prop.ric-plt-A1Mediator-deployed`'>\n",
119 "z": "5e99e485.2d389c",
128 "id": "fc6bbd7a.17bdd",
131 "xml": "<outcome value='true'>\n",
134 "x": 984.0000457763672,
135 "y": 47.000065326690674,
136 "z": "5e99e485.2d389c",
144 "id": "4109ed4a.292674",
146 "name": "block : atomic",
147 "xml": "<block atomic='true'>",
151 "x": 961.0000953674316,
152 "y": 193.00001764297485,
153 "z": "5e99e485.2d389c",
161 "id": "19811b4a.acaa95",
163 "name": "Not Deployed",
164 "xml": "<outcome value='false'>\n",
167 "x": 937.0000686645508,
168 "y": 482.0000615119934,
169 "z": "5e99e485.2d389c",
177 "id": "6d6ae46c.57116c",
184 "x": 1152.0001068115234,
185 "y": 611.0000143051147,
186 "z": "5e99e485.2d389c",
196 "id": "fa0fa11d.ceb9",
197 "type": "returnFailure",
198 "name": "return failure",
199 "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 in Getting A1 Policy Types. Aborting\" />",
201 "x": 1276.9998626708984,
202 "y": 691.9999988079071,
203 "z": "5e99e485.2d389c",
207 "id": "86b25e24.27ef5",
209 "name": "A1 Mediator RestAPI Invocation",
210 "xml": "<block atomic='true'>",
214 "x": 1156.0001220703125,
216 "z": "5e99e485.2d389c",
226 "id": "5f33ee47.bd2a1",
228 "name": "set tmp variables for A1 Mediator REST API call",
229 "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$get-policy-types-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.restapi.getPolicyTypes-url\" value=\"`$prop.restapi.policytypes`\"/>",
231 "x": 1525.001377105713,
232 "y": 238.88912391662598,
233 "z": "5e99e485.2d389c",
237 "id": "f9fbf240.fa61f",
240 "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 Types.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.restapi.getPolicyTypes-url`\"/>",
243 "x": 1414.0000305175781,
244 "y": 292.00000286102295,
245 "z": "5e99e485.2d389c",
251 "id": "609ca78d.4934f8",
253 "name": "Get Policy Types",
254 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.a1Mediator.url + '/' + $tmp.restapi.getPolicyTypes-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\"/>",
257 "x": 1453.0006103515625,
258 "y": 377.0103759765625,
259 "z": "5e99e485.2d389c",
268 "id": "bdaa1249.dc6c4",
271 "xml": "<outcome value='failure'>\n",
274 "x": 1408.0000305175781,
275 "y": 455.00011348724365,
276 "z": "5e99e485.2d389c",
284 "id": "9810268a.b5ebc8",
287 "xml": "<outcome value='success'>\n",
290 "x": 1652.0002746582031,
291 "y": 326.0000219345093,
292 "z": "5e99e485.2d389c",
300 "id": "23eb1a0d.7e8d46",
301 "type": "returnFailure",
302 "name": "return failure",
303 "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 in Getting A1 Policy Types. Aborting\" />",
305 "x": 1568.0006103515625,
306 "y": 562.0000829696655,
307 "z": "5e99e485.2d389c",
311 "id": "31d1df15.23aae",
318 "x": 1801.9998798370361,
319 "y": 290.00005197525024,
320 "z": "5e99e485.2d389c",
331 "id": "f2eaf7c1.ad8c98",
334 "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=\"List of A1 Policy Types: \"/>\n<parameter name=\"field2\" value=\"`$a1MediatorRsp._length`\"/>\n<parameter name=\"field3\" value=\"`$a1MediatorRsp.httpResponse`\"/>\n<parameter name=\"field4\" value=\"`$a1MediatorRsp.response-code`\"/>\n<parameter name=\"field5\" value='`$a1MediatorRsp._length`' />\n<parameter name=\"field6\" value='`$a1-mediator.policiesList`' />\n\n\n\n",
339 "z": "5e99e485.2d389c",
345 "id": "4fef8f1a.599d4",
347 "name": "DMAAP Reponse Publish",
348 "xml": "<block atomic='true'>",
352 "x": 1938.0001220703125,
353 "y": 659.0001516342163,
354 "z": "5e99e485.2d389c",
364 "id": "968b7857.8630b8",
366 "name": "execute DmaapMsg",
367 "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' />",
370 "x": 2295.000244140625,
371 "y": 843.9995727539062,
372 "z": "5e99e485.2d389c",
381 "id": "a2679af6.639ab8",
384 "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyTypes'/>\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='`$a1-mediator.policiesList`' />",
386 "x": 2276.6669921875,
387 "y": 629.0001220703125,
388 "z": "5e99e485.2d389c",
392 "id": "83072b70.549ff8",
395 "xml": "<outcome value='failure'>\n",
398 "x": 2502.5002059936523,
399 "y": 759.9168601036072,
400 "z": "5e99e485.2d389c",
408 "id": "649a948c.8fd06c",
411 "xml": "<outcome value='success'>\n",
414 "x": 2506.5001258850098,
415 "y": 898.916702747345,
416 "z": "5e99e485.2d389c",
424 "id": "c3f33449.19fdb8",
431 "x": 2662.5000400543213,
432 "y": 761.9168610572815,
433 "z": "5e99e485.2d389c",
441 "id": "5929c9fd.274ba8",
442 "type": "returnFailure",
443 "name": "return failure",
444 "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. \" />",
446 "x": 2844.499771118164,
447 "y": 752.9169368743896,
448 "z": "5e99e485.2d389c",
452 "id": "eb0e78e3.be81d8",
459 "x": 2689.4997692108154,
460 "y": 891.916811466217,
461 "z": "5e99e485.2d389c",
469 "id": "af7b183b.0a64f8",
472 "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 \"/>",
475 "x": 2875.4999237060547,
476 "y": 879.9171352386475,
477 "z": "5e99e485.2d389c",
483 "id": "be33abf4.cf9ec8",
486 "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\" />\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`\" />",
489 "x": 2286.500244140625,
491 "z": "5e99e485.2d389c",
497 "id": "287f4673.477b1a",
500 "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='A1 Mediator Not Deployed'/>\n",
502 "x": 1353.0001525878906,
503 "y": 544.0000214576721,
504 "z": "5e99e485.2d389c",
508 "id": "f45cf0c4.2c4fe",
511 "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
513 "x": 1727.753963470459,
514 "y": 391.00389766693115,
515 "z": "5e99e485.2d389c",
519 "id": "673d4b76.d5ea84",
526 "x": 693.7538948059082,
527 "y": 801.0039358139038,
528 "z": "5e99e485.2d389c",
537 "id": "8deed83d.906568",
538 "type": "returnSuccess",
539 "name": "return success",
540 "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",
542 "x": 845.7539672851562,
544 "z": "5e99e485.2d389c",
548 "id": "b9f104a6.8bd438",
555 "x": 1554.0038719177246,
556 "y": 458.0039281845093,
557 "z": "5e99e485.2d389c",
567 "id": "87eb9f5d.78ef7",
569 "name": "printContext",
570 "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-context.log' />\n\n\n",
575 "z": "5e99e485.2d389c",
581 "id": "2c6137d1.211508",
583 "name": "execute jsonStringToCtx",
584 "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='a1MediatorList' />\n\t<parameter name='isEscaped' value='false' />",
589 "z": "5e99e485.2d389c",
595 "id": "3ff97da4.fc2632",
597 "name": "execute TemplateNode",
598 "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.template.TemplateNode\" method=\"evaluateTemplate\" >\n <parameter name='templatePath' value='a1Mediator-get-policies.vtl' />\n <parameter name='output' value='policiesList' />\n <parameter name='prefix' value='a1-mediator' />",
603 "z": "5e99e485.2d389c",
611 "id": "4f1ae297.8f552c",
614 "xml": "<outcome value='success'>\n",
619 "z": "5e99e485.2d389c",
627 "id": "200dc8d5.ba2168",
629 "name": "block : atomic",
630 "xml": "<block atomic='true'>",
636 "z": "5e99e485.2d389c",
644 "id": "a127ad59.e337",
647 "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=\"A1 Policies List\"/>\n<parameter name='field3' value='`$a1-mediator.policiesList`' />",
652 "z": "5e99e485.2d389c",