integration test issues fix for sdwan and sotn
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json
1 [
2   {
3     "id": "c96eae79.08813",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 100,
8     "y": 40,
9     "z": "307cdf1d.539fd",
10     "wires": [
11       [
12         "2bbd4a2b.66a236"
13       ]
14     ]
15   },
16   {
17     "id": "2bbd4a2b.66a236",
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": 275.00000381469727,
26     "y": 112.0000171661377,
27     "z": "307cdf1d.539fd",
28     "wires": [
29       [
30         "7de06dac.f33994"
31       ]
32     ]
33   },
34   {
35     "id": "7de06dac.f33994",
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": 263.0001220703125,
42     "y": 200,
43     "z": "307cdf1d.539fd",
44     "wires": [
45       [
46         "8a29d369.0bab4"
47       ]
48     ]
49   },
50   {
51     "id": "8a29d369.0bab4",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 183.00005340576172,
59     "y": 949.0002479553223,
60     "z": "307cdf1d.539fd",
61     "wires": [
62       [
63         "51f31211.8f114c",
64         "a2a65745.852438",
65         "f3044df1.6f232",
66         "5ba82df.f35b0d4",
67         "2da52da7.95c362",
68         "dc7e1c21.4599e",
69         "7bdd95f3.db24ac",
70         "371cf69b.dabcaa",
71         "c34405e1.82d938",
72         "46e15a07.ae9ba4",
73         "cd08d99a.10abb8",
74         "c56a158b.169088",
75         "3292b995.f13186",
76         "71214832.584f28",
77         "23b7a6d1.9a369a",
78         "4ebfff40.f0aa5",
79         "cb431e44.1b2d7",
80         "6c73a0d6.045f8",
81         "1f74500.b2f7fb",
82         "6d4b764b.a8a308",
83         "6e7b925f.51d77c",
84         "92f874df.f4a158",
85         "ea8d2a7c.dc1c98",
86         "5a956e5b.11a09"
87       ]
88     ]
89   },
90   {
91     "id": "dceaac22.2856",
92     "type": "comment",
93     "name": "Set allotted resource id if not sent by SO",
94     "info": "",
95     "comments": "",
96     "x": 667.0767517089844,
97     "y": 109.4339189529419,
98     "z": "307cdf1d.539fd",
99     "wires": []
100   },
101   {
102     "id": "51f31211.8f114c",
103     "type": "switchNode",
104     "name": "switch allotted-resource-id",
105     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
106     "comments": "",
107     "outputs": 1,
108     "x": 613.0000305175781,
109     "y": 164.99999237060547,
110     "z": "307cdf1d.539fd",
111     "wires": [
112       [
113         "5d06a5f3.384e7c",
114         "a9453642.a0afc8"
115       ]
116     ]
117   },
118   {
119     "id": "5d06a5f3.384e7c",
120     "type": "outcome",
121     "name": "NULL",
122     "xml": "<outcome value=''>",
123     "comments": "",
124     "outputs": 1,
125     "x": 811.0001182556152,
126     "y": 134.99998092651367,
127     "z": "307cdf1d.539fd",
128     "wires": [
129       [
130         "b367b4cb.81eda8"
131       ]
132     ]
133   },
134   {
135     "id": "a9453642.a0afc8",
136     "type": "other",
137     "name": "other",
138     "xml": "<outcome value='Other'>\n",
139     "comments": "",
140     "outputs": 1,
141     "x": 810.0000267028809,
142     "y": 171.99999141693115,
143     "z": "307cdf1d.539fd",
144     "wires": [
145       [
146         "b2cd00b8.57706"
147       ]
148     ]
149   },
150   {
151     "id": "b2cd00b8.57706",
152     "type": "set",
153     "name": "set tmp.ar.allotted-resource-id",
154     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
155     "comments": "",
156     "x": 1008.0000152587891,
157     "y": 169.00001049041748,
158     "z": "307cdf1d.539fd",
159     "wires": []
160   },
161   {
162     "id": "a2a65745.852438",
163     "type": "set",
164     "name": "set tmp.ar.self-link",
165     "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",
166     "comments": "",
167     "x": 580.9999542236328,
168     "y": 386.0000991821289,
169     "z": "307cdf1d.539fd",
170     "wires": []
171   },
172   {
173     "id": "f3044df1.6f232",
174     "type": "execute",
175     "name": "execute Properties",
176     "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",
177     "comments": "",
178     "outputs": 1,
179     "x": 581.2618713378906,
180     "y": 467.66678047180176,
181     "z": "307cdf1d.539fd",
182     "wires": [
183       []
184     ]
185   },
186   {
187     "id": "5ba82df.f35b0d4",
188     "type": "execute",
189     "name": "generate allotted-resource tmp.ar-url",
190     "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",
191     "comments": "",
192     "outputs": 1,
193     "x": 634.2619323730469,
194     "y": 554.6666984558105,
195     "z": "307cdf1d.539fd",
196     "wires": [
197       []
198     ]
199   },
200   {
201     "id": "b367b4cb.81eda8",
202     "type": "execute",
203     "name": "execute tmp.ar.allotted-resource-id",
204     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
205     "comments": "",
206     "outputs": 1,
207     "x": 1026.0000953674316,
208     "y": 135.99998664855957,
209     "z": "307cdf1d.539fd",
210     "wires": [
211       [
212         "a3bb33e3.15368"
213       ]
214     ]
215   },
216   {
217     "id": "a3bb33e3.15368",
218     "type": "failure",
219     "name": "failure",
220     "xml": "<outcome value='failure'>\n",
221     "comments": "",
222     "outputs": 1,
223     "x": 1244.0001373291016,
224     "y": 135.99995040893555,
225     "z": "307cdf1d.539fd",
226     "wires": [
227       [
228         "1a685e2d.8d4cc2"
229       ]
230     ]
231   },
232   {
233     "id": "1a685e2d.8d4cc2",
234     "type": "returnFailure",
235     "name": "return failure",
236     "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",
237     "comments": "",
238     "x": 1410.0000915527344,
239     "y": 135.9999647140503,
240     "z": "307cdf1d.539fd",
241     "wires": []
242   },
243   {
244     "id": "8b5477db.c5c9d8",
245     "type": "success",
246     "name": "success",
247     "xml": "<outcome value='success'>\n",
248     "comments": "",
249     "outputs": 1,
250     "x": 1140.0002307891846,
251     "y": 626.777871131897,
252     "z": "307cdf1d.539fd",
253     "wires": [
254       [
255         "5b1e701f.600c"
256       ]
257     ]
258   },
259   {
260     "id": "cc9f7f26.8914e",
261     "type": "returnFailure",
262     "name": "return failure",
263     "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",
264     "comments": "",
265     "x": 1873.5186100006104,
266     "y": 627.8439426422119,
267     "z": "307cdf1d.539fd",
268     "wires": []
269   },
270   {
271     "id": "65a2f2cb.5edd4c",
272     "type": "comment",
273     "name": "Check for non existence of allotted resource",
274     "info": "",
275     "comments": "",
276     "x": 996.0001525878906,
277     "y": 560.7779378890991,
278     "z": "307cdf1d.539fd",
279     "wires": []
280   },
281   {
282     "id": "2eaa291f.8f6b46",
283     "type": "for",
284     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
285     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
286     "comments": "",
287     "outputs": 1,
288     "x": 1516.6666984558105,
289     "y": 771.0000503063202,
290     "z": "307cdf1d.539fd",
291     "wires": [
292       [
293         "1bef4b2b.0d1235"
294       ]
295     ]
296   },
297   {
298     "id": "dc7e1c21.4599e",
299     "type": "switchNode",
300     "name": "switch service-data.consumed-allotted-resources_length",
301     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
302     "comments": "",
303     "outputs": 1,
304     "x": 698.6660232543945,
305     "y": 747.7140827178955,
306     "z": "307cdf1d.539fd",
307     "wires": [
308       [
309         "f0ad968c.edb0a8",
310         "6ec4508a.edb8"
311       ]
312     ]
313   },
314   {
315     "id": "f0ad968c.edb0a8",
316     "type": "other",
317     "name": "outcome Null",
318     "xml": "<outcome value=''>\n",
319     "comments": "",
320     "outputs": 1,
321     "x": 1002.8089218139648,
322     "y": 716.5715198516846,
323     "z": "307cdf1d.539fd",
324     "wires": [
325       [
326         "1bdd00e8.bfe58f"
327       ]
328     ]
329   },
330   {
331     "id": "6ec4508a.edb8",
332     "type": "other",
333     "name": "other",
334     "xml": "<outcome value='Other'>\n",
335     "comments": "",
336     "outputs": 1,
337     "x": 979.8089714050293,
338     "y": 777.5714750289917,
339     "z": "307cdf1d.539fd",
340     "wires": [
341       [
342         "db245e97.27431"
343       ]
344     ]
345   },
346   {
347     "id": "db245e97.27431",
348     "type": "block",
349     "name": "block : atomic",
350     "xml": "<block atomic=\"true\">",
351     "atomic": "true",
352     "outputs": 1,
353     "x": 1139.9360618591309,
354     "y": 775.6974515914917,
355     "z": "307cdf1d.539fd",
356     "wires": [
357       [
358         "2eaa291f.8f6b46",
359         "493dd1d2.fc196",
360         "23139ea3.633f22"
361       ]
362     ]
363   },
364   {
365     "id": "1bdd00e8.bfe58f",
366     "type": "set",
367     "name": "set cidx",
368     "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",
369     "comments": "",
370     "x": 1152.6659049987793,
371     "y": 714.2855701446533,
372     "z": "307cdf1d.539fd",
373     "wires": []
374   },
375   {
376     "id": "7bdd95f3.db24ac",
377     "type": "set",
378     "name": "set consumed allotted resources",
379     "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",
380     "comments": "",
381     "x": 627.5233154296875,
382     "y": 851.285647392273,
383     "z": "307cdf1d.539fd",
384     "wires": []
385   },
386   {
387     "id": "493dd1d2.fc196",
388     "type": "switchNode",
389     "name": "switch tmp.found-cidx",
390     "xml": "<switch test='`$tmp.found-cidx`'>\n",
391     "comments": "",
392     "outputs": 1,
393     "x": 1329.0511093139648,
394     "y": 807.7089743614197,
395     "z": "307cdf1d.539fd",
396     "wires": [
397       [
398         "2ccff848.6a8838"
399       ]
400     ]
401   },
402   {
403     "id": "2ccff848.6a8838",
404     "type": "outcomeTrue",
405     "name": "false",
406     "xml": "<outcome value='false'>\n",
407     "comments": "",
408     "outputs": 1,
409     "x": 1519.0510635375977,
410     "y": 807.7089114189148,
411     "z": "307cdf1d.539fd",
412     "wires": [
413       [
414         "d5d85369.7e688"
415       ]
416     ]
417   },
418   {
419     "id": "d5d85369.7e688",
420     "type": "block",
421     "name": "block : atomic",
422     "xml": "<block atomic=\"true\">",
423     "atomic": "true",
424     "outputs": 1,
425     "x": 1685.0510635375977,
426     "y": 807.7089114189148,
427     "z": "307cdf1d.539fd",
428     "wires": [
429       [
430         "fa8e9142.85d7d"
431       ]
432     ]
433   },
434   {
435     "id": "1bef4b2b.0d1235",
436     "type": "switchNode",
437     "name": "switch allotted-resource-id",
438     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
439     "comments": "",
440     "outputs": 1,
441     "x": 1933.7783279418945,
442     "y": 768.0000772476196,
443     "z": "307cdf1d.539fd",
444     "wires": [
445       [
446         "39a011f4.26c90e"
447       ]
448     ]
449   },
450   {
451     "id": "39a011f4.26c90e",
452     "type": "outcomeTrue",
453     "name": "true",
454     "xml": "<outcome value='true'>\n",
455     "comments": "",
456     "outputs": 1,
457     "x": 2115.587902069092,
458     "y": 768.464524269104,
459     "z": "307cdf1d.539fd",
460     "wires": [
461       [
462         "3bd67468.05082c"
463       ]
464     ]
465   },
466   {
467     "id": "fa8e9142.85d7d",
468     "type": "set",
469     "name": "set tmp.cidx",
470     "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
471     "comments": "",
472     "x": 1846.924446105957,
473     "y": 807.2206125259399,
474     "z": "307cdf1d.539fd",
475     "wires": []
476   },
477   {
478     "id": "45f09705.29f058",
479     "type": "comment",
480     "name": "Add to consumed service consumed-allotted-resources in mdsal",
481     "info": "Prepare data and add to service-data",
482     "comments": "",
483     "x": 719.667236328125,
484     "y": 678.0000467300415,
485     "z": "307cdf1d.539fd",
486     "wires": []
487   },
488   {
489     "id": "7472ca93.259114",
490     "type": "comment",
491     "name": "This set resource will be added to MDSAL by provider code",
492     "info": "Below we add to service-data.consumed-allotted-resource at last index",
493     "comments": "",
494     "x": 707.0001525878906,
495     "y": 816.7781391143799,
496     "z": "307cdf1d.539fd",
497     "wires": []
498   },
499   {
500     "id": "ea8d2a7c.dc1c98",
501     "type": "update",
502     "name": "save AAI allotted-resource",
503     "xml": "<save 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",
504     "comments": "",
505     "outputs": 1,
506     "x": 612.6908721923828,
507     "y": 1866.5318479537964,
508     "z": "307cdf1d.539fd",
509     "wires": [
510       [
511         "951bf335.bca52",
512         "3aff12ef.b5135e"
513       ]
514     ]
515   },
516   {
517     "id": "951bf335.bca52",
518     "type": "failure",
519     "name": "failure",
520     "xml": "<outcome value='failure'>\n",
521     "comments": "",
522     "outputs": 1,
523     "x": 807.4527854919434,
524     "y": 1857.4844913482666,
525     "z": "307cdf1d.539fd",
526     "wires": [
527       [
528         "5683eb13.db5c34"
529       ]
530     ]
531   },
532   {
533     "id": "5683eb13.db5c34",
534     "type": "returnFailure",
535     "name": "return failure",
536     "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",
537     "comments": "",
538     "x": 973.9766654968262,
539     "y": 1869.1035623550415,
540     "z": "307cdf1d.539fd",
541     "wires": []
542   },
543   {
544     "id": "3aff12ef.b5135e",
545     "type": "failure",
546     "name": "not-found",
547     "xml": "<outcome value='not-found'>\n",
548     "comments": "",
549     "outputs": 1,
550     "x": 814.5480728149414,
551     "y": 1890.2464590072632,
552     "z": "307cdf1d.539fd",
553     "wires": [
554       [
555         "5683eb13.db5c34"
556       ]
557     ]
558   },
559   {
560     "id": "9b778367.8c46a",
561     "type": "comment",
562     "name": "Save Resource to AAI",
563     "info": "",
564     "comments": "",
565     "x": 589.50048828125,
566     "y": 1809.8338623046875,
567     "z": "307cdf1d.539fd",
568     "wires": []
569   },
570   {
571     "id": "9719bb6e.70a358",
572     "type": "comment",
573     "name": "Set allotted resource type if not sent by SO",
574     "info": "",
575     "comments": "",
576     "x": 653,
577     "y": 218,
578     "z": "307cdf1d.539fd",
579     "wires": []
580   },
581   {
582     "id": "2da52da7.95c362",
583     "type": "switchNode",
584     "name": "switch allotted-resource-type",
585     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
586     "comments": "",
587     "outputs": 1,
588     "x": 614.9233093261719,
589     "y": 258.5660562515259,
590     "z": "307cdf1d.539fd",
591     "wires": [
592       [
593         "684d8da4.b880e4",
594         "7ce6426e.522ebc"
595       ]
596     ]
597   },
598   {
599     "id": "684d8da4.b880e4",
600     "type": "outcome",
601     "name": "NULL",
602     "xml": "<outcome value=''>",
603     "comments": "",
604     "outputs": 1,
605     "x": 817.9234619140625,
606     "y": 243.56605911254883,
607     "z": "307cdf1d.539fd",
608     "wires": [
609       [
610         "63c4923.3c3426c"
611       ]
612     ]
613   },
614   {
615     "id": "7ce6426e.522ebc",
616     "type": "other",
617     "name": "other",
618     "xml": "<outcome value='Other'>\n",
619     "comments": "",
620     "outputs": 1,
621     "x": 810.9232902526855,
622     "y": 283.5660791397095,
623     "z": "307cdf1d.539fd",
624     "wires": [
625       [
626         "bca9b7c7.73b158"
627       ]
628     ]
629   },
630   {
631     "id": "bca9b7c7.73b158",
632     "type": "set",
633     "name": "set tmp.ar.allotted-resource-type",
634     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
635     "comments": "",
636     "x": 1042.9232749938965,
637     "y": 283.56608390808105,
638     "z": "307cdf1d.539fd",
639     "wires": []
640   },
641   {
642     "id": "4c5ae3e7.94b54c",
643     "type": "comment",
644     "name": "For storage in AAI connection-attachment-topology",
645     "info": "",
646     "comments": "",
647     "x": 677.9999618530273,
648     "y": 353,
649     "z": "307cdf1d.539fd",
650     "wires": []
651   },
652   {
653     "id": "566d8977.bdc218",
654     "type": "comment",
655     "name": "Obtain different URL, template location etc",
656     "info": "For saving resource information to MDSAL & for AAI",
657     "comments": "",
658     "x": 652.9999465942383,
659     "y": 434.8889093399048,
660     "z": "307cdf1d.539fd",
661     "wires": []
662   },
663   {
664     "id": "eba557cf.66dec8",
665     "type": "comment",
666     "name": "Used for Put AR by id to MDSAL",
667     "info": "",
668     "comments": "",
669     "x": 619.0000305175781,
670     "y": 523.8889265060425,
671     "z": "307cdf1d.539fd",
672     "wires": []
673   },
674   {
675     "id": "6d67020a.67de0c",
676     "type": "comment",
677     "name": "Obtain the last index in services",
678     "info": "ServiceData is added by Provider code",
679     "comments": "",
680     "x": 620.4444732666016,
681     "y": 709.8888711929321,
682     "z": "307cdf1d.539fd",
683     "wires": []
684   },
685   {
686     "id": "1f74500.b2f7fb",
687     "type": "set",
688     "name": "set output to api handler",
689     "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",
690     "comments": "",
691     "x": 598.2681350708008,
692     "y": 1773.3591890335083,
693     "z": "307cdf1d.539fd",
694     "wires": []
695   },
696   {
697     "id": "6d4b764b.a8a308",
698     "type": "returnSuccess",
699     "name": "return success",
700     "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",
701     "comments": "",
702     "x": 566.6812324523926,
703     "y": 1977.9749908447266,
704     "z": "307cdf1d.539fd",
705     "wires": []
706   },
707   {
708     "id": "63c4923.3c3426c",
709     "type": "set",
710     "name": "set tmp.ar.allotted-resource-type",
711     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
712     "comments": "",
713     "x": 1057.0001487731934,
714     "y": 243.99998569488525,
715     "z": "307cdf1d.539fd",
716     "wires": []
717   },
718   {
719     "id": "e855335b.71b3c",
720     "type": "call",
721     "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
722     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
723     "comments": "",
724     "outputs": 1,
725     "x": 899.9941558837891,
726     "y": 1622.4937295913696,
727     "z": "307cdf1d.539fd",
728     "wires": [
729       []
730     ]
731   },
732   {
733     "id": "6c73a0d6.045f8",
734     "type": "execute",
735     "name": "execute RestApiCallNode - PUT AR by id",
736     "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",
737     "comments": "",
738     "outputs": 1,
739     "x": 649.0002670288086,
740     "y": 1707.0001182556152,
741     "z": "307cdf1d.539fd",
742     "wires": [
743       [
744         "17f1151d.06a5ab",
745         "ccace23a.27702",
746         "325329b.e9052d6"
747       ]
748     ]
749   },
750   {
751     "id": "17f1151d.06a5ab",
752     "type": "not-found",
753     "name": "not-found",
754     "xml": "<outcome value='not-found'>\n",
755     "comments": "",
756     "outputs": 1,
757     "x": 898.6416206359863,
758     "y": 1745.3314485549927,
759     "z": "307cdf1d.539fd",
760     "wires": [
761       [
762         "503ba1c3.ce81b"
763       ]
764     ]
765   },
766   {
767     "id": "ccace23a.27702",
768     "type": "failure",
769     "name": "failure",
770     "xml": "<outcome value='failure'>\n",
771     "comments": "",
772     "outputs": 1,
773     "x": 889.6416702270508,
774     "y": 1713.8314743041992,
775     "z": "307cdf1d.539fd",
776     "wires": [
777       [
778         "503ba1c3.ce81b"
779       ]
780     ]
781   },
782   {
783     "id": "325329b.e9052d6",
784     "type": "success",
785     "name": "success",
786     "xml": "<outcome value='success'>\n",
787     "comments": "",
788     "outputs": 1,
789     "x": 893.3917083740234,
790     "y": 1684.1885791793466,
791     "z": "307cdf1d.539fd",
792     "wires": [
793       [
794         "565609af.5fb058"
795       ]
796     ]
797   },
798   {
799     "id": "503ba1c3.ce81b",
800     "type": "returnFailure",
801     "name": "return failure",
802     "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",
803     "comments": "",
804     "x": 1059.3917083740234,
805     "y": 1714.5814981460571,
806     "z": "307cdf1d.539fd",
807     "wires": []
808   },
809   {
810     "id": "565609af.5fb058",
811     "type": "block",
812     "name": "block",
813     "xml": "<block>\n",
814     "atomic": "false",
815     "comments": "",
816     "outputs": 1,
817     "x": 1035.0476760864258,
818     "y": 1680.3807483687997,
819     "z": "307cdf1d.539fd",
820     "wires": [
821       []
822     ]
823   },
824   {
825     "id": "cd08d99a.10abb8",
826     "type": "execute",
827     "name": "execute RestApiCallNode - Update parent provided service AR",
828     "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",
829     "comments": "",
830     "outputs": 1,
831     "x": 718.9999542236328,
832     "y": 1133.0001649856567,
833     "z": "307cdf1d.539fd",
834     "wires": [
835       [
836         "ef2f7f10.9941b",
837         "b03054a4.69fc18",
838         "8aa9a171.e089b"
839       ]
840     ]
841   },
842   {
843     "id": "ef2f7f10.9941b",
844     "type": "not-found",
845     "name": "not-found",
846     "xml": "<outcome value='not-found'>\n",
847     "comments": "",
848     "outputs": 1,
849     "x": 1027.3080139160156,
850     "y": 1164.9984407424927,
851     "z": "307cdf1d.539fd",
852     "wires": [
853       [
854         "65c0c4d1.41acbc"
855       ]
856     ]
857   },
858   {
859     "id": "b03054a4.69fc18",
860     "type": "failure",
861     "name": "failure",
862     "xml": "<outcome value='failure'>\n",
863     "comments": "",
864     "outputs": 1,
865     "x": 1018.3080635070801,
866     "y": 1133.4984664916992,
867     "z": "307cdf1d.539fd",
868     "wires": [
869       [
870         "65c0c4d1.41acbc"
871       ]
872     ]
873   },
874   {
875     "id": "8aa9a171.e089b",
876     "type": "success",
877     "name": "success",
878     "xml": "<outcome value='success'>\n",
879     "comments": "",
880     "outputs": 1,
881     "x": 1022.0581016540527,
882     "y": 1103.8555713668466,
883     "z": "307cdf1d.539fd",
884     "wires": [
885       [
886         "c70fcaaf.55a4c8"
887       ]
888     ]
889   },
890   {
891     "id": "65c0c4d1.41acbc",
892     "type": "returnFailure",
893     "name": "return failure",
894     "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",
895     "comments": "",
896     "x": 1188.0581016540527,
897     "y": 1134.2484903335571,
898     "z": "307cdf1d.539fd",
899     "wires": []
900   },
901   {
902     "id": "c70fcaaf.55a4c8",
903     "type": "block",
904     "name": "block",
905     "xml": "<block>\n",
906     "atomic": "false",
907     "comments": "",
908     "outputs": 1,
909     "x": 1163.714069366455,
910     "y": 1100.0477405562997,
911     "z": "307cdf1d.539fd",
912     "wires": [
913       []
914     ]
915   },
916   {
917     "id": "4609b233.9d833c",
918     "type": "comment",
919     "name": "Put the parent allotted resource in mdsal",
920     "info": "",
921     "comments": "",
922     "x": 647.9999008178711,
923     "y": 1095.0000715255737,
924     "z": "307cdf1d.539fd",
925     "wires": []
926   },
927   {
928     "id": "3292b995.f13186",
929     "type": "set",
930     "name": "set connection-attachment-ar-identifiers",
931     "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",
932     "comments": "",
933     "x": 644.3570861816406,
934     "y": 1297.5716905593872,
935     "z": "307cdf1d.539fd",
936     "wires": []
937   },
938   {
939     "id": "c56a158b.169088",
940     "type": "set",
941     "name": "set ar-data",
942     "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.` \" />",
943     "comments": "",
944     "x": 558.2138671875,
945     "y": 1265.3810472488403,
946     "z": "307cdf1d.539fd",
947     "wires": []
948   },
949   {
950     "id": "71214832.584f28",
951     "type": "set",
952     "name": "set identifiers in overall structure",
953     "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",
954     "comments": "",
955     "x": 623.1668853759766,
956     "y": 1331.6668758392334,
957     "z": "307cdf1d.539fd",
958     "wires": []
959   },
960   {
961     "id": "23b7a6d1.9a369a",
962     "type": "execute",
963     "name": "execute getTime",
964     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
965     "comments": "",
966     "outputs": 1,
967     "x": 575.4997253417969,
968     "y": 1405.0004034042358,
969     "z": "307cdf1d.539fd",
970     "wires": [
971       []
972     ]
973   },
974   {
975     "id": "4ebfff40.f0aa5",
976     "type": "set",
977     "name": "set allotted-resource-oper-status",
978     "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",
979     "comments": "",
980     "x": 626.4867630004883,
981     "y": 1460.951636314392,
982     "z": "307cdf1d.539fd",
983     "wires": []
984   },
985   {
986     "id": "cb431e44.1b2d7",
987     "type": "set",
988     "name": "set model-data",
989     "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.` \" />",
990     "comments": "",
991     "x": 571.0553817749023,
992     "y": 1366.5557613372803,
993     "z": "307cdf1d.539fd",
994     "wires": []
995   },
996   {
997     "id": "10171c26.195644",
998     "type": "comment",
999     "name": "Prepare data for allotted-resource addition to MDSAL",
1000     "info": "This will add to allotted-resource which is present inside service.",
1001     "comments": "",
1002     "x": 688.3888702392578,
1003     "y": 1231.5556077957153,
1004     "z": "307cdf1d.539fd",
1005     "wires": []
1006   },
1007   {
1008     "id": "46e15a07.ae9ba4",
1009     "type": "execute",
1010     "name": "generate parent-ar url - replace allotted-resource-id",
1011     "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",
1012     "comments": "",
1013     "outputs": 1,
1014     "x": 683.5000152587891,
1015     "y": 1059.0000104904175,
1016     "z": "307cdf1d.539fd",
1017     "wires": [
1018       []
1019     ]
1020   },
1021   {
1022     "id": "c34405e1.82d938",
1023     "type": "execute",
1024     "name": "generate parent-ar url - replace service-instance-id",
1025     "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",
1026     "comments": "",
1027     "outputs": 1,
1028     "x": 679.4999389648438,
1029     "y": 1016.0001468658447,
1030     "z": "307cdf1d.539fd",
1031     "wires": [
1032       []
1033     ]
1034   },
1035   {
1036     "id": "a521acad.d004d",
1037     "type": "comment",
1038     "name": "Prepare Parent AR URL",
1039     "info": "Preparation to set provided-allotted-resource in parent service instance",
1040     "comments": "",
1041     "x": 597.5003967285156,
1042     "y": 945.0001001358032,
1043     "z": "307cdf1d.539fd",
1044     "wires": []
1045   },
1046   {
1047     "id": "371cf69b.dabcaa",
1048     "type": "set",
1049     "name": "set tmp.ar.parent-service-instance-id",
1050     "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",
1051     "comments": "",
1052     "x": 636.5001907348633,
1053     "y": 978.5000395774841,
1054     "z": "307cdf1d.539fd",
1055     "wires": []
1056   },
1057   {
1058     "id": "471a396d.b72ac8",
1059     "type": "comment",
1060     "name": "Required for filling template values",
1061     "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1062     "comments": "",
1063     "x": 826.000358581543,
1064     "y": 1585.4998025894165,
1065     "z": "307cdf1d.539fd",
1066     "wires": []
1067   },
1068   {
1069     "id": "3bd67468.05082c",
1070     "type": "returnFailure",
1071     "name": "return failure",
1072     "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",
1073     "comments": "",
1074     "x": 2193.7569732666016,
1075     "y": 816.6458292007446,
1076     "z": "307cdf1d.539fd",
1077     "wires": []
1078   },
1079   {
1080     "id": "23139ea3.633f22",
1081     "type": "set",
1082     "name": "set tmp.found-cidx",
1083     "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1084     "comments": "",
1085     "x": 1319.6461448669434,
1086     "y": 728.3125722408295,
1087     "z": "307cdf1d.539fd",
1088     "wires": []
1089   },
1090   {
1091     "id": "572750a4.da966",
1092     "type": "comment",
1093     "name": "Add to parent services provided-allotted-resources in mdsal",
1094     "info": "",
1095     "comments": "",
1096     "x": 708.2015075683594,
1097     "y": 912.9792566299438,
1098     "z": "307cdf1d.539fd",
1099     "wires": []
1100   },
1101   {
1102     "id": "c22af7ab.9a1898",
1103     "type": "comment",
1104     "name": "Add to allotted-resources in mdsal",
1105     "info": "",
1106     "comments": "",
1107     "x": 628.9686965942383,
1108     "y": 1198.968936920166,
1109     "z": "307cdf1d.539fd",
1110     "wires": []
1111   },
1112   {
1113     "id": "5b1e701f.600c",
1114     "type": "block",
1115     "name": "block: atomic",
1116     "xml": "<block atomic=\"true\">\n",
1117     "atomic": "false",
1118     "comments": "",
1119     "outputs": 1,
1120     "x": 1302.000051498413,
1121     "y": 626.2777605056763,
1122     "z": "307cdf1d.539fd",
1123     "wires": [
1124       [
1125         "f33fd165.6af9d"
1126       ]
1127     ]
1128   },
1129   {
1130     "id": "f33fd165.6af9d",
1131     "type": "switchNode",
1132     "name": "switch cr length",
1133     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1134     "comments": "",
1135     "outputs": 1,
1136     "x": 1489.8574314117432,
1137     "y": 626.8968958854675,
1138     "z": "307cdf1d.539fd",
1139     "wires": [
1140       [
1141         "30bd1249.6e0cce"
1142       ]
1143     ]
1144   },
1145   {
1146     "id": "30bd1249.6e0cce",
1147     "type": "other",
1148     "name": "outcome 1",
1149     "xml": "<outcome value='1'>\n",
1150     "comments": "",
1151     "outputs": 1,
1152     "x": 1689.1905536651611,
1153     "y": 626.8969745635986,
1154     "z": "307cdf1d.539fd",
1155     "wires": [
1156       [
1157         "cc9f7f26.8914e"
1158       ]
1159     ]
1160   },
1161   {
1162     "id": "6e7b925f.51d77c",
1163     "type": "execute",
1164     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1165     "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",
1166     "comments": "",
1167     "outputs": 1,
1168     "x": 774.0000534057617,
1169     "y": 621.000036239624,
1170     "z": "307cdf1d.539fd",
1171     "wires": [
1172       [
1173         "8b5477db.c5c9d8",
1174         "94a8a58d.dee408"
1175       ]
1176     ]
1177   },
1178   {
1179     "id": "94a8a58d.dee408",
1180     "type": "failure",
1181     "name": "failure",
1182     "xml": "<outcome value='failure'>\n",
1183     "comments": "",
1184     "outputs": 1,
1185     "x": 1142.0000839233398,
1186     "y": 591.0000343322754,
1187     "z": "307cdf1d.539fd",
1188     "wires": [
1189       [
1190         "9c37a2ea.b7b0a"
1191       ]
1192     ]
1193   },
1194   {
1195     "id": "9c37a2ea.b7b0a",
1196     "type": "block",
1197     "name": "block",
1198     "xml": "<block>\n",
1199     "atomic": "false",
1200     "comments": "",
1201     "outputs": 1,
1202     "x": 1294.0000839233398,
1203     "y": 590.0000343322754,
1204     "z": "307cdf1d.539fd",
1205     "wires": [
1206       []
1207     ]
1208   },
1209   {
1210     "id": "92f874df.f4a158",
1211     "type": "block",
1212     "name": "block : atomic",
1213     "xml": "<block atomic=\"true\">",
1214     "atomic": "true",
1215     "outputs": 1,
1216     "x": 570.5556106567383,
1217     "y": 1540.6666536331177,
1218     "z": "307cdf1d.539fd",
1219     "wires": [
1220       [
1221         "53c527c9.b22648",
1222         "e855335b.71b3c"
1223       ]
1224     ]
1225   },
1226   {
1227     "id": "53c527c9.b22648",
1228     "type": "for",
1229     "name": "for each sotn-get-request-input-param",
1230     "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1231     "comments": "",
1232     "outputs": 1,
1233     "x": 840.5556755065918,
1234     "y": 1540.6667013168335,
1235     "z": "307cdf1d.539fd",
1236     "wires": [
1237       [
1238         "261e5f2.fe442a"
1239       ]
1240     ]
1241   },
1242   {
1243     "id": "d5857a39.639db8",
1244     "type": "comment",
1245     "name": "Take the parameter names by removing prefix",
1246     "info": "",
1247     "comments": "",
1248     "x": 1380.5554580688477,
1249     "y": 1496.6667346954346,
1250     "z": "307cdf1d.539fd",
1251     "wires": []
1252   },
1253   {
1254     "id": "6df2fba8.889c14",
1255     "type": "execute",
1256     "name": "execute split parameterName",
1257     "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",
1258     "comments": "",
1259     "outputs": 1,
1260     "x": 1338.5901260375977,
1261     "y": 1531.6458778381348,
1262     "z": "307cdf1d.539fd",
1263     "wires": [
1264       []
1265     ]
1266   },
1267   {
1268     "id": "bd5f9072.2a8a7",
1269     "type": "set",
1270     "name": "set parameterName",
1271     "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",
1272     "comments": "",
1273     "x": 1309.034652709961,
1274     "y": 1564.6458778381348,
1275     "z": "307cdf1d.539fd",
1276     "wires": []
1277   },
1278   {
1279     "id": "4a2aa60e.ed5c08",
1280     "type": "comment",
1281     "name": "Remove VNFC prefix",
1282     "info": "",
1283     "comments": "",
1284     "x": 781.5556030273438,
1285     "y": 1508.1110153198242,
1286     "z": "307cdf1d.539fd",
1287     "wires": []
1288   },
1289   {
1290     "id": "261e5f2.fe442a",
1291     "type": "block",
1292     "name": "block : atomic",
1293     "xml": "<block atomic=\"true\">",
1294     "atomic": "true",
1295     "outputs": 1,
1296     "x": 1087.5555114746094,
1297     "y": 1539.1110458374023,
1298     "z": "307cdf1d.539fd",
1299     "wires": [
1300       [
1301         "6df2fba8.889c14",
1302         "bd5f9072.2a8a7"
1303       ]
1304     ]
1305   },
1306   {
1307     "id": "5a956e5b.11a09",
1308     "type": "save",
1309     "name": "save srcLTP relationship in AAI",
1310     "xml": "<save 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      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $prop.connection-attachment.access-node-id + '/p-interfaces/p-interface/' + $prop.connection-attachment.access-ltp-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"p-interface.interface-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$src-ltpId`\" />\n\n\n\n",
1311     "comments": "",
1312     "outputs": 1,
1313     "x": 619.0039329528809,
1314     "y": 1925.0039825439453,
1315     "z": "307cdf1d.539fd",
1316     "wires": [
1317       []
1318     ]
1319   }
1320 ]