DG changes for the closed loop and async
[sdnc/oam.git] / platform-logic / optical-service / src / main / json / optical-service_optical-service-delete.json
1 [\r
2     {\r
3         "id": "e0d62dfb.c4892",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 171.67613220214844,\r
8         "y": 182.38332986831665,\r
9         "z": "23113e64.4c4872",\r
10         "wires": [\r
11             [\r
12                 "ed0e245d.a59e08"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "ed0e245d.a59e08",\r
18         "type": "service-logic",\r
19         "name": "optical-service ${project.version}",\r
20         "module": "optical-service",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
23         "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='optical-service' version='${project.version}'>",\r
24         "outputs": 1,\r
25         "x": 280.17613220214844,\r
26         "y": 260.38332986831665,\r
27         "z": "23113e64.4c4872",\r
28         "wires": [\r
29             [\r
30                 "5edee11.65d4d2"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "5edee11.65d4d2",\r
36         "type": "method",\r
37         "name": "method",\r
38         "xml": "<method rpc='optical-service-delete' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 148.67613220214844,\r
42         "y": 351.38332986831665,\r
43         "z": "23113e64.4c4872",\r
44         "wires": [\r
45             [\r
46                 "30cfbd8.db7ed42"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "30cfbd8.db7ed42",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic='true'>",\r
55         "atomic": "true",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 343.00946044921875,\r
59         "y": 390.7166624069214,\r
60         "z": "23113e64.4c4872",\r
61         "wires": [\r
62             [\r
63                 "5a0a00ba.7c221",\r
64                 "21047af0.e45596",\r
65                 "acfa1fdd.4f126",\r
66                 "af71a4c0.67cbc8",\r
67                 "15d56a2d.a7cc46",\r
68                 "5666351c.3fed7c",\r
69                 "1d36fe9a.5fdc81"\r
70             ]\r
71         ]\r
72     },\r
73     {\r
74         "id": "5a0a00ba.7c221",\r
75         "type": "execute",\r
76         "name": "execute",\r
77         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n<parameter name='fileName' value='/opt/onap/sdnc/data/properties/optical-service-dg.properties' />\n<parameter name='contextPrefix' value='prop' />\n",\r
78         "comments": "",\r
79         "outputs": 1,\r
80         "x": 605.1761093139648,\r
81         "y": 20,\r
82         "z": "23113e64.4c4872",\r
83         "wires": [\r
84             []\r
85         ]\r
86     },\r
87     {\r
88         "id": "21047af0.e45596",\r
89         "type": "get-resource",\r
90         "name": "get resources from DB -controller_id",\r
91         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom REQUEST_DETAILS\nWHERE request_id = $optical-service-delete-input.request-id'\npfx='detail-db'>",\r
92         "comments": "",\r
93         "outputs": 1,\r
94         "x": 718.6760635375977,\r
95         "y": 112.71665000915527,\r
96         "z": "23113e64.4c4872",\r
97         "wires": [\r
98             [\r
99                 "63804231.b88b9c"\r
100             ]\r
101         ]\r
102     },\r
103     {\r
104         "id": "63804231.b88b9c",\r
105         "type": "success",\r
106         "name": "success",\r
107         "xml": "<outcome value='success'>\n",\r
108         "comments": "",\r
109         "outputs": 1,\r
110         "x": 946.1761436462402,\r
111         "y": 106.38332414627075,\r
112         "z": "23113e64.4c4872",\r
113         "wires": [\r
114             [\r
115                 "e6431c0d.bb995"\r
116             ]\r
117         ]\r
118     },\r
119     {\r
120         "id": "acfa1fdd.4f126",\r
121         "type": "set",\r
122         "name": "set domain-services",\r
123         "xml": "<set>\n<parameter name='notification-url' value=\"notificationUrl\" />\n<parameter name='access-status' value=\"success\" />\n",\r
124         "comments": "",\r
125         "x": 731.0093307495117,\r
126         "y": 228.3833179473877,\r
127         "z": "23113e64.4c4872",\r
128         "wires": []\r
129     },\r
130     {\r
131         "id": "af71a4c0.67cbc8",\r
132         "type": "execute",\r
133         "name": "split domain-requests for access services",\r
134         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$domain-req`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix1\"/>\n",\r
135         "comments": "",\r
136         "outputs": 1,\r
137         "x": 763.7928161621094,\r
138         "y": 172.66664695739746,\r
139         "z": "23113e64.4c4872",\r
140         "wires": [\r
141             []\r
142         ]\r
143     },\r
144     {\r
145         "id": "15d56a2d.a7cc46",\r
146         "type": "for",\r
147         "name": "for",\r
148         "xml": "<for index='ppx' start='0' end='`$param-prefix1_length`' >\n    \n    \n    \n\n\n",\r
149         "comments": "",\r
150         "outputs": 1,\r
151         "x": 591.6760711669922,\r
152         "y": 374.8332996368408,\r
153         "z": "23113e64.4c4872",\r
154         "wires": [\r
155             [\r
156                 "85a69e7e.7e74e"\r
157             ]\r
158         ]\r
159     },\r
160     {\r
161         "id": "85a69e7e.7e74e",\r
162         "type": "switchNode",\r
163         "name": "switch",\r
164         "xml": "<switch test='`$param-prefix1_length == 1`'>\n",\r
165         "comments": "",\r
166         "outputs": 1,\r
167         "x": 740.6761322021484,\r
168         "y": 339.4999985694885,\r
169         "z": "23113e64.4c4872",\r
170         "wires": [\r
171             [\r
172                 "31b9f2de.b5872e",\r
173                 "e0aaa8d0.545478"\r
174             ]\r
175         ]\r
176     },\r
177     {\r
178         "id": "caa8b5a3.b36418",\r
179         "type": "block",\r
180         "name": "block : atomic",\r
181         "xml": "<block atomic='true'>",\r
182         "atomic": "true",\r
183         "comments": "",\r
184         "outputs": 1,\r
185         "x": 1092.6761322021484,\r
186         "y": 333.4999985694885,\r
187         "z": "23113e64.4c4872",\r
188         "wires": [\r
189             [\r
190                 "91ecfc44.f143a",\r
191                 "719feef2.99781",\r
192                 "238c69d1.2b6de6",\r
193                 "c2baf636.474808"\r
194             ]\r
195         ]\r
196     },\r
197     {\r
198         "id": "719feef2.99781",\r
199         "type": "execute",\r
200         "name": "split node-id a-end retrieved from DB",\r
201         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$controller-id1`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",\r
202         "comments": "",\r
203         "outputs": 1,\r
204         "x": 1364.6761322021484,\r
205         "y": 338.4999985694885,\r
206         "z": "23113e64.4c4872",\r
207         "wires": [\r
208             []\r
209         ]\r
210     },\r
211     {\r
212         "id": "91ecfc44.f143a",\r
213         "type": "get-resource",\r
214         "name": "get resources from DB -controller_id",\r
215         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom REQUEST_DETAILS\nWHERE request_id = $param-prefix1[$ppx]'\npfx='detail-db1'>",\r
216         "comments": "",\r
217         "outputs": 1,\r
218         "x": 1368.7925567626953,\r
219         "y": 288.6166639328003,\r
220         "z": "23113e64.4c4872",\r
221         "wires": [\r
222             [\r
223                 "319883a4.a6298c"\r
224             ]\r
225         ]\r
226     },\r
227     {\r
228         "id": "319883a4.a6298c",\r
229         "type": "success",\r
230         "name": "success",\r
231         "xml": "<outcome value='success'>\n",\r
232         "comments": "",\r
233         "outputs": 1,\r
234         "x": 1613.7928314208984,\r
235         "y": 297.6166672706604,\r
236         "z": "23113e64.4c4872",\r
237         "wires": [\r
238             [\r
239                 "fa33f2b4.9586d"\r
240             ]\r
241         ]\r
242     },\r
243     {\r
244         "id": "fa33f2b4.9586d",\r
245         "type": "set",\r
246         "name": "set",\r
247         "xml": "<set>\n<parameter name='controller-id1' value='`$detail-db1.controller-id`' />\n\n\n\n\n\n\n\n\n\n\n",\r
248         "comments": "",\r
249         "x": 1761.7928314208984,\r
250         "y": 299.6166672706604,\r
251         "z": "23113e64.4c4872",\r
252         "wires": []\r
253     },\r
254     {\r
255         "id": "238c69d1.2b6de6",\r
256         "type": "set",\r
257         "name": "set domain-services",\r
258         "xml": "<set>\n<parameter name='domain-type' value='`$param-prefix[0]`' />\n<parameter name='controller-ip' value='`$param-prefix[1]`' />\n<parameter name='optical-service-delete-input.request-id' value=\"`$param-prefix1[$ppx]`\" />\n<parameter name='optical-service-delete-input.payload.service-name' value=\"`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`\"/>\n<parameter name='domain-service1' value=\"`$param-prefix1[$ppx]`\" />\n",\r
259         "comments": "",\r
260         "x": 1311.7928314208984,\r
261         "y": 410.6166763305664,\r
262         "z": "23113e64.4c4872",\r
263         "wires": []\r
264     },\r
265     {\r
266         "id": "c2baf636.474808",\r
267         "type": "switchNode",\r
268         "name": "switch domain-type",\r
269         "xml": "<switch test='`$domain-type`'>\n",\r
270         "comments": "",\r
271         "outputs": 1,\r
272         "x": 1252.3428115844727,\r
273         "y": 543.8333339691162,\r
274         "z": "23113e64.4c4872",\r
275         "wires": [\r
276             [\r
277                 "c3c51e46.241cf",\r
278                 "409a0484.8b3eec"\r
279             ]\r
280         ]\r
281     },\r
282     {\r
283         "id": "c3c51e46.241cf",\r
284         "type": "outcome",\r
285         "name": "MSA",\r
286         "xml": "<outcome value='MSA'>\n",\r
287         "comments": "",\r
288         "outputs": 1,\r
289         "x": 1508.6761322021484,\r
290         "y": 456.4999985694885,\r
291         "z": "23113e64.4c4872",\r
292         "wires": [\r
293             [\r
294                 "f8fc18f7.4d8af8"\r
295             ]\r
296         ]\r
297     },\r
298     {\r
299         "id": "409a0484.8b3eec",\r
300         "type": "outcome",\r
301         "name": "TAPI",\r
302         "xml": "<outcome value='TAPI'>\n",\r
303         "comments": "",\r
304         "outputs": 1,\r
305         "x": 1511.6761322021484,\r
306         "y": 636.4999985694885,\r
307         "z": "23113e64.4c4872",\r
308         "wires": [\r
309             [\r
310                 "cae5e210.d6395"\r
311             ]\r
312         ]\r
313     },\r
314     {\r
315         "id": "f8fc18f7.4d8af8",\r
316         "type": "block",\r
317         "name": "block",\r
318         "xml": "<block>\n",\r
319         "atomic": "false",\r
320         "comments": "",\r
321         "outputs": 1,\r
322         "x": 1648.6761322021484,\r
323         "y": 453.4999985694885,\r
324         "z": "23113e64.4c4872",\r
325         "wires": [\r
326             [\r
327                 "c176f2f2.5fee2"\r
328             ]\r
329         ]\r
330     },\r
331     {\r
332         "id": "c176f2f2.5fee2",\r
333         "type": "call",\r
334         "name": "call MSA DELETE DG",\r
335         "xml": "<call module='optical-service' rpc='service-delete-msa' mode='sync' >\n",\r
336         "comments": "",\r
337         "outputs": 1,\r
338         "x": 1836.6761322021484,\r
339         "y": 454.4999985694885,\r
340         "z": "23113e64.4c4872",\r
341         "wires": [\r
342             [\r
343                 "e405e5bb.3a20a8",\r
344                 "4df16ad1.b6ecc4"\r
345             ]\r
346         ]\r
347     },\r
348     {\r
349         "id": "e405e5bb.3a20a8",\r
350         "type": "success",\r
351         "name": "success",\r
352         "xml": "<outcome value='success'>\n",\r
353         "comments": "",\r
354         "outputs": 1,\r
355         "x": 2021.6761322021484,\r
356         "y": 410.4999985694885,\r
357         "z": "23113e64.4c4872",\r
358         "wires": [\r
359             [\r
360                 "8dfeea48.8664a8"\r
361             ]\r
362         ]\r
363     },\r
364     {\r
365         "id": "4df16ad1.b6ecc4",\r
366         "type": "failure",\r
367         "name": "failure",\r
368         "xml": "<outcome value='failure'>\n",\r
369         "comments": "",\r
370         "outputs": 1,\r
371         "x": 2023.6761322021484,\r
372         "y": 502.4999985694885,\r
373         "z": "23113e64.4c4872",\r
374         "wires": [\r
375             [\r
376                 "22cc809f.74d45"\r
377             ]\r
378         ]\r
379     },\r
380     {\r
381         "id": "8dfeea48.8664a8",\r
382         "type": "block",\r
383         "name": "block : atomic",\r
384         "xml": "<block atomic='true'>",\r
385         "atomic": "true",\r
386         "comments": "",\r
387         "outputs": 1,\r
388         "x": 2192.6761322021484,\r
389         "y": 401.4999985694885,\r
390         "z": "23113e64.4c4872",\r
391         "wires": [\r
392             [\r
393                 "e0798c41.0c606"\r
394             ]\r
395         ]\r
396     },\r
397     {\r
398         "id": "e0798c41.0c606",\r
399         "type": "set",\r
400         "name": "set",\r
401         "xml": "<set>\n<parameter name='service1-status' value='`$final-response-code`' />\n",\r
402         "comments": "",\r
403         "x": 2335.6761322021484,\r
404         "y": 376.4999985694885,\r
405         "z": "23113e64.4c4872",\r
406         "wires": []\r
407     },\r
408     {\r
409         "id": "22cc809f.74d45",\r
410         "type": "returnFailure",\r
411         "name": "return failure",\r
412         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to call MSA DG' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
413         "comments": "",\r
414         "x": 2192.6761322021484,\r
415         "y": 532.4999985694885,\r
416         "z": "23113e64.4c4872",\r
417         "wires": []\r
418     },\r
419     {\r
420         "id": "cae5e210.d6395",\r
421         "type": "block",\r
422         "name": "block",\r
423         "xml": "<block>\n",\r
424         "atomic": "false",\r
425         "comments": "",\r
426         "outputs": 1,\r
427         "x": 1667.6761322021484,\r
428         "y": 638.4999985694885,\r
429         "z": "23113e64.4c4872",\r
430         "wires": [\r
431             [\r
432                 "65305f1a.cd63"\r
433             ]\r
434         ]\r
435     },\r
436     {\r
437         "id": "65305f1a.cd63",\r
438         "type": "call",\r
439         "name": "call TAPI DELETE DG",\r
440         "xml": "<call module='optical-service' rpc='service-delete-tapi' mode='sync' >\n",\r
441         "comments": "",\r
442         "outputs": 1,\r
443         "x": 1855.6761322021484,\r
444         "y": 639.4999985694885,\r
445         "z": "23113e64.4c4872",\r
446         "wires": [\r
447             [\r
448                 "10cb997f.2c1b67",\r
449                 "e32d2f8.8429fd"\r
450             ]\r
451         ]\r
452     },\r
453     {\r
454         "id": "10cb997f.2c1b67",\r
455         "type": "success",\r
456         "name": "success",\r
457         "xml": "<outcome value='success'>\n",\r
458         "comments": "",\r
459         "outputs": 1,\r
460         "x": 2040.6761322021484,\r
461         "y": 595.4999985694885,\r
462         "z": "23113e64.4c4872",\r
463         "wires": [\r
464             [\r
465                 "6c6dbee5.bd866"\r
466             ]\r
467         ]\r
468     },\r
469     {\r
470         "id": "e32d2f8.8429fd",\r
471         "type": "failure",\r
472         "name": "failure",\r
473         "xml": "<outcome value='failure'>\n",\r
474         "comments": "",\r
475         "outputs": 1,\r
476         "x": 2042.6761322021484,\r
477         "y": 687.4999985694885,\r
478         "z": "23113e64.4c4872",\r
479         "wires": [\r
480             [\r
481                 "22c2bd5a.04a492"\r
482             ]\r
483         ]\r
484     },\r
485     {\r
486         "id": "6c6dbee5.bd866",\r
487         "type": "block",\r
488         "name": "block",\r
489         "xml": "<block>\n",\r
490         "atomic": "false",\r
491         "comments": "",\r
492         "outputs": 1,\r
493         "x": 2211.6761322021484,\r
494         "y": 586.4999985694885,\r
495         "z": "23113e64.4c4872",\r
496         "wires": [\r
497             [\r
498                 "e23cf700.e51748",\r
499                 "94cb4145.57c88"\r
500             ]\r
501         ]\r
502     },\r
503     {\r
504         "id": "e23cf700.e51748",\r
505         "type": "set",\r
506         "name": "set",\r
507         "xml": "<set>\n<parameter name='service1-status' value='`$final-response-code`' />\n",\r
508         "comments": "",\r
509         "x": 2354.6761322021484,\r
510         "y": 561.4999985694885,\r
511         "z": "23113e64.4c4872",\r
512         "wires": []\r
513     },\r
514     {\r
515         "id": "22c2bd5a.04a492",\r
516         "type": "returnFailure",\r
517         "name": "return failure",\r
518         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Failed to call MSA DG' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
519         "comments": "",\r
520         "x": 2211.6761322021484,\r
521         "y": 717.4999985694885,\r
522         "z": "23113e64.4c4872",\r
523         "wires": []\r
524     },\r
525     {\r
526         "id": "ffbaf9e.fb0fb08",\r
527         "type": "call",\r
528         "name": "call TAPI DELETE DG",\r
529         "xml": "<call module='optical-service' rpc='service-delete-tapi' mode='sync' >\n",\r
530         "comments": "",\r
531         "outputs": 1,\r
532         "x": 1357.6761322021484,\r
533         "y": 943.4999985694885,\r
534         "z": "23113e64.4c4872",\r
535         "wires": [\r
536             [\r
537                 "d2fc4e32.19347"\r
538             ]\r
539         ]\r
540     },\r
541     {\r
542         "id": "fca311a3.3788e",\r
543         "type": "set",\r
544         "name": "set",\r
545         "xml": "<set>\n<parameter name='optical-service-delete-input.request-id' value=\"`$param-prefix1[$ppx]`\" />\n<parameter name='optical-service-delete-input.payload.service-name' value=\"`$optical-service-delete-input.payload.param[0].value + '_MDONS-OTN_'`\"/>\n\n",\r
546         "comments": "",\r
547         "x": 1338.7928314208984,\r
548         "y": 867.6167588233948,\r
549         "z": "23113e64.4c4872",\r
550         "wires": []\r
551     },\r
552     {\r
553         "id": "64b9ab4c.add954",\r
554         "type": "block",\r
555         "name": "block",\r
556         "xml": "<block>\n",\r
557         "atomic": "false",\r
558         "comments": "",\r
559         "outputs": 1,\r
560         "x": 1133.7928314208984,\r
561         "y": 776.6166977882385,\r
562         "z": "23113e64.4c4872",\r
563         "wires": [\r
564             [\r
565                 "fca311a3.3788e",\r
566                 "ffbaf9e.fb0fb08",\r
567                 "7dcb69ce.f66178",\r
568                 "ac94d58e.2025e8"\r
569             ]\r
570         ]\r
571     },\r
572     {\r
573         "id": "d2fc4e32.19347",\r
574         "type": "success",\r
575         "name": "success",\r
576         "xml": "<outcome value='success'>\n",\r
577         "comments": "",\r
578         "outputs": 1,\r
579         "x": 1557.009506225586,\r
580         "y": 939.8333444595337,\r
581         "z": "23113e64.4c4872",\r
582         "wires": [\r
583             [\r
584                 "b1d14962.f347a8"\r
585             ]\r
586         ]\r
587     },\r
588     {\r
589         "id": "b1d14962.f347a8",\r
590         "type": "block",\r
591         "name": "block",\r
592         "xml": "<block>\n",\r
593         "atomic": "false",\r
594         "comments": "",\r
595         "outputs": 1,\r
596         "x": 1733.0094604492188,\r
597         "y": 940.1666679382324,\r
598         "z": "23113e64.4c4872",\r
599         "wires": [\r
600             [\r
601                 "37bfc4a8.eaaf0c",\r
602                 "3ecbb172.0c334e"\r
603             ]\r
604         ]\r
605     },\r
606     {\r
607         "id": "37bfc4a8.eaaf0c",\r
608         "type": "set",\r
609         "name": "set",\r
610         "xml": "<set>\n<parameter name='service-status' value='`$final-response-code`' />\n",\r
611         "comments": "",\r
612         "x": 1861.6761283874512,\r
613         "y": 873.1666774749756,\r
614         "z": "23113e64.4c4872",\r
615         "wires": []\r
616     },\r
617     {\r
618         "id": "3ecbb172.0c334e",\r
619         "type": "switchNode",\r
620         "name": "switch",\r
621         "xml": "<switch test='`$service-status == 200`'>\n",\r
622         "comments": "",\r
623         "outputs": 1,\r
624         "x": 1860.6760368347168,\r
625         "y": 1001.8333568572998,\r
626         "z": "23113e64.4c4872",\r
627         "wires": [\r
628             [\r
629                 "421f5497.942c9c",\r
630                 "686fcc2a.0dbf94"\r
631             ]\r
632         ]\r
633     },\r
634     {\r
635         "id": "421f5497.942c9c",\r
636         "type": "outcomeTrue",\r
637         "name": "true",\r
638         "xml": "<outcome value='true'>\n",\r
639         "comments": "",\r
640         "outputs": 1,\r
641         "x": 2021.0092849731445,\r
642         "y": 913.499981880188,\r
643         "z": "23113e64.4c4872",\r
644         "wires": [\r
645             []\r
646         ]\r
647     },\r
648     {\r
649         "id": "686fcc2a.0dbf94",\r
650         "type": "outcomeFalse",\r
651         "name": "false",\r
652         "xml": "<outcome value='false'>\n",\r
653         "comments": "",\r
654         "outputs": 1,\r
655         "x": 2013.676040649414,\r
656         "y": 1063.1666793823242,\r
657         "z": "23113e64.4c4872",\r
658         "wires": [\r
659             [\r
660                 "f3e4a24a.52e36"\r
661             ]\r
662         ]\r
663     },\r
664     {\r
665         "id": "f3e4a24a.52e36",\r
666         "type": "set",\r
667         "name": "set",\r
668         "xml": "<set>\n<parameter name='access-status' value='failure' />\n",\r
669         "comments": "",\r
670         "x": 2197.3425827026367,\r
671         "y": 1064.4999742507935,\r
672         "z": "23113e64.4c4872",\r
673         "wires": []\r
674     },\r
675     {\r
676         "id": "94cb4145.57c88",\r
677         "type": "record",\r
678         "name": "record",\r
679         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/service-delete-tapi.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$service1-status`\"/>\n\n\n\n\n\n",\r
680         "comments": "",\r
681         "outputs": 1,\r
682         "x": 2349.5262298583984,\r
683         "y": 636.349974155426,\r
684         "z": "23113e64.4c4872",\r
685         "wires": [\r
686             []\r
687         ]\r
688     },\r
689     {\r
690         "id": "5666351c.3fed7c",\r
691         "type": "switchNode",\r
692         "name": "switch",\r
693         "xml": "<switch test='`$ppx == 0`'>\n",\r
694         "comments": "",\r
695         "outputs": 1,\r
696         "x": 408.20947647094727,\r
697         "y": 1499.1498394012451,\r
698         "z": "23113e64.4c4872",\r
699         "wires": [\r
700             [\r
701                 "178292af.b017ad",\r
702                 "791b18b2.1028c8"\r
703             ]\r
704         ]\r
705     },\r
706     {\r
707         "id": "3314378c.27c9e8",\r
708         "type": "block",\r
709         "name": "block",\r
710         "xml": "<block>\n",\r
711         "atomic": "false",\r
712         "comments": "",\r
713         "outputs": 1,\r
714         "x": 783.0761566162109,\r
715         "y": 1405.8999619483948,\r
716         "z": "23113e64.4c4872",\r
717         "wires": [\r
718             [\r
719                 "155d72bc.d68edd"\r
720             ]\r
721         ]\r
722     },\r
723     {\r
724         "id": "155d72bc.d68edd",\r
725         "type": "switchNode",\r
726         "name": "switch",\r
727         "xml": "<switch test='`$service1-status`'>\n",\r
728         "comments": "",\r
729         "outputs": 1,\r
730         "x": 925.4261322021484,\r
731         "y": 1411.0999131202698,\r
732         "z": "23113e64.4c4872",\r
733         "wires": [\r
734             [\r
735                 "d2a2c499.44f5d8",\r
736                 "7b86389e.6c7b68"\r
737             ]\r
738         ]\r
739     },\r
740     {\r
741         "id": "b3c2e52b.63a388",\r
742         "type": "block",\r
743         "name": "block",\r
744         "xml": "<block>\n",\r
745         "atomic": "false",\r
746         "comments": "",\r
747         "outputs": 1,\r
748         "x": 1260.4261322021484,\r
749         "y": 1353.2999863624573,\r
750         "z": "23113e64.4c4872",\r
751         "wires": [\r
752             [\r
753                 "79f9a1bf.52d0f",\r
754                 "e7d0e65b.efbea8"\r
755             ]\r
756         ]\r
757     },\r
758     {\r
759         "id": "79f9a1bf.52d0f",\r
760         "type": "delete",\r
761         "name": "delete",\r
762         "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n    resource=\"SQL\"\n    key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $access-id\"> ",\r
763         "comments": "",\r
764         "outputs": 1,\r
765         "x": 1426.092716217041,\r
766         "y": 1348.6333484649658,\r
767         "z": "23113e64.4c4872",\r
768         "wires": [\r
769             []\r
770         ]\r
771     },\r
772     {\r
773         "id": "e7d0e65b.efbea8",\r
774         "type": "returnSuccess",\r
775         "name": "return success",\r
776         "xml": "<return status='success'>\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"Service Deleted Successfully\" />\n<parameter name='ack-final-indicator' value='Y' />",\r
777         "comments": "",\r
778         "x": 1466.4261322021484,\r
779         "y": 1534.3001084327698,\r
780         "z": "23113e64.4c4872",\r
781         "wires": []\r
782     },\r
783     {\r
784         "id": "d2a2c499.44f5d8",\r
785         "type": "outcome",\r
786         "name": "200",\r
787         "xml": "<outcome value='200'>\n",\r
788         "comments": "",\r
789         "outputs": 1,\r
790         "x": 1098.8760833740234,\r
791         "y": 1360.7499375343323,\r
792         "z": "23113e64.4c4872",\r
793         "wires": [\r
794             [\r
795                 "b3c2e52b.63a388"\r
796             ]\r
797         ]\r
798     },\r
799     {\r
800         "id": "7b86389e.6c7b68",\r
801         "type": "other",\r
802         "name": "other",\r
803         "xml": "<outcome value='Other'>\n",\r
804         "comments": "",\r
805         "outputs": 1,\r
806         "x": 1075.8760833740234,\r
807         "y": 1512.7499375343323,\r
808         "z": "23113e64.4c4872",\r
809         "wires": [\r
810             [\r
811                 "c68df7b5.0b81e8"\r
812             ]\r
813         ]\r
814     },\r
815     {\r
816         "id": "e0ffad7.48b955",\r
817         "type": "returnFailure",\r
818         "name": "return failure",\r
819         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Access service request entry cannot be deleted' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
820         "comments": "",\r
821         "x": 1254.1761322021484,\r
822         "y": 1524.8998398780823,\r
823         "z": "23113e64.4c4872",\r
824         "wires": []\r
825     },\r
826     {\r
827         "id": "7dcb69ce.f66178",\r
828         "type": "get-resource",\r
829         "name": "get resources from DB -controller_id",\r
830         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT controller_id\nfrom REQUEST_DETAILS\nWHERE request_id = $param-prefix1[$ppx]'\npfx='detail-db11'>",\r
831         "comments": "",\r
832         "outputs": 1,\r
833         "x": 1420.342758178711,\r
834         "y": 733.166624546051,\r
835         "z": "23113e64.4c4872",\r
836         "wires": [\r
837             [\r
838                 "1aabb5e8.22157a"\r
839             ]\r
840         ]\r
841     },\r
842     {\r
843         "id": "1aabb5e8.22157a",\r
844         "type": "success",\r
845         "name": "success",\r
846         "xml": "<outcome value='success'>\n",\r
847         "comments": "",\r
848         "outputs": 1,\r
849         "x": 1666.342758178711,\r
850         "y": 737.166624546051,\r
851         "z": "23113e64.4c4872",\r
852         "wires": [\r
853             [\r
854                 "70d90830.02f658"\r
855             ]\r
856         ]\r
857     },\r
858     {\r
859         "id": "70d90830.02f658",\r
860         "type": "set",\r
861         "name": "set",\r
862         "xml": "<set>\n<parameter name='controller-id11' value='`$detail-db11.controller-id`' />\n\n\n\n\n\n\n\n\n\n\n",\r
863         "comments": "",\r
864         "x": 1834.342758178711,\r
865         "y": 739.166624546051,\r
866         "z": "23113e64.4c4872",\r
867         "wires": []\r
868     },\r
869     {\r
870         "id": "ac94d58e.2025e8",\r
871         "type": "execute",\r
872         "name": "split node-id a-end retrieved from DB",\r
873         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$controller-id11`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"domain1\"/>\n",\r
874         "comments": "",\r
875         "outputs": 1,\r
876         "x": 1441.342758178711,\r
877         "y": 809.166624546051,\r
878         "z": "23113e64.4c4872",\r
879         "wires": [\r
880             []\r
881         ]\r
882     },\r
883     {\r
884         "id": "8fd18db8.4cb08",\r
885         "type": "update",\r
886         "name": "update",\r
887         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='logical-link'\nkey = 'pnf.pnf-name = $a-end-pnf-name\n      AND p-interface.interface-name = $optical-service-create-input.payload.service-aend.port-id'\n      local-only='false'>\n<parameter name='available-capacity' value='`$available-bandwidth-aend`' />\n\n\n\n<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='logical-link'\nkey='logical-link.link-name = $tmp.link-id' >\n    <parameter name='link-name' value='`$tmp.link-id`' />\n    <parameter name='link-type' value='`$link.link-type`' />\n    <parameter name='in-maint' value='true' />\n    <parameter name='speed-value' value='100' />\n    <parameter name='speed-units' value='Gbps' />\n    <parameter name='operational-status' value='`$link.administrative-state`' />\n    <parameter name='available-capacity' value='100' />\n\n\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n\n",\r
888         "comments": "",\r
889         "outputs": 1,\r
890         "x": 1461.3428039550781,\r
891         "y": 1438.1666703224182,\r
892         "z": "23113e64.4c4872",\r
893         "wires": [\r
894             []\r
895         ]\r
896     },\r
897     {\r
898         "id": "c68df7b5.0b81e8",\r
899         "type": "block",\r
900         "name": "block",\r
901         "xml": "<block>\n",\r
902         "atomic": "false",\r
903         "comments": "",\r
904         "outputs": 1,\r
905         "x": 1173.009506225586,\r
906         "y": 1465.8331894874573,\r
907         "z": "23113e64.4c4872",\r
908         "wires": [\r
909             [\r
910                 "e0ffad7.48b955"\r
911             ]\r
912         ]\r
913     },\r
914     {\r
915         "id": "e6431c0d.bb995",\r
916         "type": "set",\r
917         "name": "set",\r
918         "xml": "<set>\n<parameter name='domain-req' value='`$detail-db.domain-requests`' />\n<parameter name='delete-acc-svc-id' value='`$detail-db.service-instance-id`' />\n<parameter name='access-id' value='`$optical-service-delete-input.request-id`' />\n\n\n\n\n\n\n\n\n\n\n\n\n",\r
919         "comments": "",\r
920         "x": 1109.1761474609375,\r
921         "y": 119.88333177566528,\r
922         "z": "23113e64.4c4872",\r
923         "wires": []\r
924     },\r
925     {\r
926         "id": "31b9f2de.b5872e",\r
927         "type": "outcomeTrue",\r
928         "name": "true",\r
929         "xml": "<outcome value='true'>\n",\r
930         "comments": "",\r
931         "outputs": 1,\r
932         "x": 906.6761627197266,\r
933         "y": 324.85795402526855,\r
934         "z": "23113e64.4c4872",\r
935         "wires": [\r
936             [\r
937                 "caa8b5a3.b36418"\r
938             ]\r
939         ]\r
940     },\r
941     {\r
942         "id": "e0aaa8d0.545478",\r
943         "type": "outcomeFalse",\r
944         "name": "false",\r
945         "xml": "<outcome value='false'>\n",\r
946         "comments": "",\r
947         "outputs": 1,\r
948         "x": 853.3427200317383,\r
949         "y": 773.1913871765137,\r
950         "z": "23113e64.4c4872",\r
951         "wires": [\r
952             [\r
953                 "64b9ab4c.add954"\r
954             ]\r
955         ]\r
956     },\r
957     {\r
958         "id": "178292af.b017ad",\r
959         "type": "outcomeTrue",\r
960         "name": "true",\r
961         "xml": "<outcome value='true'>\n",\r
962         "comments": "",\r
963         "outputs": 1,\r
964         "x": 515.0094858805338,\r
965         "y": 1440.6155522664385,\r
966         "z": "23113e64.4c4872",\r
967         "wires": [\r
968             [\r
969                 "3314378c.27c9e8"\r
970             ]\r
971         ]\r
972     },\r
973     {\r
974         "id": "791b18b2.1028c8",\r
975         "type": "outcomeFalse",\r
976         "name": "false",\r
977         "xml": "<outcome value='false'>\n",\r
978         "comments": "",\r
979         "outputs": 1,\r
980         "x": 521.6761341094971,\r
981         "y": 1642.2822799682617,\r
982         "z": "23113e64.4c4872",\r
983         "wires": [\r
984             [\r
985                 "ccbb9a05.8b09d8"\r
986             ]\r
987         ]\r
988     },\r
989     {\r
990         "id": "ccbb9a05.8b09d8",\r
991         "type": "switchNode",\r
992         "name": "switch",\r
993         "xml": "<switch test='`$access-status == success`'>\n",\r
994         "comments": "",\r
995         "outputs": 1,\r
996         "x": 741.6760864257812,\r
997         "y": 1670.7669677734375,\r
998         "z": "23113e64.4c4872",\r
999         "wires": [\r
1000             [\r
1001                 "2c873361.6b8cec",\r
1002                 "29ad4b93.f97874"\r
1003             ]\r
1004         ]\r
1005     },\r
1006     {\r
1007         "id": "2c873361.6b8cec",\r
1008         "type": "outcomeTrue",\r
1009         "name": "true",\r
1010         "xml": "<outcome value='true'>\n",\r
1011         "comments": "",\r
1012         "outputs": 1,\r
1013         "x": 898.3426628112793,\r
1014         "y": 1609.4031372070312,\r
1015         "z": "23113e64.4c4872",\r
1016         "wires": [\r
1017             [\r
1018                 "abeb4b39.e29ad8"\r
1019             ]\r
1020         ]\r
1021     },\r
1022     {\r
1023         "id": "29ad4b93.f97874",\r
1024         "type": "outcomeFalse",\r
1025         "name": "false",\r
1026         "xml": "<outcome value='false'>\n",\r
1027         "comments": "",\r
1028         "outputs": 1,\r
1029         "x": 898.3426780700684,\r
1030         "y": 1771.069803237915,\r
1031         "z": "23113e64.4c4872",\r
1032         "wires": [\r
1033             [\r
1034                 "b59bb9d9.ea7ce8"\r
1035             ]\r
1036         ]\r
1037     },\r
1038     {\r
1039         "id": "6ec4d0d8.6e90a",\r
1040         "type": "delete",\r
1041         "name": "delete",\r
1042         "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource'\n    resource=\"SQL\"\n    key=\"DELETE FROM REQUEST_DETAILS WHERE request_id = $access-id\"> ",\r
1043         "comments": "",\r
1044         "outputs": 1,\r
1045         "x": 1174.5549240112305,\r
1046         "y": 1607.4334983825684,\r
1047         "z": "23113e64.4c4872",\r
1048         "wires": [\r
1049             []\r
1050         ]\r
1051     },\r
1052     {\r
1053         "id": "61f3204d.d33e2",\r
1054         "type": "returnSuccess",\r
1055         "name": "return success",\r
1056         "xml": "<return status='success'>\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"Service Deleted Successfully\" />\n<parameter name='ack-final-indicator' value='Y' />",\r
1057         "comments": "",\r
1058         "x": 1704.2214965820312,\r
1059         "y": 1844.2668190002441,\r
1060         "z": "23113e64.4c4872",\r
1061         "wires": []\r
1062     },\r
1063     {\r
1064         "id": "a47c2756.f32468",\r
1065         "type": "get-resource",\r
1066         "name": "Get service from AAI",\r
1067         "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\n key='customer.global-customer-id = $output.global-customer-id AND\n     service-subscription.service-type = $output.service-type AND\n     service-instance.service-instance-id = $delete-acc-svc-id' \npfx='acc-serv-dl'      local-only='false'>\n\n",\r
1068         "comments": "",\r
1069         "outputs": 1,\r
1070         "x": 1212.971118927002,\r
1071         "y": 1682.550464630127,\r
1072         "z": "23113e64.4c4872",\r
1073         "wires": [\r
1074             []\r
1075         ]\r
1076     },\r
1077     {\r
1078         "id": "9f2294b5.bcbfe8",\r
1079         "type": "set",\r
1080         "name": "set",\r
1081         "xml": "<set>\n<parameter name='link-name' value='`$acc-serv-dl.relationship-list.relationship[$idl].relationship-data[0].relationship-value`' />\n",\r
1082         "comments": "",\r
1083         "x": 1665.4713287353516,\r
1084         "y": 1665.0501899719238,\r
1085         "z": "23113e64.4c4872",\r
1086         "wires": []\r
1087     },\r
1088     {\r
1089         "id": "a80e8726.f84408",\r
1090         "type": "update",\r
1091         "name": "update logical-link-status AAI",\r
1092         "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='logical-link'\n     key='logical-link.link-name = $link-name '\n      local-only='false'>\n<parameter name='operational-status' value='up' />\n\n\n\n\n\n\n\n\n\n    \n    \n    \n    \n    \n    \n    \n    \n   \n    \n    \n    \n\n \n \n",\r
1093         "comments": "",\r
1094         "outputs": 1,\r
1095         "x": 1768.8047256469727,\r
1096         "y": 1759.2170295715332,\r
1097         "z": "23113e64.4c4872",\r
1098         "wires": [\r
1099             []\r
1100         ]\r
1101     },\r
1102     {\r
1103         "id": "abeb4b39.e29ad8",\r
1104         "type": "block",\r
1105         "name": "block",\r
1106         "xml": "<block>\n",\r
1107         "atomic": "false",\r
1108         "comments": "",\r
1109         "outputs": 1,\r
1110         "x": 1022.8881912231445,\r
1111         "y": 1610.7668838500977,\r
1112         "z": "23113e64.4c4872",\r
1113         "wires": [\r
1114             [\r
1115                 "6ec4d0d8.6e90a",\r
1116                 "a47c2756.f32468",\r
1117                 "98787f37.a2ed6"\r
1118             ]\r
1119         ]\r
1120     },\r
1121     {\r
1122         "id": "98787f37.a2ed6",\r
1123         "type": "for",\r
1124         "name": "for",\r
1125         "xml": "<for index='idl' start='0' end='`$acc-serv-dl.relationship-list.relationship_length`' >\n",\r
1126         "comments": "",\r
1127         "outputs": 1,\r
1128         "x": 1112.8882637023926,\r
1129         "y": 1737.4336795806885,\r
1130         "z": "23113e64.4c4872",\r
1131         "wires": [\r
1132             [\r
1133                 "e4e22bae.fd2a68"\r
1134             ]\r
1135         ]\r
1136     },\r
1137     {\r
1138         "id": "e4e22bae.fd2a68",\r
1139         "type": "switchNode",\r
1140         "name": "switch",\r
1141         "xml": "<switch test=\"`$acc-serv-dl.relationship-list.relationship[$idl].related-to == 'logical-link'`\">\n",\r
1142         "comments": "",\r
1143         "outputs": 1,\r
1144         "x": 1256.221492767334,\r
1145         "y": 1730.6154251098633,\r
1146         "z": "23113e64.4c4872",\r
1147         "wires": [\r
1148             [\r
1149                 "55e7e053.a52d9"\r
1150             ]\r
1151         ]\r
1152     },\r
1153     {\r
1154         "id": "55e7e053.a52d9",\r
1155         "type": "outcomeTrue",\r
1156         "name": "true",\r
1157         "xml": "<outcome value='true'>\n",\r
1158         "comments": "",\r
1159         "outputs": 1,\r
1160         "x": 1396.2214965820312,\r
1161         "y": 1738.94873046875,\r
1162         "z": "23113e64.4c4872",\r
1163         "wires": [\r
1164             [\r
1165                 "cac797c.4727a68"\r
1166             ]\r
1167         ]\r
1168     },\r
1169     {\r
1170         "id": "cac797c.4727a68",\r
1171         "type": "block",\r
1172         "name": "block",\r
1173         "xml": "<block>\n",\r
1174         "atomic": "false",\r
1175         "comments": "",\r
1176         "outputs": 1,\r
1177         "x": 1531.2214965820312,\r
1178         "y": 1740.6153564453125,\r
1179         "z": "23113e64.4c4872",\r
1180         "wires": [\r
1181             [\r
1182                 "9f2294b5.bcbfe8",\r
1183                 "a80e8726.f84408",\r
1184                 "61f3204d.d33e2"\r
1185             ]\r
1186         ]\r
1187     },\r
1188     {\r
1189         "id": "b59bb9d9.ea7ce8",\r
1190         "type": "returnFailure",\r
1191         "name": "return failure",\r
1192         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value='Access service request entry cannot be deleted' />\n<parameter name='ack-final-indicator' value=\"Y\" />",\r
1193         "comments": "",\r
1194         "x": 1071.2214965820312,\r
1195         "y": 1808.7972412109375,\r
1196         "z": "23113e64.4c4872",\r
1197         "wires": []\r
1198     },\r
1199     {\r
1200         "id": "1d36fe9a.5fdc81",\r
1201         "type": "record",\r
1202         "name": "record",\r
1203         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/new.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"`$domain-req`\"/>\n<parameter name=\"field2\" value=\"`$domain-service1`\"/>\n\n",\r
1204         "comments": "",\r
1205         "outputs": 1,\r
1206         "x": 705.1609497070312,\r
1207         "y": 265.00946044921875,\r
1208         "z": "23113e64.4c4872",\r
1209         "wires": [\r
1210             []\r
1211         ]\r
1212     },\r
1213     {\r
1214         "id": "55028f82.4ab0c",\r
1215         "type": "record",\r
1216         "name": "record",\r
1217         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/new.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Domain Details\"/>\n<parameter name=\"field2\" value=\"`$controller-ip`\"/>\n<parameter name=\"field3\" value=\"`$optical-service-delete-input.request-id`\"/>\n<parameter name=\"field4\" value=\"`$optical-service-delete-input.payload.service-name`\"/>\n\n",\r
1218         "comments": "",\r
1219         "outputs": 1,\r
1220         "x": 1251.070011138916,\r
1221         "y": 486.6761064529419,\r
1222         "z": "23113e64.4c4872",\r
1223         "wires": [\r
1224             []\r
1225         ]\r
1226     }\r
1227 ]