3 "id": "528161c6.ca5cc",
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": "bd2d1622.7875d8",
21 "id": "570dbd6.b447044",
23 "name": "method deletePolicyType",
24 "xml": "<method rpc='deletePolicyType' mode='sync'>\n",
27 "x": 285.00391387939453,
28 "y": 249.00391578674316,
29 "z": "bd2d1622.7875d8",
37 "id": "28f744fe.e4b2dc",
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 Type from Near RT RIC ID\"/>\n<parameter name=\"field2\" value=\"`$delete-policy-type-input.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$delete-policy-type-input.policy-type-id`\"/>",
43 "x": 748.0039215087891,
44 "y": 64.00390481948853,
45 "z": "bd2d1622.7875d8",
51 "id": "a960170a.25ddb8",
53 "name": "block : atomic",
54 "xml": "<block atomic='true'>",
60 "z": "bd2d1622.7875d8",
72 "id": "47be5f8d.0adad",
78 "z": "bd2d1622.7875d8",
86 "id": "bef5d8a0.98d8d8",
88 "name": "set default status value",
89 "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='deletePolicyType executed successfully' />",
91 "x": 787.0040130615234,
92 "y": 115.00390434265137,
93 "z": "bd2d1622.7875d8",
97 "id": "886fc2e2.c002c",
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": "bd2d1622.7875d8",
111 "id": "213c6c30.2b9d94",
112 "type": "switchNode",
113 "name": "A1 Mediator Deployed",
114 "xml": "<switch test='`$prop.ric-plt-A1Mediator-deployed`'>\n",
119 "z": "bd2d1622.7875d8",
128 "id": "e80e3882.d37798",
131 "xml": "<outcome value='true'>\n",
134 "x": 1021.0039520263672,
135 "y": 84.00397157669067,
136 "z": "bd2d1622.7875d8",
144 "id": "6dd79b4a.5d7ee4",
146 "name": "block : atomic",
147 "xml": "<block atomic='true'>",
151 "x": 998.0040016174316,
152 "y": 230.00392389297485,
153 "z": "bd2d1622.7875d8",
161 "id": "e51fb4c1.a78c38",
163 "name": "Not Deployed",
164 "xml": "<outcome value='false'>\n",
167 "x": 974.0039749145508,
168 "y": 519.0039677619934,
169 "z": "bd2d1622.7875d8",
177 "id": "d5da56ba.4ea078",
184 "x": 1189.0040130615234,
185 "y": 648.0039205551147,
186 "z": "bd2d1622.7875d8",
196 "id": "80281362.5baa8",
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=\"A1 Mediator Not Deployed. Aborting Policy Delete\" />",
201 "x": 1314.0037689208984,
202 "y": 729.0039050579071,
203 "z": "bd2d1622.7875d8",
207 "id": "abbff9fc.ef6df8",
209 "name": "A1 Mediator RestAPI Invocation",
210 "xml": "<block atomic='true'>",
214 "x": 1192.0040130615234,
215 "y": 341.00391072034836,
216 "z": "bd2d1622.7875d8",
228 "id": "59b120e4.f40e1",
230 "name": "set tmp variables for A1 Mediator REST API call",
231 "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$delete-policy-type-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.policy-type-id\" value=\"`$delete-policy-type-input.policy-type-id`\"/>",
233 "x": 1539.0054321289062,
234 "y": 179.8930459022522,
235 "z": "bd2d1622.7875d8",
239 "id": "76c6cf0a.1a173",
242 "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 Type.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.restapi.policytype-url`\"/>",
245 "x": 1454.0040550231934,
246 "y": 333.0039167404175,
247 "z": "bd2d1622.7875d8",
253 "id": "c40bc3d7.346b7",
255 "name": "Delete Policy Type",
256 "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.a1Mediator.url + '/' + $tmp.restapi.policytype-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\"/>",
259 "x": 1482.0045776367188,
260 "y": 405.01428031921387,
261 "z": "bd2d1622.7875d8",
270 "id": "1d585b60.0cc545",
273 "xml": "<outcome value='failure'>\n",
276 "x": 1445.0039367675781,
277 "y": 492.00401973724365,
278 "z": "bd2d1622.7875d8",
286 "id": "359283da.4d5d6c",
289 "xml": "<outcome value='success'>\n",
292 "x": 1689.0041809082031,
293 "y": 363.0039281845093,
294 "z": "bd2d1622.7875d8",
302 "id": "23c85e16.e15d92",
303 "type": "returnFailure",
304 "name": "return failure",
305 "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 Delete Policy. Aborting\" />",
307 "x": 1605.0045166015625,
308 "y": 599.0039892196655,
309 "z": "bd2d1622.7875d8",
313 "id": "42c902a9.e4df7c",
320 "x": 1839.0037860870361,
321 "y": 327.00395822525024,
322 "z": "bd2d1622.7875d8",
330 "id": "e5100108.3dca4",
333 "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 type operation executed against A1 Mediator \"/>",
336 "x": 2026.0040035247803,
337 "y": 318.0039052963257,
338 "z": "bd2d1622.7875d8",
344 "id": "a218740b.e03078",
346 "name": "DMAAP Reponse Publish",
347 "xml": "<block atomic='true'>",
351 "x": 1975.0040283203125,
352 "y": 696.0040578842163,
353 "z": "bd2d1622.7875d8",
363 "id": "1dba3ab6.471df5",
365 "name": "execute DmaapMsg",
366 "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' />",
369 "x": 2324.0042266845703,
370 "y": 874.0034625530243,
371 "z": "bd2d1622.7875d8",
380 "id": "8220447b.8289d8",
383 "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='deletePolicyType'/>\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\" />",
385 "x": 2318.670913696289,
386 "y": 670.004056930542,
387 "z": "bd2d1622.7875d8",
391 "id": "b33ac859.8eb828",
394 "xml": "<outcome value='failure'>\n",
397 "x": 2539.5041122436523,
398 "y": 796.9207663536072,
399 "z": "bd2d1622.7875d8",
407 "id": "b9c18111.fc69a",
410 "xml": "<outcome value='success'>\n",
413 "x": 2543.5040321350098,
414 "y": 935.920608997345,
415 "z": "bd2d1622.7875d8",
423 "id": "625161a.b68eea",
430 "x": 2699.5039463043213,
431 "y": 798.9207673072815,
432 "z": "bd2d1622.7875d8",
440 "id": "f57ce8d7.112bf8",
441 "type": "returnFailure",
442 "name": "return failure",
443 "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. \" />",
445 "x": 2881.503677368164,
446 "y": 789.9208431243896,
447 "z": "bd2d1622.7875d8",
451 "id": "3ca9895c.5c6906",
458 "x": 2726.5036754608154,
459 "y": 928.920717716217,
460 "z": "bd2d1622.7875d8",
468 "id": "53f57334.ecf73c",
471 "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 \"/>",
474 "x": 2913.5039825439453,
475 "y": 918.9210071563721,
476 "z": "bd2d1622.7875d8",
482 "id": "942029f7.65a818",
485 "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`\" />",
488 "x": 2322.504165649414,
489 "y": 756.4589986801147,
490 "z": "bd2d1622.7875d8",
496 "id": "44ff6d07.0fa8a4",
499 "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='A1 Mediator Not Deployed'/>\n",
501 "x": 1394.004238128662,
502 "y": 585.0038967132568,
503 "z": "bd2d1622.7875d8",
507 "id": "9346d287.a0b54",
510 "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
512 "x": 1770.7577896118164,
513 "y": 438.00782680511475,
514 "z": "bd2d1622.7875d8",
518 "id": "e9d83a7c.da03c8",
525 "x": 730.7578010559082,
526 "y": 838.0078420639038,
527 "z": "bd2d1622.7875d8",
536 "id": "c1eda177.24fc5",
537 "type": "returnSuccess",
538 "name": "return success",
539 "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",
541 "x": 880.7578449249268,
542 "y": 920.0078115463257,
543 "z": "bd2d1622.7875d8",
547 "id": "c2e429d5.e069b8",
554 "x": 1591.0077781677246,
555 "y": 495.0078344345093,
556 "z": "bd2d1622.7875d8",
566 "id": "f4535bee.c15298",
568 "name": "set tmp variables for input RPC parms",
569 "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$create-policy-type-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.policy-type-id\" value=\"`$create-policy-type-input.policy-type-id`\"/>\n<parameter name=\"tmp.name\" value=\"`$create-policy-type-input.name`\"/>\n<parameter name=\"tmp.description\" value=\"`$create-policy-type-input.description`\"/>",
573 "z": "bd2d1622.7875d8",
577 "id": "960ee141.dd015",
579 "name": "generate A1 Mediator URL",
580 "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.policytype`\"/>\n <parameter name=\"outputPath\" value=\"tmp.restapi.policytype-url\"/>\n <parameter name=\"target\" value=\"{policy_type_id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.policy-type-id`\"/>",
583 "x": 1522.0032653808594,
584 "y": 282.12531089782715,
585 "z": "bd2d1622.7875d8",
591 "id": "46b5244a.8aaaac",
594 "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 Create Policy Type.\"/>\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.name`\"/>\n<parameter name=\"field5\" value=\"`$tmp.restapi.policytype-url`\"/>\n<parameter name=\"field6\" value=\"`$a1-mediator.restapi-payload`\"/>\n<parameter name=\"field7\" value=\"Temporary A1 Mediatory Payload\"/>\n<parameter name=\"field8\" value=\"`$tmp.a1-mediator-restapi.payload`\"/>",
598 "y": 664.1148071289062,
599 "z": "bd2d1622.7875d8",
605 "id": "55b4ff0a.c8ef9",
607 "name": "set A1Mediator payload manually",
608 "xml": "<set>\n<parameter name=\"tmp.a1-mediator-restapi.payload\" value='{\"blocking_rate\": 20,\"enforce\": true,\"trigger_threshold\": 10,\"window_length\": 10}'/>",
611 "y": 607.1148071289062,
612 "z": "bd2d1622.7875d8",
616 "id": "903b4506.e4f458",
619 "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 Type.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.policy-type-id`\"/>",
622 "x": 1458.0038719177246,
623 "y": 231.00391292572021,
624 "z": "bd2d1622.7875d8",