1e6cf419efb3d90733607ac1278ffd5fd82b157b
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sdwan-attachment-topology-operation-create.json
1 [
2   {
3     "id": "61863820.711ea8",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 88,
8     "y": 36,
9     "z": "8a925a2b.b01bd8",
10     "wires": [
11       [
12         "14f9537d.79772d"
13       ]
14     ]
15   },
16   {
17     "id": "14f9537d.79772d",
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": 271.00000381469727,
26     "y": 110.00001811981201,
27     "z": "8a925a2b.b01bd8",
28     "wires": [
29       [
30         "d19b9445.194798"
31       ]
32     ]
33   },
34   {
35     "id": "d19b9445.194798",
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": 259.0001220703125,
42     "y": 198.00000095367432,
43     "z": "8a925a2b.b01bd8",
44     "wires": [
45       [
46         "3526110c.60448e"
47       ]
48     ]
49   },
50   {
51     "id": "3526110c.60448e",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 179.00005340576172,
59     "y": 947.0002489089966,
60     "z": "8a925a2b.b01bd8",
61     "wires": [
62       [
63         "99952776.e81ae8",
64         "9b94537c.a4dfa",
65         "9596dbd6.648298",
66         "636ccd57.e35144",
67         "43bd9b90.f9bb04",
68         "4e3d9f6f.e48ca",
69         "a91b49df.3ab368",
70         "af03f775.1849d8",
71         "a399f576.497928",
72         "86a651b6.fa2c1",
73         "27a69ba7.020164",
74         "e417171b.b17d78",
75         "a85450f9.54be5",
76         "8337596d.6afa48",
77         "5db0bc82.831f24",
78         "757f6754.1033f8",
79         "e6e8c666.3550b8",
80         "7955fe12.58b57",
81         "9077e61b.e6a3a8",
82         "8e980e4e.121e8",
83         "8bf022a6.d0cbb",
84         "3aa5d5fd.f4649a"
85       ]
86     ]
87   },
88   {
89     "id": "aa8c6e8b.e30e",
90     "type": "comment",
91     "name": "Set allotted resource id if not sent by SO",
92     "info": "",
93     "comments": "",
94     "x": 663.0767517089844,
95     "y": 107.43391990661621,
96     "z": "8a925a2b.b01bd8",
97     "wires": []
98   },
99   {
100     "id": "99952776.e81ae8",
101     "type": "switchNode",
102     "name": "switch allotted-resource-id",
103     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
104     "comments": "",
105     "outputs": 1,
106     "x": 609.0000305175781,
107     "y": 162.99999332427979,
108     "z": "8a925a2b.b01bd8",
109     "wires": [
110       [
111         "6811d51c.3757dc",
112         "513b9b13.594134"
113       ]
114     ]
115   },
116   {
117     "id": "6811d51c.3757dc",
118     "type": "outcome",
119     "name": "NULL",
120     "xml": "<outcome value=''>",
121     "comments": "",
122     "outputs": 1,
123     "x": 807.0001182556152,
124     "y": 132.999981880188,
125     "z": "8a925a2b.b01bd8",
126     "wires": [
127       [
128         "7f9fc121.cd5a5"
129       ]
130     ]
131   },
132   {
133     "id": "513b9b13.594134",
134     "type": "other",
135     "name": "other",
136     "xml": "<outcome value='Other'>\n",
137     "comments": "",
138     "outputs": 1,
139     "x": 806.0000267028809,
140     "y": 169.99999237060547,
141     "z": "8a925a2b.b01bd8",
142     "wires": [
143       [
144         "28a76577.73245a"
145       ]
146     ]
147   },
148   {
149     "id": "28a76577.73245a",
150     "type": "set",
151     "name": "set tmp.ar.allotted-resource-id",
152     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
153     "comments": "",
154     "x": 1004.0000152587891,
155     "y": 167.0000114440918,
156     "z": "8a925a2b.b01bd8",
157     "wires": []
158   },
159   {
160     "id": "9b94537c.a4dfa",
161     "type": "set",
162     "name": "set tmp.ar.self-link",
163     "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",
164     "comments": "",
165     "x": 576.9999542236328,
166     "y": 384.0001001358032,
167     "z": "8a925a2b.b01bd8",
168     "wires": []
169   },
170   {
171     "id": "9596dbd6.648298",
172     "type": "execute",
173     "name": "execute Properties",
174     "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",
175     "comments": "",
176     "outputs": 1,
177     "x": 577.2618713378906,
178     "y": 465.6667814254761,
179     "z": "8a925a2b.b01bd8",
180     "wires": [
181       []
182     ]
183   },
184   {
185     "id": "636ccd57.e35144",
186     "type": "execute",
187     "name": "generate allotted-resource tmp.ar-url",
188     "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",
189     "comments": "",
190     "outputs": 1,
191     "x": 630.2619323730469,
192     "y": 552.6666994094849,
193     "z": "8a925a2b.b01bd8",
194     "wires": [
195       []
196     ]
197   },
198   {
199     "id": "7f9fc121.cd5a5",
200     "type": "execute",
201     "name": "execute tmp.ar.allotted-resource-id",
202     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
203     "comments": "",
204     "outputs": 1,
205     "x": 1022.0000953674316,
206     "y": 133.9999876022339,
207     "z": "8a925a2b.b01bd8",
208     "wires": [
209       [
210         "88221720.7c95b8"
211       ]
212     ]
213   },
214   {
215     "id": "88221720.7c95b8",
216     "type": "failure",
217     "name": "failure",
218     "xml": "<outcome value='failure'>\n",
219     "comments": "",
220     "outputs": 1,
221     "x": 1240.0001373291016,
222     "y": 133.99995136260986,
223     "z": "8a925a2b.b01bd8",
224     "wires": [
225       [
226         "aa4b0ebd.72265"
227       ]
228     ]
229   },
230   {
231     "id": "aa4b0ebd.72265",
232     "type": "returnFailure",
233     "name": "return failure",
234     "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",
235     "comments": "",
236     "x": 1406.0000915527344,
237     "y": 133.9999656677246,
238     "z": "8a925a2b.b01bd8",
239     "wires": []
240   },
241   {
242     "id": "1ec18fe8.aa439",
243     "type": "success",
244     "name": "success",
245     "xml": "<outcome value='success'>\n",
246     "comments": "",
247     "outputs": 1,
248     "x": 1136.0002307891846,
249     "y": 624.7778720855713,
250     "z": "8a925a2b.b01bd8",
251     "wires": [
252       [
253         "14fc1138.5da1ef"
254       ]
255     ]
256   },
257   {
258     "id": "9378fa3a.19c018",
259     "type": "returnFailure",
260     "name": "return failure",
261     "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",
262     "comments": "",
263     "x": 1869.5186100006104,
264     "y": 625.8439435958862,
265     "z": "8a925a2b.b01bd8",
266     "wires": []
267   },
268   {
269     "id": "b12c1e8e.81e23",
270     "type": "comment",
271     "name": "Check for non existence of allotted resource",
272     "info": "",
273     "comments": "",
274     "x": 992.0001525878906,
275     "y": 558.7779388427734,
276     "z": "8a925a2b.b01bd8",
277     "wires": []
278   },
279   {
280     "id": "da203e6.ea028c",
281     "type": "for",
282     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
283     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
284     "comments": "",
285     "outputs": 1,
286     "x": 1512.6666984558105,
287     "y": 769.0000512599945,
288     "z": "8a925a2b.b01bd8",
289     "wires": [
290       [
291         "98ae415a.0e4e6"
292       ]
293     ]
294   },
295   {
296     "id": "4e3d9f6f.e48ca",
297     "type": "switchNode",
298     "name": "switch service-data.consumed-allotted-resources_length",
299     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
300     "comments": "",
301     "outputs": 1,
302     "x": 694.6660232543945,
303     "y": 745.7140836715698,
304     "z": "8a925a2b.b01bd8",
305     "wires": [
306       [
307         "210abe50.d12562",
308         "fd87de34.5f561"
309       ]
310     ]
311   },
312   {
313     "id": "210abe50.d12562",
314     "type": "other",
315     "name": "outcome Null",
316     "xml": "<outcome value=''>\n",
317     "comments": "",
318     "outputs": 1,
319     "x": 998.8089218139648,
320     "y": 714.5715208053589,
321     "z": "8a925a2b.b01bd8",
322     "wires": [
323       [
324         "230c326a.73559e"
325       ]
326     ]
327   },
328   {
329     "id": "fd87de34.5f561",
330     "type": "other",
331     "name": "other",
332     "xml": "<outcome value='Other'>\n",
333     "comments": "",
334     "outputs": 1,
335     "x": 975.8089714050293,
336     "y": 775.571475982666,
337     "z": "8a925a2b.b01bd8",
338     "wires": [
339       [
340         "6fcbf8ba.f19558"
341       ]
342     ]
343   },
344   {
345     "id": "6fcbf8ba.f19558",
346     "type": "block",
347     "name": "block : atomic",
348     "xml": "<block atomic=\"true\">",
349     "atomic": "true",
350     "outputs": 1,
351     "x": 1135.9360618591309,
352     "y": 773.697452545166,
353     "z": "8a925a2b.b01bd8",
354     "wires": [
355       [
356         "da203e6.ea028c",
357         "aac67e51.e0669",
358         "1472489a.f6dd67"
359       ]
360     ]
361   },
362   {
363     "id": "230c326a.73559e",
364     "type": "set",
365     "name": "set cidx",
366     "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",
367     "comments": "",
368     "x": 1148.6659049987793,
369     "y": 712.2855710983276,
370     "z": "8a925a2b.b01bd8",
371     "wires": []
372   },
373   {
374     "id": "a91b49df.3ab368",
375     "type": "set",
376     "name": "set consumed allotted resources",
377     "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",
378     "comments": "",
379     "x": 623.5233154296875,
380     "y": 849.2856483459473,
381     "z": "8a925a2b.b01bd8",
382     "wires": []
383   },
384   {
385     "id": "aac67e51.e0669",
386     "type": "switchNode",
387     "name": "switch tmp.found-cidx",
388     "xml": "<switch test='`$tmp.found-cidx`'>\n",
389     "comments": "",
390     "outputs": 1,
391     "x": 1325.0511093139648,
392     "y": 805.708975315094,
393     "z": "8a925a2b.b01bd8",
394     "wires": [
395       [
396         "83192091.f2dbe"
397       ]
398     ]
399   },
400   {
401     "id": "83192091.f2dbe",
402     "type": "outcomeTrue",
403     "name": "false",
404     "xml": "<outcome value='false'>\n",
405     "comments": "",
406     "outputs": 1,
407     "x": 1515.0510635375977,
408     "y": 805.7089123725891,
409     "z": "8a925a2b.b01bd8",
410     "wires": [
411       [
412         "edcd9f1b.5f174"
413       ]
414     ]
415   },
416   {
417     "id": "edcd9f1b.5f174",
418     "type": "block",
419     "name": "block : atomic",
420     "xml": "<block atomic=\"true\">",
421     "atomic": "true",
422     "outputs": 1,
423     "x": 1681.0510635375977,
424     "y": 805.7089123725891,
425     "z": "8a925a2b.b01bd8",
426     "wires": [
427       [
428         "41ea1034.cd583"
429       ]
430     ]
431   },
432   {
433     "id": "98ae415a.0e4e6",
434     "type": "switchNode",
435     "name": "switch allotted-resource-id",
436     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
437     "comments": "",
438     "outputs": 1,
439     "x": 1929.7783279418945,
440     "y": 766.000078201294,
441     "z": "8a925a2b.b01bd8",
442     "wires": [
443       [
444         "f6ba2e93.3a869"
445       ]
446     ]
447   },
448   {
449     "id": "f6ba2e93.3a869",
450     "type": "outcomeTrue",
451     "name": "true",
452     "xml": "<outcome value='true'>\n",
453     "comments": "",
454     "outputs": 1,
455     "x": 2111.587902069092,
456     "y": 766.4645252227783,
457     "z": "8a925a2b.b01bd8",
458     "wires": [
459       [
460         "135a37d3.398c28"
461       ]
462     ]
463   },
464   {
465     "id": "41ea1034.cd583",
466     "type": "set",
467     "name": "set tmp.cidx",
468     "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
469     "comments": "",
470     "x": 1842.924446105957,
471     "y": 805.2206134796143,
472     "z": "8a925a2b.b01bd8",
473     "wires": []
474   },
475   {
476     "id": "3a0c681c.87b8c8",
477     "type": "comment",
478     "name": "Add to consumed service consumed-allotted-resources in mdsal",
479     "info": "Prepare data and add to service-data",
480     "comments": "",
481     "x": 715.667236328125,
482     "y": 676.0000476837158,
483     "z": "8a925a2b.b01bd8",
484     "wires": []
485   },
486   {
487     "id": "4601b662.be85f8",
488     "type": "comment",
489     "name": "This set resource will be added to MDSAL by provider code",
490     "info": "Below we add to service-data.consumed-allotted-resource at last index",
491     "comments": "",
492     "x": 703.0001525878906,
493     "y": 814.7781400680542,
494     "z": "8a925a2b.b01bd8",
495     "wires": []
496   },
497   {
498     "id": "6c13b6ba.f1d808",
499     "type": "update",
500     "name": "update AAI allotted-resource",
501     "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",
502     "comments": "",
503     "outputs": 1,
504     "x": 613.6908569335938,
505     "y": 1774.531904220581,
506     "z": "8a925a2b.b01bd8",
507     "wires": [
508       [
509         "cc11f86f.a05c98",
510         "2748d678.9b155a"
511       ]
512     ]
513   },
514   {
515     "id": "cc11f86f.a05c98",
516     "type": "failure",
517     "name": "failure",
518     "xml": "<outcome value='failure'>\n",
519     "comments": "",
520     "outputs": 1,
521     "x": 808.4527931213379,
522     "y": 1765.4845056533813,
523     "z": "8a925a2b.b01bd8",
524     "wires": [
525       [
526         "ad7d0ba7.e370e8"
527       ]
528     ]
529   },
530   {
531     "id": "ad7d0ba7.e370e8",
532     "type": "returnFailure",
533     "name": "return failure",
534     "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",
535     "comments": "",
536     "x": 974.9766731262207,
537     "y": 1777.1035766601562,
538     "z": "8a925a2b.b01bd8",
539     "wires": []
540   },
541   {
542     "id": "2748d678.9b155a",
543     "type": "failure",
544     "name": "not-found",
545     "xml": "<outcome value='not-found'>\n",
546     "comments": "",
547     "outputs": 1,
548     "x": 815.5480804443359,
549     "y": 1798.246473312378,
550     "z": "8a925a2b.b01bd8",
551     "wires": [
552       [
553         "ad7d0ba7.e370e8"
554       ]
555     ]
556   },
557   {
558     "id": "65ec4e22.c3de6",
559     "type": "comment",
560     "name": "Save Resource to AAI",
561     "info": "",
562     "comments": "",
563     "x": 647.5005340576172,
564     "y": 1742.833875656128,
565     "z": "8a925a2b.b01bd8",
566     "wires": []
567   },
568   {
569     "id": "cf325757.026c08",
570     "type": "comment",
571     "name": "Set allotted resource type if not sent by SO",
572     "info": "",
573     "comments": "",
574     "x": 649,
575     "y": 216.00000095367432,
576     "z": "8a925a2b.b01bd8",
577     "wires": []
578   },
579   {
580     "id": "43bd9b90.f9bb04",
581     "type": "switchNode",
582     "name": "switch allotted-resource-type",
583     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
584     "comments": "",
585     "outputs": 1,
586     "x": 610.9233093261719,
587     "y": 256.5660572052002,
588     "z": "8a925a2b.b01bd8",
589     "wires": [
590       [
591         "b8faf677.a88b58",
592         "cb37a8ac.844d88"
593       ]
594     ]
595   },
596   {
597     "id": "b8faf677.a88b58",
598     "type": "outcome",
599     "name": "NULL",
600     "xml": "<outcome value=''>",
601     "comments": "",
602     "outputs": 1,
603     "x": 813.9234619140625,
604     "y": 241.56606006622314,
605     "z": "8a925a2b.b01bd8",
606     "wires": [
607       [
608         "fb16264e.206978"
609       ]
610     ]
611   },
612   {
613     "id": "cb37a8ac.844d88",
614     "type": "other",
615     "name": "other",
616     "xml": "<outcome value='Other'>\n",
617     "comments": "",
618     "outputs": 1,
619     "x": 806.9232902526855,
620     "y": 281.5660800933838,
621     "z": "8a925a2b.b01bd8",
622     "wires": [
623       [
624         "46a12ee1.3eb2e"
625       ]
626     ]
627   },
628   {
629     "id": "46a12ee1.3eb2e",
630     "type": "set",
631     "name": "set tmp.ar.allotted-resource-type",
632     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
633     "comments": "",
634     "x": 1038.9232749938965,
635     "y": 281.56608486175537,
636     "z": "8a925a2b.b01bd8",
637     "wires": []
638   },
639   {
640     "id": "e0d4b358.f0111",
641     "type": "comment",
642     "name": "For storage in AAI connection-attachment-topology",
643     "info": "",
644     "comments": "",
645     "x": 673.9999618530273,
646     "y": 351.0000009536743,
647     "z": "8a925a2b.b01bd8",
648     "wires": []
649   },
650   {
651     "id": "2c1dc14e.d8696e",
652     "type": "comment",
653     "name": "Obtain different URL, template location etc",
654     "info": "For saving resource information to MDSAL & for AAI",
655     "comments": "",
656     "x": 648.9999465942383,
657     "y": 432.8889102935791,
658     "z": "8a925a2b.b01bd8",
659     "wires": []
660   },
661   {
662     "id": "41be4404.2062fc",
663     "type": "comment",
664     "name": "Used for Put AR by id to MDSAL",
665     "info": "",
666     "comments": "",
667     "x": 615.0000305175781,
668     "y": 521.8889274597168,
669     "z": "8a925a2b.b01bd8",
670     "wires": []
671   },
672   {
673     "id": "e088f78d.0cd8b8",
674     "type": "comment",
675     "name": "Obtain the last index in services",
676     "info": "ServiceData is added by Provider code",
677     "comments": "",
678     "x": 616.4444732666016,
679     "y": 707.8888721466064,
680     "z": "8a925a2b.b01bd8",
681     "wires": []
682   },
683   {
684     "id": "9077e61b.e6a3a8",
685     "type": "set",
686     "name": "set output to api handler",
687     "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",
688     "comments": "",
689     "x": 599.2681427001953,
690     "y": 1681.359203338623,
691     "z": "8a925a2b.b01bd8",
692     "wires": []
693   },
694   {
695     "id": "8e980e4e.121e8",
696     "type": "returnSuccess",
697     "name": "return success",
698     "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",
699     "comments": "",
700     "x": 567.6812286376953,
701     "y": 1843.9749298095703,
702     "z": "8a925a2b.b01bd8",
703     "wires": []
704   },
705   {
706     "id": "fb16264e.206978",
707     "type": "set",
708     "name": "set tmp.ar.allotted-resource-type",
709     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SDWANAttachmentInstance\" />\n",
710     "comments": "",
711     "x": 1053.0001487731934,
712     "y": 241.99998664855957,
713     "z": "8a925a2b.b01bd8",
714     "wires": []
715   },
716   {
717     "id": "7955fe12.58b57",
718     "type": "execute",
719     "name": "execute RestApiCallNode - PUT AR by id",
720     "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",
721     "comments": "",
722     "outputs": 1,
723     "x": 650.0002746582031,
724     "y": 1615.00013256073,
725     "z": "8a925a2b.b01bd8",
726     "wires": [
727       [
728         "7e102bff.eb07f4",
729         "11a3c1ef.0f585e",
730         "cbe02c45.fd392"
731       ]
732     ]
733   },
734   {
735     "id": "7e102bff.eb07f4",
736     "type": "not-found",
737     "name": "not-found",
738     "xml": "<outcome value='not-found'>\n",
739     "comments": "",
740     "outputs": 1,
741     "x": 899.6416282653809,
742     "y": 1653.3314628601074,
743     "z": "8a925a2b.b01bd8",
744     "wires": [
745       [
746         "d199a2ac.4c653"
747       ]
748     ]
749   },
750   {
751     "id": "11a3c1ef.0f585e",
752     "type": "failure",
753     "name": "failure",
754     "xml": "<outcome value='failure'>\n",
755     "comments": "",
756     "outputs": 1,
757     "x": 890.6416778564453,
758     "y": 1621.831488609314,
759     "z": "8a925a2b.b01bd8",
760     "wires": [
761       [
762         "d199a2ac.4c653"
763       ]
764     ]
765   },
766   {
767     "id": "cbe02c45.fd392",
768     "type": "success",
769     "name": "success",
770     "xml": "<outcome value='success'>\n",
771     "comments": "",
772     "outputs": 1,
773     "x": 894.391716003418,
774     "y": 1592.1885934844613,
775     "z": "8a925a2b.b01bd8",
776     "wires": [
777       [
778         "d05ce36c.67312"
779       ]
780     ]
781   },
782   {
783     "id": "d199a2ac.4c653",
784     "type": "returnFailure",
785     "name": "return failure",
786     "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error updating md-sal for connection-attachment-allotted-resource\" />\n",
787     "comments": "",
788     "x": 1060.391716003418,
789     "y": 1622.5815124511719,
790     "z": "8a925a2b.b01bd8",
791     "wires": []
792   },
793   {
794     "id": "d05ce36c.67312",
795     "type": "block",
796     "name": "block",
797     "xml": "<block>\n",
798     "atomic": "false",
799     "comments": "",
800     "outputs": 1,
801     "x": 1036.0476837158203,
802     "y": 1588.3807626739144,
803     "z": "8a925a2b.b01bd8",
804     "wires": [
805       []
806     ]
807   },
808   {
809     "id": "27a69ba7.020164",
810     "type": "execute",
811     "name": "execute RestApiCallNode - Update parent provided service AR",
812     "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",
813     "comments": "",
814     "outputs": 1,
815     "x": 714.9999542236328,
816     "y": 1131.000165939331,
817     "z": "8a925a2b.b01bd8",
818     "wires": [
819       [
820         "2ac08c5a.9ea264",
821         "9091e2db.32589",
822         "bcd16107.cb13d"
823       ]
824     ]
825   },
826   {
827     "id": "2ac08c5a.9ea264",
828     "type": "not-found",
829     "name": "not-found",
830     "xml": "<outcome value='not-found'>\n",
831     "comments": "",
832     "outputs": 1,
833     "x": 1023.3080139160156,
834     "y": 1162.998441696167,
835     "z": "8a925a2b.b01bd8",
836     "wires": [
837       [
838         "900f543a.444328"
839       ]
840     ]
841   },
842   {
843     "id": "9091e2db.32589",
844     "type": "failure",
845     "name": "failure",
846     "xml": "<outcome value='failure'>\n",
847     "comments": "",
848     "outputs": 1,
849     "x": 1014.3080635070801,
850     "y": 1131.4984674453735,
851     "z": "8a925a2b.b01bd8",
852     "wires": [
853       [
854         "900f543a.444328"
855       ]
856     ]
857   },
858   {
859     "id": "bcd16107.cb13d",
860     "type": "success",
861     "name": "success",
862     "xml": "<outcome value='success'>\n",
863     "comments": "",
864     "outputs": 1,
865     "x": 1018.0581016540527,
866     "y": 1101.8555723205209,
867     "z": "8a925a2b.b01bd8",
868     "wires": [
869       [
870         "1404ab79.5b1245"
871       ]
872     ]
873   },
874   {
875     "id": "900f543a.444328",
876     "type": "returnFailure",
877     "name": "return failure",
878     "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",
879     "comments": "",
880     "x": 1184.0581016540527,
881     "y": 1132.2484912872314,
882     "z": "8a925a2b.b01bd8",
883     "wires": []
884   },
885   {
886     "id": "1404ab79.5b1245",
887     "type": "block",
888     "name": "block",
889     "xml": "<block>\n",
890     "atomic": "false",
891     "comments": "",
892     "outputs": 1,
893     "x": 1159.714069366455,
894     "y": 1098.047741509974,
895     "z": "8a925a2b.b01bd8",
896     "wires": [
897       []
898     ]
899   },
900   {
901     "id": "39d4184a.092378",
902     "type": "comment",
903     "name": "Put the parent allotted resource in mdsal",
904     "info": "",
905     "comments": "",
906     "x": 643.9999008178711,
907     "y": 1093.000072479248,
908     "z": "8a925a2b.b01bd8",
909     "wires": []
910   },
911   {
912     "id": "a85450f9.54be5",
913     "type": "set",
914     "name": "set connection-attachment-ar-identifiers",
915     "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",
916     "comments": "",
917     "x": 640.3570861816406,
918     "y": 1295.5716915130615,
919     "z": "8a925a2b.b01bd8",
920     "wires": []
921   },
922   {
923     "id": "e417171b.b17d78",
924     "type": "set",
925     "name": "set ar-data",
926     "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.` \" />",
927     "comments": "",
928     "x": 560.2139129638672,
929     "y": 1263.381194114685,
930     "z": "8a925a2b.b01bd8",
931     "wires": []
932   },
933   {
934     "id": "8337596d.6afa48",
935     "type": "set",
936     "name": "set identifiers in overall structure",
937     "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",
938     "comments": "",
939     "x": 619.1668853759766,
940     "y": 1329.6668767929077,
941     "z": "8a925a2b.b01bd8",
942     "wires": []
943   },
944   {
945     "id": "5db0bc82.831f24",
946     "type": "execute",
947     "name": "execute getTime",
948     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
949     "comments": "",
950     "outputs": 1,
951     "x": 571.4997253417969,
952     "y": 1403.0004043579102,
953     "z": "8a925a2b.b01bd8",
954     "wires": [
955       []
956     ]
957   },
958   {
959     "id": "757f6754.1033f8",
960     "type": "set",
961     "name": "set allotted-resource-oper-status",
962     "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",
963     "comments": "",
964     "x": 622.4867630004883,
965     "y": 1458.9516372680664,
966     "z": "8a925a2b.b01bd8",
967     "wires": []
968   },
969   {
970     "id": "e6e8c666.3550b8",
971     "type": "set",
972     "name": "set model-data",
973     "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.` \" />",
974     "comments": "",
975     "x": 567.0553817749023,
976     "y": 1364.5557622909546,
977     "z": "8a925a2b.b01bd8",
978     "wires": []
979   },
980   {
981     "id": "99a7dd56.4fb72",
982     "type": "comment",
983     "name": "Prepare data for allotted-resource addition to MDSAL",
984     "info": "This will add to allotted-resource which is present inside service.",
985     "comments": "",
986     "x": 684.3888702392578,
987     "y": 1229.5556087493896,
988     "z": "8a925a2b.b01bd8",
989     "wires": []
990   },
991   {
992     "id": "86a651b6.fa2c1",
993     "type": "execute",
994     "name": "generate parent-ar url - replace allotted-resource-id",
995     "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",
996     "comments": "",
997     "outputs": 1,
998     "x": 679.5000152587891,
999     "y": 1057.0000114440918,
1000     "z": "8a925a2b.b01bd8",
1001     "wires": [
1002       []
1003     ]
1004   },
1005   {
1006     "id": "a399f576.497928",
1007     "type": "execute",
1008     "name": "generate parent-ar url - replace service-instance-id",
1009     "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",
1010     "comments": "",
1011     "outputs": 1,
1012     "x": 675.4999389648438,
1013     "y": 1014.000147819519,
1014     "z": "8a925a2b.b01bd8",
1015     "wires": [
1016       []
1017     ]
1018   },
1019   {
1020     "id": "b106df9f.5ad7c",
1021     "type": "comment",
1022     "name": "Prepare Parent AR URL",
1023     "info": "Preparation to set provided-allotted-resource in parent service instance",
1024     "comments": "",
1025     "x": 593.5003967285156,
1026     "y": 943.0001010894775,
1027     "z": "8a925a2b.b01bd8",
1028     "wires": []
1029   },
1030   {
1031     "id": "af03f775.1849d8",
1032     "type": "set",
1033     "name": "set tmp.ar.parent-service-instance-id",
1034     "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",
1035     "comments": "",
1036     "x": 632.5001907348633,
1037     "y": 976.5000405311584,
1038     "z": "8a925a2b.b01bd8",
1039     "wires": []
1040   },
1041   {
1042     "id": "135a37d3.398c28",
1043     "type": "returnFailure",
1044     "name": "return failure",
1045     "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",
1046     "comments": "",
1047     "x": 2189.7569732666016,
1048     "y": 814.645830154419,
1049     "z": "8a925a2b.b01bd8",
1050     "wires": []
1051   },
1052   {
1053     "id": "1472489a.f6dd67",
1054     "type": "set",
1055     "name": "set tmp.found-cidx",
1056     "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1057     "comments": "",
1058     "x": 1315.6461448669434,
1059     "y": 726.3125731945038,
1060     "z": "8a925a2b.b01bd8",
1061     "wires": []
1062   },
1063   {
1064     "id": "a78b3889.5b8998",
1065     "type": "comment",
1066     "name": "Add to parent services provided-allotted-resources in mdsal",
1067     "info": "",
1068     "comments": "",
1069     "x": 704.2015075683594,
1070     "y": 910.9792575836182,
1071     "z": "8a925a2b.b01bd8",
1072     "wires": []
1073   },
1074   {
1075     "id": "67269130.185f5",
1076     "type": "comment",
1077     "name": "Add to allotted-resources in mdsal",
1078     "info": "",
1079     "comments": "",
1080     "x": 624.9686965942383,
1081     "y": 1196.9689378738403,
1082     "z": "8a925a2b.b01bd8",
1083     "wires": []
1084   },
1085   {
1086     "id": "14fc1138.5da1ef",
1087     "type": "block",
1088     "name": "block: atomic",
1089     "xml": "<block atomic=\"true\">\n",
1090     "atomic": "false",
1091     "comments": "",
1092     "outputs": 1,
1093     "x": 1298.000051498413,
1094     "y": 624.2777614593506,
1095     "z": "8a925a2b.b01bd8",
1096     "wires": [
1097       [
1098         "4695b038.898f5"
1099       ]
1100     ]
1101   },
1102   {
1103     "id": "4695b038.898f5",
1104     "type": "switchNode",
1105     "name": "switch cr length",
1106     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1107     "comments": "",
1108     "outputs": 1,
1109     "x": 1485.8574314117432,
1110     "y": 624.8968968391418,
1111     "z": "8a925a2b.b01bd8",
1112     "wires": [
1113       [
1114         "207b23e6.6bd71c"
1115       ]
1116     ]
1117   },
1118   {
1119     "id": "207b23e6.6bd71c",
1120     "type": "other",
1121     "name": "outcome 1",
1122     "xml": "<outcome value='1'>\n",
1123     "comments": "",
1124     "outputs": 1,
1125     "x": 1685.1905536651611,
1126     "y": 624.896975517273,
1127     "z": "8a925a2b.b01bd8",
1128     "wires": [
1129       [
1130         "9378fa3a.19c018"
1131       ]
1132     ]
1133   },
1134   {
1135     "id": "8bf022a6.d0cbb",
1136     "type": "execute",
1137     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1138     "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",
1139     "comments": "",
1140     "outputs": 1,
1141     "x": 770.0000534057617,
1142     "y": 619.0000371932983,
1143     "z": "8a925a2b.b01bd8",
1144     "wires": [
1145       [
1146         "1ec18fe8.aa439",
1147         "a8c0bcfd.baccb"
1148       ]
1149     ]
1150   },
1151   {
1152     "id": "a8c0bcfd.baccb",
1153     "type": "failure",
1154     "name": "failure",
1155     "xml": "<outcome value='failure'>\n",
1156     "comments": "",
1157     "outputs": 1,
1158     "x": 1138.0000839233398,
1159     "y": 589.0000352859497,
1160     "z": "8a925a2b.b01bd8",
1161     "wires": [
1162       [
1163         "e7c1d5d7.6402e8"
1164       ]
1165     ]
1166   },
1167   {
1168     "id": "e7c1d5d7.6402e8",
1169     "type": "block",
1170     "name": "block",
1171     "xml": "<block>\n",
1172     "atomic": "false",
1173     "comments": "",
1174     "outputs": 1,
1175     "x": 1290.0000839233398,
1176     "y": 588.0000352859497,
1177     "z": "8a925a2b.b01bd8",
1178     "wires": [
1179       []
1180     ]
1181   },
1182   {
1183     "id": "3aa5d5fd.f4649a",
1184     "type": "block",
1185     "name": "block : atomic",
1186     "xml": "<block atomic=\"true\">",
1187     "atomic": "true",
1188     "outputs": 1,
1189     "x": 576.0039215087891,
1190     "y": 1534.2500038146973,
1191     "z": "8a925a2b.b01bd8",
1192     "wires": [
1193       [
1194         "eae96cd9.5875e",
1195         "23f6c134.a5bc8e"
1196       ]
1197     ]
1198   },
1199   {
1200     "id": "eae96cd9.5875e",
1201     "type": "for",
1202     "name": "for each sdwan-get-request-input-param",
1203     "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1204     "comments": "",
1205     "outputs": 1,
1206     "x": 911.0041198730469,
1207     "y": 1480.2501260638237,
1208     "z": "8a925a2b.b01bd8",
1209     "wires": [
1210       [
1211         "34a921aa.b7fb2e"
1212       ]
1213     ]
1214   },
1215   {
1216     "id": "b45075fd.7aae48",
1217     "type": "comment",
1218     "name": "Required for filling template values",
1219     "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1220     "comments": "",
1221     "x": 933.4486236572266,
1222     "y": 1514.0832867622375,
1223     "z": "8a925a2b.b01bd8",
1224     "wires": []
1225   },
1226   {
1227     "id": "933f50a4.98d0e",
1228     "type": "comment",
1229     "name": "Remove VNFC prefix",
1230     "info": "",
1231     "comments": "",
1232     "x": 994.003963470459,
1233     "y": 1436.6944618225098,
1234     "z": "8a925a2b.b01bd8",
1235     "wires": []
1236   },
1237   {
1238     "id": "34a921aa.b7fb2e",
1239     "type": "block",
1240     "name": "block : atomic",
1241     "xml": "<block atomic=\"true\">",
1242     "atomic": "true",
1243     "outputs": 1,
1244     "x": 1158.0039672851562,
1245     "y": 1481.6943712234497,
1246     "z": "8a925a2b.b01bd8",
1247     "wires": [
1248       [
1249         "d1aee21e.a2d11",
1250         "7c70d1bd.e91da"
1251       ]
1252     ]
1253   },
1254   {
1255     "id": "f68facaa.6f9bc",
1256     "type": "comment",
1257     "name": "Take the parameter names by removing prefix",
1258     "info": "",
1259     "comments": "",
1260     "x": 1426.0038146972656,
1261     "y": 1397.250369310379,
1262     "z": "8a925a2b.b01bd8",
1263     "wires": []
1264   },
1265   {
1266     "id": "d1aee21e.a2d11",
1267     "type": "execute",
1268     "name": "execute split parameterName",
1269     "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",
1270     "comments": "",
1271     "outputs": 1,
1272     "x": 1377.0384826660156,
1273     "y": 1432.2294654846191,
1274     "z": "8a925a2b.b01bd8",
1275     "wires": [
1276       []
1277     ]
1278   },
1279   {
1280     "id": "7c70d1bd.e91da",
1281     "type": "set",
1282     "name": "set parameterName",
1283     "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",
1284     "comments": "",
1285     "x": 1365.4829559326172,
1286     "y": 1536.2294359207153,
1287     "z": "8a925a2b.b01bd8",
1288     "wires": []
1289   },
1290   {
1291     "id": "23f6c134.a5bc8e",
1292     "type": "call",
1293     "name": "call GENERIC-RESOURCE-API:sdwan-get-saved-ar-param",
1294     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sdwan-get-saved-ar-param' mode='sync' >\n",
1295     "comments": "",
1296     "outputs": 1,
1297     "x": 952.0039672851562,
1298     "y": 1554.2500658035278,
1299     "z": "8a925a2b.b01bd8",
1300     "wires": [
1301       []
1302     ]
1303   }
1304 ]