3 "id": "b3dee81c.fd9fe8",
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": "5e51bc9d.e46964",
21 "id": "7531c732.0898e8",
23 "name": "method deletePolicyInstance",
24 "xml": "<method rpc='deletePolicyInstance' mode='sync'>\n",
29 "z": "5e51bc9d.e46964",
37 "id": "6a117f5a.9254b",
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=\"Delete Policy Instance associated with Near RT RIC ID and Policy Type ID\"/>\n<parameter name=\"field2\" value=\"`$delete-policy-instance-input.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$delete-policy-instance-input.policy-type-id`\"/>\n<parameter name=\"field4\" value=\"`$delete-policy-instance-input.policy-instance-id`\"/>",
45 "z": "5e51bc9d.e46964",
51 "id": "72c936dc.603938",
53 "name": "block : atomic",
54 "xml": "<block atomic='true'>",
60 "z": "5e51bc9d.e46964",
72 "id": "c86b6da1.9de53",
78 "z": "5e51bc9d.e46964",
86 "id": "ecd8c4ad.08ac98",
88 "name": "set default status value",
89 "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='deletePolicyInstance executed successfully' />",
91 "x": 757.0039520263672,
92 "y": 86.00390720367432,
93 "z": "5e51bc9d.e46964",
97 "id": "458ad2c3.2d487c",
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": "5e51bc9d.e46964",
111 "id": "baafc628.405a18",
112 "type": "switchNode",
113 "name": "A1 Mediator Deployed",
114 "xml": "<switch test='`$prop.ric-plt-A1Mediator-deployed`'>\n",
119 "z": "5e51bc9d.e46964",
128 "id": "ad7b68a5.0e8c88",
131 "xml": "<outcome value='true'>\n",
134 "x": 991.0039520263672,
135 "y": 55.003971576690674,
136 "z": "5e51bc9d.e46964",
144 "id": "f3de5fc8.2216b",
146 "name": "block : atomic",
147 "xml": "<block atomic='true'>",
151 "x": 968.0040016174316,
152 "y": 201.00392389297485,
153 "z": "5e51bc9d.e46964",
161 "id": "42bb6a38.fa2904",
163 "name": "Not Deployed",
164 "xml": "<outcome value='false'>\n",
167 "x": 944.0039749145508,
168 "y": 490.0039677619934,
169 "z": "5e51bc9d.e46964",
177 "id": "a58a5c2a.38d89",
184 "x": 1159.0040130615234,
185 "y": 619.0039205551147,
186 "z": "5e51bc9d.e46964",
196 "id": "5165256d.575c6c",
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 Deleting A1 Policy Instance. Aborting\" />",
201 "x": 1289.0038299560547,
202 "y": 700.0039048194885,
203 "z": "5e51bc9d.e46964",
207 "id": "3f0f3f98.816a2",
209 "name": "A1 Mediator RestAPI Invocation",
210 "xml": "<block atomic='true'>",
214 "x": 1162.0040130615234,
215 "y": 312.00391072034836,
216 "z": "5e51bc9d.e46964",
229 "id": "7e882622.458f98",
231 "name": "set tmp variables for A1 Mediator REST API call",
232 "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$delete-policy-instance-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.policy-type-id\" value=\"`$delete-policy-instance-input.policy-type-id`\"/>\n<parameter name=\"tmp.policy-instance-id\" value=\"`$delete-policy-instance-input.policy-instance-id`\"/>\n",
234 "x": 1500.00537109375,
235 "y": 109.89303684234619,
236 "z": "5e51bc9d.e46964",
240 "id": "79579072.27faa",
243 "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 Delete Policy Instance.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.policy-type-id`\"/>\n<parameter name=\"field4\" value=\"`$tmp.policy-instance-id`\"/>",
246 "x": 1421.0040016174316,
247 "y": 163.00390911102295,
248 "z": "5e51bc9d.e46964",
254 "id": "908f8d2f.0fe18",
256 "name": "Delete Policy Instance",
257 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.a1Mediator.url + '/' + $tmp.restapi.policyinstance-url`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"DELETE\"/>\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\"/>",
260 "x": 1439.0045166015625,
261 "y": 366.0143041610718,
262 "z": "5e51bc9d.e46964",
271 "id": "d810ec63.b8faf",
274 "xml": "<outcome value='failure'>\n",
277 "x": 1415.0039367675781,
278 "y": 463.00401973724365,
279 "z": "5e51bc9d.e46964",
287 "id": "3bf068e7.a26b38",
290 "xml": "<outcome value='success'>\n",
293 "x": 1659.0041809082031,
294 "y": 334.0039281845093,
295 "z": "5e51bc9d.e46964",
303 "id": "ba304eb3.e7474",
304 "type": "returnFailure",
305 "name": "return failure",
306 "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 Deleting A1 Policy Instance. Aborting\" />",
308 "x": 1575.0045166015625,
309 "y": 570.0039892196655,
310 "z": "5e51bc9d.e46964",
314 "id": "52049fa8.37edd",
321 "x": 1809.0037860870361,
322 "y": 298.00395822525024,
323 "z": "5e51bc9d.e46964",
331 "id": "ba44f2a5.266a8",
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=\"Details of A1 Policy Instance \"/>\n<parameter name=\"field2\" value=\"`$a1MediatorRsp`\"/>",
337 "x": 1989.0039100646973,
338 "y": 272.00390911102295,
339 "z": "5e51bc9d.e46964",
345 "id": "bb41aaa6.4825a8",
347 "name": "DMAAP Reponse Publish",
348 "xml": "<block atomic='true'>",
352 "x": 1945.0040283203125,
353 "y": 667.0040578842163,
354 "z": "5e51bc9d.e46964",
364 "id": "25222249.29d39e",
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": 2294.0042266845703,
371 "y": 845.0034625530243,
372 "z": "5e51bc9d.e46964",
381 "id": "2bd93f6c.4a183",
384 "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='deletePolicyInstance'/>\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=\"Working On it\" />",
386 "x": 2283.670944213867,
387 "y": 636.0040187835693,
388 "z": "5e51bc9d.e46964",
392 "id": "77c16af2.fd1fd4",
395 "xml": "<outcome value='failure'>\n",
398 "x": 2509.5041122436523,
399 "y": 767.9207663536072,
400 "z": "5e51bc9d.e46964",
408 "id": "231b7cfe.e2f364",
411 "xml": "<outcome value='success'>\n",
414 "x": 2513.5040321350098,
415 "y": 906.920608997345,
416 "z": "5e51bc9d.e46964",
424 "id": "72d0fe4c.a2b34",
431 "x": 2669.5039463043213,
432 "y": 769.9207673072815,
433 "z": "5e51bc9d.e46964",
441 "id": "575b220d.c9b55c",
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": 2851.503677368164,
447 "y": 760.9208431243896,
448 "z": "5e51bc9d.e46964",
452 "id": "5c8fc4f2.ab84fc",
459 "x": 2696.5036754608154,
460 "y": 899.920717716217,
461 "z": "5e51bc9d.e46964",
469 "id": "98081928.21ec28",
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": 2882.5038299560547,
476 "y": 887.9210414886475,
477 "z": "5e51bc9d.e46964",
483 "id": "a02a20c9.bb14d",
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": 2292.504165649414,
490 "y": 727.4589986801147,
491 "z": "5e51bc9d.e46964",
497 "id": "8e65316c.ffc44",
500 "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='A1 Mediator Not Deployed'/>\n",
502 "x": 1339.0041160583496,
503 "y": 553.0038986206055,
504 "z": "5e51bc9d.e46964",
508 "id": "b0a0c33e.2eea7",
511 "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
513 "x": 1734.757869720459,
514 "y": 399.00780391693115,
515 "z": "5e51bc9d.e46964",
519 "id": "e08e23bc.b70f2",
526 "x": 700.7578010559082,
527 "y": 809.0078420639038,
528 "z": "5e51bc9d.e46964",
537 "id": "629d6c66.04ac24",
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='deletePolicyInstance executed successfully'/>\n<parameter name='ack-final' value='Y'/>\n",
542 "x": 855.7578887939453,
543 "y": 893.0078468322754,
544 "z": "5e51bc9d.e46964",
548 "id": "e087b19.28e325",
555 "x": 1561.0077781677246,
556 "y": 466.0078344345093,
557 "z": "5e51bc9d.e46964",
567 "id": "4294725c.c0125c",
569 "name": "generate A1 Mediator URL 1",
570 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.policy`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.policyinstance-url\"/>\n <parameter name=\"target\" value=\"{policy_type_id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.policy-type-id`\"/>\n",
573 "x": 1497.0044250488281,
574 "y": 211.00390911102295,
575 "z": "5e51bc9d.e46964",
581 "id": "e8970148.2dc5a",
584 "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 Delete Policy Instance.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.policy-type-id`\"/>\n<parameter name=\"field4\" value=\"`$tmp.policy-instance-id`\"/>\n<parameter name=\"field5\" value=\"`$tmp.restapi.policyinstance-url`\"/>",
587 "x": 1437.0046348571777,
588 "y": 302.88250637054443,
589 "z": "5e51bc9d.e46964",
595 "id": "c07e70d5.3a2f8",
597 "name": "generate A1 Mediator URL 2",
598 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.restapi.policyinstance-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.policyinstance-url\"/>\n <parameter name=\"target\" value=\"{policy_instance_id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.policy-instance-id`\"/>\n",
601 "x": 1496.2538757324219,
602 "y": 261.00391244888306,
603 "z": "5e51bc9d.e46964",