Merge "Fix ansible server path"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json
1 [
2   {
3     "id": "b2b2fc12.cf96d",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 96.50000190734863,
8     "y": 38.00000286102295,
9     "z": "f5fcb4a8.869698",
10     "wires": [
11       [
12         "6e50c528.de9a7c"
13       ]
14     ]
15   },
16   {
17     "id": "6e50c528.de9a7c",
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": 237.50000381469727,
26     "y": 115.0000171661377,
27     "z": "f5fcb4a8.869698",
28     "wires": [
29       [
30         "f4bf8d69.ecd28"
31       ]
32     ]
33   },
34   {
35     "id": "f4bf8d69.ecd28",
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": 225.5001220703125,
42     "y": 203,
43     "z": "f5fcb4a8.869698",
44     "wires": [
45       [
46         "3bd3ace.6bd7c54"
47       ]
48     ]
49   },
50   {
51     "id": "3bd3ace.6bd7c54",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 145.50005340576172,
59     "y": 952.0002479553223,
60     "z": "f5fcb4a8.869698",
61     "wires": [
62       [
63         "e49d7cd0.24623",
64         "4a92eb0d.67e9c4",
65         "2dd15073.0da3b",
66         "5e1f3d4f.82c794",
67         "afc1bdf5.4b836",
68         "7d9ca6fb.249298",
69         "f5e2658.10ace98",
70         "3342f593.51121a",
71         "458e8426.a4810c",
72         "506bd024.3cd4a",
73         "ca1aa6f6.be5228",
74         "a07927be.544a08",
75         "2adeb8b.a94ce48",
76         "c51e932f.b0db6",
77         "16ace716.f64f39",
78         "91c11379.3848",
79         "c018ef66.ea6f",
80         "d7ef6ed3.36d06",
81         "9a473067.67045",
82         "91b59706.e4cdc8",
83         "cfbbadf0.d1c3a",
84         "e88d2834.1fdcf8",
85         "8fb59fb4.b6b0c",
86         "c224a6bb.b7b288",
87         "c765719e.98d15"
88       ]
89     ]
90   },
91   {
92     "id": "bc77dabb.b8dfe8",
93     "type": "comment",
94     "name": "Set allotted resource id if not sent by SO",
95     "info": "",
96     "comments": "",
97     "x": 629.5767517089844,
98     "y": 112.4339189529419,
99     "z": "f5fcb4a8.869698",
100     "wires": []
101   },
102   {
103     "id": "e49d7cd0.24623",
104     "type": "switchNode",
105     "name": "switch allotted-resource-id",
106     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
107     "comments": "",
108     "outputs": 1,
109     "x": 575.5000305175781,
110     "y": 167.99999237060547,
111     "z": "f5fcb4a8.869698",
112     "wires": [
113       [
114         "ede8227d.3da0a",
115         "871d8b04.92b798"
116       ]
117     ]
118   },
119   {
120     "id": "ede8227d.3da0a",
121     "type": "outcome",
122     "name": "NULL",
123     "xml": "<outcome value=''>",
124     "comments": "",
125     "outputs": 1,
126     "x": 773.5001182556152,
127     "y": 137.99998092651367,
128     "z": "f5fcb4a8.869698",
129     "wires": [
130       [
131         "8efccbca.23f2f8"
132       ]
133     ]
134   },
135   {
136     "id": "871d8b04.92b798",
137     "type": "other",
138     "name": "other",
139     "xml": "<outcome value='Other'>\n",
140     "comments": "",
141     "outputs": 1,
142     "x": 772.5000267028809,
143     "y": 174.99999141693115,
144     "z": "f5fcb4a8.869698",
145     "wires": [
146       [
147         "4fdaace7.615964"
148       ]
149     ]
150   },
151   {
152     "id": "4fdaace7.615964",
153     "type": "set",
154     "name": "set tmp.ar.allotted-resource-id",
155     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
156     "comments": "",
157     "x": 970.5000152587891,
158     "y": 172.00001049041748,
159     "z": "f5fcb4a8.869698",
160     "wires": []
161   },
162   {
163     "id": "4a92eb0d.67e9c4",
164     "type": "set",
165     "name": "set tmp.ar.self-link",
166     "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",
167     "comments": "",
168     "x": 543.4999542236328,
169     "y": 389.0000991821289,
170     "z": "f5fcb4a8.869698",
171     "wires": []
172   },
173   {
174     "id": "2dd15073.0da3b",
175     "type": "execute",
176     "name": "execute Properties",
177     "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",
178     "comments": "",
179     "outputs": 1,
180     "x": 543.7618713378906,
181     "y": 470.66678047180176,
182     "z": "f5fcb4a8.869698",
183     "wires": [
184       []
185     ]
186   },
187   {
188     "id": "5e1f3d4f.82c794",
189     "type": "execute",
190     "name": "generate allotted-resource tmp.ar-url",
191     "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",
192     "comments": "",
193     "outputs": 1,
194     "x": 596.7619323730469,
195     "y": 557.6666984558105,
196     "z": "f5fcb4a8.869698",
197     "wires": [
198       []
199     ]
200   },
201   {
202     "id": "8efccbca.23f2f8",
203     "type": "execute",
204     "name": "execute tmp.ar.allotted-resource-id",
205     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
206     "comments": "",
207     "outputs": 1,
208     "x": 988.5000953674316,
209     "y": 138.99998664855957,
210     "z": "f5fcb4a8.869698",
211     "wires": [
212       [
213         "d4c15c7f.c9c6b"
214       ]
215     ]
216   },
217   {
218     "id": "d4c15c7f.c9c6b",
219     "type": "failure",
220     "name": "failure",
221     "xml": "<outcome value='failure'>\n",
222     "comments": "",
223     "outputs": 1,
224     "x": 1206.5001373291016,
225     "y": 138.99995040893555,
226     "z": "f5fcb4a8.869698",
227     "wires": [
228       [
229         "4780ce03.07d49"
230       ]
231     ]
232   },
233   {
234     "id": "4780ce03.07d49",
235     "type": "returnFailure",
236     "name": "return failure",
237     "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",
238     "comments": "",
239     "x": 1372.5000915527344,
240     "y": 138.9999647140503,
241     "z": "f5fcb4a8.869698",
242     "wires": []
243   },
244   {
245     "id": "cd668aab.887ef8",
246     "type": "success",
247     "name": "success",
248     "xml": "<outcome value='success'>\n",
249     "comments": "",
250     "outputs": 1,
251     "x": 1102.5002307891846,
252     "y": 629.777871131897,
253     "z": "f5fcb4a8.869698",
254     "wires": [
255       [
256         "43f948c5.8e3c48"
257       ]
258     ]
259   },
260   {
261     "id": "fff5fcf9.b91b7",
262     "type": "returnFailure",
263     "name": "return failure",
264     "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",
265     "comments": "",
266     "x": 1836.0186100006104,
267     "y": 630.8439426422119,
268     "z": "f5fcb4a8.869698",
269     "wires": []
270   },
271   {
272     "id": "ae16b108.dde0f",
273     "type": "comment",
274     "name": "Check for non existence of allotted resource",
275     "info": "",
276     "comments": "",
277     "x": 958.5001525878906,
278     "y": 563.7779378890991,
279     "z": "f5fcb4a8.869698",
280     "wires": []
281   },
282   {
283     "id": "ada117fc.11b638",
284     "type": "for",
285     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
286     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
287     "comments": "",
288     "outputs": 1,
289     "x": 1479.1666984558105,
290     "y": 774.0000503063202,
291     "z": "f5fcb4a8.869698",
292     "wires": [
293       [
294         "e40e8409.36d7f8"
295       ]
296     ]
297   },
298   {
299     "id": "7d9ca6fb.249298",
300     "type": "switchNode",
301     "name": "switch service-data.consumed-allotted-resources_length",
302     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
303     "comments": "",
304     "outputs": 1,
305     "x": 661.1660232543945,
306     "y": 750.7140827178955,
307     "z": "f5fcb4a8.869698",
308     "wires": [
309       [
310         "6fbc583.8ed6aa8",
311         "2f545e93.6ba8a2"
312       ]
313     ]
314   },
315   {
316     "id": "6fbc583.8ed6aa8",
317     "type": "other",
318     "name": "outcome Null",
319     "xml": "<outcome value=''>\n",
320     "comments": "",
321     "outputs": 1,
322     "x": 965.3089218139648,
323     "y": 719.5715198516846,
324     "z": "f5fcb4a8.869698",
325     "wires": [
326       [
327         "a95f5b55.d6e9b8"
328       ]
329     ]
330   },
331   {
332     "id": "2f545e93.6ba8a2",
333     "type": "other",
334     "name": "other",
335     "xml": "<outcome value='Other'>\n",
336     "comments": "",
337     "outputs": 1,
338     "x": 942.3089714050293,
339     "y": 780.5714750289917,
340     "z": "f5fcb4a8.869698",
341     "wires": [
342       [
343         "7d9f20d0.5505c"
344       ]
345     ]
346   },
347   {
348     "id": "7d9f20d0.5505c",
349     "type": "block",
350     "name": "block : atomic",
351     "xml": "<block atomic=\"true\">",
352     "atomic": "true",
353     "outputs": 1,
354     "x": 1102.4360618591309,
355     "y": 778.6974515914917,
356     "z": "f5fcb4a8.869698",
357     "wires": [
358       [
359         "ada117fc.11b638",
360         "67b14806.59d9a8",
361         "458ffc55.d5db04"
362       ]
363     ]
364   },
365   {
366     "id": "a95f5b55.d6e9b8",
367     "type": "set",
368     "name": "set cidx",
369     "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",
370     "comments": "",
371     "x": 1115.1659049987793,
372     "y": 717.2855701446533,
373     "z": "f5fcb4a8.869698",
374     "wires": []
375   },
376   {
377     "id": "f5e2658.10ace98",
378     "type": "set",
379     "name": "set consumed allotted resources",
380     "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",
381     "comments": "",
382     "x": 590.0233154296875,
383     "y": 854.285647392273,
384     "z": "f5fcb4a8.869698",
385     "wires": []
386   },
387   {
388     "id": "67b14806.59d9a8",
389     "type": "switchNode",
390     "name": "switch tmp.found-cidx",
391     "xml": "<switch test='`$tmp.found-cidx`'>\n",
392     "comments": "",
393     "outputs": 1,
394     "x": 1291.5511093139648,
395     "y": 810.7089743614197,
396     "z": "f5fcb4a8.869698",
397     "wires": [
398       [
399         "b4f07caa.1eece"
400       ]
401     ]
402   },
403   {
404     "id": "b4f07caa.1eece",
405     "type": "outcomeTrue",
406     "name": "false",
407     "xml": "<outcome value='false'>\n",
408     "comments": "",
409     "outputs": 1,
410     "x": 1481.5510635375977,
411     "y": 810.7089114189148,
412     "z": "f5fcb4a8.869698",
413     "wires": [
414       [
415         "9b5a2a9b.791398"
416       ]
417     ]
418   },
419   {
420     "id": "9b5a2a9b.791398",
421     "type": "block",
422     "name": "block : atomic",
423     "xml": "<block atomic=\"true\">",
424     "atomic": "true",
425     "outputs": 1,
426     "x": 1647.5510635375977,
427     "y": 810.7089114189148,
428     "z": "f5fcb4a8.869698",
429     "wires": [
430       [
431         "82e04cf1.4917b"
432       ]
433     ]
434   },
435   {
436     "id": "e40e8409.36d7f8",
437     "type": "switchNode",
438     "name": "switch allotted-resource-id",
439     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
440     "comments": "",
441     "outputs": 1,
442     "x": 1896.2783279418945,
443     "y": 771.0000772476196,
444     "z": "f5fcb4a8.869698",
445     "wires": [
446       [
447         "f29e0cd9.704ae"
448       ]
449     ]
450   },
451   {
452     "id": "f29e0cd9.704ae",
453     "type": "outcomeTrue",
454     "name": "true",
455     "xml": "<outcome value='true'>\n",
456     "comments": "",
457     "outputs": 1,
458     "x": 2078.087902069092,
459     "y": 771.464524269104,
460     "z": "f5fcb4a8.869698",
461     "wires": [
462       [
463         "60273371.090a2c"
464       ]
465     ]
466   },
467   {
468     "id": "82e04cf1.4917b",
469     "type": "set",
470     "name": "set tmp.cidx",
471     "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
472     "comments": "",
473     "x": 1809.424446105957,
474     "y": 810.2206125259399,
475     "z": "f5fcb4a8.869698",
476     "wires": []
477   },
478   {
479     "id": "9b1a4b9d.344fd8",
480     "type": "comment",
481     "name": "Add to consumed service consumed-allotted-resources in mdsal",
482     "info": "Prepare data and add to service-data",
483     "comments": "",
484     "x": 682.167236328125,
485     "y": 681.0000467300415,
486     "z": "f5fcb4a8.869698",
487     "wires": []
488   },
489   {
490     "id": "57f62d80.43fe94",
491     "type": "comment",
492     "name": "This set resource will be added to MDSAL by provider code",
493     "info": "Below we add to service-data.consumed-allotted-resource at last index",
494     "comments": "",
495     "x": 669.5001525878906,
496     "y": 819.7781391143799,
497     "z": "f5fcb4a8.869698",
498     "wires": []
499   },
500   {
501     "id": "8fb59fb4.b6b0c",
502     "type": "update",
503     "name": "save AAI allotted-resource",
504     "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",
505     "comments": "",
506     "outputs": 1,
507     "x": 556.1909332275391,
508     "y": 1876.5319156646729,
509     "z": "f5fcb4a8.869698",
510     "wires": [
511       [
512         "a1966a3.5032b98",
513         "3409a13c.09f89e"
514       ]
515     ]
516   },
517   {
518     "id": "a1966a3.5032b98",
519     "type": "failure",
520     "name": "failure",
521     "xml": "<outcome value='failure'>\n",
522     "comments": "",
523     "outputs": 1,
524     "x": 769.9527854919434,
525     "y": 1860.4844913482666,
526     "z": "f5fcb4a8.869698",
527     "wires": [
528       [
529         "9c3ee63e.5c5548"
530       ]
531     ]
532   },
533   {
534     "id": "9c3ee63e.5c5548",
535     "type": "returnFailure",
536     "name": "return failure",
537     "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",
538     "comments": "",
539     "x": 936.4766654968262,
540     "y": 1872.1035623550415,
541     "z": "f5fcb4a8.869698",
542     "wires": []
543   },
544   {
545     "id": "3409a13c.09f89e",
546     "type": "failure",
547     "name": "not-found",
548     "xml": "<outcome value='not-found'>\n",
549     "comments": "",
550     "outputs": 1,
551     "x": 777.0480728149414,
552     "y": 1893.2464590072632,
553     "z": "f5fcb4a8.869698",
554     "wires": [
555       [
556         "9c3ee63e.5c5548"
557       ]
558     ]
559   },
560   {
561     "id": "72ae40d1.ad37d",
562     "type": "comment",
563     "name": "Save Resource to AAI",
564     "info": "",
565     "comments": "",
566     "x": 552.00048828125,
567     "y": 1812.8338623046875,
568     "z": "f5fcb4a8.869698",
569     "wires": []
570   },
571   {
572     "id": "a332d2fb.609ff",
573     "type": "comment",
574     "name": "Set allotted resource type if not sent by SO",
575     "info": "",
576     "comments": "",
577     "x": 615.5,
578     "y": 221,
579     "z": "f5fcb4a8.869698",
580     "wires": []
581   },
582   {
583     "id": "afc1bdf5.4b836",
584     "type": "switchNode",
585     "name": "switch allotted-resource-type",
586     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
587     "comments": "",
588     "outputs": 1,
589     "x": 577.4233093261719,
590     "y": 261.5660562515259,
591     "z": "f5fcb4a8.869698",
592     "wires": [
593       [
594         "cf33bc7c.594b3",
595         "977436f5.c716c8"
596       ]
597     ]
598   },
599   {
600     "id": "cf33bc7c.594b3",
601     "type": "outcome",
602     "name": "NULL",
603     "xml": "<outcome value=''>",
604     "comments": "",
605     "outputs": 1,
606     "x": 780.4234619140625,
607     "y": 246.56605911254883,
608     "z": "f5fcb4a8.869698",
609     "wires": [
610       [
611         "382edb8d.38df44"
612       ]
613     ]
614   },
615   {
616     "id": "977436f5.c716c8",
617     "type": "other",
618     "name": "other",
619     "xml": "<outcome value='Other'>\n",
620     "comments": "",
621     "outputs": 1,
622     "x": 773.4232902526855,
623     "y": 286.5660791397095,
624     "z": "f5fcb4a8.869698",
625     "wires": [
626       [
627         "2162049e.dcac4c"
628       ]
629     ]
630   },
631   {
632     "id": "2162049e.dcac4c",
633     "type": "set",
634     "name": "set tmp.ar.allotted-resource-type",
635     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
636     "comments": "",
637     "x": 1005.4232749938965,
638     "y": 286.56608390808105,
639     "z": "f5fcb4a8.869698",
640     "wires": []
641   },
642   {
643     "id": "689a35d2.e3d7ac",
644     "type": "comment",
645     "name": "For storage in AAI connection-attachment-topology",
646     "info": "",
647     "comments": "",
648     "x": 640.4999618530273,
649     "y": 356,
650     "z": "f5fcb4a8.869698",
651     "wires": []
652   },
653   {
654     "id": "adaba0c1.0cdca",
655     "type": "comment",
656     "name": "Obtain different URL, template location etc",
657     "info": "For saving resource information to MDSAL & for AAI",
658     "comments": "",
659     "x": 615.4999465942383,
660     "y": 437.8889093399048,
661     "z": "f5fcb4a8.869698",
662     "wires": []
663   },
664   {
665     "id": "bdfc2cb5.718fd",
666     "type": "comment",
667     "name": "Used for Put AR by id to MDSAL",
668     "info": "",
669     "comments": "",
670     "x": 581.5000305175781,
671     "y": 526.8889265060425,
672     "z": "f5fcb4a8.869698",
673     "wires": []
674   },
675   {
676     "id": "882372f2.e4c61",
677     "type": "comment",
678     "name": "Obtain the last index in services",
679     "info": "ServiceData is added by Provider code",
680     "comments": "",
681     "x": 582.9444732666016,
682     "y": 712.8888711929321,
683     "z": "f5fcb4a8.869698",
684     "wires": []
685   },
686   {
687     "id": "9a473067.67045",
688     "type": "set",
689     "name": "set output to api handler",
690     "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",
691     "comments": "",
692     "x": 560.7681350708008,
693     "y": 1776.3591890335083,
694     "z": "f5fcb4a8.869698",
695     "wires": []
696   },
697   {
698     "id": "91b59706.e4cdc8",
699     "type": "returnSuccess",
700     "name": "return success",
701     "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",
702     "comments": "",
703     "x": 510.18128967285156,
704     "y": 2026.9751167297363,
705     "z": "f5fcb4a8.869698",
706     "wires": []
707   },
708   {
709     "id": "382edb8d.38df44",
710     "type": "set",
711     "name": "set tmp.ar.allotted-resource-type",
712     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
713     "comments": "",
714     "x": 1019.5001487731934,
715     "y": 246.99998569488525,
716     "z": "f5fcb4a8.869698",
717     "wires": []
718   },
719   {
720     "id": "7cc17548.dbfedc",
721     "type": "call",
722     "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
723     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
724     "comments": "",
725     "outputs": 1,
726     "x": 862.4941558837891,
727     "y": 1625.4937295913696,
728     "z": "f5fcb4a8.869698",
729     "wires": [
730       []
731     ]
732   },
733   {
734     "id": "d7ef6ed3.36d06",
735     "type": "execute",
736     "name": "execute RestApiCallNode - PUT AR by id",
737     "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",
738     "comments": "",
739     "outputs": 1,
740     "x": 611.5002670288086,
741     "y": 1710.0001182556152,
742     "z": "f5fcb4a8.869698",
743     "wires": [
744       [
745         "5ed47414.f6a9ec",
746         "9d623053.1780e",
747         "f8eb328d.71989"
748       ]
749     ]
750   },
751   {
752     "id": "5ed47414.f6a9ec",
753     "type": "not-found",
754     "name": "not-found",
755     "xml": "<outcome value='not-found'>\n",
756     "comments": "",
757     "outputs": 1,
758     "x": 861.1416206359863,
759     "y": 1748.3314485549927,
760     "z": "f5fcb4a8.869698",
761     "wires": [
762       [
763         "ee36b0d3.645c5"
764       ]
765     ]
766   },
767   {
768     "id": "9d623053.1780e",
769     "type": "failure",
770     "name": "failure",
771     "xml": "<outcome value='failure'>\n",
772     "comments": "",
773     "outputs": 1,
774     "x": 852.1416702270508,
775     "y": 1716.8314743041992,
776     "z": "f5fcb4a8.869698",
777     "wires": [
778       [
779         "ee36b0d3.645c5"
780       ]
781     ]
782   },
783   {
784     "id": "f8eb328d.71989",
785     "type": "success",
786     "name": "success",
787     "xml": "<outcome value='success'>\n",
788     "comments": "",
789     "outputs": 1,
790     "x": 855.8917083740234,
791     "y": 1687.1885791793466,
792     "z": "f5fcb4a8.869698",
793     "wires": [
794       [
795         "3e7a6f90.4daaf"
796       ]
797     ]
798   },
799   {
800     "id": "ee36b0d3.645c5",
801     "type": "returnFailure",
802     "name": "return failure",
803     "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",
804     "comments": "",
805     "x": 1021.8917083740234,
806     "y": 1717.5814981460571,
807     "z": "f5fcb4a8.869698",
808     "wires": []
809   },
810   {
811     "id": "3e7a6f90.4daaf",
812     "type": "block",
813     "name": "block",
814     "xml": "<block>\n",
815     "atomic": "false",
816     "comments": "",
817     "outputs": 1,
818     "x": 997.5476760864258,
819     "y": 1683.3807483687997,
820     "z": "f5fcb4a8.869698",
821     "wires": [
822       []
823     ]
824   },
825   {
826     "id": "ca1aa6f6.be5228",
827     "type": "execute",
828     "name": "execute RestApiCallNode - Update parent provided service AR",
829     "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",
830     "comments": "",
831     "outputs": 1,
832     "x": 681.4999542236328,
833     "y": 1136.0001649856567,
834     "z": "f5fcb4a8.869698",
835     "wires": [
836       [
837         "10d6c8ff.30a7e7",
838         "fdb9bed8.ececf",
839         "d7a65ee0.6afc7"
840       ]
841     ]
842   },
843   {
844     "id": "10d6c8ff.30a7e7",
845     "type": "not-found",
846     "name": "not-found",
847     "xml": "<outcome value='not-found'>\n",
848     "comments": "",
849     "outputs": 1,
850     "x": 989.8080139160156,
851     "y": 1167.9984407424927,
852     "z": "f5fcb4a8.869698",
853     "wires": [
854       [
855         "c03cc053.bc771"
856       ]
857     ]
858   },
859   {
860     "id": "fdb9bed8.ececf",
861     "type": "failure",
862     "name": "failure",
863     "xml": "<outcome value='failure'>\n",
864     "comments": "",
865     "outputs": 1,
866     "x": 980.8080635070801,
867     "y": 1136.4984664916992,
868     "z": "f5fcb4a8.869698",
869     "wires": [
870       [
871         "c03cc053.bc771"
872       ]
873     ]
874   },
875   {
876     "id": "d7a65ee0.6afc7",
877     "type": "success",
878     "name": "success",
879     "xml": "<outcome value='success'>\n",
880     "comments": "",
881     "outputs": 1,
882     "x": 984.5581016540527,
883     "y": 1106.8555713668466,
884     "z": "f5fcb4a8.869698",
885     "wires": [
886       [
887         "c4688568.f7e6a8"
888       ]
889     ]
890   },
891   {
892     "id": "c03cc053.bc771",
893     "type": "returnFailure",
894     "name": "return failure",
895     "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",
896     "comments": "",
897     "x": 1150.5581016540527,
898     "y": 1137.2484903335571,
899     "z": "f5fcb4a8.869698",
900     "wires": []
901   },
902   {
903     "id": "c4688568.f7e6a8",
904     "type": "block",
905     "name": "block",
906     "xml": "<block>\n",
907     "atomic": "false",
908     "comments": "",
909     "outputs": 1,
910     "x": 1126.214069366455,
911     "y": 1103.0477405562997,
912     "z": "f5fcb4a8.869698",
913     "wires": [
914       []
915     ]
916   },
917   {
918     "id": "8a0df30e.6ab87",
919     "type": "comment",
920     "name": "Put the parent allotted resource in mdsal",
921     "info": "",
922     "comments": "",
923     "x": 610.4999008178711,
924     "y": 1098.0000715255737,
925     "z": "f5fcb4a8.869698",
926     "wires": []
927   },
928   {
929     "id": "2adeb8b.a94ce48",
930     "type": "set",
931     "name": "set connection-attachment-ar-identifiers",
932     "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",
933     "comments": "",
934     "x": 606.8570861816406,
935     "y": 1300.5716905593872,
936     "z": "f5fcb4a8.869698",
937     "wires": []
938   },
939   {
940     "id": "a07927be.544a08",
941     "type": "set",
942     "name": "set ar-data",
943     "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.` \" />",
944     "comments": "",
945     "x": 520.7138671875,
946     "y": 1268.3810472488403,
947     "z": "f5fcb4a8.869698",
948     "wires": []
949   },
950   {
951     "id": "c51e932f.b0db6",
952     "type": "set",
953     "name": "set identifiers in overall structure",
954     "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",
955     "comments": "",
956     "x": 585.6668853759766,
957     "y": 1334.6668758392334,
958     "z": "f5fcb4a8.869698",
959     "wires": []
960   },
961   {
962     "id": "16ace716.f64f39",
963     "type": "execute",
964     "name": "execute getTime",
965     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
966     "comments": "",
967     "outputs": 1,
968     "x": 537.9997253417969,
969     "y": 1408.0004034042358,
970     "z": "f5fcb4a8.869698",
971     "wires": [
972       []
973     ]
974   },
975   {
976     "id": "91c11379.3848",
977     "type": "set",
978     "name": "set allotted-resource-oper-status",
979     "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",
980     "comments": "",
981     "x": 588.9867630004883,
982     "y": 1463.951636314392,
983     "z": "f5fcb4a8.869698",
984     "wires": []
985   },
986   {
987     "id": "c018ef66.ea6f",
988     "type": "set",
989     "name": "set model-data",
990     "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.` \" />",
991     "comments": "",
992     "x": 533.5553817749023,
993     "y": 1369.5557613372803,
994     "z": "f5fcb4a8.869698",
995     "wires": []
996   },
997   {
998     "id": "34c8d9e7.5935d6",
999     "type": "comment",
1000     "name": "Prepare data for allotted-resource addition to MDSAL",
1001     "info": "This will add to allotted-resource which is present inside service.",
1002     "comments": "",
1003     "x": 650.8888702392578,
1004     "y": 1234.5556077957153,
1005     "z": "f5fcb4a8.869698",
1006     "wires": []
1007   },
1008   {
1009     "id": "506bd024.3cd4a",
1010     "type": "execute",
1011     "name": "generate parent-ar url - replace allotted-resource-id",
1012     "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",
1013     "comments": "",
1014     "outputs": 1,
1015     "x": 646.0000152587891,
1016     "y": 1062.0000104904175,
1017     "z": "f5fcb4a8.869698",
1018     "wires": [
1019       []
1020     ]
1021   },
1022   {
1023     "id": "458e8426.a4810c",
1024     "type": "execute",
1025     "name": "generate parent-ar url - replace service-instance-id",
1026     "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",
1027     "comments": "",
1028     "outputs": 1,
1029     "x": 641.9999389648438,
1030     "y": 1019.0001468658447,
1031     "z": "f5fcb4a8.869698",
1032     "wires": [
1033       []
1034     ]
1035   },
1036   {
1037     "id": "cd63ec4b.ff1cb",
1038     "type": "comment",
1039     "name": "Prepare Parent AR URL",
1040     "info": "Preparation to set provided-allotted-resource in parent service instance",
1041     "comments": "",
1042     "x": 560.0003967285156,
1043     "y": 948.0001001358032,
1044     "z": "f5fcb4a8.869698",
1045     "wires": []
1046   },
1047   {
1048     "id": "3342f593.51121a",
1049     "type": "set",
1050     "name": "set tmp.ar.parent-service-instance-id",
1051     "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",
1052     "comments": "",
1053     "x": 599.0001907348633,
1054     "y": 981.5000395774841,
1055     "z": "f5fcb4a8.869698",
1056     "wires": []
1057   },
1058   {
1059     "id": "367a31a2.e26f2e",
1060     "type": "comment",
1061     "name": "Required for filling template values",
1062     "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1063     "comments": "",
1064     "x": 788.500358581543,
1065     "y": 1588.4998025894165,
1066     "z": "f5fcb4a8.869698",
1067     "wires": []
1068   },
1069   {
1070     "id": "60273371.090a2c",
1071     "type": "returnFailure",
1072     "name": "return failure",
1073     "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",
1074     "comments": "",
1075     "x": 2156.2569732666016,
1076     "y": 819.6458292007446,
1077     "z": "f5fcb4a8.869698",
1078     "wires": []
1079   },
1080   {
1081     "id": "458ffc55.d5db04",
1082     "type": "set",
1083     "name": "set tmp.found-cidx",
1084     "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1085     "comments": "",
1086     "x": 1282.1461448669434,
1087     "y": 731.3125722408295,
1088     "z": "f5fcb4a8.869698",
1089     "wires": []
1090   },
1091   {
1092     "id": "9861d990.de9418",
1093     "type": "comment",
1094     "name": "Add to parent services provided-allotted-resources in mdsal",
1095     "info": "",
1096     "comments": "",
1097     "x": 670.7015075683594,
1098     "y": 915.9792566299438,
1099     "z": "f5fcb4a8.869698",
1100     "wires": []
1101   },
1102   {
1103     "id": "3b543dd4.ce0012",
1104     "type": "comment",
1105     "name": "Add to allotted-resources in mdsal",
1106     "info": "",
1107     "comments": "",
1108     "x": 591.4686965942383,
1109     "y": 1201.968936920166,
1110     "z": "f5fcb4a8.869698",
1111     "wires": []
1112   },
1113   {
1114     "id": "43f948c5.8e3c48",
1115     "type": "block",
1116     "name": "block: atomic",
1117     "xml": "<block atomic=\"true\">\n",
1118     "atomic": "false",
1119     "comments": "",
1120     "outputs": 1,
1121     "x": 1264.500051498413,
1122     "y": 629.2777605056763,
1123     "z": "f5fcb4a8.869698",
1124     "wires": [
1125       [
1126         "8dd70ad1.fb4fc8"
1127       ]
1128     ]
1129   },
1130   {
1131     "id": "8dd70ad1.fb4fc8",
1132     "type": "switchNode",
1133     "name": "switch cr length",
1134     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1135     "comments": "",
1136     "outputs": 1,
1137     "x": 1452.3574314117432,
1138     "y": 629.8968958854675,
1139     "z": "f5fcb4a8.869698",
1140     "wires": [
1141       [
1142         "fbc1bfeb.141c9"
1143       ]
1144     ]
1145   },
1146   {
1147     "id": "fbc1bfeb.141c9",
1148     "type": "other",
1149     "name": "outcome 1",
1150     "xml": "<outcome value='1'>\n",
1151     "comments": "",
1152     "outputs": 1,
1153     "x": 1651.6905536651611,
1154     "y": 629.8969745635986,
1155     "z": "f5fcb4a8.869698",
1156     "wires": [
1157       [
1158         "fff5fcf9.b91b7"
1159       ]
1160     ]
1161   },
1162   {
1163     "id": "cfbbadf0.d1c3a",
1164     "type": "execute",
1165     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1166     "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",
1167     "comments": "",
1168     "outputs": 1,
1169     "x": 736.5000534057617,
1170     "y": 624.000036239624,
1171     "z": "f5fcb4a8.869698",
1172     "wires": [
1173       [
1174         "cd668aab.887ef8",
1175         "bae083e9.e29fb"
1176       ]
1177     ]
1178   },
1179   {
1180     "id": "bae083e9.e29fb",
1181     "type": "failure",
1182     "name": "failure",
1183     "xml": "<outcome value='failure'>\n",
1184     "comments": "",
1185     "outputs": 1,
1186     "x": 1104.5000839233398,
1187     "y": 594.0000343322754,
1188     "z": "f5fcb4a8.869698",
1189     "wires": [
1190       [
1191         "3e8fa261.9dd48e"
1192       ]
1193     ]
1194   },
1195   {
1196     "id": "3e8fa261.9dd48e",
1197     "type": "block",
1198     "name": "block",
1199     "xml": "<block>\n",
1200     "atomic": "false",
1201     "comments": "",
1202     "outputs": 1,
1203     "x": 1256.5000839233398,
1204     "y": 593.0000343322754,
1205     "z": "f5fcb4a8.869698",
1206     "wires": [
1207       []
1208     ]
1209   },
1210   {
1211     "id": "e88d2834.1fdcf8",
1212     "type": "block",
1213     "name": "block : atomic",
1214     "xml": "<block atomic=\"true\">",
1215     "atomic": "true",
1216     "outputs": 1,
1217     "x": 533.0556106567383,
1218     "y": 1543.6666536331177,
1219     "z": "f5fcb4a8.869698",
1220     "wires": [
1221       [
1222         "89eae9c8.150108",
1223         "7cc17548.dbfedc"
1224       ]
1225     ]
1226   },
1227   {
1228     "id": "89eae9c8.150108",
1229     "type": "for",
1230     "name": "for each sotn-get-request-input-param",
1231     "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1232     "comments": "",
1233     "outputs": 1,
1234     "x": 803.0556755065918,
1235     "y": 1543.6667013168335,
1236     "z": "f5fcb4a8.869698",
1237     "wires": [
1238       [
1239         "a8e3f2e1.dc676"
1240       ]
1241     ]
1242   },
1243   {
1244     "id": "2789cf1d.918af",
1245     "type": "comment",
1246     "name": "Take the parameter names by removing prefix",
1247     "info": "",
1248     "comments": "",
1249     "x": 1343.0554580688477,
1250     "y": 1499.6667346954346,
1251     "z": "f5fcb4a8.869698",
1252     "wires": []
1253   },
1254   {
1255     "id": "b944f1f.576e11",
1256     "type": "execute",
1257     "name": "execute split parameterName",
1258     "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",
1259     "comments": "",
1260     "outputs": 1,
1261     "x": 1301.0901260375977,
1262     "y": 1534.6458778381348,
1263     "z": "f5fcb4a8.869698",
1264     "wires": [
1265       []
1266     ]
1267   },
1268   {
1269     "id": "ab8b4370.c5cdb",
1270     "type": "set",
1271     "name": "set parameterName",
1272     "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",
1273     "comments": "",
1274     "x": 1271.534652709961,
1275     "y": 1567.6458778381348,
1276     "z": "f5fcb4a8.869698",
1277     "wires": []
1278   },
1279   {
1280     "id": "426abdbb.ca9194",
1281     "type": "comment",
1282     "name": "Remove VNFC prefix",
1283     "info": "",
1284     "comments": "",
1285     "x": 744.0556030273438,
1286     "y": 1511.1110153198242,
1287     "z": "f5fcb4a8.869698",
1288     "wires": []
1289   },
1290   {
1291     "id": "a8e3f2e1.dc676",
1292     "type": "block",
1293     "name": "block : atomic",
1294     "xml": "<block atomic=\"true\">",
1295     "atomic": "true",
1296     "outputs": 1,
1297     "x": 1050.0555114746094,
1298     "y": 1542.1110458374023,
1299     "z": "f5fcb4a8.869698",
1300     "wires": [
1301       [
1302         "b944f1f.576e11",
1303         "ab8b4370.c5cdb"
1304       ]
1305     ]
1306   },
1307   {
1308     "id": "c224a6bb.b7b288",
1309     "type": "save",
1310     "name": "save srcLTP relationship in AAI",
1311     "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource:relationship-list\" \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/' + $src-ltpId`\" />\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",
1312     "comments": "",
1313     "outputs": 1,
1314     "x": 569.5040016174316,
1315     "y": 1976.004249572754,
1316     "z": "f5fcb4a8.869698",
1317     "wires": [
1318       []
1319     ]
1320   },
1321   {
1322     "id": "c765719e.98d15",
1323     "type": "set",
1324     "name": "set src-ltpId",
1325     "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $prop.connection-attachment.access-node-id + '-ltpId-' + $prop.connection-attachment.access-ltp-id`\" />\n",
1326     "comments": "",
1327     "x": 509.5000991821289,
1328     "y": 1933.0003423690796,
1329     "z": "f5fcb4a8.869698",
1330     "wires": []
1331   }
1332 ]