200f80ed1855fa76da71c132cb28b1f32e005e0b
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json
1 [
2   {
3     "id": "5133686c.68eb98",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 103.01040649414062,
8     "y": 42.010414123535156,
9     "z": "3425547d.b4704c",
10     "wires": [
11       [
12         "496791b5.8488d"
13       ]
14     ]
15   },
16   {
17     "id": "496791b5.8488d",
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": 315.0104103088379,
26     "y": 114.01043128967285,
27     "z": "3425547d.b4704c",
28     "wires": [
29       [
30         "177388c0.d59117"
31       ]
32     ]
33   },
34   {
35     "id": "177388c0.d59117",
36     "type": "method",
37     "name": "sotn-attachment-topology-operation-create",
38     "xml": "<method rpc='sotn-attachment-topology-operation-create' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 303.0105285644531,
42     "y": 202.01041412353516,
43     "z": "3425547d.b4704c",
44     "wires": [
45       [
46         "f8d7365b.409c58"
47       ]
48     ]
49   },
50   {
51     "id": "f8d7365b.409c58",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 223.01045989990234,
59     "y": 951.0106620788574,
60     "z": "3425547d.b4704c",
61     "wires": [
62       [
63         "9bdb10c1.b2c65",
64         "64a58452.ad453c",
65         "e271b8d5.7f00e8",
66         "1b3c993d.53c997",
67         "e93d7aa8.8afc58",
68         "52397993.71f7e8",
69         "e6318980.74cd38",
70         "461a26ad.352d08",
71         "99015db4.34427",
72         "302473e7.2159bc",
73         "8e35b842.c7d4f8",
74         "88bfb367.64d03",
75         "373e7d85.f8d5f2",
76         "ab686f72.f6d24",
77         "6568c68e.998458",
78         "42759b0d.8bfff4",
79         "7bc569ba.c7c2a8",
80         "aee1a7c1.04af88",
81         "c3e71ac5.708158",
82         "8031bd9b.aa492",
83         "b0b78151.f3bd1",
84         "13637009.f57bd",
85         "acf4df38.359e8"
86       ]
87     ]
88   },
89   {
90     "id": "f392c1a2.4633e",
91     "type": "comment",
92     "name": "Set allotted resource id if not sent by SO",
93     "info": "",
94     "comments": "",
95     "x": 707.087158203125,
96     "y": 111.44433307647705,
97     "z": "3425547d.b4704c",
98     "wires": []
99   },
100   {
101     "id": "9bdb10c1.b2c65",
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": 653.0104370117188,
108     "y": 167.01040649414062,
109     "z": "3425547d.b4704c",
110     "wires": [
111       [
112         "61aacc9.ea6e934",
113         "1e985c69.1db8d4"
114       ]
115     ]
116   },
117   {
118     "id": "61aacc9.ea6e934",
119     "type": "outcome",
120     "name": "NULL",
121     "xml": "<outcome value=''>",
122     "comments": "",
123     "outputs": 1,
124     "x": 851.0105247497559,
125     "y": 137.01039505004883,
126     "z": "3425547d.b4704c",
127     "wires": [
128       [
129         "89d751a9.4634e"
130       ]
131     ]
132   },
133   {
134     "id": "1e985c69.1db8d4",
135     "type": "other",
136     "name": "other",
137     "xml": "<outcome value='Other'>\n",
138     "comments": "",
139     "outputs": 1,
140     "x": 850.0104331970215,
141     "y": 174.0104055404663,
142     "z": "3425547d.b4704c",
143     "wires": [
144       [
145         "2d11e756.388fd8"
146       ]
147     ]
148   },
149   {
150     "id": "2d11e756.388fd8",
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": 1048.0104217529297,
156     "y": 171.01042461395264,
157     "z": "3425547d.b4704c",
158     "wires": []
159   },
160   {
161     "id": "64a58452.ad453c",
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": 621.0103607177734,
167     "y": 388.01051330566406,
168     "z": "3425547d.b4704c",
169     "wires": []
170   },
171   {
172     "id": "e271b8d5.7f00e8",
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": 621.2722778320312,
179     "y": 469.6771945953369,
180     "z": "3425547d.b4704c",
181     "wires": [
182       []
183     ]
184   },
185   {
186     "id": "1b3c993d.53c997",
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": 674.2723388671875,
193     "y": 556.6771125793457,
194     "z": "3425547d.b4704c",
195     "wires": [
196       []
197     ]
198   },
199   {
200     "id": "89d751a9.4634e",
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": 1066.0105018615723,
207     "y": 138.01040077209473,
208     "z": "3425547d.b4704c",
209     "wires": [
210       [
211         "eb62b50e.452978"
212       ]
213     ]
214   },
215   {
216     "id": "eb62b50e.452978",
217     "type": "failure",
218     "name": "failure",
219     "xml": "<outcome value='failure'>\n",
220     "comments": "",
221     "outputs": 1,
222     "x": 1284.0105438232422,
223     "y": 138.0103645324707,
224     "z": "3425547d.b4704c",
225     "wires": [
226       [
227         "21e39486.41c95c"
228       ]
229     ]
230   },
231   {
232     "id": "21e39486.41c95c",
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": 1450.010498046875,
238     "y": 138.01037883758545,
239     "z": "3425547d.b4704c",
240     "wires": []
241   },
242   {
243     "id": "69607a16.ab23b4",
244     "type": "success",
245     "name": "success",
246     "xml": "<outcome value='success'>\n",
247     "comments": "",
248     "outputs": 1,
249     "x": 1180.0106372833252,
250     "y": 628.7882852554321,
251     "z": "3425547d.b4704c",
252     "wires": [
253       [
254         "5509562b.e7bb48"
255       ]
256     ]
257   },
258   {
259     "id": "ff29c66f.d0c078",
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": 1913.529016494751,
265     "y": 629.8543567657471,
266     "z": "3425547d.b4704c",
267     "wires": []
268   },
269   {
270     "id": "988573f5.64b22",
271     "type": "comment",
272     "name": "Check for non existence of allotted resource",
273     "info": "",
274     "comments": "",
275     "x": 1036.0105590820312,
276     "y": 562.7883520126343,
277     "z": "3425547d.b4704c",
278     "wires": []
279   },
280   {
281     "id": "ae4a4ff0.de2",
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": 1556.6771049499512,
288     "y": 773.0104644298553,
289     "z": "3425547d.b4704c",
290     "wires": [
291       [
292         "79ba7554.7b000c"
293       ]
294     ]
295   },
296   {
297     "id": "52397993.71f7e8",
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": 738.6764297485352,
304     "y": 749.7244968414307,
305     "z": "3425547d.b4704c",
306     "wires": [
307       [
308         "ae3cba2c.22d388",
309         "70e9802d.1c53d"
310       ]
311     ]
312   },
313   {
314     "id": "ae3cba2c.22d388",
315     "type": "other",
316     "name": "outcome Null",
317     "xml": "<outcome value=''>\n",
318     "comments": "",
319     "outputs": 1,
320     "x": 1042.8193283081055,
321     "y": 718.5819339752197,
322     "z": "3425547d.b4704c",
323     "wires": [
324       [
325         "b72b861c.815eb8"
326       ]
327     ]
328   },
329   {
330     "id": "70e9802d.1c53d",
331     "type": "other",
332     "name": "other",
333     "xml": "<outcome value='Other'>\n",
334     "comments": "",
335     "outputs": 1,
336     "x": 1019.8193778991699,
337     "y": 779.5818891525269,
338     "z": "3425547d.b4704c",
339     "wires": [
340       [
341         "11ff47a3.643388"
342       ]
343     ]
344   },
345   {
346     "id": "11ff47a3.643388",
347     "type": "block",
348     "name": "block : atomic",
349     "xml": "<block atomic=\"true\">",
350     "atomic": "true",
351     "outputs": 1,
352     "x": 1179.9464683532715,
353     "y": 777.7078657150269,
354     "z": "3425547d.b4704c",
355     "wires": [
356       [
357         "ae4a4ff0.de2",
358         "73e79a71.cfae24",
359         "c9aa1cc3.3ec63"
360       ]
361     ]
362   },
363   {
364     "id": "b72b861c.815eb8",
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": 1192.67631149292,
370     "y": 716.2959842681885,
371     "z": "3425547d.b4704c",
372     "wires": []
373   },
374   {
375     "id": "e6318980.74cd38",
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": 667.5337219238281,
381     "y": 853.2960615158081,
382     "z": "3425547d.b4704c",
383     "wires": []
384   },
385   {
386     "id": "73e79a71.cfae24",
387     "type": "switchNode",
388     "name": "switch tmp.found-cidx",
389     "xml": "<switch test='`$tmp.found-cidx`'>\n",
390     "comments": "",
391     "outputs": 1,
392     "x": 1369.0615158081055,
393     "y": 809.7193884849548,
394     "z": "3425547d.b4704c",
395     "wires": [
396       [
397         "c00df3d6.a23ca"
398       ]
399     ]
400   },
401   {
402     "id": "c00df3d6.a23ca",
403     "type": "outcomeTrue",
404     "name": "false",
405     "xml": "<outcome value='false'>\n",
406     "comments": "",
407     "outputs": 1,
408     "x": 1559.0614700317383,
409     "y": 809.71932554245,
410     "z": "3425547d.b4704c",
411     "wires": [
412       [
413         "210f1d5f.874d72"
414       ]
415     ]
416   },
417   {
418     "id": "210f1d5f.874d72",
419     "type": "block",
420     "name": "block : atomic",
421     "xml": "<block atomic=\"true\">",
422     "atomic": "true",
423     "outputs": 1,
424     "x": 1725.0614700317383,
425     "y": 809.71932554245,
426     "z": "3425547d.b4704c",
427     "wires": [
428       [
429         "9f784ab7.a1a108"
430       ]
431     ]
432   },
433   {
434     "id": "79ba7554.7b000c",
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": 1973.7887344360352,
441     "y": 770.0104913711548,
442     "z": "3425547d.b4704c",
443     "wires": [
444       [
445         "6f5753b3.9563cc"
446       ]
447     ]
448   },
449   {
450     "id": "6f5753b3.9563cc",
451     "type": "outcomeTrue",
452     "name": "true",
453     "xml": "<outcome value='true'>\n",
454     "comments": "",
455     "outputs": 1,
456     "x": 2155.5983085632324,
457     "y": 770.4749383926392,
458     "z": "3425547d.b4704c",
459     "wires": [
460       [
461         "65ad78ab.417bb8"
462       ]
463     ]
464   },
465   {
466     "id": "9f784ab7.a1a108",
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": 1886.9348526000977,
472     "y": 809.2310266494751,
473     "z": "3425547d.b4704c",
474     "wires": []
475   },
476   {
477     "id": "829f78ea.771c88",
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": 759.6776428222656,
483     "y": 680.0104608535767,
484     "z": "3425547d.b4704c",
485     "wires": []
486   },
487   {
488     "id": "8b9e14b0.ee2668",
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": 747.0105590820312,
494     "y": 818.788553237915,
495     "z": "3425547d.b4704c",
496     "wires": []
497   },
498   {
499     "id": "13637009.f57bd",
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": 652.7012557983398,
506     "y": 1868.5423040390015,
507     "z": "3425547d.b4704c",
508     "wires": [
509       [
510         "2383f0f.fe77a1",
511         "1726f753.540739"
512       ]
513     ]
514   },
515   {
516     "id": "2383f0f.fe77a1",
517     "type": "failure",
518     "name": "failure",
519     "xml": "<outcome value='failure'>\n",
520     "comments": "",
521     "outputs": 1,
522     "x": 847.463191986084,
523     "y": 1859.4949054718018,
524     "z": "3425547d.b4704c",
525     "wires": [
526       [
527         "bfb0685f.193b68"
528       ]
529     ]
530   },
531   {
532     "id": "bfb0685f.193b68",
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": 1013.9870719909668,
538     "y": 1871.1139764785767,
539     "z": "3425547d.b4704c",
540     "wires": []
541   },
542   {
543     "id": "1726f753.540739",
544     "type": "failure",
545     "name": "not-found",
546     "xml": "<outcome value='not-found'>\n",
547     "comments": "",
548     "outputs": 1,
549     "x": 854.558479309082,
550     "y": 1892.2568731307983,
551     "z": "3425547d.b4704c",
552     "wires": [
553       [
554         "bfb0685f.193b68"
555       ]
556     ]
557   },
558   {
559     "id": "da5dd301.64278",
560     "type": "comment",
561     "name": "Save Resource to AAI",
562     "info": "",
563     "comments": "",
564     "x": 628.5108871459961,
565     "y": 1830.8442754745483,
566     "z": "3425547d.b4704c",
567     "wires": []
568   },
569   {
570     "id": "d50db86.5001548",
571     "type": "comment",
572     "name": "Set allotted resource type if not sent by SO",
573     "info": "",
574     "comments": "",
575     "x": 693.0104064941406,
576     "y": 220.01041412353516,
577     "z": "3425547d.b4704c",
578     "wires": []
579   },
580   {
581     "id": "e93d7aa8.8afc58",
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": 654.9337158203125,
588     "y": 260.57647037506104,
589     "z": "3425547d.b4704c",
590     "wires": [
591       [
592         "f6469c6d.d6d7c",
593         "6b6259b5.f45218"
594       ]
595     ]
596   },
597   {
598     "id": "f6469c6d.d6d7c",
599     "type": "outcome",
600     "name": "NULL",
601     "xml": "<outcome value=''>",
602     "comments": "",
603     "outputs": 1,
604     "x": 857.9338684082031,
605     "y": 245.57647323608398,
606     "z": "3425547d.b4704c",
607     "wires": [
608       [
609         "9e957e4b.c63b4"
610       ]
611     ]
612   },
613   {
614     "id": "6b6259b5.f45218",
615     "type": "other",
616     "name": "other",
617     "xml": "<outcome value='Other'>\n",
618     "comments": "",
619     "outputs": 1,
620     "x": 850.9336967468262,
621     "y": 285.57649326324463,
622     "z": "3425547d.b4704c",
623     "wires": [
624       [
625         "6a7aae3b.c248e"
626       ]
627     ]
628   },
629   {
630     "id": "6a7aae3b.c248e",
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": 1082.933681488037,
636     "y": 285.5764980316162,
637     "z": "3425547d.b4704c",
638     "wires": []
639   },
640   {
641     "id": "9d9d583f.dbc9c8",
642     "type": "comment",
643     "name": "For storage in AAI connection-attachment-topology",
644     "info": "",
645     "comments": "",
646     "x": 718.010368347168,
647     "y": 355.01041412353516,
648     "z": "3425547d.b4704c",
649     "wires": []
650   },
651   {
652     "id": "2787339d.0e091c",
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": 693.0103530883789,
658     "y": 436.89932346343994,
659     "z": "3425547d.b4704c",
660     "wires": []
661   },
662   {
663     "id": "da385e9d.31c6e",
664     "type": "comment",
665     "name": "Used for Put AR by id to MDSAL",
666     "info": "",
667     "comments": "",
668     "x": 659.0104370117188,
669     "y": 525.8993406295776,
670     "z": "3425547d.b4704c",
671     "wires": []
672   },
673   {
674     "id": "fb746d4c.98d2e",
675     "type": "comment",
676     "name": "Obtain the last index in services",
677     "info": "ServiceData is added by Provider code",
678     "comments": "",
679     "x": 660.4548797607422,
680     "y": 711.8992853164673,
681     "z": "3425547d.b4704c",
682     "wires": []
683   },
684   {
685     "id": "c3e71ac5.708158",
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": 638.2785415649414,
691     "y": 1775.3696031570435,
692     "z": "3425547d.b4704c",
693     "wires": []
694   },
695   {
696     "id": "8031bd9b.aa492",
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": 606.6916198730469,
702     "y": 1916.9853897094727,
703     "z": "3425547d.b4704c",
704     "wires": []
705   },
706   {
707     "id": "9e957e4b.c63b4",
708     "type": "set",
709     "name": "set tmp.ar.allotted-resource-type",
710     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
711     "comments": "",
712     "x": 1097.010555267334,
713     "y": 246.0103998184204,
714     "z": "3425547d.b4704c",
715     "wires": []
716   },
717   {
718     "id": "31ce0f6c.4be64",
719     "type": "call",
720     "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
721     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
722     "comments": "",
723     "outputs": 1,
724     "x": 940.0045623779297,
725     "y": 1624.5041437149048,
726     "z": "3425547d.b4704c",
727     "wires": [
728       []
729     ]
730   },
731   {
732     "id": "aee1a7c1.04af88",
733     "type": "execute",
734     "name": "execute RestApiCallNode - PUT AR by id",
735     "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sotn-attachment.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='PUT' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
736     "comments": "",
737     "outputs": 1,
738     "x": 689.0106735229492,
739     "y": 1709.0105323791504,
740     "z": "3425547d.b4704c",
741     "wires": [
742       [
743         "8776bfe5.59d94",
744         "d7639202.15d54",
745         "3089b749.6674a8"
746       ]
747     ]
748   },
749   {
750     "id": "8776bfe5.59d94",
751     "type": "not-found",
752     "name": "not-found",
753     "xml": "<outcome value='not-found'>\n",
754     "comments": "",
755     "outputs": 1,
756     "x": 938.652027130127,
757     "y": 1747.3418626785278,
758     "z": "3425547d.b4704c",
759     "wires": [
760       [
761         "7514cc17.dfede4"
762       ]
763     ]
764   },
765   {
766     "id": "d7639202.15d54",
767     "type": "failure",
768     "name": "failure",
769     "xml": "<outcome value='failure'>\n",
770     "comments": "",
771     "outputs": 1,
772     "x": 929.6520767211914,
773     "y": 1715.8418884277344,
774     "z": "3425547d.b4704c",
775     "wires": [
776       [
777         "7514cc17.dfede4"
778       ]
779     ]
780   },
781   {
782     "id": "3089b749.6674a8",
783     "type": "success",
784     "name": "success",
785     "xml": "<outcome value='success'>\n",
786     "comments": "",
787     "outputs": 1,
788     "x": 933.4021148681641,
789     "y": 1686.1989933028817,
790     "z": "3425547d.b4704c",
791     "wires": [
792       [
793         "e2b27745.660088"
794       ]
795     ]
796   },
797   {
798     "id": "7514cc17.dfede4",
799     "type": "returnFailure",
800     "name": "return failure",
801     "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",
802     "comments": "",
803     "x": 1099.402114868164,
804     "y": 1716.5919122695923,
805     "z": "3425547d.b4704c",
806     "wires": []
807   },
808   {
809     "id": "e2b27745.660088",
810     "type": "block",
811     "name": "block",
812     "xml": "<block>\n",
813     "atomic": "false",
814     "comments": "",
815     "outputs": 1,
816     "x": 1075.0580825805664,
817     "y": 1682.3911624923348,
818     "z": "3425547d.b4704c",
819     "wires": [
820       []
821     ]
822   },
823   {
824     "id": "8e35b842.c7d4f8",
825     "type": "execute",
826     "name": "execute RestApiCallNode - Update parent provided service AR",
827     "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",
828     "comments": "",
829     "outputs": 1,
830     "x": 759.0103607177734,
831     "y": 1135.010579109192,
832     "z": "3425547d.b4704c",
833     "wires": [
834       [
835         "4a784746.dec008",
836         "c64e1e39.2251",
837         "be9dd1f.2b8ae3"
838       ]
839     ]
840   },
841   {
842     "id": "4a784746.dec008",
843     "type": "not-found",
844     "name": "not-found",
845     "xml": "<outcome value='not-found'>\n",
846     "comments": "",
847     "outputs": 1,
848     "x": 1067.3184204101562,
849     "y": 1167.0088548660278,
850     "z": "3425547d.b4704c",
851     "wires": [
852       [
853         "fa176469.0fc3f8"
854       ]
855     ]
856   },
857   {
858     "id": "c64e1e39.2251",
859     "type": "failure",
860     "name": "failure",
861     "xml": "<outcome value='failure'>\n",
862     "comments": "",
863     "outputs": 1,
864     "x": 1058.3184700012207,
865     "y": 1135.5088806152344,
866     "z": "3425547d.b4704c",
867     "wires": [
868       [
869         "fa176469.0fc3f8"
870       ]
871     ]
872   },
873   {
874     "id": "be9dd1f.2b8ae3",
875     "type": "success",
876     "name": "success",
877     "xml": "<outcome value='success'>\n",
878     "comments": "",
879     "outputs": 1,
880     "x": 1062.0685081481934,
881     "y": 1105.8659854903817,
882     "z": "3425547d.b4704c",
883     "wires": [
884       [
885         "a7887873.602db8"
886       ]
887     ]
888   },
889   {
890     "id": "fa176469.0fc3f8",
891     "type": "returnFailure",
892     "name": "return failure",
893     "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",
894     "comments": "",
895     "x": 1228.0685081481934,
896     "y": 1136.2589044570923,
897     "z": "3425547d.b4704c",
898     "wires": []
899   },
900   {
901     "id": "a7887873.602db8",
902     "type": "block",
903     "name": "block",
904     "xml": "<block>\n",
905     "atomic": "false",
906     "comments": "",
907     "outputs": 1,
908     "x": 1203.7244758605957,
909     "y": 1102.0581546798348,
910     "z": "3425547d.b4704c",
911     "wires": [
912       []
913     ]
914   },
915   {
916     "id": "21d4e2e4.5ed5fe",
917     "type": "comment",
918     "name": "Put the parent allotted resource in mdsal",
919     "info": "",
920     "comments": "",
921     "x": 688.0103073120117,
922     "y": 1097.010485649109,
923     "z": "3425547d.b4704c",
924     "wires": []
925   },
926   {
927     "id": "373e7d85.f8d5f2",
928     "type": "set",
929     "name": "set connection-attachment-ar-identifiers",
930     "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",
931     "comments": "",
932     "x": 684.3674926757812,
933     "y": 1299.5821046829224,
934     "z": "3425547d.b4704c",
935     "wires": []
936   },
937   {
938     "id": "88bfb367.64d03",
939     "type": "set",
940     "name": "set ar-data",
941     "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.` \" />",
942     "comments": "",
943     "x": 598.2242736816406,
944     "y": 1267.3914613723755,
945     "z": "3425547d.b4704c",
946     "wires": []
947   },
948   {
949     "id": "ab686f72.f6d24",
950     "type": "set",
951     "name": "set identifiers in overall structure",
952     "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",
953     "comments": "",
954     "x": 663.1772918701172,
955     "y": 1333.6772899627686,
956     "z": "3425547d.b4704c",
957     "wires": []
958   },
959   {
960     "id": "6568c68e.998458",
961     "type": "execute",
962     "name": "execute getTime",
963     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
964     "comments": "",
965     "outputs": 1,
966     "x": 615.5101318359375,
967     "y": 1407.010817527771,
968     "z": "3425547d.b4704c",
969     "wires": [
970       []
971     ]
972   },
973   {
974     "id": "42759b0d.8bfff4",
975     "type": "set",
976     "name": "set allotted-resource-oper-status",
977     "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",
978     "comments": "",
979     "x": 666.4971694946289,
980     "y": 1462.9620504379272,
981     "z": "3425547d.b4704c",
982     "wires": []
983   },
984   {
985     "id": "7bc569ba.c7c2a8",
986     "type": "set",
987     "name": "set model-data",
988     "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.` \" />",
989     "comments": "",
990     "x": 611.065788269043,
991     "y": 1368.5661754608154,
992     "z": "3425547d.b4704c",
993     "wires": []
994   },
995   {
996     "id": "5eda0baa.a6ac24",
997     "type": "comment",
998     "name": "Prepare data for allotted-resource addition to MDSAL",
999     "info": "This will add to allotted-resource which is present inside service.",
1000     "comments": "",
1001     "x": 728.3992767333984,
1002     "y": 1233.5660219192505,
1003     "z": "3425547d.b4704c",
1004     "wires": []
1005   },
1006   {
1007     "id": "302473e7.2159bc",
1008     "type": "execute",
1009     "name": "generate parent-ar url - replace allotted-resource-id",
1010     "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",
1011     "comments": "",
1012     "outputs": 1,
1013     "x": 723.5104217529297,
1014     "y": 1061.0104246139526,
1015     "z": "3425547d.b4704c",
1016     "wires": [
1017       []
1018     ]
1019   },
1020   {
1021     "id": "99015db4.34427",
1022     "type": "execute",
1023     "name": "generate parent-ar url - replace service-instance-id",
1024     "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",
1025     "comments": "",
1026     "outputs": 1,
1027     "x": 719.5103454589844,
1028     "y": 1018.0105609893799,
1029     "z": "3425547d.b4704c",
1030     "wires": [
1031       []
1032     ]
1033   },
1034   {
1035     "id": "ac4fa77d.cd6878",
1036     "type": "comment",
1037     "name": "Prepare Parent AR URL",
1038     "info": "Preparation to set provided-allotted-resource in parent service instance",
1039     "comments": "",
1040     "x": 637.5108032226562,
1041     "y": 947.0105142593384,
1042     "z": "3425547d.b4704c",
1043     "wires": []
1044   },
1045   {
1046     "id": "461a26ad.352d08",
1047     "type": "set",
1048     "name": "set tmp.ar.parent-service-instance-id",
1049     "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",
1050     "comments": "",
1051     "x": 676.5105972290039,
1052     "y": 980.5104537010193,
1053     "z": "3425547d.b4704c",
1054     "wires": []
1055   },
1056   {
1057     "id": "fc5e8c6b.8fefa",
1058     "type": "comment",
1059     "name": "Required for filling template values",
1060     "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1061     "comments": "",
1062     "x": 866.0107650756836,
1063     "y": 1587.5102167129517,
1064     "z": "3425547d.b4704c",
1065     "wires": []
1066   },
1067   {
1068     "id": "65ad78ab.417bb8",
1069     "type": "returnFailure",
1070     "name": "return failure",
1071     "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",
1072     "comments": "",
1073     "x": 2233.767379760742,
1074     "y": 818.6562433242798,
1075     "z": "3425547d.b4704c",
1076     "wires": []
1077   },
1078   {
1079     "id": "c9aa1cc3.3ec63",
1080     "type": "set",
1081     "name": "set tmp.found-cidx",
1082     "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1083     "comments": "",
1084     "x": 1359.656551361084,
1085     "y": 730.3229863643646,
1086     "z": "3425547d.b4704c",
1087     "wires": []
1088   },
1089   {
1090     "id": "ff67ccb2.50d8",
1091     "type": "comment",
1092     "name": "Add to parent services provided-allotted-resources in mdsal",
1093     "info": "",
1094     "comments": "",
1095     "x": 748.2119140625,
1096     "y": 914.989670753479,
1097     "z": "3425547d.b4704c",
1098     "wires": []
1099   },
1100   {
1101     "id": "a5a8871f.3c0658",
1102     "type": "comment",
1103     "name": "Add to allotted-resources in mdsal",
1104     "info": "",
1105     "comments": "",
1106     "x": 668.9791030883789,
1107     "y": 1200.9793510437012,
1108     "z": "3425547d.b4704c",
1109     "wires": []
1110   },
1111   {
1112     "id": "5509562b.e7bb48",
1113     "type": "block",
1114     "name": "block: atomic",
1115     "xml": "<block atomic=\"true\">\n",
1116     "atomic": "false",
1117     "comments": "",
1118     "outputs": 1,
1119     "x": 1342.0104579925537,
1120     "y": 628.2881746292114,
1121     "z": "3425547d.b4704c",
1122     "wires": [
1123       [
1124         "f6f2507e.ba037"
1125       ]
1126     ]
1127   },
1128   {
1129     "id": "f6f2507e.ba037",
1130     "type": "switchNode",
1131     "name": "switch cr length",
1132     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1133     "comments": "",
1134     "outputs": 1,
1135     "x": 1529.8678379058838,
1136     "y": 628.9073100090027,
1137     "z": "3425547d.b4704c",
1138     "wires": [
1139       [
1140         "7ebe7287.439dec"
1141       ]
1142     ]
1143   },
1144   {
1145     "id": "7ebe7287.439dec",
1146     "type": "other",
1147     "name": "outcome 1",
1148     "xml": "<outcome value='1'>\n",
1149     "comments": "",
1150     "outputs": 1,
1151     "x": 1729.2009601593018,
1152     "y": 628.9073886871338,
1153     "z": "3425547d.b4704c",
1154     "wires": [
1155       [
1156         "ff29c66f.d0c078"
1157       ]
1158     ]
1159   },
1160   {
1161     "id": "b0b78151.f3bd1",
1162     "type": "execute",
1163     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1164     "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",
1165     "comments": "",
1166     "outputs": 1,
1167     "x": 814.0104598999023,
1168     "y": 623.0104503631592,
1169     "z": "3425547d.b4704c",
1170     "wires": [
1171       [
1172         "69607a16.ab23b4",
1173         "4afffe17.752bc"
1174       ]
1175     ]
1176   },
1177   {
1178     "id": "4afffe17.752bc",
1179     "type": "failure",
1180     "name": "failure",
1181     "xml": "<outcome value='failure'>\n",
1182     "comments": "",
1183     "outputs": 1,
1184     "x": 1182.0104904174805,
1185     "y": 593.0104484558105,
1186     "z": "3425547d.b4704c",
1187     "wires": [
1188       [
1189         "5d7e4f7b.5aaa4"
1190       ]
1191     ]
1192   },
1193   {
1194     "id": "5d7e4f7b.5aaa4",
1195     "type": "block",
1196     "name": "block",
1197     "xml": "<block>\n",
1198     "atomic": "false",
1199     "comments": "",
1200     "outputs": 1,
1201     "x": 1334.0104904174805,
1202     "y": 592.0104484558105,
1203     "z": "3425547d.b4704c",
1204     "wires": [
1205       []
1206     ]
1207   },
1208   {
1209     "id": "acf4df38.359e8",
1210     "type": "block",
1211     "name": "block : atomic",
1212     "xml": "<block atomic=\"true\">",
1213     "atomic": "true",
1214     "outputs": 1,
1215     "x": 610.5660171508789,
1216     "y": 1542.6770677566528,
1217     "z": "3425547d.b4704c",
1218     "wires": [
1219       [
1220         "e883ed0e.70e5",
1221         "31ce0f6c.4be64"
1222       ]
1223     ]
1224   },
1225   {
1226     "id": "e883ed0e.70e5",
1227     "type": "for",
1228     "name": "for each sotn-get-request-input-param",
1229     "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1230     "comments": "",
1231     "outputs": 1,
1232     "x": 880.5660820007324,
1233     "y": 1542.6771154403687,
1234     "z": "3425547d.b4704c",
1235     "wires": [
1236       [
1237         "c8bff3cc.09d2c"
1238       ]
1239     ]
1240   },
1241   {
1242     "id": "8e066326.71f27",
1243     "type": "comment",
1244     "name": "Take the parameter names by removing prefix",
1245     "info": "",
1246     "comments": "",
1247     "x": 1420.5658645629883,
1248     "y": 1498.6771488189697,
1249     "z": "3425547d.b4704c",
1250     "wires": []
1251   },
1252   {
1253     "id": "a6906228.fcd97",
1254     "type": "execute",
1255     "name": "execute split parameterName",
1256     "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",
1257     "comments": "",
1258     "outputs": 1,
1259     "x": 1378.6005325317383,
1260     "y": 1533.65629196167,
1261     "z": "3425547d.b4704c",
1262     "wires": [
1263       []
1264     ]
1265   },
1266   {
1267     "id": "d3547289.18d19",
1268     "type": "set",
1269     "name": "set parameterName",
1270     "xml": "<set>\n<parameter name=\"`connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
1271     "comments": "",
1272     "x": 1349.0450592041016,
1273     "y": 1566.65629196167,
1274     "z": "3425547d.b4704c",
1275     "wires": []
1276   },
1277   {
1278     "id": "80d52421.de6378",
1279     "type": "comment",
1280     "name": "Remove VNFC prefix",
1281     "info": "",
1282     "comments": "",
1283     "x": 821.5660095214844,
1284     "y": 1510.1214294433594,
1285     "z": "3425547d.b4704c",
1286     "wires": []
1287   },
1288   {
1289     "id": "c8bff3cc.09d2c",
1290     "type": "block",
1291     "name": "block : atomic",
1292     "xml": "<block atomic=\"true\">",
1293     "atomic": "true",
1294     "outputs": 1,
1295     "x": 1127.56591796875,
1296     "y": 1541.1214599609375,
1297     "z": "3425547d.b4704c",
1298     "wires": [
1299       [
1300         "a6906228.fcd97",
1301         "d3547289.18d19"
1302       ]
1303     ]
1304   }
1305 ]