Multiple self-serve fixes
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json
1 [
2   {
3     "id": "727269c5.c0c088",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 107,
8     "y": 38,
9     "z": "9a9db3db.b812b",
10     "wires": [
11       [
12         "476f18dc.439248"
13       ]
14     ]
15   },
16   {
17     "id": "476f18dc.439248",
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": 281.00000381469727,
26     "y": 93.0000171661377,
27     "z": "9a9db3db.b812b",
28     "wires": [
29       [
30         "e0fac416.80f518"
31       ]
32     ]
33   },
34   {
35     "id": "e0fac416.80f518",
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": 269.0001220703125,
42     "y": 181,
43     "z": "9a9db3db.b812b",
44     "wires": [
45       [
46         "231c9f70.d1a7d"
47       ]
48     ]
49   },
50   {
51     "id": "231c9f70.d1a7d",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 285.0001220703125,
59     "y": 736.0002446174622,
60     "z": "9a9db3db.b812b",
61     "wires": [
62       [
63         "daf8cd41.f5737",
64         "a1a6aaf1.a46af8",
65         "90947482.aca148",
66         "b9944c13.63436",
67         "6eccbbd0.6de454",
68         "1a37f19e.b4ca8e",
69         "b769698c.40e9c8",
70         "a43d6d68.0f0c8",
71         "190ff216.cb59ee",
72         "4a2552b4.8267bc",
73         "471618ce.1aa6e8",
74         "afce32ae.04764",
75         "af833dcd.19d57",
76         "abce896b.ee5ab8",
77         "36034272.10e4ae"
78       ]
79     ]
80   },
81   {
82     "id": "daf8cd41.f5737",
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": 681.9935607910156,
88     "y": 134.9934868812561,
89     "z": "9a9db3db.b812b",
90     "wires": []
91   },
92   {
93     "id": "f092463.fee0fb8",
94     "type": "comment",
95     "name": "set tmp ar-id to fetch resource from MDSAL",
96     "info": "",
97     "comments": "",
98     "x": 710.9538726806641,
99     "y": 99.02528285980225,
100     "z": "9a9db3db.b812b",
101     "wires": []
102   },
103   {
104     "id": "a1a6aaf1.a46af8",
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": 635.9934997558594,
110     "y": 227.99349212646484,
111     "z": "9a9db3db.b812b",
112     "wires": []
113   },
114   {
115     "id": "6eccbbd0.6de454",
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": 642.2553901672363,
122     "y": 315.6602210998535,
123     "z": "9a9db3db.b812b",
124     "wires": [
125       []
126     ]
127   },
128   {
129     "id": "90947482.aca148",
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": 674.2554168701172,
136     "y": 403.66020250320435,
137     "z": "9a9db3db.b812b",
138     "wires": [
139       []
140     ]
141   },
142   {
143     "id": "a011c3.2eb3ce4",
144     "type": "comment",
145     "name": "Used for setting output to API Handler",
146     "info": "",
147     "comments": "",
148     "x": 689.9935302734375,
149     "y": 194.993501663208,
150     "z": "9a9db3db.b812b",
151     "wires": []
152   },
153   {
154     "id": "d15c9938.74a878",
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": 707.9934959411621,
160     "y": 280.8823823928833,
161     "z": "9a9db3db.b812b",
162     "wires": []
163   },
164   {
165     "id": "a5405514.70c5b8",
166     "type": "comment",
167     "name": "Used to Get AR by id to MDSAL, same as self-link",
168     "info": "",
169     "comments": "",
170     "x": 733.9935150146484,
171     "y": 367.8823413848877,
172     "z": "9a9db3db.b812b",
173     "wires": []
174   },
175   {
176     "id": "88c1d026.0cefd",
177     "type": "comment",
178     "name": "GET parent-service-data from mdsal to check existence of other End point",
179     "info": "",
180     "comments": "",
181     "x": 801.0003280639648,
182     "y": 822.5316228866577,
183     "z": "9a9db3db.b812b",
184     "wires": []
185   },
186   {
187     "id": "3c5cf576.01802a",
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": 1629.1849365234375,
194     "y": 1056.00425863266,
195     "z": "9a9db3db.b812b",
196     "wires": [
197       [
198         "3496000b.b50ee"
199       ]
200     ]
201   },
202   {
203     "id": "b9944c13.63436",
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": 780.1842956542969,
210     "y": 1062.718041419983,
211     "z": "9a9db3db.b812b",
212     "wires": [
213       [
214         "af74ccd9.4a43f",
215         "86c1925.6123e7"
216       ]
217     ]
218   },
219   {
220     "id": "e65e2eca.21548",
221     "type": "block",
222     "name": "block : atomic",
223     "xml": "<block atomic=\"true\">",
224     "atomic": "true",
225     "outputs": 1,
226     "x": 1230.4544582366943,
227     "y": 1102.7015271186829,
228     "z": "9a9db3db.b812b",
229     "wires": [
230       [
231         "3c5cf576.01802a",
232         "fad43184.faa77"
233       ]
234     ]
235   },
236   {
237     "id": "3496000b.b50ee",
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": 2079.296142578125,
244     "y": 1054.0041165351868,
245     "z": "9a9db3db.b812b",
246     "wires": [
247       [
248         "2b9e1b87.4d7be4"
249       ]
250     ]
251   },
252   {
253     "id": "1a37f19e.b4ca8e",
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": 691.9687118530273,
259     "y": 858.0000677108765,
260     "z": "9a9db3db.b812b",
261     "wires": []
262   },
263   {
264     "id": "f65db35d.ec076",
265     "type": "success",
266     "name": "success",
267     "xml": "<outcome value='success'>\n",
268     "comments": "",
269     "outputs": 1,
270     "x": 1071.968994140625,
271     "y": 936.0001826286316,
272     "z": "9a9db3db.b812b",
273     "wires": [
274       [
275         "c80198f0.eabc78"
276       ]
277     ]
278   },
279   {
280     "id": "733108ec.4b0c18",
281     "type": "other",
282     "name": "other",
283     "xml": "<outcome value='Other'>\n",
284     "comments": "",
285     "outputs": 1,
286     "x": 1063.8207969665527,
287     "y": 971.066267490387,
288     "z": "9a9db3db.b812b",
289     "wires": [
290       [
291         "d0615553.03e2f8"
292       ]
293     ]
294   },
295   {
296     "id": "d0615553.03e2f8",
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": 1238.969482421875,
302     "y": 967.3336176872253,
303     "z": "9a9db3db.b812b",
304     "wires": []
305   },
306   {
307     "id": "c80198f0.eabc78",
308     "type": "block",
309     "name": "block",
310     "xml": "<block>\n",
311     "atomic": "false",
312     "comments": "",
313     "outputs": 1,
314     "x": 1222.968994140625,
315     "y": 934.0001826286316,
316     "z": "9a9db3db.b812b",
317     "wires": [
318       []
319     ]
320   },
321   {
322     "id": "5239fca8.d17b94",
323     "type": "failure",
324     "name": "failure",
325     "xml": "<outcome value='failure'>\n",
326     "comments": "",
327     "outputs": 1,
328     "x": 925.7307624816895,
329     "y": 1251.952815413475,
330     "z": "9a9db3db.b812b",
331     "wires": [
332       [
333         "d9416e9b.67f3a"
334       ]
335     ]
336   },
337   {
338     "id": "d9416e9b.67f3a",
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": 1092.2546424865723,
344     "y": 1263.57188642025,
345     "z": "9a9db3db.b812b",
346     "wires": []
347   },
348   {
349     "id": "c631f277.5fd19",
350     "type": "failure",
351     "name": "not-found",
352     "xml": "<outcome value='not-found'>\n",
353     "comments": "",
354     "outputs": 1,
355     "x": 932.8260498046875,
356     "y": 1284.7147830724716,
357     "z": "9a9db3db.b812b",
358     "wires": [
359       [
360         "d9416e9b.67f3a"
361       ]
362     ]
363   },
364   {
365     "id": "b769698c.40e9c8",
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": 658.5461502075195,
371     "y": 1215.8276824951172,
372     "z": "9a9db3db.b812b",
373     "wires": []
374   },
375   {
376     "id": "a43d6d68.0f0c8",
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": 627.9592552185059,
382     "y": 1316.4434370994568,
383     "z": "9a9db3db.b812b",
384     "wires": []
385   },
386   {
387     "id": "36034272.10e4ae",
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": 707.6666641235352,
394     "y": 492.3333625793457,
395     "z": "9a9db3db.b812b",
396     "wires": [
397       [
398         "b9a614f.423c0e8",
399         "1fe78f55.993961",
400         "2453145c.fe210c"
401       ]
402     ]
403   },
404   {
405     "id": "b9a614f.423c0e8",
406     "type": "not-found",
407     "name": "not-found",
408     "xml": "<outcome value='not-found'>\n",
409     "comments": "",
410     "outputs": 1,
411     "x": 947.3081665039062,
412     "y": 532.6649107933044,
413     "z": "9a9db3db.b812b",
414     "wires": [
415       [
416         "ceacff91.78296"
417       ]
418     ]
419   },
420   {
421     "id": "1fe78f55.993961",
422     "type": "failure",
423     "name": "failure",
424     "xml": "<outcome value='failure'>\n",
425     "comments": "",
426     "outputs": 1,
427     "x": 944.3081665039062,
428     "y": 489.16490840911865,
429     "z": "9a9db3db.b812b",
430     "wires": [
431       [
432         "ceacff91.78296"
433       ]
434     ]
435   },
436   {
437     "id": "2453145c.fe210c",
438     "type": "success",
439     "name": "success",
440     "xml": "<outcome value='success'>\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 951.0582466125488,
444     "y": 448.5220036506653,
445     "z": "9a9db3db.b812b",
446     "wires": [
447       [
448         "cc515c42.f40e8"
449       ]
450     ]
451   },
452   {
453     "id": "ceacff91.78296",
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": 1103.058334350586,
459     "y": 510.9149088859558,
460     "z": "9a9db3db.b812b",
461     "wires": []
462   },
463   {
464     "id": "cc515c42.f40e8",
465     "type": "block",
466     "name": "block",
467     "xml": "<block>\n",
468     "atomic": "false",
469     "comments": "",
470     "outputs": 1,
471     "x": 1088.7141780853271,
472     "y": 448.7141833305359,
473     "z": "9a9db3db.b812b",
474     "wires": [
475       []
476     ]
477   },
478   {
479     "id": "afc0a167.60e96",
480     "type": "comment",
481     "name": "Delete Allotted Resource",
482     "info": "",
483     "comments": "",
484     "x": 655.0000457763672,
485     "y": 461.0000286102295,
486     "z": "9a9db3db.b812b",
487     "wires": []
488   },
489   {
490     "id": "930f6554.7ad0e8",
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": 1605.00390625,
497     "y": 698.00390625,
498     "z": "9a9db3db.b812b",
499     "wires": [
500       [
501         "ab2d612c.e624d"
502       ]
503     ]
504   },
505   {
506     "id": "190ff216.cb59ee",
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": 758.0032920837402,
513     "y": 658.71790766716,
514     "z": "9a9db3db.b812b",
515     "wires": [
516       [
517         "22a6f73e.83f758",
518         "59a890e7.9e391"
519       ]
520     ]
521   },
522   {
523     "id": "22a6f73e.83f758",
524     "type": "other",
525     "name": "outcome Null",
526     "xml": "<outcome value=''>\n",
527     "comments": "",
528     "outputs": 1,
529     "x": 1082.1461563110352,
530     "y": 641.5753421783447,
531     "z": "9a9db3db.b812b",
532     "wires": [
533       [
534         "d98f9bea.dbb4e8"
535       ]
536     ]
537   },
538   {
539     "id": "59a890e7.9e391",
540     "type": "other",
541     "name": "other",
542     "xml": "<outcome value='Other'>\n",
543     "comments": "",
544     "outputs": 1,
545     "x": 1068.1461791992188,
546     "y": 704.5753309726715,
547     "z": "9a9db3db.b812b",
548     "wires": [
549       [
550         "741d09f.ef4e8f8"
551       ]
552     ]
553   },
554   {
555     "id": "741d09f.ef4e8f8",
556     "type": "block",
557     "name": "block : atomic",
558     "xml": "<block atomic=\"true\">",
559     "atomic": "true",
560     "outputs": 1,
561     "x": 1228.2732696533203,
562     "y": 702.7013075351715,
563     "z": "9a9db3db.b812b",
564     "wires": [
565       [
566         "930f6554.7ad0e8",
567         "a2d1d665.9bea78"
568       ]
569     ]
570   },
571   {
572     "id": "4a2552b4.8267bc",
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": 714.8606262207031,
578     "y": 729.28955078125,
579     "z": "9a9db3db.b812b",
580     "wires": []
581   },
582   {
583     "id": "ab2d612c.e624d",
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": 2043.1155166625977,
590     "y": 694.0040283203125,
591     "z": "9a9db3db.b812b",
592     "wires": [
593       [
594         "d09e4ce4.cdbe3"
595       ]
596     ]
597   },
598   {
599     "id": "d09e4ce4.cdbe3",
600     "type": "outcomeTrue",
601     "name": "true",
602     "xml": "<outcome value='true'>\n",
603     "comments": "",
604     "outputs": 1,
605     "x": 2238.925338745117,
606     "y": 693.4683527946472,
607     "z": "9a9db3db.b812b",
608     "wires": [
609       [
610         "c313761f.950178"
611       ]
612     ]
613   },
614   {
615     "id": "92647963.e38708",
616     "type": "set",
617     "name": "set tmp.cidx",
618     "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
619     "comments": "",
620     "x": 2554.2618713378906,
621     "y": 694.2246108055115,
622     "z": "9a9db3db.b812b",
623     "wires": []
624   },
625   {
626     "id": "8d54089c.d1a698",
627     "type": "comment",
628     "name": "Delete consumed service consumed-allotted-resources in mdsal",
629     "info": "",
630     "comments": "",
631     "x": 769.0045623779297,
632     "y": 591.0038724095793,
633     "z": "9a9db3db.b812b",
634     "wires": []
635   },
636   {
637     "id": "66e1c966.841508",
638     "type": "comment",
639     "name": "This set resource will be deleted in MDSAL by provider code",
640     "info": "",
641     "comments": "",
642     "x": 759.337345123291,
643     "y": 695.781964302063,
644     "z": "9a9db3db.b812b",
645     "wires": []
646   },
647   {
648     "id": "491e50db.34949",
649     "type": "comment",
650     "name": "Obtain the index of conusumed AR",
651     "info": "",
652     "comments": "",
653     "x": 681.7817535400391,
654     "y": 622.8927326202393,
655     "z": "9a9db3db.b812b",
656     "wires": []
657   },
658   {
659     "id": "d98f9bea.dbb4e8",
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": 1244.00390625,
665     "y": 642.00390625,
666     "z": "9a9db3db.b812b",
667     "wires": []
668   },
669   {
670     "id": "c313761f.950178",
671     "type": "block",
672     "name": "block : atomic",
673     "xml": "<block atomic=\"true\">",
674     "atomic": "true",
675     "outputs": 1,
676     "x": 2388.003936767578,
677     "y": 694.2539558410645,
678     "z": "9a9db3db.b812b",
679     "wires": [
680       [
681         "92647963.e38708"
682       ]
683     ]
684   },
685   {
686     "id": "6aa48d02.a58084",
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": 1698.25390625,
692     "y": 751.25390625,
693     "z": "9a9db3db.b812b",
694     "wires": []
695   },
696   {
697     "id": "bf5c462c.da5e08",
698     "type": "outcome",
699     "name": "NULL",
700     "xml": "<outcome value=''>\n",
701     "comments": "",
702     "outputs": 1,
703     "x": 1560.75390625,
704     "y": 751.25390625,
705     "z": "9a9db3db.b812b",
706     "wires": [
707       [
708         "6aa48d02.a58084"
709       ]
710     ]
711   },
712   {
713     "id": "a2d1d665.9bea78",
714     "type": "switchNode",
715     "name": "switch tmp.cidx ",
716     "xml": "<switch test=\"`$tmp.cidx`\">\n\n",
717     "comments": "",
718     "outputs": 1,
719     "x": 1406.75390625,
720     "y": 751.25390625,
721     "z": "9a9db3db.b812b",
722     "wires": [
723       [
724         "bf5c462c.da5e08"
725       ]
726     ]
727   },
728   {
729     "id": "e3078c06.7be5",
730     "type": "comment",
731     "name": "Delete provided service provided-allotted-resources in mdsal",
732     "info": "",
733     "comments": "",
734     "x": 755.5039215087891,
735     "y": 787.00390625,
736     "z": "9a9db3db.b812b",
737     "wires": []
738   },
739   {
740     "id": "86c1925.6123e7",
741     "type": "other",
742     "name": "other",
743     "xml": "<outcome value='Other'>\n",
744     "comments": "",
745     "outputs": 1,
746     "x": 1083.5041770935059,
747     "y": 1101.7540984153748,
748     "z": "9a9db3db.b812b",
749     "wires": [
750       [
751         "e65e2eca.21548"
752       ]
753     ]
754   },
755   {
756     "id": "af74ccd9.4a43f",
757     "type": "other",
758     "name": "outcome Null",
759     "xml": "<outcome value=''>\n",
760     "comments": "",
761     "outputs": 1,
762     "x": 1100.5040969848633,
763     "y": 1013.7539324760437,
764     "z": "9a9db3db.b812b",
765     "wires": [
766       [
767         "fea3dc81.4b3fa"
768       ]
769     ]
770   },
771   {
772     "id": "fea3dc81.4b3fa",
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": 1264.3616943359375,
778     "y": 1014.1824774742126,
779     "z": "9a9db3db.b812b",
780     "wires": []
781   },
782   {
783     "id": "39762013.3aeda",
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": 1695.7539501190186,
789     "y": 1131.753936290741,
790     "z": "9a9db3db.b812b",
791     "wires": []
792   },
793   {
794     "id": "f41a3391.116cf",
795     "type": "outcome",
796     "name": "NULL",
797     "xml": "<outcome value=''>\n",
798     "comments": "",
799     "outputs": 1,
800     "x": 1558.2539501190186,
801     "y": 1131.753936290741,
802     "z": "9a9db3db.b812b",
803     "wires": [
804       [
805         "39762013.3aeda"
806       ]
807     ]
808   },
809   {
810     "id": "fad43184.faa77",
811     "type": "switchNode",
812     "name": "switch tmp.pidx ",
813     "xml": "<switch test=\"`$tmp.pidx`\">\n\n",
814     "comments": "",
815     "outputs": 1,
816     "x": 1404.2539501190186,
817     "y": 1131.753936290741,
818     "z": "9a9db3db.b812b",
819     "wires": [
820       [
821         "f41a3391.116cf"
822       ]
823     ]
824   },
825   {
826     "id": "2b9e1b87.4d7be4",
827     "type": "outcomeTrue",
828     "name": "true",
829     "xml": "<outcome value='true'>\n",
830     "comments": "",
831     "outputs": 1,
832     "x": 2268.504367828369,
833     "y": 1051.7540946006775,
834     "z": "9a9db3db.b812b",
835     "wires": [
836       [
837         "3e54d0ca.68119"
838       ]
839     ]
840   },
841   {
842     "id": "124aec38.7e75f4",
843     "type": "set",
844     "name": "set tmp.pidx",
845     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n\n",
846     "comments": "",
847     "x": 2336.8404846191406,
848     "y": 1186.5101914405823,
849     "z": "9a9db3db.b812b",
850     "wires": []
851   },
852   {
853     "id": "3e54d0ca.68119",
854     "type": "block",
855     "name": "block : atomic",
856     "xml": "<block atomic=\"true\">",
857     "atomic": "true",
858     "outputs": 1,
859     "x": 2328.582820892334,
860     "y": 1122.539580821991,
861     "z": "9a9db3db.b812b",
862     "wires": [
863       [
864         "124aec38.7e75f4"
865       ]
866     ]
867   },
868   {
869     "id": "471618ce.1aa6e8",
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.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\">\n",
873     "comments": "",
874     "outputs": 1,
875     "x": 671.2227554321289,
876     "y": 1271.754346370697,
877     "z": "9a9db3db.b812b",
878     "wires": [
879       [
880         "5239fca8.d17b94",
881         "c631f277.5fd19"
882       ]
883     ]
884   },
885   {
886     "id": "af833dcd.19d57",
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": 761.3334197998047,
893     "y": 957.333366394043,
894     "z": "9a9db3db.b812b",
895     "wires": [
896       [
897         "f65db35d.ec076",
898         "733108ec.4b0c18"
899       ]
900     ]
901   },
902   {
903     "id": "afce32ae.04764",
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": 695.3333587646484,
910     "y": 915.3332056999207,
911     "z": "9a9db3db.b812b",
912     "wires": [
913       []
914     ]
915   },
916   {
917     "id": "abce896b.ee5ab8",
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": 766,
924     "y": 1166,
925     "z": "9a9db3db.b812b",
926     "wires": [
927       []
928     ]
929   }
930 ]