connectivity attachment issue fix
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-delete.json
1 [
2   {
3     "id": "4b30503e.867f2",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 116.00390625,
8     "y": 47.999999046325684,
9     "z": "5c846185.ea888",
10     "wires": [
11       [
12         "37e77520.ee3cba"
13       ]
14     ]
15   },
16   {
17     "id": "37e77520.ee3cba",
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": 328.00391006469727,
26     "y": 120.00001621246338,
27     "z": "5c846185.ea888",
28     "wires": [
29       [
30         "5677b71b.5fb328"
31       ]
32     ]
33   },
34   {
35     "id": "5677b71b.5fb328",
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": 316.0040283203125,
42     "y": 207.99999904632568,
43     "z": "5c846185.ea888",
44     "wires": [
45       [
46         "9d2f20f7.d7e57"
47       ]
48     ]
49   },
50   {
51     "id": "9d2f20f7.d7e57",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 332.0040283203125,
59     "y": 763.0002436637878,
60     "z": "5c846185.ea888",
61     "wires": [
62       [
63         "ed51ef95.ae803",
64         "88df7f3c.6dcf",
65         "3f1b61e1.0ac49e",
66         "e2fe8873.3a2848",
67         "d8fe29bc.d00d68",
68         "4903f6e1.1eeb68",
69         "f2266740.3e9f68",
70         "a2240e65.e6034",
71         "1742ced6.939601",
72         "8b97d92c.0d63e8",
73         "4eb557ec.96c928",
74         "608b88dd.e3a5a8",
75         "12cd17c5.66c948",
76         "9eb3dfae.f51c4",
77         "cf61b833.d96918"
78       ]
79     ]
80   },
81   {
82     "id": "ed51ef95.ae803",
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": 728.9974670410156,
88     "y": 161.9934859275818,
89     "z": "5c846185.ea888",
90     "wires": []
91   },
92   {
93     "id": "d21298fe.289dd8",
94     "type": "comment",
95     "name": "set tmp ar-id to fetch resource from MDSAL",
96     "info": "",
97     "comments": "",
98     "x": 757.9577789306641,
99     "y": 126.02528190612793,
100     "z": "5c846185.ea888",
101     "wires": []
102   },
103   {
104     "id": "88df7f3c.6dcf",
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": 682.9974060058594,
110     "y": 254.99349117279053,
111     "z": "5c846185.ea888",
112     "wires": []
113   },
114   {
115     "id": "d8fe29bc.d00d68",
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": 689.2592964172363,
122     "y": 342.6602201461792,
123     "z": "5c846185.ea888",
124     "wires": [
125       []
126     ]
127   },
128   {
129     "id": "3f1b61e1.0ac49e",
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": 721.2593231201172,
136     "y": 430.66020154953003,
137     "z": "5c846185.ea888",
138     "wires": [
139       []
140     ]
141   },
142   {
143     "id": "c43edf3b.dcbac",
144     "type": "comment",
145     "name": "Used for setting output to API Handler",
146     "info": "",
147     "comments": "",
148     "x": 736.9974365234375,
149     "y": 221.9935007095337,
150     "z": "5c846185.ea888",
151     "wires": []
152   },
153   {
154     "id": "10733905.283097",
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": 754.9974021911621,
160     "y": 307.882381439209,
161     "z": "5c846185.ea888",
162     "wires": []
163   },
164   {
165     "id": "62545852.867ec8",
166     "type": "comment",
167     "name": "Used to Get AR by id to MDSAL, same as self-link",
168     "info": "",
169     "comments": "",
170     "x": 780.9974212646484,
171     "y": 394.8823404312134,
172     "z": "5c846185.ea888",
173     "wires": []
174   },
175   {
176     "id": "ed0a2645.640ef8",
177     "type": "comment",
178     "name": "GET parent-service-data from mdsal to check existence of other End point",
179     "info": "",
180     "comments": "",
181     "x": 848.0042343139648,
182     "y": 849.5316219329834,
183     "z": "5c846185.ea888",
184     "wires": []
185   },
186   {
187     "id": "a950273c.9f66a8",
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": 1676.1888427734375,
194     "y": 1083.0042576789856,
195     "z": "5c846185.ea888",
196     "wires": [
197       [
198         "e88ff344.a2353"
199       ]
200     ]
201   },
202   {
203     "id": "e2fe8873.3a2848",
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": 827.1882019042969,
210     "y": 1089.7180404663086,
211     "z": "5c846185.ea888",
212     "wires": [
213       [
214         "7dbb67ae.29f3f8",
215         "dea01091.d8b15"
216       ]
217     ]
218   },
219   {
220     "id": "2fdb27fa.f6ac38",
221     "type": "block",
222     "name": "block : atomic",
223     "xml": "<block atomic=\"true\">",
224     "atomic": "true",
225     "outputs": 1,
226     "x": 1277.4583644866943,
227     "y": 1129.7015261650085,
228     "z": "5c846185.ea888",
229     "wires": [
230       [
231         "a950273c.9f66a8",
232         "19cf7741.613499"
233       ]
234     ]
235   },
236   {
237     "id": "e88ff344.a2353",
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": 2126.300048828125,
244     "y": 1081.0041155815125,
245     "z": "5c846185.ea888",
246     "wires": [
247       [
248         "c87ef19e.e93cf"
249       ]
250     ]
251   },
252   {
253     "id": "4903f6e1.1eeb68",
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": 738.9726181030273,
259     "y": 885.0000667572021,
260     "z": "5c846185.ea888",
261     "wires": []
262   },
263   {
264     "id": "9023749d.2a65a8",
265     "type": "success",
266     "name": "success",
267     "xml": "<outcome value='success'>\n",
268     "comments": "",
269     "outputs": 1,
270     "x": 1118.972900390625,
271     "y": 963.0001816749573,
272     "z": "5c846185.ea888",
273     "wires": [
274       [
275         "85ec274.d7380d8"
276       ]
277     ]
278   },
279   {
280     "id": "13a32c23.faaff4",
281     "type": "other",
282     "name": "other",
283     "xml": "<outcome value='Other'>\n",
284     "comments": "",
285     "outputs": 1,
286     "x": 1110.8247032165527,
287     "y": 998.0662665367126,
288     "z": "5c846185.ea888",
289     "wires": [
290       [
291         "61460fc5.a222"
292       ]
293     ]
294   },
295   {
296     "id": "61460fc5.a222",
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": 1285.973388671875,
302     "y": 994.333616733551,
303     "z": "5c846185.ea888",
304     "wires": []
305   },
306   {
307     "id": "85ec274.d7380d8",
308     "type": "block",
309     "name": "block",
310     "xml": "<block>\n",
311     "atomic": "false",
312     "comments": "",
313     "outputs": 1,
314     "x": 1269.972900390625,
315     "y": 961.0001816749573,
316     "z": "5c846185.ea888",
317     "wires": [
318       []
319     ]
320   },
321   {
322     "id": "2a315011.b7952",
323     "type": "failure",
324     "name": "failure",
325     "xml": "<outcome value='failure'>\n",
326     "comments": "",
327     "outputs": 1,
328     "x": 972.7346687316895,
329     "y": 1278.9528144598007,
330     "z": "5c846185.ea888",
331     "wires": [
332       [
333         "398739b4.01afc6"
334       ]
335     ]
336   },
337   {
338     "id": "398739b4.01afc6",
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": 1139.2585487365723,
344     "y": 1290.5718854665756,
345     "z": "5c846185.ea888",
346     "wires": []
347   },
348   {
349     "id": "2e78e3b1.a4cadc",
350     "type": "failure",
351     "name": "not-found",
352     "xml": "<outcome value='not-found'>\n",
353     "comments": "",
354     "outputs": 1,
355     "x": 979.8299560546875,
356     "y": 1311.7147821187973,
357     "z": "5c846185.ea888",
358     "wires": [
359       [
360         "398739b4.01afc6"
361       ]
362     ]
363   },
364   {
365     "id": "3f6ffe96.e0bda2",
366     "type": "comment",
367     "name": "TODO: Rework after confirmation from AAI",
368     "info": "",
369     "comments": "",
370     "x": 1104.1413345336914,
371     "y": 1229.8732142448425,
372     "z": "5c846185.ea888",
373     "wires": []
374   },
375   {
376     "id": "f2266740.3e9f68",
377     "type": "set",
378     "name": "set output to api handler",
379     "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",
380     "comments": "",
381     "x": 705.5500564575195,
382     "y": 1242.8276815414429,
383     "z": "5c846185.ea888",
384     "wires": []
385   },
386   {
387     "id": "a2240e65.e6034",
388     "type": "returnSuccess",
389     "name": "return success",
390     "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",
391     "comments": "",
392     "x": 674.9631614685059,
393     "y": 1343.4434361457825,
394     "z": "5c846185.ea888",
395     "wires": []
396   },
397   {
398     "id": "1742ced6.939601",
399     "type": "execute",
400     "name": "execute RestApiCallNode - PUT AR by id",
401     "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",
402     "comments": "",
403     "outputs": 1,
404     "x": 754.6705703735352,
405     "y": 519.3333616256714,
406     "z": "5c846185.ea888",
407     "wires": [
408       [
409         "597f085a.f89fd8",
410         "c3fb7b14.ff60a8",
411         "e4c15d29.0e847"
412       ]
413     ]
414   },
415   {
416     "id": "597f085a.f89fd8",
417     "type": "not-found",
418     "name": "not-found",
419     "xml": "<outcome value='not-found'>\n",
420     "comments": "",
421     "outputs": 1,
422     "x": 994.3120727539062,
423     "y": 559.6649098396301,
424     "z": "5c846185.ea888",
425     "wires": [
426       [
427         "67fdc38f.4e65cc"
428       ]
429     ]
430   },
431   {
432     "id": "c3fb7b14.ff60a8",
433     "type": "failure",
434     "name": "failure",
435     "xml": "<outcome value='failure'>\n",
436     "comments": "",
437     "outputs": 1,
438     "x": 991.3120727539062,
439     "y": 516.1649074554443,
440     "z": "5c846185.ea888",
441     "wires": [
442       [
443         "67fdc38f.4e65cc"
444       ]
445     ]
446   },
447   {
448     "id": "e4c15d29.0e847",
449     "type": "success",
450     "name": "success",
451     "xml": "<outcome value='success'>\n",
452     "comments": "",
453     "outputs": 1,
454     "x": 998.0621528625488,
455     "y": 475.52200269699097,
456     "z": "5c846185.ea888",
457     "wires": [
458       [
459         "50ef93e6.56ad3c"
460       ]
461     ]
462   },
463   {
464     "id": "67fdc38f.4e65cc",
465     "type": "returnFailure",
466     "name": "return failure",
467     "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",
468     "comments": "",
469     "x": 1150.062240600586,
470     "y": 537.9149079322815,
471     "z": "5c846185.ea888",
472     "wires": []
473   },
474   {
475     "id": "50ef93e6.56ad3c",
476     "type": "block",
477     "name": "block",
478     "xml": "<block>\n",
479     "atomic": "false",
480     "comments": "",
481     "outputs": 1,
482     "x": 1135.7180843353271,
483     "y": 475.7141823768616,
484     "z": "5c846185.ea888",
485     "wires": [
486       []
487     ]
488   },
489   {
490     "id": "c4e5f3c2.475ed",
491     "type": "comment",
492     "name": "Delete Allotted Resource",
493     "info": "",
494     "comments": "",
495     "x": 702.0039520263672,
496     "y": 488.0000276565552,
497     "z": "5c846185.ea888",
498     "wires": []
499   },
500   {
501     "id": "de43dad6.d53448",
502     "type": "for",
503     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
504     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
505     "comments": "",
506     "outputs": 1,
507     "x": 1652.0078125,
508     "y": 725.0039052963257,
509     "z": "5c846185.ea888",
510     "wires": [
511       [
512         "584a4c5d.3639a4"
513       ]
514     ]
515   },
516   {
517     "id": "8b97d92c.0d63e8",
518     "type": "switchNode",
519     "name": "switch service-data.consumed-allotted-resources_length",
520     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
521     "comments": "",
522     "outputs": 1,
523     "x": 805.0071983337402,
524     "y": 685.7179067134857,
525     "z": "5c846185.ea888",
526     "wires": [
527       [
528         "3433f8dc.aa0358",
529         "d35e52b4.a3e33"
530       ]
531     ]
532   },
533   {
534     "id": "3433f8dc.aa0358",
535     "type": "other",
536     "name": "outcome Null",
537     "xml": "<outcome value=''>\n",
538     "comments": "",
539     "outputs": 1,
540     "x": 1129.1500625610352,
541     "y": 668.5753412246704,
542     "z": "5c846185.ea888",
543     "wires": [
544       [
545         "e9cfa004.3e1db"
546       ]
547     ]
548   },
549   {
550     "id": "d35e52b4.a3e33",
551     "type": "other",
552     "name": "other",
553     "xml": "<outcome value='Other'>\n",
554     "comments": "",
555     "outputs": 1,
556     "x": 1115.1500854492188,
557     "y": 731.5753300189972,
558     "z": "5c846185.ea888",
559     "wires": [
560       [
561         "27f778ec.7e6108"
562       ]
563     ]
564   },
565   {
566     "id": "27f778ec.7e6108",
567     "type": "block",
568     "name": "block : atomic",
569     "xml": "<block atomic=\"true\">",
570     "atomic": "true",
571     "outputs": 1,
572     "x": 1275.2771759033203,
573     "y": 729.7013065814972,
574     "z": "5c846185.ea888",
575     "wires": [
576       [
577         "de43dad6.d53448",
578         "c89d5c3.bdcfea"
579       ]
580     ]
581   },
582   {
583     "id": "4eb557ec.96c928",
584     "type": "set",
585     "name": "set consumed allotted resources for deletion",
586     "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",
587     "comments": "",
588     "x": 761.8645324707031,
589     "y": 756.2895498275757,
590     "z": "5c846185.ea888",
591     "wires": []
592   },
593   {
594     "id": "584a4c5d.3639a4",
595     "type": "switchNode",
596     "name": "switch allotted-resource-id",
597     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
598     "comments": "",
599     "outputs": 1,
600     "x": 2090.1194229125977,
601     "y": 721.0040273666382,
602     "z": "5c846185.ea888",
603     "wires": [
604       [
605         "c6c0a37e.c2dab"
606       ]
607     ]
608   },
609   {
610     "id": "c6c0a37e.c2dab",
611     "type": "outcomeTrue",
612     "name": "true",
613     "xml": "<outcome value='true'>\n",
614     "comments": "",
615     "outputs": 1,
616     "x": 2285.929244995117,
617     "y": 720.4683518409729,
618     "z": "5c846185.ea888",
619     "wires": [
620       [
621         "980eb324.1f10c"
622       ]
623     ]
624   },
625   {
626     "id": "b3956a96.0877a8",
627     "type": "set",
628     "name": "set tmp.cidx",
629     "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
630     "comments": "",
631     "x": 2601.2657775878906,
632     "y": 721.2246098518372,
633     "z": "5c846185.ea888",
634     "wires": []
635   },
636   {
637     "id": "f7015fdd.73e0f",
638     "type": "comment",
639     "name": "Delete consumed service consumed-allotted-resources in mdsal",
640     "info": "",
641     "comments": "",
642     "x": 816.0084686279297,
643     "y": 618.003871455905,
644     "z": "5c846185.ea888",
645     "wires": []
646   },
647   {
648     "id": "1b9b1c3c.959814",
649     "type": "comment",
650     "name": "This set resource will be deleted in MDSAL by provider code",
651     "info": "",
652     "comments": "",
653     "x": 806.341251373291,
654     "y": 722.7819633483887,
655     "z": "5c846185.ea888",
656     "wires": []
657   },
658   {
659     "id": "4ceb1c8.5e02ee4",
660     "type": "comment",
661     "name": "Obtain the index of conusumed AR",
662     "info": "",
663     "comments": "",
664     "x": 728.7856597900391,
665     "y": 649.8927316665649,
666     "z": "5c846185.ea888",
667     "wires": []
668   },
669   {
670     "id": "e9cfa004.3e1db",
671     "type": "returnFailure",
672     "name": "return failure",
673     "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",
674     "comments": "",
675     "x": 1291.0078125,
676     "y": 669.0039052963257,
677     "z": "5c846185.ea888",
678     "wires": []
679   },
680   {
681     "id": "980eb324.1f10c",
682     "type": "block",
683     "name": "block : atomic",
684     "xml": "<block atomic=\"true\">",
685     "atomic": "true",
686     "outputs": 1,
687     "x": 2435.007843017578,
688     "y": 721.2539548873901,
689     "z": "5c846185.ea888",
690     "wires": [
691       [
692         "b3956a96.0877a8"
693       ]
694     ]
695   },
696   {
697     "id": "157c6d55.8b7213",
698     "type": "returnFailure",
699     "name": "return failure",
700     "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",
701     "comments": "",
702     "x": 1745.2578125,
703     "y": 778.2539052963257,
704     "z": "5c846185.ea888",
705     "wires": []
706   },
707   {
708     "id": "2c9e34da.91de0c",
709     "type": "outcome",
710     "name": "NULL",
711     "xml": "<outcome value=''>\n",
712     "comments": "",
713     "outputs": 1,
714     "x": 1607.7578125,
715     "y": 778.2539052963257,
716     "z": "5c846185.ea888",
717     "wires": [
718       [
719         "157c6d55.8b7213"
720       ]
721     ]
722   },
723   {
724     "id": "c89d5c3.bdcfea",
725     "type": "switchNode",
726     "name": "switch tmp.cidx ",
727     "xml": "<switch test=\"`$tmp.cidx`\">\n\n",
728     "comments": "",
729     "outputs": 1,
730     "x": 1453.7578125,
731     "y": 778.2539052963257,
732     "z": "5c846185.ea888",
733     "wires": [
734       [
735         "2c9e34da.91de0c"
736       ]
737     ]
738   },
739   {
740     "id": "c4252e31.dbb43",
741     "type": "comment",
742     "name": "Delete provided service provided-allotted-resources in mdsal",
743     "info": "",
744     "comments": "",
745     "x": 802.5078277587891,
746     "y": 814.0039052963257,
747     "z": "5c846185.ea888",
748     "wires": []
749   },
750   {
751     "id": "dea01091.d8b15",
752     "type": "other",
753     "name": "other",
754     "xml": "<outcome value='Other'>\n",
755     "comments": "",
756     "outputs": 1,
757     "x": 1130.5080833435059,
758     "y": 1128.7540974617004,
759     "z": "5c846185.ea888",
760     "wires": [
761       [
762         "2fdb27fa.f6ac38"
763       ]
764     ]
765   },
766   {
767     "id": "7dbb67ae.29f3f8",
768     "type": "other",
769     "name": "outcome Null",
770     "xml": "<outcome value=''>\n",
771     "comments": "",
772     "outputs": 1,
773     "x": 1147.5080032348633,
774     "y": 1040.7539315223694,
775     "z": "5c846185.ea888",
776     "wires": [
777       [
778         "f54472a.345109"
779       ]
780     ]
781   },
782   {
783     "id": "f54472a.345109",
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 doesn't exist in MDSAL.\" />\n",
787     "comments": "",
788     "x": 1311.3656005859375,
789     "y": 1041.1824765205383,
790     "z": "5c846185.ea888",
791     "wires": []
792   },
793   {
794     "id": "e1824da6.1f214",
795     "type": "returnFailure",
796     "name": "return failure",
797     "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",
798     "comments": "",
799     "x": 1742.7578563690186,
800     "y": 1158.7539353370667,
801     "z": "5c846185.ea888",
802     "wires": []
803   },
804   {
805     "id": "8205df8d.8ddee",
806     "type": "outcome",
807     "name": "NULL",
808     "xml": "<outcome value=''>\n",
809     "comments": "",
810     "outputs": 1,
811     "x": 1605.2578563690186,
812     "y": 1158.7539353370667,
813     "z": "5c846185.ea888",
814     "wires": [
815       [
816         "e1824da6.1f214"
817       ]
818     ]
819   },
820   {
821     "id": "19cf7741.613499",
822     "type": "switchNode",
823     "name": "switch tmp.pidx ",
824     "xml": "<switch test=\"`$tmp.pidx`\">\n\n",
825     "comments": "",
826     "outputs": 1,
827     "x": 1451.2578563690186,
828     "y": 1158.7539353370667,
829     "z": "5c846185.ea888",
830     "wires": [
831       [
832         "8205df8d.8ddee"
833       ]
834     ]
835   },
836   {
837     "id": "c87ef19e.e93cf",
838     "type": "outcomeTrue",
839     "name": "true",
840     "xml": "<outcome value='true'>\n",
841     "comments": "",
842     "outputs": 1,
843     "x": 2315.508274078369,
844     "y": 1078.7540936470032,
845     "z": "5c846185.ea888",
846     "wires": [
847       [
848         "27e8796d.045376"
849       ]
850     ]
851   },
852   {
853     "id": "33e9010b.6c835e",
854     "type": "set",
855     "name": "set tmp.pidx",
856     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n",
857     "comments": "",
858     "x": 2383.8443908691406,
859     "y": 1213.510190486908,
860     "z": "5c846185.ea888",
861     "wires": []
862   },
863   {
864     "id": "27e8796d.045376",
865     "type": "block",
866     "name": "block : atomic",
867     "xml": "<block atomic=\"true\">",
868     "atomic": "true",
869     "outputs": 1,
870     "x": 2375.586727142334,
871     "y": 1149.5395798683167,
872     "z": "5c846185.ea888",
873     "wires": [
874       [
875         "33e9010b.6c835e"
876       ]
877     ]
878   },
879   {
880     "id": "608b88dd.e3a5a8",
881     "type": "set",
882     "name": "set provided allotted resources for deletion",
883     "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",
884     "comments": "",
885     "x": 761.0079040527344,
886     "y": 1144.003975868225,
887     "z": "5c846185.ea888",
888     "wires": []
889   },
890   {
891     "id": "12cd17c5.66c948",
892     "type": "update",
893     "name": "update AAI allotted-resource",
894     "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",
895     "comments": "",
896     "outputs": 1,
897     "x": 718.2266616821289,
898     "y": 1298.7543454170227,
899     "z": "5c846185.ea888",
900     "wires": [
901       [
902         "2a315011.b7952",
903         "2e78e3b1.a4cadc"
904       ]
905     ]
906   },
907   {
908     "id": "cf61b833.d96918",
909     "type": "execute",
910     "name": "execute RestApiCallNode - get-resource parent service data",
911     "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",
912     "comments": "",
913     "outputs": 1,
914     "x": 808.3373260498047,
915     "y": 984.3333654403687,
916     "z": "5c846185.ea888",
917     "wires": [
918       [
919         "9023749d.2a65a8",
920         "13a32c23.faaff4"
921       ]
922     ]
923   },
924   {
925     "id": "9eb3dfae.f51c4",
926     "type": "execute",
927     "name": "get parent-service-data tmp.ar-url-psd",
928     "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`\"/>",
929     "comments": "",
930     "outputs": 1,
931     "x": 742.3372650146484,
932     "y": 942.3332047462463,
933     "z": "5c846185.ea888",
934     "wires": [
935       []
936     ]
937   }
938 ]