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": "e71077a5.449178",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 94.00001907348633,
8     "y": 67.0000991821289,
9     "z": "ab45b2a0.2d254",
10     "wires": [
11       [
12         "e230874f.1ced38"
13       ]
14     ]
15   },
16   {
17     "id": "e230874f.1ced38",
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": 269.0000228881836,
26     "y": 139.0001163482666,
27     "z": "ab45b2a0.2d254",
28     "wires": [
29       [
30         "fda28de9.a9688"
31       ]
32     ]
33   },
34   {
35     "id": "fda28de9.a9688",
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": 257.0001411437988,
42     "y": 227.0000991821289,
43     "z": "ab45b2a0.2d254",
44     "wires": [
45       [
46         "8e26551b.7dfe18"
47       ]
48     ]
49   },
50   {
51     "id": "8e26551b.7dfe18",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 177.00007247924805,
59     "y": 976.0003471374512,
60     "z": "ab45b2a0.2d254",
61     "wires": [
62       [
63         "c93c04d7.3e5348",
64         "9950e65d.3636a8",
65         "1ae547a2.eaba88",
66         "65f23dcc.6522b4",
67         "3e30e763.22be28",
68         "aa28416d.6d08a",
69         "15ca2e29.9a7dd2",
70         "9b1a0521.5c3978",
71         "f24b78b1.fdc468",
72         "a64f1b8.759c3e8",
73         "ab5d9313.ad157",
74         "6c39c83c.d7b048",
75         "8b5e7723.d59fc8",
76         "6b976d2c.2711d4",
77         "c9e7bba5.2bcb28",
78         "5aa40ff8.faf21",
79         "46cb4068.e43d3",
80         "8bddffb6.5284",
81         "abedf313.5d507",
82         "fac542dd.1d112",
83         "b07d75d2.a2b088",
84         "26fdc495.60ac0c",
85         "a63f9a77.c174a8",
86         "e02c5c21.82a2",
87         "bde5bdf6.37338"
88       ]
89     ]
90   },
91   {
92     "id": "c90f1d50.24dc",
93     "type": "comment",
94     "name": "Set allotted resource id if not sent by SO",
95     "info": "",
96     "comments": "",
97     "x": 661.0767707824707,
98     "y": 136.4340181350708,
99     "z": "ab45b2a0.2d254",
100     "wires": []
101   },
102   {
103     "id": "c93c04d7.3e5348",
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": 607.0000495910645,
110     "y": 192.00009155273438,
111     "z": "ab45b2a0.2d254",
112     "wires": [
113       [
114         "213269bc.4275f6",
115         "6419db5e.a2c0c4"
116       ]
117     ]
118   },
119   {
120     "id": "213269bc.4275f6",
121     "type": "outcome",
122     "name": "NULL",
123     "xml": "<outcome value=''>",
124     "comments": "",
125     "outputs": 1,
126     "x": 805.0001373291016,
127     "y": 162.00008010864258,
128     "z": "ab45b2a0.2d254",
129     "wires": [
130       [
131         "eccd2036.554d7"
132       ]
133     ]
134   },
135   {
136     "id": "6419db5e.a2c0c4",
137     "type": "other",
138     "name": "other",
139     "xml": "<outcome value='Other'>\n",
140     "comments": "",
141     "outputs": 1,
142     "x": 804.0000457763672,
143     "y": 199.00009059906006,
144     "z": "ab45b2a0.2d254",
145     "wires": [
146       [
147         "4ab8dc05.8f0984"
148       ]
149     ]
150   },
151   {
152     "id": "4ab8dc05.8f0984",
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": 1002.0000343322754,
158     "y": 196.0001096725464,
159     "z": "ab45b2a0.2d254",
160     "wires": []
161   },
162   {
163     "id": "9950e65d.3636a8",
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": 574.9999732971191,
169     "y": 413.0001983642578,
170     "z": "ab45b2a0.2d254",
171     "wires": []
172   },
173   {
174     "id": "1ae547a2.eaba88",
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": 575.261890411377,
181     "y": 494.66687965393066,
182     "z": "ab45b2a0.2d254",
183     "wires": [
184       []
185     ]
186   },
187   {
188     "id": "65f23dcc.6522b4",
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": 628.2619514465332,
195     "y": 581.6667976379395,
196     "z": "ab45b2a0.2d254",
197     "wires": [
198       []
199     ]
200   },
201   {
202     "id": "eccd2036.554d7",
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": 1020.000114440918,
209     "y": 163.00008583068848,
210     "z": "ab45b2a0.2d254",
211     "wires": [
212       [
213         "90c2cdec.e7c9c"
214       ]
215     ]
216   },
217   {
218     "id": "90c2cdec.e7c9c",
219     "type": "failure",
220     "name": "failure",
221     "xml": "<outcome value='failure'>\n",
222     "comments": "",
223     "outputs": 1,
224     "x": 1238.000156402588,
225     "y": 163.00004959106445,
226     "z": "ab45b2a0.2d254",
227     "wires": [
228       [
229         "a192b9fd.7610f8"
230       ]
231     ]
232   },
233   {
234     "id": "a192b9fd.7610f8",
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": 1404.0001106262207,
240     "y": 163.0000638961792,
241     "z": "ab45b2a0.2d254",
242     "wires": []
243   },
244   {
245     "id": "66a512c5.0faacc",
246     "type": "success",
247     "name": "success",
248     "xml": "<outcome value='success'>\n",
249     "comments": "",
250     "outputs": 1,
251     "x": 1134.000249862671,
252     "y": 653.7779703140259,
253     "z": "ab45b2a0.2d254",
254     "wires": [
255       [
256         "19566392.15832c"
257       ]
258     ]
259   },
260   {
261     "id": "2a3354d7.ee765c",
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": 1867.5186290740967,
267     "y": 654.8440418243408,
268     "z": "ab45b2a0.2d254",
269     "wires": []
270   },
271   {
272     "id": "70da4f2f.1d3ca",
273     "type": "comment",
274     "name": "Check for non existence of allotted resource",
275     "info": "",
276     "comments": "",
277     "x": 990.000171661377,
278     "y": 587.778037071228,
279     "z": "ab45b2a0.2d254",
280     "wires": []
281   },
282   {
283     "id": "66ac283c.bd2348",
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": 1510.6667175292969,
290     "y": 798.0001494884491,
291     "z": "ab45b2a0.2d254",
292     "wires": [
293       [
294         "c03dacc1.547db"
295       ]
296     ]
297   },
298   {
299     "id": "aa28416d.6d08a",
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": 692.6660423278809,
306     "y": 774.7141819000244,
307     "z": "ab45b2a0.2d254",
308     "wires": [
309       [
310         "ae723a2a.13be98",
311         "1678938e.1bfafc"
312       ]
313     ]
314   },
315   {
316     "id": "ae723a2a.13be98",
317     "type": "other",
318     "name": "outcome Null",
319     "xml": "<outcome value=''>\n",
320     "comments": "",
321     "outputs": 1,
322     "x": 996.8089408874512,
323     "y": 743.5716190338135,
324     "z": "ab45b2a0.2d254",
325     "wires": [
326       [
327         "9ff14f9b.0b3b"
328       ]
329     ]
330   },
331   {
332     "id": "1678938e.1bfafc",
333     "type": "other",
334     "name": "other",
335     "xml": "<outcome value='Other'>\n",
336     "comments": "",
337     "outputs": 1,
338     "x": 973.8089904785156,
339     "y": 804.5715742111206,
340     "z": "ab45b2a0.2d254",
341     "wires": [
342       [
343         "79d1a933.7fd6a8"
344       ]
345     ]
346   },
347   {
348     "id": "79d1a933.7fd6a8",
349     "type": "block",
350     "name": "block : atomic",
351     "xml": "<block atomic=\"true\">",
352     "atomic": "true",
353     "outputs": 1,
354     "x": 1133.9360809326172,
355     "y": 802.6975507736206,
356     "z": "ab45b2a0.2d254",
357     "wires": [
358       [
359         "66ac283c.bd2348",
360         "3b659fae.e519",
361         "a32862a8.8af3d"
362       ]
363     ]
364   },
365   {
366     "id": "9ff14f9b.0b3b",
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": 1146.6659240722656,
372     "y": 741.2856693267822,
373     "z": "ab45b2a0.2d254",
374     "wires": []
375   },
376   {
377     "id": "15ca2e29.9a7dd2",
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": 621.5233345031738,
383     "y": 878.2857465744019,
384     "z": "ab45b2a0.2d254",
385     "wires": []
386   },
387   {
388     "id": "3b659fae.e519",
389     "type": "switchNode",
390     "name": "switch tmp.found-cidx",
391     "xml": "<switch test='`$tmp.found-cidx`'>\n",
392     "comments": "",
393     "outputs": 1,
394     "x": 1323.0511283874512,
395     "y": 834.7090735435486,
396     "z": "ab45b2a0.2d254",
397     "wires": [
398       [
399         "966db31a.47786"
400       ]
401     ]
402   },
403   {
404     "id": "966db31a.47786",
405     "type": "outcomeTrue",
406     "name": "false",
407     "xml": "<outcome value='false'>\n",
408     "comments": "",
409     "outputs": 1,
410     "x": 1513.051082611084,
411     "y": 834.7090106010437,
412     "z": "ab45b2a0.2d254",
413     "wires": [
414       [
415         "b95410b0.660fd"
416       ]
417     ]
418   },
419   {
420     "id": "b95410b0.660fd",
421     "type": "block",
422     "name": "block : atomic",
423     "xml": "<block atomic=\"true\">",
424     "atomic": "true",
425     "outputs": 1,
426     "x": 1679.051082611084,
427     "y": 834.7090106010437,
428     "z": "ab45b2a0.2d254",
429     "wires": [
430       [
431         "2ab57899.a130b8"
432       ]
433     ]
434   },
435   {
436     "id": "c03dacc1.547db",
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": 1927.7783470153809,
443     "y": 795.0001764297485,
444     "z": "ab45b2a0.2d254",
445     "wires": [
446       [
447         "ba9ad589.8abb58"
448       ]
449     ]
450   },
451   {
452     "id": "ba9ad589.8abb58",
453     "type": "outcomeTrue",
454     "name": "true",
455     "xml": "<outcome value='true'>\n",
456     "comments": "",
457     "outputs": 1,
458     "x": 2109.587921142578,
459     "y": 795.4646234512329,
460     "z": "ab45b2a0.2d254",
461     "wires": [
462       [
463         "ef75ff36.6e6a8"
464       ]
465     ]
466   },
467   {
468     "id": "2ab57899.a130b8",
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": 1840.9244651794434,
474     "y": 834.2207117080688,
475     "z": "ab45b2a0.2d254",
476     "wires": []
477   },
478   {
479     "id": "e6f158d3.3c83a8",
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": 713.6672554016113,
485     "y": 705.0001459121704,
486     "z": "ab45b2a0.2d254",
487     "wires": []
488   },
489   {
490     "id": "464592d5.7d3adc",
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": 701.000171661377,
496     "y": 843.7782382965088,
497     "z": "ab45b2a0.2d254",
498     "wires": []
499   },
500   {
501     "id": "a63f9a77.c174a8",
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": 577.6909523010254,
508     "y": 1914.5320167541504,
509     "z": "ab45b2a0.2d254",
510     "wires": [
511       [
512         "8865c331.63809",
513         "3795c6dc.0749ba"
514       ]
515     ]
516   },
517   {
518     "id": "8865c331.63809",
519     "type": "failure",
520     "name": "failure",
521     "xml": "<outcome value='failure'>\n",
522     "comments": "",
523     "outputs": 1,
524     "x": 801.4528045654297,
525     "y": 1884.4845905303955,
526     "z": "ab45b2a0.2d254",
527     "wires": [
528       [
529         "4e95350f.9bd78c"
530       ]
531     ]
532   },
533   {
534     "id": "4e95350f.9bd78c",
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": 967.9766845703125,
540     "y": 1896.1036615371704,
541     "z": "ab45b2a0.2d254",
542     "wires": []
543   },
544   {
545     "id": "3795c6dc.0749ba",
546     "type": "failure",
547     "name": "not-found",
548     "xml": "<outcome value='not-found'>\n",
549     "comments": "",
550     "outputs": 1,
551     "x": 808.5480918884277,
552     "y": 1917.246558189392,
553     "z": "ab45b2a0.2d254",
554     "wires": [
555       [
556         "4e95350f.9bd78c"
557       ]
558     ]
559   },
560   {
561     "id": "e8bcac4.3e63b5",
562     "type": "comment",
563     "name": "Save Resource to AAI",
564     "info": "",
565     "comments": "",
566     "x": 583.5005073547363,
567     "y": 1836.8339614868164,
568     "z": "ab45b2a0.2d254",
569     "wires": []
570   },
571   {
572     "id": "9ada057d.8d0ed8",
573     "type": "comment",
574     "name": "Set allotted resource type if not sent by SO",
575     "info": "",
576     "comments": "",
577     "x": 647.0000190734863,
578     "y": 245.0000991821289,
579     "z": "ab45b2a0.2d254",
580     "wires": []
581   },
582   {
583     "id": "3e30e763.22be28",
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": 608.9233283996582,
590     "y": 285.5661554336548,
591     "z": "ab45b2a0.2d254",
592     "wires": [
593       [
594         "1b1ef42.aa2a50c",
595         "5b1a6ad6.d32444"
596       ]
597     ]
598   },
599   {
600     "id": "1b1ef42.aa2a50c",
601     "type": "outcome",
602     "name": "NULL",
603     "xml": "<outcome value=''>",
604     "comments": "",
605     "outputs": 1,
606     "x": 811.9234809875488,
607     "y": 270.56615829467773,
608     "z": "ab45b2a0.2d254",
609     "wires": [
610       [
611         "23a0059d.3f004a"
612       ]
613     ]
614   },
615   {
616     "id": "5b1a6ad6.d32444",
617     "type": "other",
618     "name": "other",
619     "xml": "<outcome value='Other'>\n",
620     "comments": "",
621     "outputs": 1,
622     "x": 804.9233093261719,
623     "y": 310.5661783218384,
624     "z": "ab45b2a0.2d254",
625     "wires": [
626       [
627         "e101a8fa.94ec78"
628       ]
629     ]
630   },
631   {
632     "id": "e101a8fa.94ec78",
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": 1036.9232940673828,
638     "y": 310.56618309020996,
639     "z": "ab45b2a0.2d254",
640     "wires": []
641   },
642   {
643     "id": "535c3465.db6a5c",
644     "type": "comment",
645     "name": "For storage in AAI connection-attachment-topology",
646     "info": "",
647     "comments": "",
648     "x": 671.9999809265137,
649     "y": 380.0000991821289,
650     "z": "ab45b2a0.2d254",
651     "wires": []
652   },
653   {
654     "id": "7158b402.34b20c",
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": 646.9999656677246,
660     "y": 461.8890085220337,
661     "z": "ab45b2a0.2d254",
662     "wires": []
663   },
664   {
665     "id": "8b7046e5.63a738",
666     "type": "comment",
667     "name": "Used for Put AR by id to MDSAL",
668     "info": "",
669     "comments": "",
670     "x": 613.0000495910645,
671     "y": 550.8890256881714,
672     "z": "ab45b2a0.2d254",
673     "wires": []
674   },
675   {
676     "id": "41e867cd.171798",
677     "type": "comment",
678     "name": "Obtain the last index in services",
679     "info": "ServiceData is added by Provider code",
680     "comments": "",
681     "x": 614.4444923400879,
682     "y": 736.888970375061,
683     "z": "ab45b2a0.2d254",
684     "wires": []
685   },
686   {
687     "id": "abedf313.5d507",
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": 592.2681541442871,
693     "y": 1800.3592882156372,
694     "z": "ab45b2a0.2d254",
695     "wires": []
696   },
697   {
698     "id": "fac542dd.1d112",
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": 536.6813507080078,
704     "y": 2033.975341796875,
705     "z": "ab45b2a0.2d254",
706     "wires": []
707   },
708   {
709     "id": "23a0059d.3f004a",
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": 1051.0001678466797,
715     "y": 271.00008487701416,
716     "z": "ab45b2a0.2d254",
717     "wires": []
718   },
719   {
720     "id": "77c2c758.5059b8",
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": 893.9941749572754,
727     "y": 1649.4938287734985,
728     "z": "ab45b2a0.2d254",
729     "wires": [
730       []
731     ]
732   },
733   {
734     "id": "8bddffb6.5284",
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": 643.0002861022949,
741     "y": 1734.0002174377441,
742     "z": "ab45b2a0.2d254",
743     "wires": [
744       [
745         "d13a7894.7c9648",
746         "a17ed53e.8a7c48",
747         "2a45ba4f.903ad6"
748       ]
749     ]
750   },
751   {
752     "id": "d13a7894.7c9648",
753     "type": "not-found",
754     "name": "not-found",
755     "xml": "<outcome value='not-found'>\n",
756     "comments": "",
757     "outputs": 1,
758     "x": 892.6416397094727,
759     "y": 1772.3315477371216,
760     "z": "ab45b2a0.2d254",
761     "wires": [
762       [
763         "2a58bb37.857ca4"
764       ]
765     ]
766   },
767   {
768     "id": "a17ed53e.8a7c48",
769     "type": "failure",
770     "name": "failure",
771     "xml": "<outcome value='failure'>\n",
772     "comments": "",
773     "outputs": 1,
774     "x": 883.6416893005371,
775     "y": 1740.8315734863281,
776     "z": "ab45b2a0.2d254",
777     "wires": [
778       [
779         "2a58bb37.857ca4"
780       ]
781     ]
782   },
783   {
784     "id": "2a45ba4f.903ad6",
785     "type": "success",
786     "name": "success",
787     "xml": "<outcome value='success'>\n",
788     "comments": "",
789     "outputs": 1,
790     "x": 887.3917274475098,
791     "y": 1711.1886783614755,
792     "z": "ab45b2a0.2d254",
793     "wires": [
794       [
795         "4b685690.de2cf8"
796       ]
797     ]
798   },
799   {
800     "id": "2a58bb37.857ca4",
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": 1053.3917274475098,
806     "y": 1741.581597328186,
807     "z": "ab45b2a0.2d254",
808     "wires": []
809   },
810   {
811     "id": "4b685690.de2cf8",
812     "type": "block",
813     "name": "block",
814     "xml": "<block>\n",
815     "atomic": "false",
816     "comments": "",
817     "outputs": 1,
818     "x": 1029.047695159912,
819     "y": 1707.3808475509286,
820     "z": "ab45b2a0.2d254",
821     "wires": [
822       []
823     ]
824   },
825   {
826     "id": "ab5d9313.ad157",
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": 712.9999732971191,
833     "y": 1160.0002641677856,
834     "z": "ab45b2a0.2d254",
835     "wires": [
836       [
837         "9094ff9e.53d26",
838         "43bc3599.27bffc",
839         "fc9fd873.a374e8"
840       ]
841     ]
842   },
843   {
844     "id": "9094ff9e.53d26",
845     "type": "not-found",
846     "name": "not-found",
847     "xml": "<outcome value='not-found'>\n",
848     "comments": "",
849     "outputs": 1,
850     "x": 1021.308032989502,
851     "y": 1191.9985399246216,
852     "z": "ab45b2a0.2d254",
853     "wires": [
854       [
855         "421ec30a.485b8c"
856       ]
857     ]
858   },
859   {
860     "id": "43bc3599.27bffc",
861     "type": "failure",
862     "name": "failure",
863     "xml": "<outcome value='failure'>\n",
864     "comments": "",
865     "outputs": 1,
866     "x": 1012.3080825805664,
867     "y": 1160.4985656738281,
868     "z": "ab45b2a0.2d254",
869     "wires": [
870       [
871         "421ec30a.485b8c"
872       ]
873     ]
874   },
875   {
876     "id": "fc9fd873.a374e8",
877     "type": "success",
878     "name": "success",
879     "xml": "<outcome value='success'>\n",
880     "comments": "",
881     "outputs": 1,
882     "x": 1016.0581207275391,
883     "y": 1130.8556705489755,
884     "z": "ab45b2a0.2d254",
885     "wires": [
886       [
887         "c6163b00.f85308"
888       ]
889     ]
890   },
891   {
892     "id": "421ec30a.485b8c",
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": 1182.058120727539,
898     "y": 1161.248589515686,
899     "z": "ab45b2a0.2d254",
900     "wires": []
901   },
902   {
903     "id": "c6163b00.f85308",
904     "type": "block",
905     "name": "block",
906     "xml": "<block>\n",
907     "atomic": "false",
908     "comments": "",
909     "outputs": 1,
910     "x": 1157.7140884399414,
911     "y": 1127.0478397384286,
912     "z": "ab45b2a0.2d254",
913     "wires": [
914       []
915     ]
916   },
917   {
918     "id": "f91628dc.a22298",
919     "type": "comment",
920     "name": "Put the parent allotted resource in mdsal",
921     "info": "",
922     "comments": "",
923     "x": 641.9999198913574,
924     "y": 1122.0001707077026,
925     "z": "ab45b2a0.2d254",
926     "wires": []
927   },
928   {
929     "id": "8b5e7723.d59fc8",
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": 638.357105255127,
935     "y": 1324.571789741516,
936     "z": "ab45b2a0.2d254",
937     "wires": []
938   },
939   {
940     "id": "6c39c83c.d7b048",
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": 552.2138862609863,
946     "y": 1292.3811464309692,
947     "z": "ab45b2a0.2d254",
948     "wires": []
949   },
950   {
951     "id": "6b976d2c.2711d4",
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": 617.1669044494629,
957     "y": 1358.6669750213623,
958     "z": "ab45b2a0.2d254",
959     "wires": []
960   },
961   {
962     "id": "c9e7bba5.2bcb28",
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": 569.4997444152832,
969     "y": 1432.0005025863647,
970     "z": "ab45b2a0.2d254",
971     "wires": [
972       []
973     ]
974   },
975   {
976     "id": "5aa40ff8.faf21",
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": 620.4867820739746,
982     "y": 1487.951735496521,
983     "z": "ab45b2a0.2d254",
984     "wires": []
985   },
986   {
987     "id": "46cb4068.e43d3",
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": 565.0554008483887,
993     "y": 1393.5558605194092,
994     "z": "ab45b2a0.2d254",
995     "wires": []
996   },
997   {
998     "id": "b1148074.b83dc",
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": 682.3888893127441,
1004     "y": 1258.5557069778442,
1005     "z": "ab45b2a0.2d254",
1006     "wires": []
1007   },
1008   {
1009     "id": "a64f1b8.759c3e8",
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": 677.5000343322754,
1016     "y": 1086.0001096725464,
1017     "z": "ab45b2a0.2d254",
1018     "wires": [
1019       []
1020     ]
1021   },
1022   {
1023     "id": "f24b78b1.fdc468",
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": 673.4999580383301,
1030     "y": 1043.0002460479736,
1031     "z": "ab45b2a0.2d254",
1032     "wires": [
1033       []
1034     ]
1035   },
1036   {
1037     "id": "5c890ede.9091d",
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": 591.500415802002,
1043     "y": 972.0001993179321,
1044     "z": "ab45b2a0.2d254",
1045     "wires": []
1046   },
1047   {
1048     "id": "9b1a0521.5c3978",
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": 630.5002098083496,
1054     "y": 1005.500138759613,
1055     "z": "ab45b2a0.2d254",
1056     "wires": []
1057   },
1058   {
1059     "id": "1dce57cb.3a2f28",
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": 820.0003776550293,
1065     "y": 1612.4999017715454,
1066     "z": "ab45b2a0.2d254",
1067     "wires": []
1068   },
1069   {
1070     "id": "ef75ff36.6e6a8",
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": 2187.756992340088,
1076     "y": 843.6459283828735,
1077     "z": "ab45b2a0.2d254",
1078     "wires": []
1079   },
1080   {
1081     "id": "a32862a8.8af3d",
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": 1313.6461639404297,
1087     "y": 755.3126714229584,
1088     "z": "ab45b2a0.2d254",
1089     "wires": []
1090   },
1091   {
1092     "id": "46efcfd6.a7a1a",
1093     "type": "comment",
1094     "name": "Add to parent services provided-allotted-resources in mdsal",
1095     "info": "",
1096     "comments": "",
1097     "x": 702.2015266418457,
1098     "y": 939.9793558120728,
1099     "z": "ab45b2a0.2d254",
1100     "wires": []
1101   },
1102   {
1103     "id": "b6eb1599.cd85e8",
1104     "type": "comment",
1105     "name": "Add to allotted-resources in mdsal",
1106     "info": "",
1107     "comments": "",
1108     "x": 622.9687156677246,
1109     "y": 1225.969036102295,
1110     "z": "ab45b2a0.2d254",
1111     "wires": []
1112   },
1113   {
1114     "id": "19566392.15832c",
1115     "type": "block",
1116     "name": "block: atomic",
1117     "xml": "<block atomic=\"true\">\n",
1118     "atomic": "false",
1119     "comments": "",
1120     "outputs": 1,
1121     "x": 1296.0000705718994,
1122     "y": 653.2778596878052,
1123     "z": "ab45b2a0.2d254",
1124     "wires": [
1125       [
1126         "be105cba.576f"
1127       ]
1128     ]
1129   },
1130   {
1131     "id": "be105cba.576f",
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": 1483.8574504852295,
1138     "y": 653.8969950675964,
1139     "z": "ab45b2a0.2d254",
1140     "wires": [
1141       [
1142         "a5af4603.e786b8"
1143       ]
1144     ]
1145   },
1146   {
1147     "id": "a5af4603.e786b8",
1148     "type": "other",
1149     "name": "outcome 1",
1150     "xml": "<outcome value='1'>\n",
1151     "comments": "",
1152     "outputs": 1,
1153     "x": 1683.1905727386475,
1154     "y": 653.8970737457275,
1155     "z": "ab45b2a0.2d254",
1156     "wires": [
1157       [
1158         "2a3354d7.ee765c"
1159       ]
1160     ]
1161   },
1162   {
1163     "id": "b07d75d2.a2b088",
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": 768.000072479248,
1170     "y": 648.0001354217529,
1171     "z": "ab45b2a0.2d254",
1172     "wires": [
1173       [
1174         "66a512c5.0faacc",
1175         "9a3ff920.b9ec88"
1176       ]
1177     ]
1178   },
1179   {
1180     "id": "9a3ff920.b9ec88",
1181     "type": "failure",
1182     "name": "failure",
1183     "xml": "<outcome value='failure'>\n",
1184     "comments": "",
1185     "outputs": 1,
1186     "x": 1136.0001029968262,
1187     "y": 618.0001335144043,
1188     "z": "ab45b2a0.2d254",
1189     "wires": [
1190       [
1191         "9cab679f.f79248"
1192       ]
1193     ]
1194   },
1195   {
1196     "id": "9cab679f.f79248",
1197     "type": "block",
1198     "name": "block",
1199     "xml": "<block>\n",
1200     "atomic": "false",
1201     "comments": "",
1202     "outputs": 1,
1203     "x": 1288.0001029968262,
1204     "y": 617.0001335144043,
1205     "z": "ab45b2a0.2d254",
1206     "wires": [
1207       []
1208     ]
1209   },
1210   {
1211     "id": "26fdc495.60ac0c",
1212     "type": "block",
1213     "name": "block : atomic",
1214     "xml": "<block atomic=\"true\">",
1215     "atomic": "true",
1216     "outputs": 1,
1217     "x": 564.5556297302246,
1218     "y": 1567.6667528152466,
1219     "z": "ab45b2a0.2d254",
1220     "wires": [
1221       [
1222         "3267c7d4.904798",
1223         "77c2c758.5059b8"
1224       ]
1225     ]
1226   },
1227   {
1228     "id": "3267c7d4.904798",
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": 834.5556945800781,
1235     "y": 1567.6668004989624,
1236     "z": "ab45b2a0.2d254",
1237     "wires": [
1238       [
1239         "2605999a.01d556"
1240       ]
1241     ]
1242   },
1243   {
1244     "id": "2051e6d6.e5a81a",
1245     "type": "comment",
1246     "name": "Take the parameter names by removing prefix",
1247     "info": "",
1248     "comments": "",
1249     "x": 1374.555477142334,
1250     "y": 1523.6668338775635,
1251     "z": "ab45b2a0.2d254",
1252     "wires": []
1253   },
1254   {
1255     "id": "43dec0c4.9aa5a",
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": 1332.590145111084,
1262     "y": 1558.6459770202637,
1263     "z": "ab45b2a0.2d254",
1264     "wires": [
1265       []
1266     ]
1267   },
1268   {
1269     "id": "e2d39b7e.8a6eb8",
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": 1303.0346717834473,
1275     "y": 1591.6459770202637,
1276     "z": "ab45b2a0.2d254",
1277     "wires": []
1278   },
1279   {
1280     "id": "36eb754f.ed7b4a",
1281     "type": "comment",
1282     "name": "Remove VNFC prefix",
1283     "info": "",
1284     "comments": "",
1285     "x": 775.5556221008301,
1286     "y": 1535.1111145019531,
1287     "z": "ab45b2a0.2d254",
1288     "wires": []
1289   },
1290   {
1291     "id": "2605999a.01d556",
1292     "type": "block",
1293     "name": "block : atomic",
1294     "xml": "<block atomic=\"true\">",
1295     "atomic": "true",
1296     "outputs": 1,
1297     "x": 1081.5555305480957,
1298     "y": 1566.1111450195312,
1299     "z": "ab45b2a0.2d254",
1300     "wires": [
1301       [
1302         "43dec0c4.9aa5a",
1303         "e2d39b7e.8a6eb8"
1304       ]
1305     ]
1306   },
1307   {
1308     "id": "e02c5c21.82a2",
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\" \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": 590.0041046142578,
1315     "y": 1988.0046367645264,
1316     "z": "ab45b2a0.2d254",
1317     "wires": [
1318       []
1319     ]
1320   },
1321   {
1322     "id": "bde5bdf6.37338",
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": 534.0001983642578,
1328     "y": 1952.0004014968872,
1329     "z": "ab45b2a0.2d254",
1330     "wires": []
1331   }
1332 ]