453b78293c2f6b5f02326201f06d0ea108aeb69c
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json
1 [
2   {
3     "id": "11e769e3.3811f6",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 114,
8     "y": 40,
9     "z": "22c49458.dad37c",
10     "wires": [
11       [
12         "a911446f.df7748"
13       ]
14     ]
15   },
16   {
17     "id": "a911446f.df7748",
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": 288.00000381469727,
26     "y": 95.0000171661377,
27     "z": "22c49458.dad37c",
28     "wires": [
29       [
30         "7ff497ab.f66f98"
31       ]
32     ]
33   },
34   {
35     "id": "7ff497ab.f66f98",
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": 276.0001220703125,
42     "y": 183,
43     "z": "22c49458.dad37c",
44     "wires": [
45       [
46         "5cbadab.7a99a24"
47       ]
48     ]
49   },
50   {
51     "id": "5cbadab.7a99a24",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 292.0001220703125,
59     "y": 738.0002446174622,
60     "z": "22c49458.dad37c",
61     "wires": [
62       [
63         "12de2d1a.68bba3",
64         "51b97e85.9070d",
65         "1fed4a5d.8e6a46",
66         "6484d39f.eed1bc",
67         "5b5b7d66.22fc34",
68         "e0c27564.dc6708",
69         "4516c95e.b99748",
70         "497a6009.1522c",
71         "79c8cfb5.a81b4",
72         "72f76f27.124fe",
73         "eb5610dc.278e7",
74         "8cb29231.a6eaa",
75         "322e0846.b44bc8",
76         "9ea8a95d.e39878",
77         "75c532eb.23cc8c"
78       ]
79     ]
80   },
81   {
82     "id": "12de2d1a.68bba3",
83     "type": "set",
84     "name": "set tmp.ar.allotted-resource-id,etc",
85     "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",
86     "comments": "",
87     "x": 688.9935607910156,
88     "y": 136.9934868812561,
89     "z": "22c49458.dad37c",
90     "wires": []
91   },
92   {
93     "id": "a47c80d2.4bf0a",
94     "type": "comment",
95     "name": "set tmp ar-id to fetch resource from MDSAL",
96     "info": "",
97     "comments": "",
98     "x": 717.9538726806641,
99     "y": 101.02528285980225,
100     "z": "22c49458.dad37c",
101     "wires": []
102   },
103   {
104     "id": "51b97e85.9070d",
105     "type": "set",
106     "name": "set tmp.ar.self-link",
107     "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",
108     "comments": "",
109     "x": 642.9934997558594,
110     "y": 229.99349212646484,
111     "z": "22c49458.dad37c",
112     "wires": []
113   },
114   {
115     "id": "5b5b7d66.22fc34",
116     "type": "execute",
117     "name": "execute Properties",
118     "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",
119     "comments": "",
120     "outputs": 1,
121     "x": 649.2553901672363,
122     "y": 317.6602210998535,
123     "z": "22c49458.dad37c",
124     "wires": [
125       []
126     ]
127   },
128   {
129     "id": "1fed4a5d.8e6a46",
130     "type": "execute",
131     "name": "generate allotted-resource url",
132     "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",
133     "comments": "",
134     "outputs": 1,
135     "x": 681.2554168701172,
136     "y": 405.66020250320435,
137     "z": "22c49458.dad37c",
138     "wires": [
139       []
140     ]
141   },
142   {
143     "id": "ab7e7ca9.bc19e",
144     "type": "comment",
145     "name": "Used for setting output to API Handler",
146     "info": "",
147     "comments": "",
148     "x": 696.9935302734375,
149     "y": 196.993501663208,
150     "z": "22c49458.dad37c",
151     "wires": []
152   },
153   {
154     "id": "ba32781e.53a208",
155     "type": "comment",
156     "name": "Obtain different URL, template location etc",
157     "info": "For saving resource information to MDSAL & for AAI",
158     "comments": "",
159     "x": 714.9934959411621,
160     "y": 282.8823823928833,
161     "z": "22c49458.dad37c",
162     "wires": []
163   },
164   {
165     "id": "b5885f7.9b7d5a",
166     "type": "comment",
167     "name": "Used to Get AR by id to MDSAL, same as self-link",
168     "info": "",
169     "comments": "",
170     "x": 740.9935150146484,
171     "y": 369.8823413848877,
172     "z": "22c49458.dad37c",
173     "wires": []
174   },
175   {
176     "id": "e2ab0cde.eabb7",
177     "type": "comment",
178     "name": "GET parent-service-data from mdsal to check existence of other End point",
179     "info": "",
180     "comments": "",
181     "x": 808.0003280639648,
182     "y": 824.5316228866577,
183     "z": "22c49458.dad37c",
184     "wires": []
185   },
186   {
187     "id": "9608d482.14feb8",
188     "type": "for",
189     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
190     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
191     "comments": "",
192     "outputs": 1,
193     "x": 1636.1849365234375,
194     "y": 1058.00425863266,
195     "z": "22c49458.dad37c",
196     "wires": [
197       [
198         "9f0a169a.b7bf38"
199       ]
200     ]
201   },
202   {
203     "id": "6484d39f.eed1bc",
204     "type": "switchNode",
205     "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
206     "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
207     "comments": "",
208     "outputs": 1,
209     "x": 787.1842956542969,
210     "y": 1064.718041419983,
211     "z": "22c49458.dad37c",
212     "wires": [
213       [
214         "3cb5550a.e1379a",
215         "525dfe7f.9aace"
216       ]
217     ]
218   },
219   {
220     "id": "72d22ab8.9fbaf4",
221     "type": "block",
222     "name": "block : atomic",
223     "xml": "<block atomic=\"true\">",
224     "atomic": "true",
225     "outputs": 1,
226     "x": 1237.4544582366943,
227     "y": 1104.7015271186829,
228     "z": "22c49458.dad37c",
229     "wires": [
230       [
231         "9608d482.14feb8",
232         "37cdb210.11699e"
233       ]
234     ]
235   },
236   {
237     "id": "9f0a169a.b7bf38",
238     "type": "switchNode",
239     "name": "switch allotted-resource-id",
240     "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
241     "comments": "",
242     "outputs": 1,
243     "x": 2086.296142578125,
244     "y": 1056.0041165351868,
245     "z": "22c49458.dad37c",
246     "wires": [
247       [
248         "1c3b0551.8a3d7b"
249       ]
250     ]
251   },
252   {
253     "id": "e0c27564.dc6708",
254     "type": "set",
255     "name": "set tmp.ar.parent-service-instance-id",
256     "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",
257     "comments": "",
258     "x": 698.9687118530273,
259     "y": 860.0000677108765,
260     "z": "22c49458.dad37c",
261     "wires": []
262   },
263   {
264     "id": "df350c49.f450e",
265     "type": "success",
266     "name": "success",
267     "xml": "<outcome value='success'>\n",
268     "comments": "",
269     "outputs": 1,
270     "x": 1078.968994140625,
271     "y": 938.0001826286316,
272     "z": "22c49458.dad37c",
273     "wires": [
274       [
275         "f5ff5552.dcef18"
276       ]
277     ]
278   },
279   {
280     "id": "a707d837.6f7a08",
281     "type": "other",
282     "name": "other",
283     "xml": "<outcome value='Other'>\n",
284     "comments": "",
285     "outputs": 1,
286     "x": 1070.8207969665527,
287     "y": 973.066267490387,
288     "z": "22c49458.dad37c",
289     "wires": [
290       [
291         "72020d23.f0ba44"
292       ]
293     ]
294   },
295   {
296     "id": "72020d23.f0ba44",
297     "type": "returnFailure",
298     "name": "return failure",
299     "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",
300     "comments": "",
301     "x": 1245.969482421875,
302     "y": 969.3336176872253,
303     "z": "22c49458.dad37c",
304     "wires": []
305   },
306   {
307     "id": "f5ff5552.dcef18",
308     "type": "block",
309     "name": "block",
310     "xml": "<block>\n",
311     "atomic": "false",
312     "comments": "",
313     "outputs": 1,
314     "x": 1229.968994140625,
315     "y": 936.0001826286316,
316     "z": "22c49458.dad37c",
317     "wires": [
318       []
319     ]
320   },
321   {
322     "id": "b9f57970.85bbb8",
323     "type": "failure",
324     "name": "failure",
325     "xml": "<outcome value='failure'>\n",
326     "comments": "",
327     "outputs": 1,
328     "x": 932.7307624816895,
329     "y": 1253.952815413475,
330     "z": "22c49458.dad37c",
331     "wires": [
332       [
333         "7794b76c.3bcdd8"
334       ]
335     ]
336   },
337   {
338     "id": "7794b76c.3bcdd8",
339     "type": "returnFailure",
340     "name": "return failure",
341     "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",
342     "comments": "",
343     "x": 1099.2546424865723,
344     "y": 1265.57188642025,
345     "z": "22c49458.dad37c",
346     "wires": []
347   },
348   {
349     "id": "2e04eae7.d58896",
350     "type": "failure",
351     "name": "not-found",
352     "xml": "<outcome value='not-found'>\n",
353     "comments": "",
354     "outputs": 1,
355     "x": 939.8260498046875,
356     "y": 1286.7147830724716,
357     "z": "22c49458.dad37c",
358     "wires": [
359       [
360         "7794b76c.3bcdd8"
361       ]
362     ]
363   },
364   {
365     "id": "4516c95e.b99748",
366     "type": "set",
367     "name": "set output to api handler",
368     "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",
369     "comments": "",
370     "x": 665.5461502075195,
371     "y": 1217.8276824951172,
372     "z": "22c49458.dad37c",
373     "wires": []
374   },
375   {
376     "id": "497a6009.1522c",
377     "type": "returnSuccess",
378     "name": "return success",
379     "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",
380     "comments": "",
381     "x": 634.9592552185059,
382     "y": 1318.4434370994568,
383     "z": "22c49458.dad37c",
384     "wires": []
385   },
386   {
387     "id": "75c532eb.23cc8c",
388     "type": "execute",
389     "name": "execute RestApiCallNode - PUT AR by id",
390     "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",
391     "comments": "",
392     "outputs": 1,
393     "x": 714.6666641235352,
394     "y": 494.3333625793457,
395     "z": "22c49458.dad37c",
396     "wires": [
397       [
398         "62855576.29e8bc",
399         "943e1cd3.5570d",
400         "d016523b.d696c"
401       ]
402     ]
403   },
404   {
405     "id": "62855576.29e8bc",
406     "type": "not-found",
407     "name": "not-found",
408     "xml": "<outcome value='not-found'>\n",
409     "comments": "",
410     "outputs": 1,
411     "x": 954.3081665039062,
412     "y": 534.6649107933044,
413     "z": "22c49458.dad37c",
414     "wires": [
415       [
416         "1a54db3b.e65b75"
417       ]
418     ]
419   },
420   {
421     "id": "943e1cd3.5570d",
422     "type": "failure",
423     "name": "failure",
424     "xml": "<outcome value='failure'>\n",
425     "comments": "",
426     "outputs": 1,
427     "x": 951.3081665039062,
428     "y": 491.16490840911865,
429     "z": "22c49458.dad37c",
430     "wires": [
431       [
432         "1a54db3b.e65b75"
433       ]
434     ]
435   },
436   {
437     "id": "d016523b.d696c",
438     "type": "success",
439     "name": "success",
440     "xml": "<outcome value='success'>\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 958.0582466125488,
444     "y": 450.5220036506653,
445     "z": "22c49458.dad37c",
446     "wires": [
447       [
448         "4e5c2e12.2b4c5"
449       ]
450     ]
451   },
452   {
453     "id": "1a54db3b.e65b75",
454     "type": "returnFailure",
455     "name": "return failure",
456     "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",
457     "comments": "",
458     "x": 1110.058334350586,
459     "y": 512.9149088859558,
460     "z": "22c49458.dad37c",
461     "wires": []
462   },
463   {
464     "id": "4e5c2e12.2b4c5",
465     "type": "block",
466     "name": "block",
467     "xml": "<block>\n",
468     "atomic": "false",
469     "comments": "",
470     "outputs": 1,
471     "x": 1095.7141780853271,
472     "y": 450.7141833305359,
473     "z": "22c49458.dad37c",
474     "wires": [
475       []
476     ]
477   },
478   {
479     "id": "568d92cc.719a5c",
480     "type": "comment",
481     "name": "Delete Allotted Resource",
482     "info": "",
483     "comments": "",
484     "x": 662.0000457763672,
485     "y": 463.0000286102295,
486     "z": "22c49458.dad37c",
487     "wires": []
488   },
489   {
490     "id": "34b11a52.976836",
491     "type": "for",
492     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
493     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
494     "comments": "",
495     "outputs": 1,
496     "x": 1612.00390625,
497     "y": 700.00390625,
498     "z": "22c49458.dad37c",
499     "wires": [
500       [
501         "905bba1a.0e8108"
502       ]
503     ]
504   },
505   {
506     "id": "79c8cfb5.a81b4",
507     "type": "switchNode",
508     "name": "switch service-data.consumed-allotted-resources_length",
509     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
510     "comments": "",
511     "outputs": 1,
512     "x": 765.0032920837402,
513     "y": 660.71790766716,
514     "z": "22c49458.dad37c",
515     "wires": [
516       [
517         "a04a8128.1b845",
518         "9bf1251d.a97d08"
519       ]
520     ]
521   },
522   {
523     "id": "a04a8128.1b845",
524     "type": "other",
525     "name": "outcome Null",
526     "xml": "<outcome value=''>\n",
527     "comments": "",
528     "outputs": 1,
529     "x": 1089.1461563110352,
530     "y": 643.5753421783447,
531     "z": "22c49458.dad37c",
532     "wires": [
533       [
534         "673a72bf.8ebb9c"
535       ]
536     ]
537   },
538   {
539     "id": "9bf1251d.a97d08",
540     "type": "other",
541     "name": "other",
542     "xml": "<outcome value='Other'>\n",
543     "comments": "",
544     "outputs": 1,
545     "x": 1075.1461791992188,
546     "y": 706.5753309726715,
547     "z": "22c49458.dad37c",
548     "wires": [
549       [
550         "db5549c4.4372e8"
551       ]
552     ]
553   },
554   {
555     "id": "db5549c4.4372e8",
556     "type": "block",
557     "name": "block : atomic",
558     "xml": "<block atomic=\"true\">",
559     "atomic": "true",
560     "outputs": 1,
561     "x": 1235.2732696533203,
562     "y": 704.7013075351715,
563     "z": "22c49458.dad37c",
564     "wires": [
565       [
566         "34b11a52.976836",
567         "f5274780.cdc8d8"
568       ]
569     ]
570   },
571   {
572     "id": "72f76f27.124fe",
573     "type": "set",
574     "name": "set consumed allotted resources for deletion",
575     "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",
576     "comments": "",
577     "x": 721.8606262207031,
578     "y": 731.28955078125,
579     "z": "22c49458.dad37c",
580     "wires": []
581   },
582   {
583     "id": "905bba1a.0e8108",
584     "type": "switchNode",
585     "name": "switch allotted-resource-id",
586     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
587     "comments": "",
588     "outputs": 1,
589     "x": 2050.1155166625977,
590     "y": 696.0040283203125,
591     "z": "22c49458.dad37c",
592     "wires": [
593       [
594         "a9176335.8c5a3"
595       ]
596     ]
597   },
598   {
599     "id": "a9176335.8c5a3",
600     "type": "outcomeTrue",
601     "name": "true",
602     "xml": "<outcome value='true'>\n",
603     "comments": "",
604     "outputs": 1,
605     "x": 2245.925338745117,
606     "y": 695.4683527946472,
607     "z": "22c49458.dad37c",
608     "wires": [
609       [
610         "c3d97090.70bae"
611       ]
612     ]
613   },
614   {
615     "id": "cc5aea61.28e048",
616     "type": "set",
617     "name": "set tmp.cidx",
618     "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
619     "comments": "",
620     "x": 2561.2618713378906,
621     "y": 696.2246108055115,
622     "z": "22c49458.dad37c",
623     "wires": []
624   },
625   {
626     "id": "ad0e4910.5dc848",
627     "type": "comment",
628     "name": "Delete consumed service consumed-allotted-resources in mdsal",
629     "info": "",
630     "comments": "",
631     "x": 776.0045623779297,
632     "y": 593.0038724095793,
633     "z": "22c49458.dad37c",
634     "wires": []
635   },
636   {
637     "id": "5b6b08ee.203c48",
638     "type": "comment",
639     "name": "This set resource will be deleted in MDSAL by provider code",
640     "info": "",
641     "comments": "",
642     "x": 766.337345123291,
643     "y": 697.781964302063,
644     "z": "22c49458.dad37c",
645     "wires": []
646   },
647   {
648     "id": "5c1ad210.960a1c",
649     "type": "comment",
650     "name": "Obtain the index of conusumed AR",
651     "info": "",
652     "comments": "",
653     "x": 688.7817535400391,
654     "y": 624.8927326202393,
655     "z": "22c49458.dad37c",
656     "wires": []
657   },
658   {
659     "id": "673a72bf.8ebb9c",
660     "type": "returnFailure",
661     "name": "return failure",
662     "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",
663     "comments": "",
664     "x": 1251.00390625,
665     "y": 644.00390625,
666     "z": "22c49458.dad37c",
667     "wires": []
668   },
669   {
670     "id": "c3d97090.70bae",
671     "type": "block",
672     "name": "block : atomic",
673     "xml": "<block atomic=\"true\">",
674     "atomic": "true",
675     "outputs": 1,
676     "x": 2395.003936767578,
677     "y": 696.2539558410645,
678     "z": "22c49458.dad37c",
679     "wires": [
680       [
681         "cc5aea61.28e048"
682       ]
683     ]
684   },
685   {
686     "id": "b29df060.eb56c",
687     "type": "returnFailure",
688     "name": "return failure",
689     "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",
690     "comments": "",
691     "x": 1705.25390625,
692     "y": 753.25390625,
693     "z": "22c49458.dad37c",
694     "wires": []
695   },
696   {
697     "id": "b8b02536.9fab38",
698     "type": "outcome",
699     "name": "NULL",
700     "xml": "<outcome value=''>\n",
701     "comments": "",
702     "outputs": 1,
703     "x": 1567.75390625,
704     "y": 753.25390625,
705     "z": "22c49458.dad37c",
706     "wires": [
707       [
708         "b29df060.eb56c"
709       ]
710     ]
711   },
712   {
713     "id": "f5274780.cdc8d8",
714     "type": "switchNode",
715     "name": "switch tmp.cidx ",
716     "xml": "<switch test=\"`$tmp.cidx`\">\n\n",
717     "comments": "",
718     "outputs": 1,
719     "x": 1413.75390625,
720     "y": 753.25390625,
721     "z": "22c49458.dad37c",
722     "wires": [
723       [
724         "b8b02536.9fab38"
725       ]
726     ]
727   },
728   {
729     "id": "88b79953.981898",
730     "type": "comment",
731     "name": "Delete provided service provided-allotted-resources in mdsal",
732     "info": "",
733     "comments": "",
734     "x": 762.5039215087891,
735     "y": 789.00390625,
736     "z": "22c49458.dad37c",
737     "wires": []
738   },
739   {
740     "id": "525dfe7f.9aace",
741     "type": "other",
742     "name": "other",
743     "xml": "<outcome value='Other'>\n",
744     "comments": "",
745     "outputs": 1,
746     "x": 1090.5041770935059,
747     "y": 1103.7540984153748,
748     "z": "22c49458.dad37c",
749     "wires": [
750       [
751         "72d22ab8.9fbaf4"
752       ]
753     ]
754   },
755   {
756     "id": "3cb5550a.e1379a",
757     "type": "other",
758     "name": "outcome Null",
759     "xml": "<outcome value=''>\n",
760     "comments": "",
761     "outputs": 1,
762     "x": 1107.5040969848633,
763     "y": 1015.7539324760437,
764     "z": "22c49458.dad37c",
765     "wires": [
766       [
767         "b0f98381.70f7"
768       ]
769     ]
770   },
771   {
772     "id": "b0f98381.70f7",
773     "type": "returnFailure",
774     "name": "return failure",
775     "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",
776     "comments": "",
777     "x": 1271.3616943359375,
778     "y": 1016.1824774742126,
779     "z": "22c49458.dad37c",
780     "wires": []
781   },
782   {
783     "id": "1af61fb0.016",
784     "type": "returnFailure",
785     "name": "return failure",
786     "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",
787     "comments": "",
788     "x": 1702.7539501190186,
789     "y": 1133.753936290741,
790     "z": "22c49458.dad37c",
791     "wires": []
792   },
793   {
794     "id": "457e37be.33a0e8",
795     "type": "outcome",
796     "name": "NULL",
797     "xml": "<outcome value=''>\n",
798     "comments": "",
799     "outputs": 1,
800     "x": 1565.2539501190186,
801     "y": 1133.753936290741,
802     "z": "22c49458.dad37c",
803     "wires": [
804       [
805         "1af61fb0.016"
806       ]
807     ]
808   },
809   {
810     "id": "37cdb210.11699e",
811     "type": "switchNode",
812     "name": "switch tmp.pidx ",
813     "xml": "<switch test=\"`$tmp.pidx`\">\n\n",
814     "comments": "",
815     "outputs": 1,
816     "x": 1411.2539501190186,
817     "y": 1133.753936290741,
818     "z": "22c49458.dad37c",
819     "wires": [
820       [
821         "457e37be.33a0e8"
822       ]
823     ]
824   },
825   {
826     "id": "1c3b0551.8a3d7b",
827     "type": "outcomeTrue",
828     "name": "true",
829     "xml": "<outcome value='true'>\n",
830     "comments": "",
831     "outputs": 1,
832     "x": 2275.504367828369,
833     "y": 1053.7540946006775,
834     "z": "22c49458.dad37c",
835     "wires": [
836       [
837         "f8a04da0.ae331"
838       ]
839     ]
840   },
841   {
842     "id": "26796192.02fd4e",
843     "type": "set",
844     "name": "set tmp.pidx",
845     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n\n",
846     "comments": "",
847     "x": 2343.8404846191406,
848     "y": 1188.5101914405823,
849     "z": "22c49458.dad37c",
850     "wires": []
851   },
852   {
853     "id": "f8a04da0.ae331",
854     "type": "block",
855     "name": "block : atomic",
856     "xml": "<block atomic=\"true\">",
857     "atomic": "true",
858     "outputs": 1,
859     "x": 2335.582820892334,
860     "y": 1124.539580821991,
861     "z": "22c49458.dad37c",
862     "wires": [
863       [
864         "26796192.02fd4e"
865       ]
866     ]
867   },
868   {
869     "id": "eb5610dc.278e7",
870     "type": "update",
871     "name": "update AAI allotted-resource",
872     "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",
873     "comments": "",
874     "outputs": 1,
875     "x": 678.2227554321289,
876     "y": 1273.754346370697,
877     "z": "22c49458.dad37c",
878     "wires": [
879       [
880         "b9f57970.85bbb8",
881         "2e04eae7.d58896"
882       ]
883     ]
884   },
885   {
886     "id": "322e0846.b44bc8",
887     "type": "execute",
888     "name": "execute RestApiCallNode - get-resource parent service data",
889     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url-psd`' />\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='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-psd\" />\n\n",
890     "comments": "",
891     "outputs": 1,
892     "x": 768.3334197998047,
893     "y": 959.333366394043,
894     "z": "22c49458.dad37c",
895     "wires": [
896       [
897         "df350c49.f450e",
898         "a707d837.6f7a08"
899       ]
900     ]
901   },
902   {
903     "id": "8cb29231.a6eaa",
904     "type": "execute",
905     "name": "get parent-service-data tmp.ar-url-psd",
906     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"/restconf/config/GENERIC-RESOURCE-API:services/service/{service-instance-id}/service-data\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-url-psd\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>",
907     "comments": "",
908     "outputs": 1,
909     "x": 702.3333587646484,
910     "y": 917.3332056999207,
911     "z": "22c49458.dad37c",
912     "wires": [
913       []
914     ]
915   },
916   {
917     "id": "9ea8a95d.e39878",
918     "type": "execute",
919     "name": "execute RestApiCallNode - delete-resource parent service data",
920     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value=\"`$prop.controller.url + $tmp.ar-url-psd + '/provided-allotted-resources/provided-allotted-resource/' + $tmp.ar.allotted-resource-id`\" />\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-psd-delete\" />\n\n",
921     "comments": "",
922     "outputs": 1,
923     "x": 773,
924     "y": 1168,
925     "z": "22c49458.dad37c",
926     "wires": [
927       []
928     ]
929   }
930 ]