Refactored SOTN and SDWAN DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sotn / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-deactivate.json
1 [
2   {
3     "id": "b0d71f3f.58b13",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 123,
8     "y": 32,
9     "z": "ed10e8c7.d58f28",
10     "wires": [
11       [
12         "962f9112.e764e"
13       ]
14     ]
15   },
16   {
17     "id": "962f9112.e764e",
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": 304.00000381469727,
26     "y": 92.0000171661377,
27     "z": "ed10e8c7.d58f28",
28     "wires": [
29       [
30         "87a8de44.934de"
31       ]
32     ]
33   },
34   {
35     "id": "87a8de44.934de",
36     "type": "method",
37     "name": "sotn-attachment-topology-operation-deactivate",
38     "xml": "<method rpc='sotn-attachment-topology-operation-deactivate' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 292.0001220703125,
42     "y": 180,
43     "z": "ed10e8c7.d58f28",
44     "wires": [
45       [
46         "b2d80288.ba823"
47       ]
48     ]
49   },
50   {
51     "id": "b2d80288.ba823",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 308.0001220703125,
59     "y": 735.0002446174622,
60     "z": "ed10e8c7.d58f28",
61     "wires": [
62       [
63         "6613ec86.694124",
64         "f6decbbf.dd5e18",
65         "1fbc45c.0ff5aba",
66         "bc709271.507d8",
67         "1c40b1f3.81976e",
68         "4f9b598.14771a8",
69         "8522b683.befcf8",
70         "62f18656.44cfe8",
71         "683cb14.3ce605",
72         "c2e56bca.b33d78",
73         "802f8ef7.b6731",
74         "5c1eba3c.5a3914",
75         "d3793c0a.e76dd",
76         "a3a48876.1d8a18",
77         "7ccf367e.a869f8",
78         "2c211a2d.e90676",
79         "693977cc.87d158",
80         "c0b8662.2083398",
81         "fada7ab3.d1d4e8",
82         "cfef8c40.7d401"
83       ]
84     ]
85   },
86   {
87     "id": "6613ec86.694124",
88     "type": "set",
89     "name": "set tmp.ar.allotted-resource-id,etc",
90     "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",
91     "comments": "",
92     "x": 704.9935607910156,
93     "y": 133.9934868812561,
94     "z": "ed10e8c7.d58f28",
95     "wires": []
96   },
97   {
98     "id": "c64c0419.fa25b8",
99     "type": "comment",
100     "name": "set tmp ar-id to fetch resource from MDSAL",
101     "info": "",
102     "comments": "",
103     "x": 733.9538726806641,
104     "y": 98.02528285980225,
105     "z": "ed10e8c7.d58f28",
106     "wires": []
107   },
108   {
109     "id": "f6decbbf.dd5e18",
110     "type": "set",
111     "name": "set tmp.ar.self-link",
112     "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",
113     "comments": "",
114     "x": 658.9934997558594,
115     "y": 226.99349212646484,
116     "z": "ed10e8c7.d58f28",
117     "wires": []
118   },
119   {
120     "id": "1c40b1f3.81976e",
121     "type": "execute",
122     "name": "execute Properties",
123     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
124     "comments": "",
125     "outputs": 1,
126     "x": 665.2553901672363,
127     "y": 314.6602210998535,
128     "z": "ed10e8c7.d58f28",
129     "wires": [
130       []
131     ]
132   },
133   {
134     "id": "1fbc45c.0ff5aba",
135     "type": "execute",
136     "name": "generate allotted-resource tmp.ar-url",
137     "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",
138     "comments": "",
139     "outputs": 1,
140     "x": 715.2554931640625,
141     "y": 401.66022205352783,
142     "z": "ed10e8c7.d58f28",
143     "wires": [
144       []
145     ]
146   },
147   {
148     "id": "61a9d102.2b159",
149     "type": "comment",
150     "name": "GET connection-attachment-allotted-resource from mdsal",
151     "info": "",
152     "comments": "",
153     "x": 758.8084869384766,
154     "y": 472.53876876831055,
155     "z": "ed10e8c7.d58f28",
156     "wires": []
157   },
158   {
159     "id": "e3f68d6f.a262e",
160     "type": "comment",
161     "name": "Used for setting output to API Handler",
162     "info": "",
163     "comments": "",
164     "x": 712.9935302734375,
165     "y": 193.993501663208,
166     "z": "ed10e8c7.d58f28",
167     "wires": []
168   },
169   {
170     "id": "b492f1ea.34bc2",
171     "type": "comment",
172     "name": "Obtain different URL, template location etc",
173     "info": "For saving resource information to MDSAL & for AAI",
174     "comments": "",
175     "x": 730.9934959411621,
176     "y": 279.8823823928833,
177     "z": "ed10e8c7.d58f28",
178     "wires": []
179   },
180   {
181     "id": "d53312d8.be37d",
182     "type": "comment",
183     "name": "Used to Get AR by id to MDSAL, same as self-link",
184     "info": "",
185     "comments": "",
186     "x": 756.9935150146484,
187     "y": 366.8823413848877,
188     "z": "ed10e8c7.d58f28",
189     "wires": []
190   },
191   {
192     "id": "e963cad3.e8d6c8",
193     "type": "success",
194     "name": "success",
195     "xml": "<outcome value='success'>\n",
196     "comments": "",
197     "outputs": 1,
198     "x": 1199.6668281555176,
199     "y": 520.0000286102295,
200     "z": "ed10e8c7.d58f28",
201     "wires": [
202       [
203         "8ab48cf9.6862d"
204       ]
205     ]
206   },
207   {
208     "id": "8ab48cf9.6862d",
209     "type": "block",
210     "name": "block: atomic",
211     "xml": "<block atomic=\"true\">\n",
212     "atomic": "false",
213     "comments": "",
214     "outputs": 1,
215     "x": 1368.6668319702148,
216     "y": 518.4999294281006,
217     "z": "ed10e8c7.d58f28",
218     "wires": [
219       [
220         "46b50e5a.245ae"
221       ]
222     ]
223   },
224   {
225     "id": "46b50e5a.245ae",
226     "type": "switchNode",
227     "name": "switch cr length",
228     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 1541.5241012573242,
232     "y": 456.11909198760986,
233     "z": "ed10e8c7.d58f28",
234     "wires": [
235       [
236         "13dfccaf.a022c3",
237         "30d435f0.aca96a"
238       ]
239     ]
240   },
241   {
242     "id": "13dfccaf.a022c3",
243     "type": "other",
244     "name": "outcome 1",
245     "xml": "<outcome value='1'>\n",
246     "comments": "",
247     "outputs": 1,
248     "x": 1778.8573455810547,
249     "y": 434.1190423965454,
250     "z": "ed10e8c7.d58f28",
251     "wires": [
252       [
253         "2fbac1bd.15b6ee"
254       ]
255     ]
256   },
257   {
258     "id": "2fbac1bd.15b6ee",
259     "type": "block",
260     "name": "block: atomic",
261     "xml": "<block atomic='true'>\n",
262     "atomic": "false",
263     "comments": "",
264     "outputs": 1,
265     "x": 1963.3812351226807,
266     "y": 431.02387619018555,
267     "z": "ed10e8c7.d58f28",
268     "wires": [
269       [
270         "5bdbcf18.37ca8",
271         "cbe39501.d4aef8",
272         "a9187100.e70c6"
273       ]
274     ]
275   },
276   {
277     "id": "6cd8cd98.bbac14",
278     "type": "returnFailure",
279     "name": "return failure",
280     "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",
281     "comments": "",
282     "x": 1887.5190773010254,
283     "y": 556.0661172866821,
284     "z": "ed10e8c7.d58f28",
285     "wires": []
286   },
287   {
288     "id": "489ff5d2.164b7c",
289     "type": "other",
290     "name": "other",
291     "xml": "<outcome value='Other'>\n",
292     "comments": "",
293     "outputs": 1,
294     "x": 1191.5186309814453,
295     "y": 555.0661134719849,
296     "z": "ed10e8c7.d58f28",
297     "wires": [
298       [
299         "6d0a26d5.df63e8"
300       ]
301     ]
302   },
303   {
304     "id": "6d0a26d5.df63e8",
305     "type": "block",
306     "name": "block: atomic",
307     "xml": "<block atomic=\"true\">\n",
308     "atomic": "false",
309     "comments": "",
310     "outputs": 1,
311     "x": 1371.5185813903809,
312     "y": 555.7326641082764,
313     "z": "ed10e8c7.d58f28",
314     "wires": [
315       [
316         "6cd8cd98.bbac14"
317       ]
318     ]
319   },
320   {
321     "id": "30d435f0.aca96a",
322     "type": "other",
323     "name": "other",
324     "xml": "<outcome value='Other'>\n",
325     "comments": "",
326     "outputs": 1,
327     "x": 1767.1852989196777,
328     "y": 471.3994026184082,
329     "z": "ed10e8c7.d58f28",
330     "wires": [
331       [
332         "6cd8cd98.bbac14"
333       ]
334     ]
335   },
336   {
337     "id": "5bdbcf18.37ca8",
338     "type": "set",
339     "name": "set connection-attachment-ar from get",
340     "xml": "<set>\n<parameter name='connection-attachment-ar.' value='$mdsal-ar.connection-attachment-allotted-resource[0].' />\n",
341     "comments": "",
342     "x": 2209.444793701172,
343     "y": 391.0001058578491,
344     "z": "ed10e8c7.d58f28",
345     "wires": []
346   },
347   {
348     "id": "a9187100.e70c6",
349     "type": "set",
350     "name": "set oper-status",
351     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-ar.allotted-resource-status.rpc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
352     "comments": "",
353     "x": 2142.4447898864746,
354     "y": 481.42866039276123,
355     "z": "ed10e8c7.d58f28",
356     "wires": []
357   },
358   {
359     "id": "cbe39501.d4aef8",
360     "type": "switchNode",
361     "name": "switch order-status",
362     "xml": "<switch test='`$connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
363     "comments": "",
364     "outputs": 1,
365     "x": 2153.444625854492,
366     "y": 435.0001096725464,
367     "z": "ed10e8c7.d58f28",
368     "wires": [
369       [
370         "1d7c3fd4.3573f",
371         "34a89ac4.b608e6"
372       ]
373     ]
374   },
375   {
376     "id": "1d7c3fd4.3573f",
377     "type": "outcome",
378     "name": "outcome Active",
379     "xml": "<outcome value='Active'>\n",
380     "comments": "",
381     "outputs": 1,
382     "x": 2360.044574737549,
383     "y": 425.0001096725464,
384     "z": "ed10e8c7.d58f28",
385     "wires": [
386       [
387         "fffa8dec.2b92a"
388       ]
389     ]
390   },
391   {
392     "id": "34a89ac4.b608e6",
393     "type": "outcome",
394     "name": "outcome Other",
395     "xml": "<outcome value='Other'>\n",
396     "comments": "",
397     "outputs": 1,
398     "x": 2359.7590942382812,
399     "y": 467.4287004470825,
400     "z": "ed10e8c7.d58f28",
401     "wires": [
402       [
403         "31994932.765476"
404       ]
405     ]
406   },
407   {
408     "id": "fffa8dec.2b92a",
409     "type": "block",
410     "name": "block",
411     "xml": "<block>\n",
412     "atomic": "false",
413     "comments": "",
414     "outputs": 1,
415     "x": 2512.5151290893555,
416     "y": 423.3757600784302,
417     "z": "ed10e8c7.d58f28",
418     "wires": [
419       []
420     ]
421   },
422   {
423     "id": "31994932.765476",
424     "type": "returnFailure",
425     "name": "return failure",
426     "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\" \n    value=\"`'Existing connection-attachment-allotted-resource with order status of ' + $connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
427     "comments": "",
428     "x": 2532.6669845581055,
429     "y": 464.000111579895,
430     "z": "ed10e8c7.d58f28",
431     "wires": []
432   },
433   {
434     "id": "ade228e6.1238f8",
435     "type": "call",
436     "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
437     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
438     "comments": "",
439     "outputs": 1,
440     "x": 920.3031158447266,
441     "y": 616.4935908317566,
442     "z": "ed10e8c7.d58f28",
443     "wires": [
444       []
445     ]
446   },
447   {
448     "id": "4f9b598.14771a8",
449     "type": "block",
450     "name": "block: atomic",
451     "xml": "<block atomic=\"true\">\n",
452     "atomic": "false",
453     "comments": "",
454     "outputs": 1,
455     "x": 617.3092803955078,
456     "y": 617.4999389648438,
457     "z": "ed10e8c7.d58f28",
458     "wires": [
459       [
460         "ade228e6.1238f8"
461       ]
462     ]
463   },
464   {
465     "id": "2ee127b4.83e818",
466     "type": "comment",
467     "name": "GET parent-service-data from mdsal to check existence of other End point",
468     "info": "",
469     "comments": "",
470     "x": 799.0004425048828,
471     "y": 678.5316982269287,
472     "z": "ed10e8c7.d58f28",
473     "wires": []
474   },
475   {
476     "id": "ac0c0701.4d5818",
477     "type": "for",
478     "name": "for pidx..mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[]",
479     "xml": "<for index='pidx' start='0' end='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`' >\n",
480     "comments": "",
481     "outputs": 1,
482     "x": 1689.1849975585938,
483     "y": 882.0040826797485,
484     "z": "ed10e8c7.d58f28",
485     "wires": [
486       [
487         "6de65a21.ad20a4"
488       ]
489     ]
490   },
491   {
492     "id": "cf2de8b0.5bcd28",
493     "type": "other",
494     "name": "other",
495     "xml": "<outcome value='Other'>\n",
496     "comments": "",
497     "outputs": 1,
498     "x": 1095.3269691467285,
499     "y": 1014.5755434036255,
500     "z": "ed10e8c7.d58f28",
501     "wires": [
502       [
503         "75a0a72c.5c3178"
504       ]
505     ]
506   },
507   {
508     "id": "2c958bf6.015ea4",
509     "type": "block",
510     "name": "block : atomic",
511     "xml": "<block atomic=\"true\">",
512     "atomic": "true",
513     "outputs": 1,
514     "x": 1286.4543704986572,
515     "y": 879.7015712037683,
516     "z": "ed10e8c7.d58f28",
517     "wires": [
518       [
519         "ac0c0701.4d5818"
520       ]
521     ]
522   },
523   {
524     "id": "6de65a21.ad20a4",
525     "type": "switchNode",
526     "name": "switch allotted-resource-id",
527     "xml": "<switch test=\"`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
528     "comments": "",
529     "outputs": 1,
530     "x": 2124.296398162842,
531     "y": 882.0039796829224,
532     "z": "ed10e8c7.d58f28",
533     "wires": [
534       [
535         "9440a4ce.27b3b8",
536         "44e5c372.52cc1c"
537       ]
538     ]
539   },
540   {
541     "id": "9440a4ce.27b3b8",
542     "type": "outcomeTrue",
543     "name": "true",
544     "xml": "<outcome value='true'>\n",
545     "comments": "",
546     "outputs": 1,
547     "x": 2333.106746673584,
548     "y": 862.4684362411499,
549     "z": "ed10e8c7.d58f28",
550     "wires": [
551       [
552         "ce614dfc.389e4"
553       ]
554     ]
555   },
556   {
557     "id": "5d89c62c.f1ebc8",
558     "type": "block",
559     "name": "block : atomic",
560     "xml": "<block atomic=\"true\">",
561     "atomic": "true",
562     "outputs": 1,
563     "x": 2481.867500305176,
564     "y": 898.3256177902222,
565     "z": "ed10e8c7.d58f28",
566     "wires": [
567       [
568         "12052b78.fd51b5"
569       ]
570     ]
571   },
572   {
573     "id": "12052b78.fd51b5",
574     "type": "set",
575     "name": "set tmp.pidx and ptx.consumed-ar",
576     "xml": "<set>\n<parameter name='tmp.pidx' value='`$pidx`' />\n<parameter name='tmp.provided-ar.' value='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource[$pidx].`' />\n<parameter name='tmp.found-in-ar' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
577     "comments": "",
578     "x": 2716.724937438965,
579     "y": 896.8971490859985,
580     "z": "ed10e8c7.d58f28",
581     "wires": []
582   },
583   {
584     "id": "2107b4e5.fcdf0c",
585     "type": "comment",
586     "name": "Check existence of other AR in parent service data",
587     "info": "Check if other allotted resource is available.",
588     "comments": "",
589     "x": 722.9628448486328,
590     "y": 848.8929204940796,
591     "z": "ed10e8c7.d58f28",
592     "wires": []
593   },
594   {
595     "id": "103b0ff7.ad1fb",
596     "type": "other",
597     "name": "outcome 1",
598     "xml": "<outcome value='1'>\n",
599     "comments": "",
600     "outputs": 1,
601     "x": 1105.9793167114258,
602     "y": 949.677264213562,
603     "z": "ed10e8c7.d58f28",
604     "wires": [
605       [
606         "61e7696e.e32818"
607       ]
608     ]
609   },
610   {
611     "id": "75a0a72c.5c3178",
612     "type": "returnFailure",
613     "name": "return failure",
614     "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",
615     "comments": "",
616     "x": 1267.9793128967285,
617     "y": 1013.677285194397,
618     "z": "ed10e8c7.d58f28",
619     "wires": []
620   },
621   {
622     "id": "4057b675.85b588",
623     "type": "other",
624     "name": "outcome 2",
625     "xml": "<outcome value='2'>\n",
626     "comments": "",
627     "outputs": 1,
628     "x": 1111.9793910980225,
629     "y": 880.6772715821862,
630     "z": "ed10e8c7.d58f28",
631     "wires": [
632       [
633         "2c958bf6.015ea4"
634       ]
635     ]
636   },
637   {
638     "id": "ce614dfc.389e4",
639     "type": "block",
640     "name": "block",
641     "xml": "<block>\n",
642     "atomic": "false",
643     "comments": "",
644     "outputs": 1,
645     "x": 2462.090805053711,
646     "y": 857.6771764755249,
647     "z": "ed10e8c7.d58f28",
648     "wires": [
649       []
650     ]
651   },
652   {
653     "id": "44e5c372.52cc1c",
654     "type": "outcomeTrue",
655     "name": "false",
656     "xml": "<outcome value='false'>\n",
657     "comments": "",
658     "outputs": 1,
659     "x": 2333.0907974243164,
660     "y": 896.6771802902222,
661     "z": "ed10e8c7.d58f28",
662     "wires": [
663       [
664         "5d89c62c.f1ebc8"
665       ]
666     ]
667   },
668   {
669     "id": "4960bf69.46744",
670     "type": "switchNode",
671     "name": "switch mdsal-psd.networks_length",
672     "xml": "<switch test='`$mdsal-psd.service-data.networks.network_length`'>\n",
673     "comments": "",
674     "outputs": 1,
675     "x": 1518.3129959106445,
676     "y": 952.8997611999512,
677     "z": "ed10e8c7.d58f28",
678     "wires": [
679       [
680         "21a6ff32.cc535",
681         "fd1b6df1.cb9a8"
682       ]
683     ]
684   },
685   {
686     "id": "fd1b6df1.cb9a8",
687     "type": "other",
688     "name": "outcome 1",
689     "xml": "<outcome value='1'>\n",
690     "comments": "",
691     "outputs": 1,
692     "x": 1748.3130187988281,
693     "y": 928.7885932922363,
694     "z": "ed10e8c7.d58f28",
695     "wires": [
696       [
697         "bb9fff84.461e"
698       ]
699     ]
700   },
701   {
702     "id": "21a6ff32.cc535",
703     "type": "other",
704     "name": "other",
705     "xml": "<outcome value='Other'>\n",
706     "comments": "",
707     "outputs": 1,
708     "x": 1742.3131408691406,
709     "y": 988.7885932922363,
710     "z": "ed10e8c7.d58f28",
711     "wires": [
712       [
713         "8d4e5f2f.b2054"
714       ]
715     ]
716   },
717   {
718     "id": "8d4e5f2f.b2054",
719     "type": "returnFailure",
720     "name": "return failure",
721     "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: Incorrect state found more then 1 network\" />\n    \n",
722     "comments": "",
723     "x": 1914.9655265808105,
724     "y": 988.8903999328613,
725     "z": "ed10e8c7.d58f28",
726     "wires": []
727   },
728   {
729     "id": "e3b0ecf2.4e878",
730     "type": "set",
731     "name": "set tmp.network.",
732     "xml": "<set>\n<parameter name='tmp.network.' value='`$mdsal-psd.service-data.networks.network[0].`' />\n",
733     "comments": "",
734     "x": 2116.757942199707,
735     "y": 918.7887525558472,
736     "z": "ed10e8c7.d58f28",
737     "wires": []
738   },
739   {
740     "id": "61e7696e.e32818",
741     "type": "block",
742     "name": "block : atomic",
743     "xml": "<block atomic=\"true\">",
744     "atomic": "true",
745     "outputs": 1,
746     "x": 1278.423671722412,
747     "y": 950.7885122299194,
748     "z": "ed10e8c7.d58f28",
749     "wires": [
750       [
751         "4960bf69.46744"
752       ]
753     ]
754   },
755   {
756     "id": "bb9fff84.461e",
757     "type": "block",
758     "name": "block : atomic",
759     "xml": "<block atomic=\"true\">",
760     "atomic": "true",
761     "outputs": 1,
762     "x": 1916.090690612793,
763     "y": 947.7884273529053,
764     "z": "ed10e8c7.d58f28",
765     "wires": [
766       [
767         "e3b0ecf2.4e878",
768         "2162bd86.35e6f2"
769       ]
770     ]
771   },
772   {
773     "id": "2162bd86.35e6f2",
774     "type": "for",
775     "name": "for nidx..tmp.network.network-data.network-request-input.network...[]",
776     "xml": "<for index='nidx' start='0' end='`$tmp.network.network-data.network-request-input.network-input-parameters.param_length`' >",
777     "comments": "",
778     "outputs": 1,
779     "x": 2292.09130859375,
780     "y": 990.7884349822998,
781     "z": "ed10e8c7.d58f28",
782     "wires": [
783       [
784         "15f15c9c.6120f3"
785       ]
786     ]
787   },
788   {
789     "id": "15f15c9c.6120f3",
790     "type": "block",
791     "name": "block",
792     "xml": "<block>\n",
793     "atomic": "false",
794     "comments": "",
795     "outputs": 1,
796     "x": 2615.6469688415527,
797     "y": 991.7885122299194,
798     "z": "ed10e8c7.d58f28",
799     "wires": [
800       [
801         "1f8bf049.48a41",
802         "24ef27d4.5acd08"
803       ]
804     ]
805   },
806   {
807     "id": "1f8bf049.48a41",
808     "type": "switchNode",
809     "name": "switch access-node-id",
810     "xml": "<switch test=\"`$tmp.network.network-data.network-request-input.network-input-parameters.param[$nidx].name == 'access-node-id'`\">",
811     "comments": "",
812     "outputs": 1,
813     "x": 2794.1570739746094,
814     "y": 975.7989301681519,
815     "z": "ed10e8c7.d58f28",
816     "wires": [
817       [
818         "8ecdc6ef.8a8ce8"
819       ]
820     ]
821   },
822   {
823     "id": "8ecdc6ef.8a8ce8",
824     "type": "outcomeTrue",
825     "name": "true",
826     "xml": "<outcome value='true'>\n",
827     "comments": "",
828     "outputs": 1,
829     "x": 2981.1570739746094,
830     "y": 976.7989301681519,
831     "z": "ed10e8c7.d58f28",
832     "wires": [
833       [
834         "5c66b7eb.d5bf28"
835       ]
836     ]
837   },
838   {
839     "id": "5c66b7eb.d5bf28",
840     "type": "set",
841     "name": "set tmp.found-in-network tmp.ep-available",
842     "xml": "<set>\n<parameter name='tmp.found-in-network' value='true' />\n<parameter name='tmp.ep-available' value='true' />",
843     "comments": "",
844     "x": 3232.157081604004,
845     "y": 976.3988723754883,
846     "z": "ed10e8c7.d58f28",
847     "wires": []
848   },
849   {
850     "id": "24ef27d4.5acd08",
851     "type": "returnSuccess",
852     "name": "return success",
853     "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",
854     "comments": "",
855     "x": 2777.14697265625,
856     "y": 1020.7885293960571,
857     "z": "ed10e8c7.d58f28",
858     "wires": []
859   },
860   {
861     "id": "bc709271.507d8",
862     "type": "switchNode",
863     "name": "switch tmp.ep-available",
864     "xml": "<switch test='`$tmp.ep-available`'>\n",
865     "comments": "",
866     "outputs": 1,
867     "x": 654.3128662109375,
868     "y": 1153.2327852249146,
869     "z": "ed10e8c7.d58f28",
870     "wires": [
871       [
872         "18bdb942.c7be37",
873         "343945c7.6ea6fa"
874       ]
875     ]
876   },
877   {
878     "id": "343945c7.6ea6fa",
879     "type": "outcomeTrue",
880     "name": "true",
881     "xml": "<outcome value='true'>\n",
882     "comments": "",
883     "outputs": 1,
884     "x": 836.9797019958496,
885     "y": 1177.5661935806274,
886     "z": "ed10e8c7.d58f28",
887     "wires": [
888       [
889         "eb3e9e9.a810a6"
890       ]
891     ]
892   },
893   {
894     "id": "18bdb942.c7be37",
895     "type": "outcomeTrue",
896     "name": "false",
897     "xml": "<outcome value='false'>\n",
898     "comments": "",
899     "outputs": 1,
900     "x": 839.8684730529785,
901     "y": 1116.566291809082,
902     "z": "ed10e8c7.d58f28",
903     "wires": [
904       [
905         "33d109a0.0b3696"
906       ]
907     ]
908   },
909   {
910     "id": "33d109a0.0b3696",
911     "type": "block",
912     "name": "block",
913     "xml": "<block>\n",
914     "atomic": "false",
915     "comments": "",
916     "outputs": 1,
917     "x": 976.8685493469238,
918     "y": 1115.4551057815552,
919     "z": "ed10e8c7.d58f28",
920     "wires": [
921       []
922     ]
923   },
924   {
925     "id": "eb3e9e9.a810a6",
926     "type": "block",
927     "name": "block : atomic",
928     "xml": "<block atomic=\"true\">",
929     "atomic": "true",
930     "outputs": 1,
931     "x": 1007.0907897949219,
932     "y": 1175.5661516189575,
933     "z": "ed10e8c7.d58f28",
934     "wires": [
935       [
936         "d5bc9567.22f988"
937       ]
938     ]
939   },
940   {
941     "id": "eba7f62b.bd7668",
942     "type": "comment",
943     "name": "GET connection-attachment-ar to store AR data from mdsal",
944     "info": "",
945     "comments": "",
946     "x": 2192.472946166992,
947     "y": 355.5039691925049,
948     "z": "ed10e8c7.d58f28",
949     "wires": []
950   },
951   {
952     "id": "2d6b93ab.08655c",
953     "type": "comment",
954     "name": "Set source end point",
955     "info": "",
956     "comments": "",
957     "x": 630.9728393554688,
958     "y": 585.2540645599365,
959     "z": "ed10e8c7.d58f28",
960     "wires": []
961   },
962   {
963     "id": "8522b683.befcf8",
964     "type": "set",
965     "name": "set tmp.ar.parent-service-instance-id",
966     "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",
967     "comments": "",
968     "x": 683.9689178466797,
969     "y": 710.0002088546753,
970     "z": "ed10e8c7.d58f28",
971     "wires": []
972   },
973   {
974     "id": "773fbfc3.82918",
975     "type": "success",
976     "name": "success",
977     "xml": "<outcome value='success'>\n",
978     "comments": "",
979     "outputs": 1,
980     "x": 1061.9689140319824,
981     "y": 759.000207901001,
982     "z": "ed10e8c7.d58f28",
983     "wires": [
984       [
985         "e1e0569.afbf9a8"
986       ]
987     ]
988   },
989   {
990     "id": "be2f70a0.4132d",
991     "type": "other",
992     "name": "other",
993     "xml": "<outcome value='Other'>\n",
994     "comments": "",
995     "outputs": 1,
996     "x": 1053.8207168579102,
997     "y": 794.0662927627563,
998     "z": "ed10e8c7.d58f28",
999     "wires": [
1000       [
1001         "82d58d98.da526"
1002       ]
1003     ]
1004   },
1005   {
1006     "id": "82d58d98.da526",
1007     "type": "returnFailure",
1008     "name": "return failure",
1009     "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",
1010     "comments": "",
1011     "x": 1228.9694023132324,
1012     "y": 790.3336429595947,
1013     "z": "ed10e8c7.d58f28",
1014     "wires": []
1015   },
1016   {
1017     "id": "e1e0569.afbf9a8",
1018     "type": "block",
1019     "name": "block",
1020     "xml": "<block>\n",
1021     "atomic": "false",
1022     "comments": "",
1023     "outputs": 1,
1024     "x": 1212.9689140319824,
1025     "y": 757.000207901001,
1026     "z": "ed10e8c7.d58f28",
1027     "wires": [
1028       []
1029     ]
1030   },
1031   {
1032     "id": "62f18656.44cfe8",
1033     "type": "set",
1034     "name": "set tmp.found-in-ar tmp.found-in-network tmp.ep-available to false",
1035     "xml": "<set>\n<parameter name='tmp.found-in-ar' value='false' />\n<parameter name='tmp.found-in-network' value='false' />\n<parameter name='tmp.ep-available' value='false' />",
1036     "comments": "",
1037     "x": 770.9689102172852,
1038     "y": 884.0001821517944,
1039     "z": "ed10e8c7.d58f28",
1040     "wires": []
1041   },
1042   {
1043     "id": "ba6cedb4.1637d",
1044     "type": "comment",
1045     "name": "If other EP exists delete from domain controller",
1046     "info": "",
1047     "comments": "",
1048     "x": 704.9688110351562,
1049     "y": 1077.999997138977,
1050     "z": "ed10e8c7.d58f28",
1051     "wires": []
1052   },
1053   {
1054     "id": "84d93cd2.2a2bf",
1055     "type": "set",
1056     "name": "set controller data",
1057     "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].service-url`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.user' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].user-name`\" />\n<parameter name='prop.sdncRestApi.thirdpartySdnc.password' value=\"`$tmp.aai.esr-thirdparty-sdnc.esr-system-info-list.esr-system-info[0].password`\" />\n",
1058     "comments": "",
1059     "x": 2702.969627380371,
1060     "y": 1368.0005893707275,
1061     "z": "ed10e8c7.d58f28",
1062     "wires": []
1063   },
1064   {
1065     "id": "3c2c4321.6e016c",
1066     "type": "get-resource",
1067     "name": "get-resource esr-thirdparty-sdnc",
1068     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"esr-thirdparty-sdnc\" \n\t\tkey=\"esr-thirdparty-sdnc.thirdparty-sdnc-id = $tmp.thirdparty-sdnc-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.aai.esr-thirdparty-sdnc' local-only='false' >\n\n",
1069     "comments": "",
1070     "outputs": 1,
1071     "x": 2266.469566345215,
1072     "y": 1427.0005893707275,
1073     "z": "ed10e8c7.d58f28",
1074     "wires": [
1075       [
1076         "b9c78202.065c4",
1077         "b1e4c467.b20658",
1078         "7cb01101.04dc1"
1079       ]
1080     ]
1081   },
1082   {
1083     "id": "b9c78202.065c4",
1084     "type": "success",
1085     "name": "success",
1086     "xml": "<outcome value='success'>\n",
1087     "comments": "",
1088     "outputs": 1,
1089     "x": 2505.469566345215,
1090     "y": 1380.0005893707275,
1091     "z": "ed10e8c7.d58f28",
1092     "wires": [
1093       [
1094         "84d93cd2.2a2bf"
1095       ]
1096     ]
1097   },
1098   {
1099     "id": "b1e4c467.b20658",
1100     "type": "not-found",
1101     "name": "not-found",
1102     "xml": "<outcome value='not-found'>\n",
1103     "comments": "",
1104     "outputs": 1,
1105     "x": 2508.96053314209,
1106     "y": 1427.5746250152588,
1107     "z": "ed10e8c7.d58f28",
1108     "wires": [
1109       [
1110         "912e3892.c38738"
1111       ]
1112     ]
1113   },
1114   {
1115     "id": "7cb01101.04dc1",
1116     "type": "other",
1117     "name": "other",
1118     "xml": "<outcome value='Other'>\n",
1119     "comments": "",
1120     "outputs": 1,
1121     "x": 2504.29354095459,
1122     "y": 1468.90793800354,
1123     "z": "ed10e8c7.d58f28",
1124     "wires": [
1125       [
1126         "ba048e79.e103b"
1127       ]
1128     ]
1129   },
1130   {
1131     "id": "912e3892.c38738",
1132     "type": "returnFailure",
1133     "name": "return failure",
1134     "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=\"`'An error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
1135     "comments": "",
1136     "x": 2685.5319442749023,
1137     "y": 1415.8603610992432,
1138     "z": "ed10e8c7.d58f28",
1139     "wires": []
1140   },
1141   {
1142     "id": "ba048e79.e103b",
1143     "type": "returnFailure",
1144     "name": "return failure",
1145     "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=\"`'Unexpected error occurred while querying esr-thirdparty-sdnc from AnAI with thirdparty-sdnc-id = ' + $tmp.thirdparty-sdnc-id`\" />\n\n",
1146     "comments": "",
1147     "x": 2692.0660972595215,
1148     "y": 1464.3471307754517,
1149     "z": "ed10e8c7.d58f28",
1150     "wires": []
1151   },
1152   {
1153     "id": "ac6b10fc.018ca",
1154     "type": "get-resource",
1155     "name": "get-resource pnf",
1156     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"pnf\" \n\t\tkey=\"pnf.pnf-name = $tmp.node-id \n\t\tAND depth = '0'\"\n        pfx='tmp.aai.pnf' local-only='false' >\n\n\n\n",
1157     "comments": "",
1158     "outputs": 1,
1159     "x": 2215.9697341918945,
1160     "y": 1319.000418663025,
1161     "z": "ed10e8c7.d58f28",
1162     "wires": [
1163       [
1164         "7d25011f.79dd3",
1165         "abbaec43.33e1c",
1166         "9bfad8e.2252b28"
1167       ]
1168     ]
1169   },
1170   {
1171     "id": "7d25011f.79dd3",
1172     "type": "success",
1173     "name": "success",
1174     "xml": "<outcome value='success'>\n",
1175     "comments": "",
1176     "outputs": 1,
1177     "x": 2403.9697494506836,
1178     "y": 1265.0004110336304,
1179     "z": "ed10e8c7.d58f28",
1180     "wires": [
1181       [
1182         "addfa25b.c3718"
1183       ]
1184     ]
1185   },
1186   {
1187     "id": "abbaec43.33e1c",
1188     "type": "not-found",
1189     "name": "not-found",
1190     "xml": "<outcome value='not-found'>\n",
1191     "comments": "",
1192     "outputs": 1,
1193     "x": 2409.460796356201,
1194     "y": 1307.5743074417114,
1195     "z": "ed10e8c7.d58f28",
1196     "wires": [
1197       [
1198         "6b2117db.4230f8"
1199       ]
1200     ]
1201   },
1202   {
1203     "id": "9bfad8e.2252b28",
1204     "type": "other",
1205     "name": "other",
1206     "xml": "<outcome value='Other'>\n",
1207     "comments": "",
1208     "outputs": 1,
1209     "x": 2395.793804168701,
1210     "y": 1345.9076433181763,
1211     "z": "ed10e8c7.d58f28",
1212     "wires": [
1213       [
1214         "c5a2b6cb.8de6a8"
1215       ]
1216     ]
1217   },
1218   {
1219     "id": "6b2117db.4230f8",
1220     "type": "returnFailure",
1221     "name": "return failure",
1222     "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=\"`'An error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
1223     "comments": "",
1224     "x": 2563.032096862793,
1225     "y": 1297.8601140975952,
1226     "z": "ed10e8c7.d58f28",
1227     "wires": []
1228   },
1229   {
1230     "id": "c5a2b6cb.8de6a8",
1231     "type": "returnFailure",
1232     "name": "return failure",
1233     "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=\"`'Unexpected error occurred while querying pnf from AnAI with pnf-name = ' + $prop.connection-attachement.access-node-id`\" />\n\n",
1234     "comments": "",
1235     "x": 2559.566276550293,
1236     "y": 1337.3469333648682,
1237     "z": "ed10e8c7.d58f28",
1238     "wires": []
1239   },
1240   {
1241     "id": "addfa25b.c3718",
1242     "type": "set",
1243     "name": "set tmp.thirdparty-sdnc-id",
1244     "xml": "<set>\n<parameter name='tmp.thirdparty-sdnc-id' value=\"`$tmp.aai.pnf.relationship-list.relationship[0].relationship-data[0].relationship-value`\" />\n",
1245     "comments": "",
1246     "x": 2603.9697647094727,
1247     "y": 1260.0004110336304,
1248     "z": "ed10e8c7.d58f28",
1249     "wires": []
1250   },
1251   {
1252     "id": "44ef1c3d.800ab4",
1253     "type": "comment",
1254     "name": "get domain controller information",
1255     "info": "",
1256     "comments": "",
1257     "x": 2259.4736404418945,
1258     "y": 1288.0043859481812,
1259     "z": "ed10e8c7.d58f28",
1260     "wires": []
1261   },
1262   {
1263     "id": "7164fdca.4a0d84",
1264     "type": "execute",
1265     "name": "execute RestApiCallNode Delete ethernet Service",
1266     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/restconf/data/ietf-eth-tran-service:etht-svc/etht-svc-instances=' + $tmp.actual.vpn-name`\" />\n<parameter name=\"restapiUser\" value=\"`$prop.sdncRestApi.thirdpartySdnc.user`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.sdncRestApi.thirdpartySdnc.password`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"delete\"/>\n<parameter name=\"responsePrefix\" value=\"vpn-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n<parameter name='customHttpHeaders' value=\"`'X-ACCESS-TOKEN=' + $prop.sdncRestApi.token_id`\" />",
1267     "comments": "",
1268     "outputs": 1,
1269     "x": 2308.969596862793,
1270     "y": 1681.0005912780762,
1271     "z": "ed10e8c7.d58f28",
1272     "wires": [
1273       [
1274         "2b22380a.f1bc58",
1275         "2dc816f1.66c67a"
1276       ]
1277     ]
1278   },
1279   {
1280     "id": "2b22380a.f1bc58",
1281     "type": "success",
1282     "name": "success",
1283     "xml": "<outcome value='success'>\n",
1284     "comments": "",
1285     "outputs": 1,
1286     "x": 2595.9695358276367,
1287     "y": 1704.0005912780762,
1288     "z": "ed10e8c7.d58f28",
1289     "wires": [
1290       [
1291         "2a372b2.85f3bd4"
1292       ]
1293     ]
1294   },
1295   {
1296     "id": "2a372b2.85f3bd4",
1297     "type": "block",
1298     "name": "block : atomic",
1299     "xml": "<block atomic=\"true\">",
1300     "atomic": "true",
1301     "comments": "",
1302     "outputs": 1,
1303     "x": 2765.9694747924805,
1304     "y": 1707.0005912780762,
1305     "z": "ed10e8c7.d58f28",
1306     "wires": [
1307       []
1308     ]
1309   },
1310   {
1311     "id": "9ab48a6d.252ca8",
1312     "type": "returnFailure",
1313     "name": "return failure",
1314     "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 executing Create vpn rest api\" />\n",
1315     "comments": "",
1316     "x": 2765.969596862793,
1317     "y": 1663.0005912780762,
1318     "z": "ed10e8c7.d58f28",
1319     "wires": []
1320   },
1321   {
1322     "id": "2dc816f1.66c67a",
1323     "type": "failure",
1324     "name": "failure",
1325     "xml": "<outcome value='failure'>\n",
1326     "comments": "",
1327     "outputs": 1,
1328     "x": 2598.9694747924805,
1329     "y": 1663.0005912780762,
1330     "z": "ed10e8c7.d58f28",
1331     "wires": [
1332       [
1333         "9ab48a6d.252ca8"
1334       ]
1335     ]
1336   },
1337   {
1338     "id": "b8fd2a49.d0b368",
1339     "type": "failure",
1340     "name": "failure",
1341     "xml": "<outcome value='failure'>\n",
1342     "comments": "",
1343     "outputs": 1,
1344     "x": 933.7307472229004,
1345     "y": 1677.9527901411057,
1346     "z": "ed10e8c7.d58f28",
1347     "wires": [
1348       [
1349         "4d3bfe83.8ac38"
1350       ]
1351     ]
1352   },
1353   {
1354     "id": "4d3bfe83.8ac38",
1355     "type": "returnFailure",
1356     "name": "return failure",
1357     "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",
1358     "comments": "",
1359     "x": 1100.2546272277832,
1360     "y": 1689.5718611478806,
1361     "z": "ed10e8c7.d58f28",
1362     "wires": []
1363   },
1364   {
1365     "id": "59f13b89.e4e7d4",
1366     "type": "failure",
1367     "name": "not-found",
1368     "xml": "<outcome value='not-found'>\n",
1369     "comments": "",
1370     "outputs": 1,
1371     "x": 940.8260345458984,
1372     "y": 1710.7147578001022,
1373     "z": "ed10e8c7.d58f28",
1374     "wires": [
1375       [
1376         "4d3bfe83.8ac38"
1377       ]
1378     ]
1379   },
1380   {
1381     "id": "65a9cdb6.115924",
1382     "type": "comment",
1383     "name": "Save Resource to AAI",
1384     "info": "",
1385     "comments": "",
1386     "x": 652.7784614562988,
1387     "y": 1660.3021783828735,
1388     "z": "ed10e8c7.d58f28",
1389     "wires": []
1390   },
1391   {
1392     "id": "a3a48876.1d8a18",
1393     "type": "set",
1394     "name": "set output to api handler",
1395     "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",
1396     "comments": "",
1397     "x": 667.5461578369141,
1398     "y": 1581.8276596069336,
1399     "z": "ed10e8c7.d58f28",
1400     "wires": []
1401   },
1402   {
1403     "id": "7ccf367e.a869f8",
1404     "type": "returnSuccess",
1405     "name": "return success",
1406     "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",
1407     "comments": "",
1408     "x": 635.9592399597168,
1409     "y": 1742.4434118270874,
1410     "z": "ed10e8c7.d58f28",
1411     "wires": []
1412   },
1413   {
1414     "id": "d3793c0a.e76dd",
1415     "type": "execute",
1416     "name": "execute RestApiCallNode - PUT AR by id",
1417     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\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='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
1418     "comments": "",
1419     "outputs": 1,
1420     "x": 717.2782592773438,
1421     "y": 1489.468433380127,
1422     "z": "ed10e8c7.d58f28",
1423     "wires": [
1424       [
1425         "c94958cd.0f7e08",
1426         "5e263814.55f358",
1427         "1ecab8f8.94f047"
1428       ]
1429     ]
1430   },
1431   {
1432     "id": "c94958cd.0f7e08",
1433     "type": "not-found",
1434     "name": "not-found",
1435     "xml": "<outcome value='not-found'>\n",
1436     "comments": "",
1437     "outputs": 1,
1438     "x": 985.9196357727051,
1439     "y": 1540.799845121801,
1440     "z": "ed10e8c7.d58f28",
1441     "wires": [
1442       [
1443         "916b12ec.48653"
1444       ]
1445     ]
1446   },
1447   {
1448     "id": "5e263814.55f358",
1449     "type": "failure",
1450     "name": "failure",
1451     "xml": "<outcome value='failure'>\n",
1452     "comments": "",
1453     "outputs": 1,
1454     "x": 976.9196853637695,
1455     "y": 1509.2998708710074,
1456     "z": "ed10e8c7.d58f28",
1457     "wires": [
1458       [
1459         "916b12ec.48653"
1460       ]
1461     ]
1462   },
1463   {
1464     "id": "1ecab8f8.94f047",
1465     "type": "success",
1466     "name": "success",
1467     "xml": "<outcome value='success'>\n",
1468     "comments": "",
1469     "outputs": 1,
1470     "x": 980.6697235107422,
1471     "y": 1479.6569757461548,
1472     "z": "ed10e8c7.d58f28",
1473     "wires": [
1474       [
1475         "9a61150.9613ce8"
1476       ]
1477     ]
1478   },
1479   {
1480     "id": "916b12ec.48653",
1481     "type": "returnFailure",
1482     "name": "return failure",
1483     "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",
1484     "comments": "",
1485     "x": 1146.6697235107422,
1486     "y": 1510.0498947128654,
1487     "z": "ed10e8c7.d58f28",
1488     "wires": []
1489   },
1490   {
1491     "id": "9a61150.9613ce8",
1492     "type": "block",
1493     "name": "block",
1494     "xml": "<block>\n",
1495     "atomic": "false",
1496     "comments": "",
1497     "outputs": 1,
1498     "x": 1122.3256912231445,
1499     "y": 1475.849144935608,
1500     "z": "ed10e8c7.d58f28",
1501     "wires": [
1502       []
1503     ]
1504   },
1505   {
1506     "id": "683cb14.3ce605",
1507     "type": "set",
1508     "name": "set ar-data",
1509     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-status.action' value=\"`$connection-attachment-topology-operation-input.request-information.request-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-name' value=\"connection-attachment-topology-operation\" />\n<parameter name='connection-attachment-ar.allotted-resource-status.rpc-action' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$connection-attachment-topology-operation-input.request-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$connection-attachment-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$connection-attachment-topology-operation-input.service-information.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.` \" />",
1510     "comments": "",
1511     "x": 617.4918785095215,
1512     "y": 1339.8493564128876,
1513     "z": "ed10e8c7.d58f28",
1514     "wires": []
1515   },
1516   {
1517     "id": "802f8ef7.b6731",
1518     "type": "execute",
1519     "name": "execute getTime",
1520     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1521     "comments": "",
1522     "outputs": 1,
1523     "x": 634.7777214050293,
1524     "y": 1412.4689540863037,
1525     "z": "ed10e8c7.d58f28",
1526     "wires": [
1527       []
1528     ]
1529   },
1530   {
1531     "id": "5c1eba3c.5a3914",
1532     "type": "set",
1533     "name": "set allotted-resource-oper-status",
1534     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingDelete' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$connection-attachment-topology-operation-input.request-information.request-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
1535     "comments": "",
1536     "x": 689.764778137207,
1537     "y": 1450.4200916290283,
1538     "z": "ed10e8c7.d58f28",
1539     "wires": []
1540   },
1541   {
1542     "id": "c2e56bca.b33d78",
1543     "type": "set",
1544     "name": "set model-data",
1545     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.onap-model-information.' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.` \" />",
1546     "comments": "",
1547     "x": 631.3334197998047,
1548     "y": 1379.024006843567,
1549     "z": "ed10e8c7.d58f28",
1550     "wires": []
1551   },
1552   {
1553     "id": "ae41f871.b43fa8",
1554     "type": "comment",
1555     "name": "Prepare data for allotted-resource addition to MDSAL",
1556     "info": "This will add to allotted-resource which is present inside service.",
1557     "comments": "",
1558     "x": 744.6668815612793,
1559     "y": 1300.0239589214325,
1560     "z": "ed10e8c7.d58f28",
1561     "wires": []
1562   },
1563   {
1564     "id": "e752535c.aeb57",
1565     "type": "comment",
1566     "name": "Add to allotted-resources in mdsal",
1567     "info": "",
1568     "comments": "",
1569     "x": 686.2467079162598,
1570     "y": 1267.4372606277466,
1571     "z": "ed10e8c7.d58f28",
1572     "wires": []
1573   },
1574   {
1575     "id": "2c211a2d.e90676",
1576     "type": "update",
1577     "name": "update AAI allotted-resource",
1578     "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"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        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid`\" />\n\t<parameter name=\"operational-status\" value=\"PendingDelete\" />\n",
1579     "comments": "",
1580     "outputs": 1,
1581     "x": 679.2227401733398,
1582     "y": 1697.7543210983276,
1583     "z": "ed10e8c7.d58f28",
1584     "wires": [
1585       [
1586         "b8fd2a49.d0b368",
1587         "59f13b89.e4e7d4"
1588       ]
1589     ]
1590   },
1591   {
1592     "id": "d5bc9567.22f988",
1593     "type": "get-resource",
1594     "name": "get-resource connectivity",
1595     "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"connectivity\" \n\t\tkey=\"connectivity.connectivity-id = $mdsal-psd.service-data.networks.network[0].network-id AND \n\t\t     depth = '1'\"\n        pfx='tmp.connectivity' local-only='false' >\n",
1596     "comments": "",
1597     "outputs": 1,
1598     "x": 1213.0005645751953,
1599     "y": 1175.5044269561768,
1600     "z": "ed10e8c7.d58f28",
1601     "wires": [
1602       [
1603         "7024d4cd.1a62bc",
1604         "cf432033.112d9"
1605       ]
1606     ]
1607   },
1608   {
1609     "id": "41a48915.ce4758",
1610     "type": "block",
1611     "name": "block : atomic",
1612     "xml": "<block atomic=\"true\">",
1613     "atomic": "true",
1614     "outputs": 1,
1615     "x": 1986.1178741455078,
1616     "y": 1372.3445596694946,
1617     "z": "ed10e8c7.d58f28",
1618     "wires": [
1619       [
1620         "ae412232.e0411",
1621         "3c342d96.9776c2",
1622         "ac6b10fc.018ca",
1623         "3c2c4321.6e016c",
1624         "7164fdca.4a0d84",
1625         "dda1ddc2.84784",
1626         "f1f4e6ef.143a68"
1627       ]
1628     ]
1629   },
1630   {
1631     "id": "d567023b.2d9f",
1632     "type": "outcome",
1633     "name": "vpn-binding",
1634     "xml": "<outcome value='vpn-binding'>\n",
1635     "comments": "",
1636     "outputs": 1,
1637     "x": 1812.286392211914,
1638     "y": 1374.8260831832886,
1639     "z": "ed10e8c7.d58f28",
1640     "wires": [
1641       [
1642         "41a48915.ce4758"
1643       ]
1644     ]
1645   },
1646   {
1647     "id": "de835816.465b48",
1648     "type": "for",
1649     "name": "for each relationship",
1650     "xml": "<for silentFailure='true' index='vidx' start='0' end='`$tmp.connectivity.relationship-list.relationship_length`' >\n",
1651     "comments": "",
1652     "outputs": 1,
1653     "x": 1434.0003356933594,
1654     "y": 1373.0043096542358,
1655     "z": "ed10e8c7.d58f28",
1656     "wires": [
1657       [
1658         "a2ccacd2.b0dbc"
1659       ]
1660     ]
1661   },
1662   {
1663     "id": "a2ccacd2.b0dbc",
1664     "type": "switchNode",
1665     "name": "switch related-to",
1666     "xml": "<switch test='`$tmp.connectivity.relationship-list.relationship[$vidx].related-to`'>\n",
1667     "comments": "",
1668     "outputs": 1,
1669     "x": 1646.0003471374512,
1670     "y": 1374.0043096542358,
1671     "z": "ed10e8c7.d58f28",
1672     "wires": [
1673       [
1674         "d567023b.2d9f"
1675       ]
1676     ]
1677   },
1678   {
1679     "id": "3c342d96.9776c2",
1680     "type": "set",
1681     "name": "set tmp.vpn-name",
1682     "xml": "<set>\n<parameter name='tmp.vpn-name' value=\"`$tmp.connectivity.relationship-list.relationship[$vidx].relationship-data[0].relationship-value` \" />\n",
1683     "comments": "",
1684     "x": 2219.0005416870117,
1685     "y": 1086.004626274109,
1686     "z": "ed10e8c7.d58f28",
1687     "wires": []
1688   },
1689   {
1690     "id": "ae412232.e0411",
1691     "type": "execute",
1692     "name": "split vpnName to find nodeId",
1693     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$tmp.vpn-name`'/>\n<parameter name=\"regex\" value=\"-\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"route1\"/>\n",
1694     "comments": "",
1695     "outputs": 1,
1696     "x": 2255.0004959106445,
1697     "y": 1187.0039930343628,
1698     "z": "ed10e8c7.d58f28",
1699     "wires": [
1700       [
1701         "ae670977.becbb8",
1702         "60767ce2.3ab0a4"
1703       ]
1704     ]
1705   },
1706   {
1707     "id": "60767ce2.3ab0a4",
1708     "type": "failure",
1709     "name": "success",
1710     "xml": "<outcome value='success'>\n",
1711     "comments": "",
1712     "outputs": 1,
1713     "x": 2456.000686645508,
1714     "y": 1164.0039854049683,
1715     "z": "ed10e8c7.d58f28",
1716     "wires": [
1717       [
1718         "bf10a60c.fdea98"
1719       ]
1720     ]
1721   },
1722   {
1723     "id": "bf10a60c.fdea98",
1724     "type": "set",
1725     "name": "set tmp.node-id",
1726     "xml": "<set>\n<parameter name='tmp.node-id' value='`$route1[0]`' />\n<parameter name='tmp.actual.vpn-name' value='`$route1[1]`' />\n",
1727     "comments": "",
1728     "x": 2609.000846862793,
1729     "y": 1162.0039863586426,
1730     "z": "ed10e8c7.d58f28",
1731     "wires": []
1732   },
1733   {
1734     "id": "a5afcc72.d877b",
1735     "type": "returnFailure",
1736     "name": "return failure",
1737     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while splitting sna1_route\" />\n",
1738     "comments": "",
1739     "x": 2593.001012802124,
1740     "y": 1211.0039882659912,
1741     "z": "ed10e8c7.d58f28",
1742     "wires": []
1743   },
1744   {
1745     "id": "ae670977.becbb8",
1746     "type": "failure",
1747     "name": "failure",
1748     "xml": "<outcome value='failure'>\n",
1749     "comments": "",
1750     "outputs": 1,
1751     "x": 2453.00066947937,
1752     "y": 1212.0039901733398,
1753     "z": "ed10e8c7.d58f28",
1754     "wires": [
1755       [
1756         "a5afcc72.d877b"
1757       ]
1758     ]
1759   },
1760   {
1761     "id": "7024d4cd.1a62bc",
1762     "type": "success",
1763     "name": "success",
1764     "xml": "<outcome value='success'>\n",
1765     "comments": "",
1766     "outputs": 1,
1767     "x": 1394.0001640319824,
1768     "y": 1210.0000715255737,
1769     "z": "ed10e8c7.d58f28",
1770     "wires": [
1771       [
1772         "ea43f44.e748208"
1773       ]
1774     ]
1775   },
1776   {
1777     "id": "cf432033.112d9",
1778     "type": "other",
1779     "name": "other",
1780     "xml": "<outcome value='Other'>\n",
1781     "comments": "",
1782     "outputs": 1,
1783     "x": 1396.851894378662,
1784     "y": 1137.0663166046143,
1785     "z": "ed10e8c7.d58f28",
1786     "wires": [
1787       [
1788         "801260ca.47a9"
1789       ]
1790     ]
1791   },
1792   {
1793     "id": "801260ca.47a9",
1794     "type": "returnFailure",
1795     "name": "return failure",
1796     "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: Connectivity resource not found\" />\n    \n",
1797     "comments": "",
1798     "x": 1539.0006637573242,
1799     "y": 1137.3337268829346,
1800     "z": "ed10e8c7.d58f28",
1801     "wires": []
1802   },
1803   {
1804     "id": "ea43f44.e748208",
1805     "type": "block",
1806     "name": "block",
1807     "xml": "<block>\n",
1808     "atomic": "false",
1809     "comments": "",
1810     "outputs": 1,
1811     "x": 1396.0001754760742,
1812     "y": 1288.0002374649048,
1813     "z": "ed10e8c7.d58f28",
1814     "wires": [
1815       [
1816         "de835816.465b48"
1817       ]
1818     ]
1819   },
1820   {
1821     "id": "693977cc.87d158",
1822     "type": "execute",
1823     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1824     "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='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
1825     "comments": "",
1826     "outputs": 1,
1827     "x": 832.3339538574219,
1828     "y": 536.4999494552612,
1829     "z": "ed10e8c7.d58f28",
1830     "wires": [
1831       [
1832         "e963cad3.e8d6c8",
1833         "489ff5d2.164b7c"
1834       ]
1835     ]
1836   },
1837   {
1838     "id": "c0b8662.2083398",
1839     "type": "execute",
1840     "name": "get parent-service-data tmp.ar-url-psd",
1841     "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`\"/>\n",
1842     "comments": "",
1843     "outputs": 1,
1844     "x": 686.0001983642578,
1845     "y": 745.0002107620239,
1846     "z": "ed10e8c7.d58f28",
1847     "wires": [
1848       []
1849     ]
1850   },
1851   {
1852     "id": "fada7ab3.d1d4e8",
1853     "type": "execute",
1854     "name": "execute RestApiCallNode - get-resource parent service data",
1855     "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",
1856     "comments": "",
1857     "outputs": 1,
1858     "x": 753.0001602172852,
1859     "y": 780.0002946853638,
1860     "z": "ed10e8c7.d58f28",
1861     "wires": [
1862       [
1863         "773fbfc3.82918",
1864         "be2f70a0.4132d"
1865       ]
1866     ]
1867   },
1868   {
1869     "id": "cfef8c40.7d401",
1870     "type": "switchNode",
1871     "name": "switch mdsal-psd.service-data.provided-allotted-resources_length",
1872     "xml": "<switch test='`$mdsal-psd.service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
1873     "comments": "",
1874     "outputs": 1,
1875     "x": 769.1842803955078,
1876     "y": 954.7181224822998,
1877     "z": "ed10e8c7.d58f28",
1878     "wires": [
1879       [
1880         "cf2de8b0.5bcd28",
1881         "103b0ff7.ad1fb",
1882         "4057b675.85b588"
1883       ]
1884     ]
1885   },
1886   {
1887     "id": "dda1ddc2.84784",
1888     "type": "update",
1889     "name": "delete AAI vpn-binding",
1890     "xml": "<delete plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='vpn-binding' \n      key='vpn-binding.vpn-id = $tmp.vpn-name' >",
1891     "comments": "",
1892     "outputs": 1,
1893     "x": 2239.999954223633,
1894     "y": 1784.0001649856567,
1895     "z": "ed10e8c7.d58f28",
1896     "wires": [
1897       [
1898         "c726da18.1fa408",
1899         "b99e2363.4f50b"
1900       ]
1901     ]
1902   },
1903   {
1904     "id": "c726da18.1fa408",
1905     "type": "failure",
1906     "name": "failure",
1907     "xml": "<outcome value='failure'>\n",
1908     "comments": "",
1909     "outputs": 1,
1910     "x": 2494.5079612731934,
1911     "y": 1764.1986340284348,
1912     "z": "ed10e8c7.d58f28",
1913     "wires": [
1914       [
1915         "53701c4b.a688d4"
1916       ]
1917     ]
1918   },
1919   {
1920     "id": "b99e2363.4f50b",
1921     "type": "failure",
1922     "name": "not-found",
1923     "xml": "<outcome value='not-found'>\n",
1924     "comments": "",
1925     "outputs": 1,
1926     "x": 2501.6032485961914,
1927     "y": 1796.9606016874313,
1928     "z": "ed10e8c7.d58f28",
1929     "wires": [
1930       [
1931         "53701c4b.a688d4"
1932       ]
1933     ]
1934   },
1935   {
1936     "id": "53701c4b.a688d4",
1937     "type": "returnFailure",
1938     "name": "return failure",
1939     "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",
1940     "comments": "",
1941     "x": 2661.031841278076,
1942     "y": 1775.8177050352097,
1943     "z": "ed10e8c7.d58f28",
1944     "wires": []
1945   },
1946   {
1947     "id": "f1f4e6ef.143a68",
1948     "type": "execute",
1949     "name": "execute RestApiCallNode Get token",
1950     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/actokentemplate.json'`\" />\n<parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/controller/v2/tokens'`\" />\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"post\"/>\n<parameter name=\"responsePrefix\" value=\"token-result\"/>\n<parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n<parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n<parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n<parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
1951     "comments": "",
1952     "outputs": 1,
1953     "x": 2279.7541580200195,
1954     "y": 1564.254002571106,
1955     "z": "ed10e8c7.d58f28",
1956     "wires": [
1957       [
1958         "f8436b41.519d68",
1959         "9d9f79f.4a7c888"
1960       ]
1961     ]
1962   },
1963   {
1964     "id": "f8436b41.519d68",
1965     "type": "success",
1966     "name": "success",
1967     "xml": "<outcome value='success'>\n",
1968     "comments": "",
1969     "outputs": 1,
1970     "x": 2514.7541580200195,
1971     "y": 1542.254002571106,
1972     "z": "ed10e8c7.d58f28",
1973     "wires": [
1974       [
1975         "1076a472.b53e4c"
1976       ]
1977     ]
1978   },
1979   {
1980     "id": "9d9f79f.4a7c888",
1981     "type": "failure",
1982     "name": "failure",
1983     "xml": "<outcome value='failure'>\n",
1984     "comments": "",
1985     "outputs": 1,
1986     "x": 2507.0041580200195,
1987     "y": 1595.8968858718872,
1988     "z": "ed10e8c7.d58f28",
1989     "wires": [
1990       [
1991         "6534e8a7.2122d8"
1992       ]
1993     ]
1994   },
1995   {
1996     "id": "6534e8a7.2122d8",
1997     "type": "returnFailure",
1998     "name": "return failure",
1999     "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 executing get token rest api\" />\n",
2000     "comments": "",
2001     "x": 2659.7541580200195,
2002     "y": 1595.6469469070435,
2003     "z": "ed10e8c7.d58f28",
2004     "wires": []
2005   },
2006   {
2007     "id": "1076a472.b53e4c",
2008     "type": "set",
2009     "name": "set token-id",
2010     "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.data.token_id`' />\n",
2011     "comments": "",
2012     "x": 2668.7541580200195,
2013     "y": 1543.254002571106,
2014     "z": "ed10e8c7.d58f28",
2015     "wires": []
2016   }
2017 ]