integration test issues fix for sdwan and sotn
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-delete.json
1 [
2   {
3     "id": "b9f06b07.f3a768",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 131,
8     "y": 70,
9     "z": "4de23974.164008",
10     "wires": [
11       [
12         "56d70828.f50c48"
13       ]
14     ]
15   },
16   {
17     "id": "56d70828.f50c48",
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": 343.00000381469727,
26     "y": 142.0000171661377,
27     "z": "4de23974.164008",
28     "wires": [
29       [
30         "8c1c122c.922b4"
31       ]
32     ]
33   },
34   {
35     "id": "8c1c122c.922b4",
36     "type": "method",
37     "name": "sdwan-attachment-topology-operation-delete",
38     "xml": "<method rpc='sdwan-attachment-topology-operation-delete' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 331.0001220703125,
42     "y": 230,
43     "z": "4de23974.164008",
44     "wires": [
45       [
46         "b8453101.deebe"
47       ]
48     ]
49   },
50   {
51     "id": "b8453101.deebe",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 347.0001220703125,
59     "y": 785.0002446174622,
60     "z": "4de23974.164008",
61     "wires": [
62       [
63         "57dbee5c.be95e",
64         "ca7d47f1.45f358",
65         "7673909c.5a2e3",
66         "ecea06e3.25a318",
67         "da0989a1.945518",
68         "ae3090d.67bd97",
69         "3ac1cb4a.bcc3b4",
70         "e3865992.7e3fc8",
71         "4734b343.474b9c",
72         "b32dbc09.e3051",
73         "d3caba2b.d332f8",
74         "cfc2e19e.1fcac",
75         "61e84275.3bc6fc",
76         "cc50854b.9b5d18",
77         "2036e77.af47618"
78       ]
79     ]
80   },
81   {
82     "id": "57dbee5c.be95e",
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": 743.9935607910156,
88     "y": 183.9934868812561,
89     "z": "4de23974.164008",
90     "wires": []
91   },
92   {
93     "id": "dd97f979.9eaae8",
94     "type": "comment",
95     "name": "set tmp ar-id to fetch resource from MDSAL",
96     "info": "",
97     "comments": "",
98     "x": 772.9538726806641,
99     "y": 148.02528285980225,
100     "z": "4de23974.164008",
101     "wires": []
102   },
103   {
104     "id": "ca7d47f1.45f358",
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": 697.9934997558594,
110     "y": 276.99349212646484,
111     "z": "4de23974.164008",
112     "wires": []
113   },
114   {
115     "id": "da0989a1.945518",
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": 704.2553901672363,
122     "y": 364.6602210998535,
123     "z": "4de23974.164008",
124     "wires": [
125       []
126     ]
127   },
128   {
129     "id": "7673909c.5a2e3",
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": 736.2554168701172,
136     "y": 452.66020250320435,
137     "z": "4de23974.164008",
138     "wires": [
139       []
140     ]
141   },
142   {
143     "id": "8315ba14.0dc648",
144     "type": "comment",
145     "name": "Used for setting output to API Handler",
146     "info": "",
147     "comments": "",
148     "x": 751.9935302734375,
149     "y": 243.993501663208,
150     "z": "4de23974.164008",
151     "wires": []
152   },
153   {
154     "id": "3c54e364.ade40c",
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": 769.9934959411621,
160     "y": 329.8823823928833,
161     "z": "4de23974.164008",
162     "wires": []
163   },
164   {
165     "id": "67f0dba1.ee0bc4",
166     "type": "comment",
167     "name": "Used to Get AR by id to MDSAL, same as self-link",
168     "info": "",
169     "comments": "",
170     "x": 795.9935150146484,
171     "y": 416.8823413848877,
172     "z": "4de23974.164008",
173     "wires": []
174   },
175   {
176     "id": "22c383eb.e7131c",
177     "type": "comment",
178     "name": "GET parent-service-data from mdsal to check existence of other End point",
179     "info": "",
180     "comments": "",
181     "x": 863.0003280639648,
182     "y": 871.5316228866577,
183     "z": "4de23974.164008",
184     "wires": []
185   },
186   {
187     "id": "810e2b6c.9f1de8",
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": 1691.1849365234375,
194     "y": 1105.00425863266,
195     "z": "4de23974.164008",
196     "wires": [
197       [
198         "690c4edc.5f401"
199       ]
200     ]
201   },
202   {
203     "id": "ecea06e3.25a318",
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": 842.1842956542969,
210     "y": 1111.718041419983,
211     "z": "4de23974.164008",
212     "wires": [
213       [
214         "384921c2.c1fd6e",
215         "9a1aea32.687248"
216       ]
217     ]
218   },
219   {
220     "id": "e406b111.f8cad",
221     "type": "block",
222     "name": "block : atomic",
223     "xml": "<block atomic=\"true\">",
224     "atomic": "true",
225     "outputs": 1,
226     "x": 1292.4544582366943,
227     "y": 1151.7015271186829,
228     "z": "4de23974.164008",
229     "wires": [
230       [
231         "810e2b6c.9f1de8",
232         "9caa2a43.39ddb8"
233       ]
234     ]
235   },
236   {
237     "id": "690c4edc.5f401",
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": 2141.296142578125,
244     "y": 1103.0041165351868,
245     "z": "4de23974.164008",
246     "wires": [
247       [
248         "e114982a.497cc8"
249       ]
250     ]
251   },
252   {
253     "id": "ae3090d.67bd97",
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": 753.9687118530273,
259     "y": 907.0000677108765,
260     "z": "4de23974.164008",
261     "wires": []
262   },
263   {
264     "id": "7a941a2c.6b5534",
265     "type": "success",
266     "name": "success",
267     "xml": "<outcome value='success'>\n",
268     "comments": "",
269     "outputs": 1,
270     "x": 1133.968994140625,
271     "y": 985.0001826286316,
272     "z": "4de23974.164008",
273     "wires": [
274       [
275         "f87fdce1.8f426"
276       ]
277     ]
278   },
279   {
280     "id": "616b8620.cffa38",
281     "type": "other",
282     "name": "other",
283     "xml": "<outcome value='Other'>\n",
284     "comments": "",
285     "outputs": 1,
286     "x": 1125.8207969665527,
287     "y": 1020.066267490387,
288     "z": "4de23974.164008",
289     "wires": [
290       [
291         "c66c8fc5.25841"
292       ]
293     ]
294   },
295   {
296     "id": "c66c8fc5.25841",
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": 1300.969482421875,
302     "y": 1016.3336176872253,
303     "z": "4de23974.164008",
304     "wires": []
305   },
306   {
307     "id": "f87fdce1.8f426",
308     "type": "block",
309     "name": "block",
310     "xml": "<block>\n",
311     "atomic": "false",
312     "comments": "",
313     "outputs": 1,
314     "x": 1284.968994140625,
315     "y": 983.0001826286316,
316     "z": "4de23974.164008",
317     "wires": [
318       []
319     ]
320   },
321   {
322     "id": "ba29c90b.a2ba18",
323     "type": "failure",
324     "name": "failure",
325     "xml": "<outcome value='failure'>\n",
326     "comments": "",
327     "outputs": 1,
328     "x": 987.7307624816895,
329     "y": 1300.952815413475,
330     "z": "4de23974.164008",
331     "wires": [
332       [
333         "a31d3239.91ffa"
334       ]
335     ]
336   },
337   {
338     "id": "a31d3239.91ffa",
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": 1154.2546424865723,
344     "y": 1312.57188642025,
345     "z": "4de23974.164008",
346     "wires": []
347   },
348   {
349     "id": "30824867.291518",
350     "type": "failure",
351     "name": "not-found",
352     "xml": "<outcome value='not-found'>\n",
353     "comments": "",
354     "outputs": 1,
355     "x": 994.8260498046875,
356     "y": 1333.7147830724716,
357     "z": "4de23974.164008",
358     "wires": [
359       [
360         "a31d3239.91ffa"
361       ]
362     ]
363   },
364   {
365     "id": "a9de303.1918dd",
366     "type": "comment",
367     "name": "TODO: Rework after confirmation from AAI",
368     "info": "",
369     "comments": "",
370     "x": 1119.1374282836914,
371     "y": 1251.8732151985168,
372     "z": "4de23974.164008",
373     "wires": []
374   },
375   {
376     "id": "3ac1cb4a.bcc3b4",
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": 720.5461502075195,
382     "y": 1264.8276824951172,
383     "z": "4de23974.164008",
384     "wires": []
385   },
386   {
387     "id": "e3865992.7e3fc8",
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": 689.9592666625977,
393     "y": 1371.4435625076294,
394     "z": "4de23974.164008",
395     "wires": []
396   },
397   {
398     "id": "4734b343.474b9c",
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": 769.6666641235352,
405     "y": 541.3333625793457,
406     "z": "4de23974.164008",
407     "wires": [
408       [
409         "6ade3c12.7994f4",
410         "e1a0637a.9ebf2",
411         "b8627e78.eb192"
412       ]
413     ]
414   },
415   {
416     "id": "6ade3c12.7994f4",
417     "type": "not-found",
418     "name": "not-found",
419     "xml": "<outcome value='not-found'>\n",
420     "comments": "",
421     "outputs": 1,
422     "x": 1009.3081665039062,
423     "y": 581.6649107933044,
424     "z": "4de23974.164008",
425     "wires": [
426       [
427         "a87c397.af463c8"
428       ]
429     ]
430   },
431   {
432     "id": "e1a0637a.9ebf2",
433     "type": "failure",
434     "name": "failure",
435     "xml": "<outcome value='failure'>\n",
436     "comments": "",
437     "outputs": 1,
438     "x": 1006.3081665039062,
439     "y": 538.1649084091187,
440     "z": "4de23974.164008",
441     "wires": [
442       [
443         "a87c397.af463c8"
444       ]
445     ]
446   },
447   {
448     "id": "b8627e78.eb192",
449     "type": "success",
450     "name": "success",
451     "xml": "<outcome value='success'>\n",
452     "comments": "",
453     "outputs": 1,
454     "x": 1013.0582466125488,
455     "y": 497.5220036506653,
456     "z": "4de23974.164008",
457     "wires": [
458       [
459         "b1cd793e.5e9dc8"
460       ]
461     ]
462   },
463   {
464     "id": "a87c397.af463c8",
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": 1165.058334350586,
470     "y": 559.9149088859558,
471     "z": "4de23974.164008",
472     "wires": []
473   },
474   {
475     "id": "b1cd793e.5e9dc8",
476     "type": "block",
477     "name": "block",
478     "xml": "<block>\n",
479     "atomic": "false",
480     "comments": "",
481     "outputs": 1,
482     "x": 1150.7141780853271,
483     "y": 497.7141833305359,
484     "z": "4de23974.164008",
485     "wires": [
486       []
487     ]
488   },
489   {
490     "id": "bd3b6f56.caa65",
491     "type": "comment",
492     "name": "Delete Allotted Resource",
493     "info": "",
494     "comments": "",
495     "x": 717.0000457763672,
496     "y": 510.0000286102295,
497     "z": "4de23974.164008",
498     "wires": []
499   },
500   {
501     "id": "7503ea37.fd6c04",
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": 1667.00390625,
508     "y": 747.00390625,
509     "z": "4de23974.164008",
510     "wires": [
511       [
512         "f40e177b.0b9868"
513       ]
514     ]
515   },
516   {
517     "id": "b32dbc09.e3051",
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": 820.0032920837402,
524     "y": 707.71790766716,
525     "z": "4de23974.164008",
526     "wires": [
527       [
528         "c43d45d0.725118",
529         "b1813741.d0a008"
530       ]
531     ]
532   },
533   {
534     "id": "c43d45d0.725118",
535     "type": "other",
536     "name": "outcome Null",
537     "xml": "<outcome value=''>\n",
538     "comments": "",
539     "outputs": 1,
540     "x": 1144.1461563110352,
541     "y": 690.5753421783447,
542     "z": "4de23974.164008",
543     "wires": [
544       [
545         "494b4b44.f09f14"
546       ]
547     ]
548   },
549   {
550     "id": "b1813741.d0a008",
551     "type": "other",
552     "name": "other",
553     "xml": "<outcome value='Other'>\n",
554     "comments": "",
555     "outputs": 1,
556     "x": 1130.1461791992188,
557     "y": 753.5753309726715,
558     "z": "4de23974.164008",
559     "wires": [
560       [
561         "a0d3a795.96d2a8"
562       ]
563     ]
564   },
565   {
566     "id": "a0d3a795.96d2a8",
567     "type": "block",
568     "name": "block : atomic",
569     "xml": "<block atomic=\"true\">",
570     "atomic": "true",
571     "outputs": 1,
572     "x": 1290.2732696533203,
573     "y": 751.7013075351715,
574     "z": "4de23974.164008",
575     "wires": [
576       [
577         "7503ea37.fd6c04",
578         "8fef3486.f53f48"
579       ]
580     ]
581   },
582   {
583     "id": "d3caba2b.d332f8",
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": 776.8606262207031,
589     "y": 778.28955078125,
590     "z": "4de23974.164008",
591     "wires": []
592   },
593   {
594     "id": "f40e177b.0b9868",
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": 2105.1155166625977,
601     "y": 743.0040283203125,
602     "z": "4de23974.164008",
603     "wires": [
604       [
605         "5f3df777.af7b38"
606       ]
607     ]
608   },
609   {
610     "id": "5f3df777.af7b38",
611     "type": "outcomeTrue",
612     "name": "true",
613     "xml": "<outcome value='true'>\n",
614     "comments": "",
615     "outputs": 1,
616     "x": 2300.925338745117,
617     "y": 742.4683527946472,
618     "z": "4de23974.164008",
619     "wires": [
620       [
621         "6d89866f.0d32c8"
622       ]
623     ]
624   },
625   {
626     "id": "e9496ef8.3a3c5",
627     "type": "set",
628     "name": "set tmp.cidx",
629     "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n",
630     "comments": "",
631     "x": 2616.2618713378906,
632     "y": 743.2246108055115,
633     "z": "4de23974.164008",
634     "wires": []
635   },
636   {
637     "id": "e2abacaf.782bf",
638     "type": "comment",
639     "name": "Delete consumed service consumed-allotted-resources in mdsal",
640     "info": "",
641     "comments": "",
642     "x": 831.0045623779297,
643     "y": 640.0038724095793,
644     "z": "4de23974.164008",
645     "wires": []
646   },
647   {
648     "id": "e6fb5c22.b2976",
649     "type": "comment",
650     "name": "This set resource will be deleted in MDSAL by provider code",
651     "info": "",
652     "comments": "",
653     "x": 821.337345123291,
654     "y": 744.781964302063,
655     "z": "4de23974.164008",
656     "wires": []
657   },
658   {
659     "id": "e963214.b61b0e",
660     "type": "comment",
661     "name": "Obtain the index of conusumed AR",
662     "info": "",
663     "comments": "",
664     "x": 743.7817535400391,
665     "y": 671.8927326202393,
666     "z": "4de23974.164008",
667     "wires": []
668   },
669   {
670     "id": "494b4b44.f09f14",
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": 1306.00390625,
676     "y": 691.00390625,
677     "z": "4de23974.164008",
678     "wires": []
679   },
680   {
681     "id": "6d89866f.0d32c8",
682     "type": "block",
683     "name": "block : atomic",
684     "xml": "<block atomic=\"true\">",
685     "atomic": "true",
686     "outputs": 1,
687     "x": 2450.003936767578,
688     "y": 743.2539558410645,
689     "z": "4de23974.164008",
690     "wires": [
691       [
692         "e9496ef8.3a3c5"
693       ]
694     ]
695   },
696   {
697     "id": "851fd9bb.09d5f8",
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": 1760.25390625,
703     "y": 800.25390625,
704     "z": "4de23974.164008",
705     "wires": []
706   },
707   {
708     "id": "d98b4681.77ed08",
709     "type": "outcome",
710     "name": "NULL",
711     "xml": "<outcome value=''>\n",
712     "comments": "",
713     "outputs": 1,
714     "x": 1622.75390625,
715     "y": 800.25390625,
716     "z": "4de23974.164008",
717     "wires": [
718       [
719         "851fd9bb.09d5f8"
720       ]
721     ]
722   },
723   {
724     "id": "8fef3486.f53f48",
725     "type": "switchNode",
726     "name": "switch tmp.cidx ",
727     "xml": "<switch test=\"`$tmp.cidx`\">\n\n",
728     "comments": "",
729     "outputs": 1,
730     "x": 1468.75390625,
731     "y": 800.25390625,
732     "z": "4de23974.164008",
733     "wires": [
734       [
735         "d98b4681.77ed08"
736       ]
737     ]
738   },
739   {
740     "id": "3dd9973a.4ea7a8",
741     "type": "comment",
742     "name": "Delete provided service provided-allotted-resources in mdsal",
743     "info": "",
744     "comments": "",
745     "x": 817.5039215087891,
746     "y": 836.00390625,
747     "z": "4de23974.164008",
748     "wires": []
749   },
750   {
751     "id": "9a1aea32.687248",
752     "type": "other",
753     "name": "other",
754     "xml": "<outcome value='Other'>\n",
755     "comments": "",
756     "outputs": 1,
757     "x": 1145.5041770935059,
758     "y": 1150.7540984153748,
759     "z": "4de23974.164008",
760     "wires": [
761       [
762         "e406b111.f8cad"
763       ]
764     ]
765   },
766   {
767     "id": "384921c2.c1fd6e",
768     "type": "other",
769     "name": "outcome Null",
770     "xml": "<outcome value=''>\n",
771     "comments": "",
772     "outputs": 1,
773     "x": 1162.5040969848633,
774     "y": 1062.7539324760437,
775     "z": "4de23974.164008",
776     "wires": [
777       [
778         "a35171cd.d90da"
779       ]
780     ]
781   },
782   {
783     "id": "a35171cd.d90da",
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": 1326.3616943359375,
789     "y": 1063.1824774742126,
790     "z": "4de23974.164008",
791     "wires": []
792   },
793   {
794     "id": "702543f3.ec4a8c",
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": 1757.7539501190186,
800     "y": 1180.753936290741,
801     "z": "4de23974.164008",
802     "wires": []
803   },
804   {
805     "id": "f0b84e69.39376",
806     "type": "outcome",
807     "name": "NULL",
808     "xml": "<outcome value=''>\n",
809     "comments": "",
810     "outputs": 1,
811     "x": 1620.2539501190186,
812     "y": 1180.753936290741,
813     "z": "4de23974.164008",
814     "wires": [
815       [
816         "702543f3.ec4a8c"
817       ]
818     ]
819   },
820   {
821     "id": "9caa2a43.39ddb8",
822     "type": "switchNode",
823     "name": "switch tmp.pidx ",
824     "xml": "<switch test=\"`$tmp.pidx`\">\n\n",
825     "comments": "",
826     "outputs": 1,
827     "x": 1466.2539501190186,
828     "y": 1180.753936290741,
829     "z": "4de23974.164008",
830     "wires": [
831       [
832         "f0b84e69.39376"
833       ]
834     ]
835   },
836   {
837     "id": "e114982a.497cc8",
838     "type": "outcomeTrue",
839     "name": "true",
840     "xml": "<outcome value='true'>\n",
841     "comments": "",
842     "outputs": 1,
843     "x": 2330.504367828369,
844     "y": 1100.7540946006775,
845     "z": "4de23974.164008",
846     "wires": [
847       [
848         "5dc21145.7fddd"
849       ]
850     ]
851   },
852   {
853     "id": "9af67acf.f5f308",
854     "type": "set",
855     "name": "set tmp.pidx",
856     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n",
857     "comments": "",
858     "x": 2398.8404846191406,
859     "y": 1235.5101914405823,
860     "z": "4de23974.164008",
861     "wires": []
862   },
863   {
864     "id": "5dc21145.7fddd",
865     "type": "block",
866     "name": "block : atomic",
867     "xml": "<block atomic=\"true\">",
868     "atomic": "true",
869     "outputs": 1,
870     "x": 2390.582820892334,
871     "y": 1171.539580821991,
872     "z": "4de23974.164008",
873     "wires": [
874       [
875         "9af67acf.f5f308"
876       ]
877     ]
878   },
879   {
880     "id": "2036e77.af47618",
881     "type": "update",
882     "name": "update AAI allotted-resource",
883     "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",
884     "comments": "",
885     "outputs": 1,
886     "x": 733.2227554321289,
887     "y": 1320.754346370697,
888     "z": "4de23974.164008",
889     "wires": [
890       [
891         "ba29c90b.a2ba18",
892         "30824867.291518"
893       ]
894     ]
895   },
896   {
897     "id": "61e84275.3bc6fc",
898     "type": "execute",
899     "name": "execute RestApiCallNode - get-resource parent service data",
900     "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",
901     "comments": "",
902     "outputs": 1,
903     "x": 823.3334197998047,
904     "y": 1006.333366394043,
905     "z": "4de23974.164008",
906     "wires": [
907       [
908         "7a941a2c.6b5534",
909         "616b8620.cffa38"
910       ]
911     ]
912   },
913   {
914     "id": "cfc2e19e.1fcac",
915     "type": "execute",
916     "name": "get parent-service-data tmp.ar-url-psd",
917     "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`\"/>",
918     "comments": "",
919     "outputs": 1,
920     "x": 757.3333587646484,
921     "y": 964.3332056999207,
922     "z": "4de23974.164008",
923     "wires": [
924       []
925     ]
926   },
927   {
928     "id": "cc50854b.9b5d18",
929     "type": "execute",
930     "name": "execute RestApiCallNode - delete-resource parent service data",
931     "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",
932     "comments": "",
933     "outputs": 1,
934     "x": 839.00390625,
935     "y": 1211.00390625,
936     "z": "4de23974.164008",
937     "wires": [
938       []
939     ]
940   }
941 ]