Merge "Adding connectivity attachment Resource DGs"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json
1 [
2   {
3     "id": "40d74cd7.316a14",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 101,
8     "y": 40,
9     "z": "344982e2.7dca5e",
10     "wires": [
11       [
12         "f8cb9b5e.038868"
13       ]
14     ]
15   },
16   {
17     "id": "f8cb9b5e.038868",
18     "type": "service-logic",
19     "name": "GENERIC-RESOURCE-API ${project.version}",
20     "module": "GENERIC-RESOURCE-API",
21     "version": "${project.version}",
22     "comments": "",
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='GENERIC-RESOURCE-API' version='${project.version}'>",
24     "outputs": 1,
25     "x": 313.00000381469727,
26     "y": 112.0000171661377,
27     "z": "344982e2.7dca5e",
28     "wires": [
29       [
30         "a82adde1.bdf47"
31       ]
32     ]
33   },
34   {
35     "id": "a82adde1.bdf47",
36     "type": "method",
37     "name": "sotn-attachment-topology-operation-delete",
38     "xml": "<method rpc='sotn-attachment-topology-operation-delete' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 301.0001220703125,
42     "y": 200,
43     "z": "344982e2.7dca5e",
44     "wires": [
45       [
46         "949cc74.207fe38"
47       ]
48     ]
49   },
50   {
51     "id": "949cc74.207fe38",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 317.0001220703125,
59     "y": 755.0002446174622,
60     "z": "344982e2.7dca5e",
61     "wires": [
62       [
63         "e8c0ed11.a9ee2",
64         "acbb646b.d77cc8",
65         "fd6eb40b.cdb328",
66         "9e6bdd2.2396b2",
67         "b1c2a911.f82f08",
68         "90800e39.89524",
69         "3735d68f.ab66da",
70         "c9fb1b0b.8e8c48",
71         "3438f4ce.6e83dc",
72         "8443751c.74bd98",
73         "4de78821.6f3c58",
74         "bcd52af9.df1738",
75         "9273699a.4d08c8",
76         "85ce8a7e.f20d58"
77       ]
78     ]
79   },
80   {
81     "id": "e8c0ed11.a9ee2",
82     "type": "set",
83     "name": "set tmp.ar.allotted-resource-id,etc",
84     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n\n\n",
85     "comments": "",
86     "x": 713.9935607910156,
87     "y": 153.9934868812561,
88     "z": "344982e2.7dca5e",
89     "wires": [
90       
91     ]
92   },
93   {
94     "id": "43da58d7.610758",
95     "type": "comment",
96     "name": "set tmp ar-id to fetch resource from MDSAL",
97     "info": "",
98     "comments": "",
99     "x": 742.9538726806641,
100     "y": 118.02528285980225,
101     "z": "344982e2.7dca5e",
102     "wires": [
103       
104     ]
105   },
106   {
107     "id": "acbb646b.d77cc8",
108     "type": "set",
109     "name": "set tmp.ar.self-link",
110     "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:connection-attachment-allotted-resources/connection-attachment-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/connection-attachment-topology/'` \" />\n\n",
111     "comments": "",
112     "x": 667.9934997558594,
113     "y": 246.99349212646484,
114     "z": "344982e2.7dca5e",
115     "wires": [
116       
117     ]
118   },
119   {
120     "id": "90800e39.89524",
121     "type": "execute",
122     "name": "execute Properties",
123     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
124     "comments": "",
125     "outputs": 1,
126     "x": 674.2553901672363,
127     "y": 334.6602210998535,
128     "z": "344982e2.7dca5e",
129     "wires": [
130       [
131         
132       ]
133     ]
134   },
135   {
136     "id": "fd6eb40b.cdb328",
137     "type": "execute",
138     "name": "generate allotted-resource url",
139     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.connection-attachment-allottedresource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
140     "comments": "",
141     "outputs": 1,
142     "x": 706.2554168701172,
143     "y": 422.66020250320435,
144     "z": "344982e2.7dca5e",
145     "wires": [
146       [
147         
148       ]
149     ]
150   },
151   {
152     "id": "1905b8ab.ca3847",
153     "type": "comment",
154     "name": "Used for setting output to API Handler",
155     "info": "",
156     "comments": "",
157     "x": 721.9935302734375,
158     "y": 213.993501663208,
159     "z": "344982e2.7dca5e",
160     "wires": [
161       
162     ]
163   },
164   {
165     "id": "472b5b53.359df4",
166     "type": "comment",
167     "name": "Obtain different URL, template location etc",
168     "info": "For saving resource information to MDSAL & for AAI",
169     "comments": "",
170     "x": 739.9934959411621,
171     "y": 299.8823823928833,
172     "z": "344982e2.7dca5e",
173     "wires": [
174       
175     ]
176   },
177   {
178     "id": "e758b3f.c00a45",
179     "type": "comment",
180     "name": "Used to Get AR by id to MDSAL, same as self-link",
181     "info": "",
182     "comments": "",
183     "x": 765.9935150146484,
184     "y": 386.8823413848877,
185     "z": "344982e2.7dca5e",
186     "wires": [
187       
188     ]
189   },
190   {
191     "id": "9e6bdd2.2396b2",
192     "type": "get-resource",
193     "name": "get-resource parent-service-data",
194     "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='services/service/$tmp.ar.parent-service-instance-id/service-data' pfx='mdsal-psd' >\n",
195     "comments": "",
196     "outputs": 1,
197     "x": 713.0003890991211,
198     "y": 912.531683921814,
199     "z": "344982e2.7dca5e",
200     "wires": [
201       [
202         "376a6931.f70fe6",
203         "344c3669.3f542a"
204       ]
205     ]
206   },
207   {
208     "id": "7df855f0.47079c",
209     "type": "comment",
210     "name": "GET parent-service-data from mdsal to check existence of other End point",
211     "info": "",
212     "comments": "",
213     "x": 833.0003280639648,
214     "y": 841.5316228866577,
215     "z": "344982e2.7dca5e",
216     "wires": [
217       
218     ]
219   },
220   {
221     "id": "3af49e65.969612",
222     "type": "for",
223     "name": "for pidx..mdsal-psd.provided-allotted-resources.provided-allotted-resource[]",
224     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`' >\n",
225     "comments": "",
226     "outputs": 1,
227     "x": 1644.1849060058594,
228     "y": 1017.0042171478271,
229     "z": "344982e2.7dca5e",
230     "wires": [
231       [
232         "c4ca63d9.fd59d"
233       ]
234     ]
235   },
236   {
237     "id": "b1c2a911.f82f08",
238     "type": "switchNode",
239     "name": "switch mdsal-psd.provided-allotted-resources_length",
240     "xml": "<switch test='`$mdsal-psd.provided-allotted-resources.provided-allotted-resource_length`'>\n",
241     "comments": "",
242     "outputs": 1,
243     "x": 772.1841125488281,
244     "y": 1001.7180595397949,
245     "z": "344982e2.7dca5e",
246     "wires": [
247       [
248         "af927d7b.49dce",
249         "fc0125f.d3b43d8"
250       ]
251     ]
252   },
253   {
254     "id": "97446eab.09441",
255     "type": "block",
256     "name": "block : atomic",
257     "xml": "<block atomic=\"true\">",
258     "atomic": "true",
259     "outputs": 1,
260     "x": 1258.4543991088867,
261     "y": 1057.7015590667725,
262     "z": "344982e2.7dca5e",
263     "wires": [
264       [
265         "3af49e65.969612",
266         "7aae58e1.7b18c8"
267       ]
268     ]
269   },
270   {
271     "id": "c4ca63d9.fd59d",
272     "type": "switchNode",
273     "name": "switch allotted-resource-id",
274     "xml": "<switch test=\"`$mdsal-psd.provided-allotted-resources.provided-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
275     "comments": "",
276     "outputs": 1,
277     "x": 2063.2962188720703,
278     "y": 1017.0040645599365,
279     "z": "344982e2.7dca5e",
280     "wires": [
281       [
282         "637d9cfe.cdf994"
283       ]
284     ]
285   },
286   {
287     "id": "3735d68f.ab66da",
288     "type": "set",
289     "name": "set tmp.ar.parent-service-instance-id",
290     "xml": "<set>\n<parameter name='tmp.ar.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n\n",
291     "comments": "",
292     "x": 723.9687118530273,
293     "y": 877.0000677108765,
294     "z": "344982e2.7dca5e",
295     "wires": [
296       
297     ]
298   },
299   {
300     "id": "376a6931.f70fe6",
301     "type": "success",
302     "name": "success",
303     "xml": "<outcome value='success'>\n",
304     "comments": "",
305     "outputs": 1,
306     "x": 959.9687118530273,
307     "y": 905.0000677108765,
308     "z": "344982e2.7dca5e",
309     "wires": [
310       [
311         "eee1cf23.532fa"
312       ]
313     ]
314   },
315   {
316     "id": "344c3669.3f542a",
317     "type": "other",
318     "name": "other",
319     "xml": "<outcome value='Other'>\n",
320     "comments": "",
321     "outputs": 1,
322     "x": 951.8205146789551,
323     "y": 940.0661525726318,
324     "z": "344982e2.7dca5e",
325     "wires": [
326       [
327         "38d98c77.5a5dc4"
328       ]
329     ]
330   },
331   {
332     "id": "38d98c77.5a5dc4",
333     "type": "returnFailure",
334     "name": "return failure",
335     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n    <parameter name=\"error-message\" value=\"Error: SOTN resource not found\" />\n    \n",
336     "comments": "",
337     "x": 1126.9692001342773,
338     "y": 936.3335027694702,
339     "z": "344982e2.7dca5e",
340     "wires": [
341       
342     ]
343   },
344   {
345     "id": "eee1cf23.532fa",
346     "type": "block",
347     "name": "block",
348     "xml": "<block>\n",
349     "atomic": "false",
350     "comments": "",
351     "outputs": 1,
352     "x": 1110.9687118530273,
353     "y": 903.0000677108765,
354     "z": "344982e2.7dca5e",
355     "wires": [
356       [
357         
358       ]
359     ]
360   },
361   {
362     "id": "fd82a90d.c15198",
363     "type": "failure",
364     "name": "failure",
365     "xml": "<outcome value='failure'>\n",
366     "comments": "",
367     "outputs": 1,
368     "x": 952.7306861877441,
369     "y": 1186.9527963399887,
370     "z": "344982e2.7dca5e",
371     "wires": [
372       [
373         "a5f6bd09.ffa1d"
374       ]
375     ]
376   },
377   {
378     "id": "a5f6bd09.ffa1d",
379     "type": "returnFailure",
380     "name": "return failure",
381     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"AAI failed\" />\n",
382     "comments": "",
383     "x": 1119.254566192627,
384     "y": 1198.5718673467636,
385     "z": "344982e2.7dca5e",
386     "wires": [
387       
388     ]
389   },
390   {
391     "id": "399e5f25.1d673",
392     "type": "failure",
393     "name": "not-found",
394     "xml": "<outcome value='not-found'>\n",
395     "comments": "",
396     "outputs": 1,
397     "x": 959.8259735107422,
398     "y": 1219.7147639989853,
399     "z": "344982e2.7dca5e",
400     "wires": [
401       [
402         "a5f6bd09.ffa1d"
403       ]
404     ]
405   },
406   {
407     "id": "c1db391c.684108",
408     "type": "comment",
409     "name": "TODO: Rework after confirmation from AAI",
410     "info": "",
411     "comments": "",
412     "x": 1084.137351989746,
413     "y": 1137.8731961250305,
414     "z": "344982e2.7dca5e",
415     "wires": [
416       
417     ]
418   },
419   {
420     "id": "c9fb1b0b.8e8c48",
421     "type": "set",
422     "name": "set output to api handler",
423     "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='connection-attachment-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $connection-attachment-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
424     "comments": "",
425     "x": 685.5460739135742,
426     "y": 1150.8276634216309,
427     "z": "344982e2.7dca5e",
428     "wires": [
429       
430     ]
431   },
432   {
433     "id": "3438f4ce.6e83dc",
434     "type": "returnSuccess",
435     "name": "return success",
436     "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",
437     "comments": "",
438     "x": 654.9591789245605,
439     "y": 1251.4434180259705,
440     "z": "344982e2.7dca5e",
441     "wires": [
442       
443     ]
444   },
445   {
446     "id": "8443751c.74bd98",
447     "type": "execute",
448     "name": "execute RestApiCallNode - PUT AR by id",
449     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='Delete' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
450     "comments": "",
451     "outputs": 1,
452     "x": 739.6666641235352,
453     "y": 511.3333625793457,
454     "z": "344982e2.7dca5e",
455     "wires": [
456       [
457         "800033f.1bbe0d",
458         "b5b39fe4.c4cab",
459         "11a37ef9.11cf81"
460       ]
461     ]
462   },
463   {
464     "id": "800033f.1bbe0d",
465     "type": "not-found",
466     "name": "not-found",
467     "xml": "<outcome value='not-found'>\n",
468     "comments": "",
469     "outputs": 1,
470     "x": 1008.3080406188965,
471     "y": 562.6647743210196,
472     "z": "344982e2.7dca5e",
473     "wires": [
474       [
475         "84c30bf1.79ce98"
476       ]
477     ]
478   },
479   {
480     "id": "b5b39fe4.c4cab",
481     "type": "failure",
482     "name": "failure",
483     "xml": "<outcome value='failure'>\n",
484     "comments": "",
485     "outputs": 1,
486     "x": 999.3080902099609,
487     "y": 531.1648000702262,
488     "z": "344982e2.7dca5e",
489     "wires": [
490       [
491         "84c30bf1.79ce98"
492       ]
493     ]
494   },
495   {
496     "id": "11a37ef9.11cf81",
497     "type": "success",
498     "name": "success",
499     "xml": "<outcome value='success'>\n",
500     "comments": "",
501     "outputs": 1,
502     "x": 1003.0581283569336,
503     "y": 501.52190494537354,
504     "z": "344982e2.7dca5e",
505     "wires": [
506       [
507         "b7efe17a.65f42"
508       ]
509     ]
510   },
511   {
512     "id": "84c30bf1.79ce98",
513     "type": "returnFailure",
514     "name": "return failure",
515     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
516     "comments": "",
517     "x": 1169.0581283569336,
518     "y": 531.9148239120841,
519     "z": "344982e2.7dca5e",
520     "wires": [
521       
522     ]
523   },
524   {
525     "id": "b7efe17a.65f42",
526     "type": "block",
527     "name": "block",
528     "xml": "<block>\n",
529     "atomic": "false",
530     "comments": "",
531     "outputs": 1,
532     "x": 1144.714096069336,
533     "y": 497.71407413482666,
534     "z": "344982e2.7dca5e",
535     "wires": [
536       [
537         
538       ]
539     ]
540   },
541   {
542     "id": "67cf0e71.e946f",
543     "type": "comment",
544     "name": "Delete Allotted Resource",
545     "info": "",
546     "comments": "",
547     "x": 687.0000457763672,
548     "y": 480.0000286102295,
549     "z": "344982e2.7dca5e",
550     "wires": [
551       
552     ]
553   },
554   {
555     "id": "c1be7c26.8538e",
556     "type": "for",
557     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
558     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
559     "comments": "",
560     "outputs": 1,
561     "x": 1637.00390625,
562     "y": 717.00390625,
563     "z": "344982e2.7dca5e",
564     "wires": [
565       [
566         "b702145d.d12dd8"
567       ]
568     ]
569   },
570   {
571     "id": "4de78821.6f3c58",
572     "type": "switchNode",
573     "name": "switch service-data.consumed-allotted-resources_length",
574     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
575     "comments": "",
576     "outputs": 1,
577     "x": 790.0032920837402,
578     "y": 677.71790766716,
579     "z": "344982e2.7dca5e",
580     "wires": [
581       [
582         "9fcadeb2.7ddd3",
583         "f277a541.5d4da8"
584       ]
585     ]
586   },
587   {
588     "id": "9fcadeb2.7ddd3",
589     "type": "other",
590     "name": "outcome Null",
591     "xml": "<outcome value=''>\n",
592     "comments": "",
593     "outputs": 1,
594     "x": 1114.1461563110352,
595     "y": 660.5753421783447,
596     "z": "344982e2.7dca5e",
597     "wires": [
598       [
599         "6ed5686.b9f1498"
600       ]
601     ]
602   },
603   {
604     "id": "f277a541.5d4da8",
605     "type": "other",
606     "name": "other",
607     "xml": "<outcome value='Other'>\n",
608     "comments": "",
609     "outputs": 1,
610     "x": 1100.1461791992188,
611     "y": 723.5753309726715,
612     "z": "344982e2.7dca5e",
613     "wires": [
614       [
615         "a167b159.d1f0a"
616       ]
617     ]
618   },
619   {
620     "id": "a167b159.d1f0a",
621     "type": "block",
622     "name": "block : atomic",
623     "xml": "<block atomic=\"true\">",
624     "atomic": "true",
625     "outputs": 1,
626     "x": 1260.2732696533203,
627     "y": 721.7013075351715,
628     "z": "344982e2.7dca5e",
629     "wires": [
630       [
631         "c1be7c26.8538e",
632         "a14b9903.574488"
633       ]
634     ]
635   },
636   {
637     "id": "bcd52af9.df1738",
638     "type": "set",
639     "name": "set consumed allotted resources for deletion",
640     "xml": "<set>\n<parameter name=\"service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].\" value=\"\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length - 1`' />\n\n",
641     "comments": "",
642     "x": 746.8606262207031,
643     "y": 748.28955078125,
644     "z": "344982e2.7dca5e",
645     "wires": [
646       
647     ]
648   },
649   {
650     "id": "b702145d.d12dd8",
651     "type": "switchNode",
652     "name": "switch allotted-resource-id",
653     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
654     "comments": "",
655     "outputs": 1,
656     "x": 2075.1155166625977,
657     "y": 713.0040283203125,
658     "z": "344982e2.7dca5e",
659     "wires": [
660       [
661         "5f8fbf17.00afa"
662       ]
663     ]
664   },
665   {
666     "id": "5f8fbf17.00afa",
667     "type": "outcomeTrue",
668     "name": "true",
669     "xml": "<outcome value='true'>\n",
670     "comments": "",
671     "outputs": 1,
672     "x": 2270.925338745117,
673     "y": 712.4683527946472,
674     "z": "344982e2.7dca5e",
675     "wires": [
676       [
677         "c51401e.55444"
678       ]
679     ]
680   },
681   {
682     "id": "43e9034f.c4ea2c",
683     "type": "set",
684     "name": "set tmp.cidx",
685     "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
686     "comments": "",
687     "x": 2582.26171875,
688     "y": 672.2246131896973,
689     "z": "344982e2.7dca5e",
690     "wires": [
691       
692     ]
693   },
694   {
695     "id": "cdccd47e.bede38",
696     "type": "comment",
697     "name": "Delete consumed service consumed-allotted-resources in mdsal",
698     "info": "",
699     "comments": "",
700     "x": 801.0045623779297,
701     "y": 610.0038724095793,
702     "z": "344982e2.7dca5e",
703     "wires": [
704       
705     ]
706   },
707   {
708     "id": "d296b738.04dcc8",
709     "type": "comment",
710     "name": "This set resource will be deleted in MDSAL by provider code",
711     "info": "",
712     "comments": "",
713     "x": 791.337345123291,
714     "y": 714.781964302063,
715     "z": "344982e2.7dca5e",
716     "wires": [
717       
718     ]
719   },
720   {
721     "id": "8922e52b.01caf8",
722     "type": "comment",
723     "name": "Obtain the index of conusumed AR",
724     "info": "",
725     "comments": "",
726     "x": 713.7817535400391,
727     "y": 641.8927326202393,
728     "z": "344982e2.7dca5e",
729     "wires": [
730       
731     ]
732   },
733   {
734     "id": "6ed5686.b9f1498",
735     "type": "returnFailure",
736     "name": "return failure",
737     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Resource to be deleted doesn't exist in MDSAL.\" />\n",
738     "comments": "",
739     "x": 1276.00390625,
740     "y": 661.00390625,
741     "z": "344982e2.7dca5e",
742     "wires": [
743       
744     ]
745   },
746   {
747     "id": "e0029499.0fe808",
748     "type": "break",
749     "name": "break",
750     "xml": "<break>\n",
751     "comments": "",
752     "x": 2574.003875732422,
753     "y": 732.2540216445923,
754     "z": "344982e2.7dca5e",
755     "wires": [
756       
757     ]
758   },
759   {
760     "id": "c51401e.55444",
761     "type": "block",
762     "name": "block : atomic",
763     "xml": "<block atomic=\"true\">",
764     "atomic": "true",
765     "outputs": 1,
766     "x": 2420.003936767578,
767     "y": 713.2539558410645,
768     "z": "344982e2.7dca5e",
769     "wires": [
770       [
771         "43e9034f.c4ea2c",
772         "e0029499.0fe808"
773       ]
774     ]
775   },
776   {
777     "id": "f81fb204.590a8",
778     "type": "returnFailure",
779     "name": "return failure",
780     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"resource to be deleted is not available in mdsal\" />\n",
781     "comments": "",
782     "x": 1730.25390625,
783     "y": 770.25390625,
784     "z": "344982e2.7dca5e",
785     "wires": [
786       
787     ]
788   },
789   {
790     "id": "1a2d8fc2.146df",
791     "type": "outcome",
792     "name": "NULL",
793     "xml": "<outcome value=''>\n",
794     "comments": "",
795     "outputs": 1,
796     "x": 1592.75390625,
797     "y": 770.25390625,
798     "z": "344982e2.7dca5e",
799     "wires": [
800       [
801         "f81fb204.590a8"
802       ]
803     ]
804   },
805   {
806     "id": "a14b9903.574488",
807     "type": "switchNode",
808     "name": "switch tmp.cidx ",
809     "xml": "<switch test=\"`$tmp.cidx`\">\n\n",
810     "comments": "",
811     "outputs": 1,
812     "x": 1438.75390625,
813     "y": 770.25390625,
814     "z": "344982e2.7dca5e",
815     "wires": [
816       [
817         "1a2d8fc2.146df"
818       ]
819     ]
820   },
821   {
822     "id": "a2784c5c.f26de",
823     "type": "comment",
824     "name": "Delete provided service provided-allotted-resources in mdsal",
825     "info": "",
826     "comments": "",
827     "x": 787.5039215087891,
828     "y": 806.00390625,
829     "z": "344982e2.7dca5e",
830     "wires": [
831       
832     ]
833   },
834   {
835     "id": "fc0125f.d3b43d8",
836     "type": "other",
837     "name": "other",
838     "xml": "<outcome value='Other'>\n",
839     "comments": "",
840     "outputs": 1,
841     "x": 1081.5039596557617,
842     "y": 1054.7539730072021,
843     "z": "344982e2.7dca5e",
844     "wires": [
845       [
846         "97446eab.09441"
847       ]
848     ]
849   },
850   {
851     "id": "af927d7b.49dce",
852     "type": "other",
853     "name": "outcome Null",
854     "xml": "<outcome value=''>\n",
855     "comments": "",
856     "outputs": 1,
857     "x": 1093.5038833618164,
858     "y": 991.7539174556732,
859     "z": "344982e2.7dca5e",
860     "wires": [
861       [
862         "29d2e8ba.860218"
863       ]
864     ]
865   },
866   {
867     "id": "29d2e8ba.860218",
868     "type": "returnFailure",
869     "name": "return failure",
870     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Resource to be deleted doesn't exist in MDSAL.\" />\n",
871     "comments": "",
872     "x": 1255.3616333007812,
873     "y": 992.1824815273285,
874     "z": "344982e2.7dca5e",
875     "wires": [
876       
877     ]
878   },
879   {
880     "id": "8fbe7fb5.2044c",
881     "type": "returnFailure",
882     "name": "return failure",
883     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"resource to be deleted is not available in mdsal\" />\n",
884     "comments": "",
885     "x": 1752.75390625,
886     "y": 1088.75390625,
887     "z": "344982e2.7dca5e",
888     "wires": [
889       
890     ]
891   },
892   {
893     "id": "99d40761.083518",
894     "type": "outcome",
895     "name": "NULL",
896     "xml": "<outcome value=''>\n",
897     "comments": "",
898     "outputs": 1,
899     "x": 1615.25390625,
900     "y": 1088.75390625,
901     "z": "344982e2.7dca5e",
902     "wires": [
903       [
904         "8fbe7fb5.2044c"
905       ]
906     ]
907   },
908   {
909     "id": "7aae58e1.7b18c8",
910     "type": "switchNode",
911     "name": "switch tmp.pidx ",
912     "xml": "<switch test=\"`$tmp.pidx`\">\n\n",
913     "comments": "",
914     "outputs": 1,
915     "x": 1461.25390625,
916     "y": 1088.75390625,
917     "z": "344982e2.7dca5e",
918     "wires": [
919       [
920         "99d40761.083518"
921       ]
922     ]
923   },
924   {
925     "id": "637d9cfe.cdf994",
926     "type": "outcomeTrue",
927     "name": "true",
928     "xml": "<outcome value='true'>\n",
929     "comments": "",
930     "outputs": 1,
931     "x": 2262.503963470459,
932     "y": 1014.7539739608765,
933     "z": "344982e2.7dca5e",
934     "wires": [
935       [
936         "240168eb.ef4528"
937       ]
938     ]
939   },
940   {
941     "id": "fb4a1e64.0992d",
942     "type": "set",
943     "name": "set tmp.pidx",
944     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n",
945     "comments": "",
946     "x": 2580.8404235839844,
947     "y": 973.5101690292358,
948     "z": "344982e2.7dca5e",
949     "wires": [
950       
951     ]
952   },
953   {
954     "id": "a63547e2.d5edc8",
955     "type": "break",
956     "name": "break",
957     "xml": "<break>\n",
958     "comments": "",
959     "x": 2572.5825805664062,
960     "y": 1033.5395774841309,
961     "z": "344982e2.7dca5e",
962     "wires": [
963       
964     ]
965   },
966   {
967     "id": "240168eb.ef4528",
968     "type": "block",
969     "name": "block : atomic",
970     "xml": "<block atomic=\"true\">",
971     "atomic": "true",
972     "outputs": 1,
973     "x": 2418.5826416015625,
974     "y": 1014.539511680603,
975     "z": "344982e2.7dca5e",
976     "wires": [
977       [
978         "fb4a1e64.0992d",
979         "a63547e2.d5edc8"
980       ]
981     ]
982   },
983   {
984     "id": "9273699a.4d08c8",
985     "type": "set",
986     "name": "set provided allotted resources for deletion",
987     "xml": "<set>\n<parameter name=\"service-data.provided-allotted-resources.consumed-allotted-resource[$pidx].\" value=\"\" />\n<parameter name='service-data.provided-allotted-resources.consumed-allotted-resource_length' value='`$service-data.provided-allotted-resources.consumed-allotted-resource_length - 1`' />\n\n",
988     "comments": "",
989     "x": 741.0039215087891,
990     "y": 1052.003957748413,
991     "z": "344982e2.7dca5e",
992     "wires": [
993       
994     ]
995   },
996   {
997     "id": "85ce8a7e.f20d58",
998     "type": "update",
999     "name": "update AAI allotted-resource",
1000     "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='allotted-resource'  \n\t\tkey=\"customer.global-customer-id = $connection-attachment-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $connection-attachment-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\">\n",
1001     "comments": "",
1002     "outputs": 1,
1003     "x": 698.2226791381836,
1004     "y": 1206.7543272972107,
1005     "z": "344982e2.7dca5e",
1006     "wires": [
1007       [
1008         "fd82a90d.c15198",
1009         "399e5f25.1d673"
1010       ]
1011     ]
1012   }
1013 ]