SDWAN flow based end-end test and issue fix
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json
1 [
2   {
3     "id": "d0edaee0.371d2",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 130.00390625,
8     "y": 68.99999856948853,
9     "z": "28b033ee.a901cc",
10     "wires": [
11       [
12         "ccac73a.016209"
13       ]
14     ]
15   },
16   {
17     "id": "ccac73a.016209",
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": 313.00391006469727,
26     "y": 143.00001668930054,
27     "z": "28b033ee.a901cc",
28     "wires": [
29       [
30         "20c8ba03.7fc266"
31       ]
32     ]
33   },
34   {
35     "id": "20c8ba03.7fc266",
36     "type": "method",
37     "name": "sdwan-attachment-topology-operation-create",
38     "xml": "<method rpc='sdwan-attachment-topology-operation-create' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 301.0040283203125,
42     "y": 230.99999952316284,
43     "z": "28b033ee.a901cc",
44     "wires": [
45       [
46         "7fb8a0a8.cc16e"
47       ]
48     ]
49   },
50   {
51     "id": "7fb8a0a8.cc16e",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 221.00395965576172,
59     "y": 980.0002474784851,
60     "z": "28b033ee.a901cc",
61     "wires": [
62       [
63         "2437dbcf.331264",
64         "730eea74.2853a4",
65         "3eb4cc5.e84ab34",
66         "98a0f1ed.ad821",
67         "48d3a6f4.7a9f68",
68         "5e870da5.d4b9c4",
69         "f395bfa7.29021",
70         "a35c1852.b6d228",
71         "128728fe.ad5877",
72         "7f796e7c.de4f4",
73         "52f115fe.31e7bc",
74         "6a649bce.b1cf84",
75         "549597d0.2434c8",
76         "b67f723e.a2fdd",
77         "e622a70a.fb3f98",
78         "3c5561ef.3b198e",
79         "34b5882f.c7cb48",
80         "273cbd63.ba5da2",
81         "7cadc884.11c378",
82         "f028e514.462408",
83         "2fe2b50e.b3feea",
84         "b0371fd5.a7b76",
85         "fdbceac6.217498"
86       ]
87     ]
88   },
89   {
90     "id": "ce81891c.9bbbd8",
91     "type": "comment",
92     "name": "Set allotted resource id if not sent by SO",
93     "info": "",
94     "comments": "",
95     "x": 705.0806579589844,
96     "y": 140.43391847610474,
97     "z": "28b033ee.a901cc",
98     "wires": []
99   },
100   {
101     "id": "2437dbcf.331264",
102     "type": "switchNode",
103     "name": "switch allotted-resource-id",
104     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
105     "comments": "",
106     "outputs": 1,
107     "x": 651.0039367675781,
108     "y": 195.9999918937683,
109     "z": "28b033ee.a901cc",
110     "wires": [
111       [
112         "ae4415d.9e44fe8",
113         "c8d7b3ce.5e5a2"
114       ]
115     ]
116   },
117   {
118     "id": "ae4415d.9e44fe8",
119     "type": "outcome",
120     "name": "NULL",
121     "xml": "<outcome value=''>",
122     "comments": "",
123     "outputs": 1,
124     "x": 849.0040245056152,
125     "y": 165.9999804496765,
126     "z": "28b033ee.a901cc",
127     "wires": [
128       [
129         "349de4b3.2e578c"
130       ]
131     ]
132   },
133   {
134     "id": "c8d7b3ce.5e5a2",
135     "type": "other",
136     "name": "other",
137     "xml": "<outcome value='Other'>\n",
138     "comments": "",
139     "outputs": 1,
140     "x": 848.0039329528809,
141     "y": 202.999990940094,
142     "z": "28b033ee.a901cc",
143     "wires": [
144       [
145         "106c46a5.0a2af9"
146       ]
147     ]
148   },
149   {
150     "id": "106c46a5.0a2af9",
151     "type": "set",
152     "name": "set tmp.ar.allotted-resource-id",
153     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
154     "comments": "",
155     "x": 1046.003921508789,
156     "y": 200.00001001358032,
157     "z": "28b033ee.a901cc",
158     "wires": []
159   },
160   {
161     "id": "730eea74.2853a4",
162     "type": "set",
163     "name": "set tmp.ar.self-link",
164     "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",
165     "comments": "",
166     "x": 619.0038604736328,
167     "y": 417.00009870529175,
168     "z": "28b033ee.a901cc",
169     "wires": []
170   },
171   {
172     "id": "3eb4cc5.e84ab34",
173     "type": "execute",
174     "name": "execute Properties",
175     "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",
176     "comments": "",
177     "outputs": 1,
178     "x": 619.2657775878906,
179     "y": 498.6667799949646,
180     "z": "28b033ee.a901cc",
181     "wires": [
182       []
183     ]
184   },
185   {
186     "id": "98a0f1ed.ad821",
187     "type": "execute",
188     "name": "generate allotted-resource tmp.ar-url",
189     "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",
190     "comments": "",
191     "outputs": 1,
192     "x": 672.2658386230469,
193     "y": 585.6666979789734,
194     "z": "28b033ee.a901cc",
195     "wires": [
196       []
197     ]
198   },
199   {
200     "id": "349de4b3.2e578c",
201     "type": "execute",
202     "name": "execute tmp.ar.allotted-resource-id",
203     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
204     "comments": "",
205     "outputs": 1,
206     "x": 1064.0040016174316,
207     "y": 166.9999861717224,
208     "z": "28b033ee.a901cc",
209     "wires": [
210       [
211         "5d37f876.0cc698"
212       ]
213     ]
214   },
215   {
216     "id": "5d37f876.0cc698",
217     "type": "failure",
218     "name": "failure",
219     "xml": "<outcome value='failure'>\n",
220     "comments": "",
221     "outputs": 1,
222     "x": 1282.0040435791016,
223     "y": 166.9999499320984,
224     "z": "28b033ee.a901cc",
225     "wires": [
226       [
227         "b5e2a2dc.0d71c"
228       ]
229     ]
230   },
231   {
232     "id": "b5e2a2dc.0d71c",
233     "type": "returnFailure",
234     "name": "return failure",
235     "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
236     "comments": "",
237     "x": 1448.0039978027344,
238     "y": 166.99996423721313,
239     "z": "28b033ee.a901cc",
240     "wires": []
241   },
242   {
243     "id": "8f7a89d.e442878",
244     "type": "success",
245     "name": "success",
246     "xml": "<outcome value='success'>\n",
247     "comments": "",
248     "outputs": 1,
249     "x": 1178.0041370391846,
250     "y": 657.7778706550598,
251     "z": "28b033ee.a901cc",
252     "wires": [
253       [
254         "b23dd04a.37b72"
255       ]
256     ]
257   },
258   {
259     "id": "7072a3ba.59cbcc",
260     "type": "returnFailure",
261     "name": "return failure",
262     "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: Existing connection attachment allotted resource\" />\n    \n",
263     "comments": "",
264     "x": 1911.5225162506104,
265     "y": 658.8439421653748,
266     "z": "28b033ee.a901cc",
267     "wires": []
268   },
269   {
270     "id": "3b5bc99a.d557b6",
271     "type": "comment",
272     "name": "Check for non existence of allotted resource",
273     "info": "",
274     "comments": "",
275     "x": 1034.0040588378906,
276     "y": 591.777937412262,
277     "z": "28b033ee.a901cc",
278     "wires": []
279   },
280   {
281     "id": "340e57cb.5c86a8",
282     "type": "for",
283     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
284     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
285     "comments": "",
286     "outputs": 1,
287     "x": 1554.6706047058105,
288     "y": 802.000049829483,
289     "z": "28b033ee.a901cc",
290     "wires": [
291       [
292         "3cebd63.269772a"
293       ]
294     ]
295   },
296   {
297     "id": "5e870da5.d4b9c4",
298     "type": "switchNode",
299     "name": "switch service-data.consumed-allotted-resources_length",
300     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
301     "comments": "",
302     "outputs": 1,
303     "x": 736.6699295043945,
304     "y": 778.7140822410583,
305     "z": "28b033ee.a901cc",
306     "wires": [
307       [
308         "9df6142.79785e8",
309         "58099c96.2c7e34"
310       ]
311     ]
312   },
313   {
314     "id": "9df6142.79785e8",
315     "type": "other",
316     "name": "outcome Null",
317     "xml": "<outcome value=''>\n",
318     "comments": "",
319     "outputs": 1,
320     "x": 1040.8128280639648,
321     "y": 747.5715193748474,
322     "z": "28b033ee.a901cc",
323     "wires": [
324       [
325         "be192375.06e28"
326       ]
327     ]
328   },
329   {
330     "id": "58099c96.2c7e34",
331     "type": "other",
332     "name": "other",
333     "xml": "<outcome value='Other'>\n",
334     "comments": "",
335     "outputs": 1,
336     "x": 1017.8128776550293,
337     "y": 808.5714745521545,
338     "z": "28b033ee.a901cc",
339     "wires": [
340       [
341         "96b3b48a.902058"
342       ]
343     ]
344   },
345   {
346     "id": "96b3b48a.902058",
347     "type": "block",
348     "name": "block : atomic",
349     "xml": "<block atomic=\"true\">",
350     "atomic": "true",
351     "outputs": 1,
352     "x": 1177.9399681091309,
353     "y": 806.6974511146545,
354     "z": "28b033ee.a901cc",
355     "wires": [
356       [
357         "340e57cb.5c86a8",
358         "718d194e.2e6788",
359         "a28f94f9.cae788"
360       ]
361     ]
362   },
363   {
364     "id": "be192375.06e28",
365     "type": "set",
366     "name": "set cidx",
367     "xml": "<set>\n<parameter name='tmp.cidx' value=\"`0`\" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value=\"1\" />\n\n\n",
368     "comments": "",
369     "x": 1190.6698112487793,
370     "y": 745.2855696678162,
371     "z": "28b033ee.a901cc",
372     "wires": []
373   },
374   {
375     "id": "f395bfa7.29021",
376     "type": "set",
377     "name": "set consumed allotted resources",
378     "xml": "<set>\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource[$tmp.cidx].allotted-resource-pointer' value=\"`$tmp.ar.self-link` \" />\n<parameter name='service-data.consumed-allotted-resources.consumed-allotted-resource_length' value='`$tmp.cidx + 1`' />\n\n",
379     "comments": "",
380     "x": 665.5272216796875,
381     "y": 882.2856469154358,
382     "z": "28b033ee.a901cc",
383     "wires": []
384   },
385   {
386     "id": "718d194e.2e6788",
387     "type": "switchNode",
388     "name": "switch tmp.found-cidx",
389     "xml": "<switch test='`$tmp.found-cidx`'>\n",
390     "comments": "",
391     "outputs": 1,
392     "x": 1367.0550155639648,
393     "y": 838.7089738845825,
394     "z": "28b033ee.a901cc",
395     "wires": [
396       [
397         "144fdd18.b7f4c3"
398       ]
399     ]
400   },
401   {
402     "id": "144fdd18.b7f4c3",
403     "type": "outcomeTrue",
404     "name": "false",
405     "xml": "<outcome value='false'>\n",
406     "comments": "",
407     "outputs": 1,
408     "x": 1557.0549697875977,
409     "y": 838.7089109420776,
410     "z": "28b033ee.a901cc",
411     "wires": [
412       [
413         "67e912a8.6bc78c"
414       ]
415     ]
416   },
417   {
418     "id": "67e912a8.6bc78c",
419     "type": "block",
420     "name": "block : atomic",
421     "xml": "<block atomic=\"true\">",
422     "atomic": "true",
423     "outputs": 1,
424     "x": 1723.0549697875977,
425     "y": 838.7089109420776,
426     "z": "28b033ee.a901cc",
427     "wires": [
428       [
429         "95e82f8c.b9b06"
430       ]
431     ]
432   },
433   {
434     "id": "3cebd63.269772a",
435     "type": "switchNode",
436     "name": "switch allotted-resource-id",
437     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
438     "comments": "",
439     "outputs": 1,
440     "x": 1971.7822341918945,
441     "y": 799.0000767707825,
442     "z": "28b033ee.a901cc",
443     "wires": [
444       [
445         "77a3d234.ab1d9c"
446       ]
447     ]
448   },
449   {
450     "id": "77a3d234.ab1d9c",
451     "type": "outcomeTrue",
452     "name": "true",
453     "xml": "<outcome value='true'>\n",
454     "comments": "",
455     "outputs": 1,
456     "x": 2153.591808319092,
457     "y": 799.4645237922668,
458     "z": "28b033ee.a901cc",
459     "wires": [
460       [
461         "c2bb18ee.6afb98"
462       ]
463     ]
464   },
465   {
466     "id": "95e82f8c.b9b06",
467     "type": "set",
468     "name": "set tmp.cidx",
469     "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
470     "comments": "",
471     "x": 1884.928352355957,
472     "y": 838.2206120491028,
473     "z": "28b033ee.a901cc",
474     "wires": []
475   },
476   {
477     "id": "f6050ba6.e3a988",
478     "type": "comment",
479     "name": "Add to consumed service consumed-allotted-resources in mdsal",
480     "info": "Prepare data and add to service-data",
481     "comments": "",
482     "x": 757.671142578125,
483     "y": 709.0000462532043,
484     "z": "28b033ee.a901cc",
485     "wires": []
486   },
487   {
488     "id": "950d939a.d6aa9",
489     "type": "comment",
490     "name": "This set resource will be added to MDSAL by provider code",
491     "info": "Below we add to service-data.consumed-allotted-resource at last index",
492     "comments": "",
493     "x": 745.0040588378906,
494     "y": 847.7781386375427,
495     "z": "28b033ee.a901cc",
496     "wires": []
497   },
498   {
499     "id": "fdbceac6.217498",
500     "type": "update",
501     "name": "update AAI allotted-resource",
502     "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.allotted-resource-information.parent-service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n    <parameter name=\"id\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\t<parameter name=\"name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\n\t<parameter name=\"access-provider-id\" value=\"`$prop.connection-attachment.access-provider-id`\" />\n\t<parameter name=\"access-client-id\" value=\"`$prop.connection-attachment.access-client-id`\" />\n\t<parameter name=\"access-topology-id\" value=\"`$prop.connection-attachment.access-topology-id`\" />\n\t<parameter name=\"access-node-id\" value=\"`$prop.connection-attachment.access-node-id`\" />\n\t<parameter name=\"access-ltp-id\" value=\"`$prop.connection-attachment.access-ltp-id`\" />\t\n\t<parameter name=\"cvlan\" value=\"`$prop.connection-attachment.cVLAN`\" />\n    <parameter name=\"vpn-name\" value=\"`$prop.connection-attachment.sotnVpnName`\" />\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=\"Created\" />\n",
503     "comments": "",
504     "outputs": 1,
505     "x": 655.6947631835938,
506     "y": 1807.5319027900696,
507     "z": "28b033ee.a901cc",
508     "wires": [
509       [
510         "49ae8647.6b2328",
511         "62f42f4e.42781"
512       ]
513     ]
514   },
515   {
516     "id": "49ae8647.6b2328",
517     "type": "failure",
518     "name": "failure",
519     "xml": "<outcome value='failure'>\n",
520     "comments": "",
521     "outputs": 1,
522     "x": 850.4566993713379,
523     "y": 1798.4845042228699,
524     "z": "28b033ee.a901cc",
525     "wires": [
526       [
527         "c8a49936.3deaf8"
528       ]
529     ]
530   },
531   {
532     "id": "c8a49936.3deaf8",
533     "type": "returnFailure",
534     "name": "return failure",
535     "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",
536     "comments": "",
537     "x": 1016.9805793762207,
538     "y": 1810.1035752296448,
539     "z": "28b033ee.a901cc",
540     "wires": []
541   },
542   {
543     "id": "62f42f4e.42781",
544     "type": "failure",
545     "name": "not-found",
546     "xml": "<outcome value='not-found'>\n",
547     "comments": "",
548     "outputs": 1,
549     "x": 857.5519866943359,
550     "y": 1831.2464718818665,
551     "z": "28b033ee.a901cc",
552     "wires": [
553       [
554         "c8a49936.3deaf8"
555       ]
556     ]
557   },
558   {
559     "id": "f380425c.83892",
560     "type": "comment",
561     "name": "Save Resource to AAI",
562     "info": "",
563     "comments": "",
564     "x": 689.5044403076172,
565     "y": 1775.8338742256165,
566     "z": "28b033ee.a901cc",
567     "wires": []
568   },
569   {
570     "id": "c58c2e54.58ab4",
571     "type": "comment",
572     "name": "Set allotted resource type if not sent by SO",
573     "info": "",
574     "comments": "",
575     "x": 691.00390625,
576     "y": 248.99999952316284,
577     "z": "28b033ee.a901cc",
578     "wires": []
579   },
580   {
581     "id": "48d3a6f4.7a9f68",
582     "type": "switchNode",
583     "name": "switch allotted-resource-type",
584     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
585     "comments": "",
586     "outputs": 1,
587     "x": 652.9272155761719,
588     "y": 289.5660557746887,
589     "z": "28b033ee.a901cc",
590     "wires": [
591       [
592         "a5628a44.6843d8",
593         "9e87888a.c266e8"
594       ]
595     ]
596   },
597   {
598     "id": "a5628a44.6843d8",
599     "type": "outcome",
600     "name": "NULL",
601     "xml": "<outcome value=''>",
602     "comments": "",
603     "outputs": 1,
604     "x": 855.9273681640625,
605     "y": 274.56605863571167,
606     "z": "28b033ee.a901cc",
607     "wires": [
608       [
609         "eafc3b17.674668"
610       ]
611     ]
612   },
613   {
614     "id": "9e87888a.c266e8",
615     "type": "other",
616     "name": "other",
617     "xml": "<outcome value='Other'>\n",
618     "comments": "",
619     "outputs": 1,
620     "x": 848.9271965026855,
621     "y": 314.5660786628723,
622     "z": "28b033ee.a901cc",
623     "wires": [
624       [
625         "1455473e.f663e9"
626       ]
627     ]
628   },
629   {
630     "id": "1455473e.f663e9",
631     "type": "set",
632     "name": "set tmp.ar.allotted-resource-type",
633     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
634     "comments": "",
635     "x": 1080.9271812438965,
636     "y": 314.5660834312439,
637     "z": "28b033ee.a901cc",
638     "wires": []
639   },
640   {
641     "id": "f29b8b09.a0de68",
642     "type": "comment",
643     "name": "For storage in AAI connection-attachment-topology",
644     "info": "",
645     "comments": "",
646     "x": 716.0038681030273,
647     "y": 383.99999952316284,
648     "z": "28b033ee.a901cc",
649     "wires": []
650   },
651   {
652     "id": "c8d768ea.3ebd78",
653     "type": "comment",
654     "name": "Obtain different URL, template location etc",
655     "info": "For saving resource information to MDSAL & for AAI",
656     "comments": "",
657     "x": 691.0038528442383,
658     "y": 465.8889088630676,
659     "z": "28b033ee.a901cc",
660     "wires": []
661   },
662   {
663     "id": "40de4362.ae07ec",
664     "type": "comment",
665     "name": "Used for Put AR by id to MDSAL",
666     "info": "",
667     "comments": "",
668     "x": 657.0039367675781,
669     "y": 554.8889260292053,
670     "z": "28b033ee.a901cc",
671     "wires": []
672   },
673   {
674     "id": "1f6351e.76805ae",
675     "type": "comment",
676     "name": "Obtain the last index in services",
677     "info": "ServiceData is added by Provider code",
678     "comments": "",
679     "x": 658.4483795166016,
680     "y": 740.888870716095,
681     "z": "28b033ee.a901cc",
682     "wires": []
683   },
684   {
685     "id": "7cadc884.11c378",
686     "type": "set",
687     "name": "set output to api handler",
688     "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",
689     "comments": "",
690     "x": 641.2720489501953,
691     "y": 1714.3592019081116,
692     "z": "28b033ee.a901cc",
693     "wires": []
694   },
695   {
696     "id": "f028e514.462408",
697     "type": "returnSuccess",
698     "name": "return success",
699     "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",
700     "comments": "",
701     "x": 609.6851348876953,
702     "y": 1876.9749283790588,
703     "z": "28b033ee.a901cc",
704     "wires": []
705   },
706   {
707     "id": "eafc3b17.674668",
708     "type": "set",
709     "name": "set tmp.ar.allotted-resource-type",
710     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
711     "comments": "",
712     "x": 1095.0040550231934,
713     "y": 274.9999852180481,
714     "z": "28b033ee.a901cc",
715     "wires": []
716   },
717   {
718     "id": "273cbd63.ba5da2",
719     "type": "execute",
720     "name": "execute RestApiCallNode - PUT AR by id",
721     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sdwan-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",
722     "comments": "",
723     "outputs": 1,
724     "x": 692.0041809082031,
725     "y": 1648.0001311302185,
726     "z": "28b033ee.a901cc",
727     "wires": [
728       [
729         "98032a32.e6e0f8",
730         "aa969973.4cd018",
731         "1764b80a.4c5668"
732       ]
733     ]
734   },
735   {
736     "id": "98032a32.e6e0f8",
737     "type": "not-found",
738     "name": "not-found",
739     "xml": "<outcome value='not-found'>\n",
740     "comments": "",
741     "outputs": 1,
742     "x": 941.6455345153809,
743     "y": 1686.331461429596,
744     "z": "28b033ee.a901cc",
745     "wires": [
746       [
747         "2942de2a.1ad962"
748       ]
749     ]
750   },
751   {
752     "id": "aa969973.4cd018",
753     "type": "failure",
754     "name": "failure",
755     "xml": "<outcome value='failure'>\n",
756     "comments": "",
757     "outputs": 1,
758     "x": 932.6455841064453,
759     "y": 1654.8314871788025,
760     "z": "28b033ee.a901cc",
761     "wires": [
762       [
763         "2942de2a.1ad962"
764       ]
765     ]
766   },
767   {
768     "id": "1764b80a.4c5668",
769     "type": "success",
770     "name": "success",
771     "xml": "<outcome value='success'>\n",
772     "comments": "",
773     "outputs": 1,
774     "x": 936.395622253418,
775     "y": 1625.1885920539498,
776     "z": "28b033ee.a901cc",
777     "wires": [
778       [
779         "801134b3.e6dc28"
780       ]
781     ]
782   },
783   {
784     "id": "2942de2a.1ad962",
785     "type": "returnFailure",
786     "name": "return failure",
787     "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",
788     "comments": "",
789     "x": 1102.395622253418,
790     "y": 1655.5815110206604,
791     "z": "28b033ee.a901cc",
792     "wires": []
793   },
794   {
795     "id": "801134b3.e6dc28",
796     "type": "block",
797     "name": "block",
798     "xml": "<block>\n",
799     "atomic": "false",
800     "comments": "",
801     "outputs": 1,
802     "x": 1078.0515899658203,
803     "y": 1621.380761243403,
804     "z": "28b033ee.a901cc",
805     "wires": [
806       []
807     ]
808   },
809   {
810     "id": "52f115fe.31e7bc",
811     "type": "execute",
812     "name": "execute RestApiCallNode - Update parent provided service AR",
813     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.parentsvc.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.parent-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=\"parent\" />\n\n",
814     "comments": "",
815     "outputs": 1,
816     "x": 757.0038604736328,
817     "y": 1164.0001645088196,
818     "z": "28b033ee.a901cc",
819     "wires": [
820       [
821         "d67d9a08.605298",
822         "22fe8dcf.9c57d2",
823         "85578012.048c2"
824       ]
825     ]
826   },
827   {
828     "id": "d67d9a08.605298",
829     "type": "not-found",
830     "name": "not-found",
831     "xml": "<outcome value='not-found'>\n",
832     "comments": "",
833     "outputs": 1,
834     "x": 1065.3119201660156,
835     "y": 1195.9984402656555,
836     "z": "28b033ee.a901cc",
837     "wires": [
838       [
839         "5c849a0e.1b8584"
840       ]
841     ]
842   },
843   {
844     "id": "22fe8dcf.9c57d2",
845     "type": "failure",
846     "name": "failure",
847     "xml": "<outcome value='failure'>\n",
848     "comments": "",
849     "outputs": 1,
850     "x": 1056.31196975708,
851     "y": 1164.498466014862,
852     "z": "28b033ee.a901cc",
853     "wires": [
854       [
855         "5c849a0e.1b8584"
856       ]
857     ]
858   },
859   {
860     "id": "85578012.048c2",
861     "type": "success",
862     "name": "success",
863     "xml": "<outcome value='success'>\n",
864     "comments": "",
865     "outputs": 1,
866     "x": 1060.0620079040527,
867     "y": 1134.8555708900094,
868     "z": "28b033ee.a901cc",
869     "wires": [
870       [
871         "6e0abfa0.4ac64"
872       ]
873     ]
874   },
875   {
876     "id": "5c849a0e.1b8584",
877     "type": "returnFailure",
878     "name": "return failure",
879     "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",
880     "comments": "",
881     "x": 1226.0620079040527,
882     "y": 1165.24848985672,
883     "z": "28b033ee.a901cc",
884     "wires": []
885   },
886   {
887     "id": "6e0abfa0.4ac64",
888     "type": "block",
889     "name": "block",
890     "xml": "<block>\n",
891     "atomic": "false",
892     "comments": "",
893     "outputs": 1,
894     "x": 1201.717975616455,
895     "y": 1131.0477400794625,
896     "z": "28b033ee.a901cc",
897     "wires": [
898       []
899     ]
900   },
901   {
902     "id": "d900fe90.080fa",
903     "type": "comment",
904     "name": "Put the parent allotted resource in mdsal",
905     "info": "",
906     "comments": "",
907     "x": 686.0038070678711,
908     "y": 1126.0000710487366,
909     "z": "28b033ee.a901cc",
910     "wires": []
911   },
912   {
913     "id": "549597d0.2434c8",
914     "type": "set",
915     "name": "set connection-attachment-ar-identifiers",
916     "xml": "<set>\n<parameter name='connection-attachment-ar-identifiers.consuming-service-instance-id' value=\"`$connection-attachment-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.parent-service-instance-id' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-type' value=\"`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='connection-attachment-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
917     "comments": "",
918     "x": 682.3609924316406,
919     "y": 1328.57169008255,
920     "z": "28b033ee.a901cc",
921     "wires": []
922   },
923   {
924     "id": "6a649bce.b1cf84",
925     "type": "set",
926     "name": "set ar-data",
927     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\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.` \" />\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.' value=\"`$connection-attachment-topology-operation-input.connection-attachment-request-input.` \" />",
928     "comments": "",
929     "x": 602.2178192138672,
930     "y": 1296.3811926841736,
931     "z": "28b033ee.a901cc",
932     "wires": []
933   },
934   {
935     "id": "b67f723e.a2fdd",
936     "type": "set",
937     "name": "set identifiers in overall structure",
938     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.connection-attachment-topology.allotted-resource-identifiers.' \nvalue=\"`$connection-attachment-ar-identifiers.`\" />\n\n\n",
939     "comments": "",
940     "x": 661.1707916259766,
941     "y": 1362.6668753623962,
942     "z": "28b033ee.a901cc",
943     "wires": []
944   },
945   {
946     "id": "e622a70a.fb3f98",
947     "type": "execute",
948     "name": "execute getTime",
949     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
950     "comments": "",
951     "outputs": 1,
952     "x": 613.5036315917969,
953     "y": 1436.0004029273987,
954     "z": "28b033ee.a901cc",
955     "wires": [
956       []
957     ]
958   },
959   {
960     "id": "3c5561ef.3b198e",
961     "type": "set",
962     "name": "set allotted-resource-oper-status",
963     "xml": "<set>\n<parameter name='connection-attachment-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Created' />\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",
964     "comments": "",
965     "x": 664.4906692504883,
966     "y": 1491.951635837555,
967     "z": "28b033ee.a901cc",
968     "wires": []
969   },
970   {
971     "id": "34b5882f.c7cb48",
972     "type": "set",
973     "name": "set model-data",
974     "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.` \" />",
975     "comments": "",
976     "x": 609.0592880249023,
977     "y": 1397.5557608604431,
978     "z": "28b033ee.a901cc",
979     "wires": []
980   },
981   {
982     "id": "f1efc3d3.15b9f",
983     "type": "comment",
984     "name": "Prepare data for allotted-resource addition to MDSAL",
985     "info": "This will add to allotted-resource which is present inside service.",
986     "comments": "",
987     "x": 726.3927764892578,
988     "y": 1262.5556073188782,
989     "z": "28b033ee.a901cc",
990     "wires": []
991   },
992   {
993     "id": "7f796e7c.de4f4",
994     "type": "execute",
995     "name": "generate parent-ar url - replace allotted-resource-id",
996     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.parent-ar-url`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n    <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
997     "comments": "",
998     "outputs": 1,
999     "x": 721.5039215087891,
1000     "y": 1090.0000100135803,
1001     "z": "28b033ee.a901cc",
1002     "wires": [
1003       []
1004     ]
1005   },
1006   {
1007     "id": "128728fe.ad5877",
1008     "type": "execute",
1009     "name": "generate parent-ar url - replace service-instance-id",
1010     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.parent-provided-resource`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.parent-ar-url\"/>\n    <parameter name=\"target\" value=\"{service-instance-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\"/>\n",
1011     "comments": "",
1012     "outputs": 1,
1013     "x": 717.5038452148438,
1014     "y": 1047.0001463890076,
1015     "z": "28b033ee.a901cc",
1016     "wires": [
1017       []
1018     ]
1019   },
1020   {
1021     "id": "6a7cea15.b62614",
1022     "type": "comment",
1023     "name": "Prepare Parent AR URL",
1024     "info": "Preparation to set provided-allotted-resource in parent service instance",
1025     "comments": "",
1026     "x": 635.5043029785156,
1027     "y": 976.0000996589661,
1028     "z": "28b033ee.a901cc",
1029     "wires": []
1030   },
1031   {
1032     "id": "a35c1852.b6d228",
1033     "type": "set",
1034     "name": "set tmp.ar.parent-service-instance-id",
1035     "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",
1036     "comments": "",
1037     "x": 674.5040969848633,
1038     "y": 1009.500039100647,
1039     "z": "28b033ee.a901cc",
1040     "wires": []
1041   },
1042   {
1043     "id": "c2bb18ee.6afb98",
1044     "type": "returnFailure",
1045     "name": "return failure",
1046     "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 as cosumed allotted resource already exists.\" />\n",
1047     "comments": "",
1048     "x": 2231.7608795166016,
1049     "y": 847.6458287239075,
1050     "z": "28b033ee.a901cc",
1051     "wires": []
1052   },
1053   {
1054     "id": "a28f94f9.cae788",
1055     "type": "set",
1056     "name": "set tmp.found-cidx",
1057     "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1058     "comments": "",
1059     "x": 1357.6500511169434,
1060     "y": 759.3125717639923,
1061     "z": "28b033ee.a901cc",
1062     "wires": []
1063   },
1064   {
1065     "id": "c891031.324ba",
1066     "type": "comment",
1067     "name": "Add to parent services provided-allotted-resources in mdsal",
1068     "info": "",
1069     "comments": "",
1070     "x": 746.2054138183594,
1071     "y": 943.9792561531067,
1072     "z": "28b033ee.a901cc",
1073     "wires": []
1074   },
1075   {
1076     "id": "2273a66f.0415ca",
1077     "type": "comment",
1078     "name": "Add to allotted-resources in mdsal",
1079     "info": "",
1080     "comments": "",
1081     "x": 666.9726028442383,
1082     "y": 1229.9689364433289,
1083     "z": "28b033ee.a901cc",
1084     "wires": []
1085   },
1086   {
1087     "id": "b23dd04a.37b72",
1088     "type": "block",
1089     "name": "block: atomic",
1090     "xml": "<block atomic=\"true\">\n",
1091     "atomic": "false",
1092     "comments": "",
1093     "outputs": 1,
1094     "x": 1340.003957748413,
1095     "y": 657.2777600288391,
1096     "z": "28b033ee.a901cc",
1097     "wires": [
1098       [
1099         "a6dda7d3.822f38"
1100       ]
1101     ]
1102   },
1103   {
1104     "id": "a6dda7d3.822f38",
1105     "type": "switchNode",
1106     "name": "switch cr length",
1107     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1108     "comments": "",
1109     "outputs": 1,
1110     "x": 1527.8613376617432,
1111     "y": 657.8968954086304,
1112     "z": "28b033ee.a901cc",
1113     "wires": [
1114       [
1115         "5bd5d251.e9afcc"
1116       ]
1117     ]
1118   },
1119   {
1120     "id": "5bd5d251.e9afcc",
1121     "type": "other",
1122     "name": "outcome 1",
1123     "xml": "<outcome value='1'>\n",
1124     "comments": "",
1125     "outputs": 1,
1126     "x": 1727.1944599151611,
1127     "y": 657.8969740867615,
1128     "z": "28b033ee.a901cc",
1129     "wires": [
1130       [
1131         "7072a3ba.59cbcc"
1132       ]
1133     ]
1134   },
1135   {
1136     "id": "2fe2b50e.b3feea",
1137     "type": "execute",
1138     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1139     "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",
1140     "comments": "",
1141     "outputs": 1,
1142     "x": 812.0039596557617,
1143     "y": 652.0000357627869,
1144     "z": "28b033ee.a901cc",
1145     "wires": [
1146       [
1147         "8f7a89d.e442878",
1148         "3a286aef.d7f3b6"
1149       ]
1150     ]
1151   },
1152   {
1153     "id": "3a286aef.d7f3b6",
1154     "type": "failure",
1155     "name": "failure",
1156     "xml": "<outcome value='failure'>\n",
1157     "comments": "",
1158     "outputs": 1,
1159     "x": 1180.0039901733398,
1160     "y": 622.0000338554382,
1161     "z": "28b033ee.a901cc",
1162     "wires": [
1163       [
1164         "13ffa20f.c9e16e"
1165       ]
1166     ]
1167   },
1168   {
1169     "id": "13ffa20f.c9e16e",
1170     "type": "block",
1171     "name": "block",
1172     "xml": "<block>\n",
1173     "atomic": "false",
1174     "comments": "",
1175     "outputs": 1,
1176     "x": 1332.0039901733398,
1177     "y": 621.0000338554382,
1178     "z": "28b033ee.a901cc",
1179     "wires": [
1180       []
1181     ]
1182   },
1183   {
1184     "id": "b0371fd5.a7b76",
1185     "type": "block",
1186     "name": "block : atomic",
1187     "xml": "<block atomic=\"true\">",
1188     "atomic": "true",
1189     "outputs": 1,
1190     "x": 618.0078277587891,
1191     "y": 1567.2500023841858,
1192     "z": "28b033ee.a901cc",
1193     "wires": [
1194       [
1195         "54125d93.5f9234",
1196         "a3376785.58e1f8"
1197       ]
1198     ]
1199   },
1200   {
1201     "id": "54125d93.5f9234",
1202     "type": "for",
1203     "name": "for each sdwan-get-request-input-param",
1204     "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1205     "comments": "",
1206     "outputs": 1,
1207     "x": 953.0080261230469,
1208     "y": 1513.2501246333122,
1209     "z": "28b033ee.a901cc",
1210     "wires": [
1211       [
1212         "e2f37c7a.7e92e"
1213       ]
1214     ]
1215   },
1216   {
1217     "id": "36f9a762.8e3a68",
1218     "type": "comment",
1219     "name": "Required for filling template values",
1220     "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1221     "comments": "",
1222     "x": 975.4525299072266,
1223     "y": 1547.083285331726,
1224     "z": "28b033ee.a901cc",
1225     "wires": []
1226   },
1227   {
1228     "id": "5c5d6d04.0459d4",
1229     "type": "comment",
1230     "name": "Remove VNFC prefix",
1231     "info": "",
1232     "comments": "",
1233     "x": 1036.007869720459,
1234     "y": 1469.6944603919983,
1235     "z": "28b033ee.a901cc",
1236     "wires": []
1237   },
1238   {
1239     "id": "e2f37c7a.7e92e",
1240     "type": "block",
1241     "name": "block : atomic",
1242     "xml": "<block atomic=\"true\">",
1243     "atomic": "true",
1244     "outputs": 1,
1245     "x": 1200.0078735351562,
1246     "y": 1514.6943697929382,
1247     "z": "28b033ee.a901cc",
1248     "wires": [
1249       [
1250         "c041009d.8b993",
1251         "2dcd0480.dbffec"
1252       ]
1253     ]
1254   },
1255   {
1256     "id": "cfd8cad0.68f218",
1257     "type": "comment",
1258     "name": "Take the parameter names by removing prefix",
1259     "info": "",
1260     "comments": "",
1261     "x": 1468.0077209472656,
1262     "y": 1430.2503678798676,
1263     "z": "28b033ee.a901cc",
1264     "wires": []
1265   },
1266   {
1267     "id": "c041009d.8b993",
1268     "type": "execute",
1269     "name": "execute split parameterName",
1270     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`'/>\n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
1271     "comments": "",
1272     "outputs": 1,
1273     "x": 1419.0423889160156,
1274     "y": 1465.2294640541077,
1275     "z": "28b033ee.a901cc",
1276     "wires": [
1277       []
1278     ]
1279   },
1280   {
1281     "id": "2dcd0480.dbffec",
1282     "type": "set",
1283     "name": "set parameterName",
1284     "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$i].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
1285     "comments": "",
1286     "x": 1407.4868621826172,
1287     "y": 1569.2294344902039,
1288     "z": "28b033ee.a901cc",
1289     "wires": []
1290   },
1291   {
1292     "id": "a3376785.58e1f8",
1293     "type": "call",
1294     "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
1295     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
1296     "comments": "",
1297     "outputs": 1,
1298     "x": 994.0078735351562,
1299     "y": 1587.2500643730164,
1300     "z": "28b033ee.a901cc",
1301     "wires": [
1302       []
1303     ]
1304   }
1305 ]