Merge "Allow sub directories for graphs"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_sotn-attachment-topology-operation-create.json
1 [
2   {
3     "id": "fd67dde.a66f82",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 116,
8     "y": 35,
9     "z": "6ade2963.0875b8",
10     "wires": [
11       [
12         "1df77df2.bd25c2"
13       ]
14     ]
15   },
16   {
17     "id": "1df77df2.bd25c2",
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": 257.00000190734863,
26     "y": 112.00001430511475,
27     "z": "6ade2963.0875b8",
28     "wires": [
29       [
30         "4ae5acd4.5be1a4"
31       ]
32     ]
33   },
34   {
35     "id": "4ae5acd4.5be1a4",
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": 245.00012016296387,
42     "y": 199.99999713897705,
43     "z": "6ade2963.0875b8",
44     "wires": [
45       [
46         "b78625b7.40d198"
47       ]
48     ]
49   },
50   {
51     "id": "b78625b7.40d198",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">\n",
55     "atomic": "false",
56     "comments": "",
57     "outputs": 1,
58     "x": 165.0000514984131,
59     "y": 949.0002450942993,
60     "z": "6ade2963.0875b8",
61     "wires": [
62       [
63         "13c3075f.a550d9",
64         "326099aa.e4b1f6",
65         "9e7243fc.98276",
66         "a773278f.c60928",
67         "79a41f6b.cf86f",
68         "afaa69e7.b4aba8",
69         "4a444e95.a33bb",
70         "77c3364e.f87538",
71         "9851c050.afe45",
72         "5f01282.a94d0d8",
73         "7e65d530.30d0fc",
74         "17bffa68.c6e1f6",
75         "b279212f.2876c",
76         "624c4802.103f08",
77         "15e63162.783f4f",
78         "4d0b157.d3d26ec",
79         "7b0dce99.088f9",
80         "47b622.5f78d9e",
81         "547adbe.09cf724",
82         "1c8354a6.82036b",
83         "908c2ae3.c4f938",
84         "323f6bf8.18f834",
85         "ef225a8b.70ebd8",
86         "16153237.cff69e",
87         "5054f74f.3fad08",
88         "9ff190ab.bed71"
89       ]
90     ]
91   },
92   {
93     "id": "811ec7f1.394838",
94     "type": "comment",
95     "name": "Set allotted resource id if not sent by SO",
96     "info": "",
97     "comments": "",
98     "x": 664.0767593383789,
99     "y": 144.433913230896,
100     "z": "6ade2963.0875b8",
101     "wires": []
102   },
103   {
104     "id": "13c3075f.a550d9",
105     "type": "switchNode",
106     "name": "switch allotted-resource-id",
107     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`'>\n",
108     "comments": "",
109     "outputs": 1,
110     "x": 610.0000381469727,
111     "y": 199.99998664855957,
112     "z": "6ade2963.0875b8",
113     "wires": [
114       [
115         "1fd27893.31ab57",
116         "380f681d.6db258"
117       ]
118     ]
119   },
120   {
121     "id": "1fd27893.31ab57",
122     "type": "outcome",
123     "name": "NULL",
124     "xml": "<outcome value=''>",
125     "comments": "",
126     "outputs": 1,
127     "x": 808.0001258850098,
128     "y": 169.99997520446777,
129     "z": "6ade2963.0875b8",
130     "wires": [
131       [
132         "f434bacd.73f0c8"
133       ]
134     ]
135   },
136   {
137     "id": "380f681d.6db258",
138     "type": "other",
139     "name": "other",
140     "xml": "<outcome value='Other'>\n",
141     "comments": "",
142     "outputs": 1,
143     "x": 807.0000343322754,
144     "y": 206.99998569488525,
145     "z": "6ade2963.0875b8",
146     "wires": [
147       [
148         "b52073bc.07c9f"
149       ]
150     ]
151   },
152   {
153     "id": "b52073bc.07c9f",
154     "type": "set",
155     "name": "set tmp.ar.allotted-resource-id",
156     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n",
157     "comments": "",
158     "x": 1005.0000228881836,
159     "y": 204.00000476837158,
160     "z": "6ade2963.0875b8",
161     "wires": []
162   },
163   {
164     "id": "326099aa.e4b1f6",
165     "type": "set",
166     "name": "set tmp.ar.self-link",
167     "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",
168     "comments": "",
169     "x": 562.9999523162842,
170     "y": 386.00009632110596,
171     "z": "6ade2963.0875b8",
172     "wires": []
173   },
174   {
175     "id": "9e7243fc.98276",
176     "type": "execute",
177     "name": "execute Properties",
178     "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",
179     "comments": "",
180     "outputs": 1,
181     "x": 563.2618942260742,
182     "y": 472.6668071746826,
183     "z": "6ade2963.0875b8",
184     "wires": [
185       []
186     ]
187   },
188   {
189     "id": "a773278f.c60928",
190     "type": "execute",
191     "name": "generate allotted-resource tmp.ar-url",
192     "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",
193     "comments": "",
194     "outputs": 1,
195     "x": 616.2619304656982,
196     "y": 554.6666955947876,
197     "z": "6ade2963.0875b8",
198     "wires": [
199       []
200     ]
201   },
202   {
203     "id": "f434bacd.73f0c8",
204     "type": "execute",
205     "name": "execute tmp.ar.allotted-resource-id",
206     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"tmp.ar.allotted-resource-id\"/>\n",
207     "comments": "",
208     "outputs": 1,
209     "x": 1023.0001029968262,
210     "y": 170.99998092651367,
211     "z": "6ade2963.0875b8",
212     "wires": [
213       [
214         "9ab0be9f.9431d"
215       ]
216     ]
217   },
218   {
219     "id": "9ab0be9f.9431d",
220     "type": "failure",
221     "name": "failure",
222     "xml": "<outcome value='failure'>\n",
223     "comments": "",
224     "outputs": 1,
225     "x": 1241.000144958496,
226     "y": 170.99994468688965,
227     "z": "6ade2963.0875b8",
228     "wires": [
229       [
230         "aca58bfe.822378"
231       ]
232     ]
233   },
234   {
235     "id": "aca58bfe.822378",
236     "type": "returnFailure",
237     "name": "return failure",
238     "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",
239     "comments": "",
240     "x": 1407.000099182129,
241     "y": 170.9999589920044,
242     "z": "6ade2963.0875b8",
243     "wires": []
244   },
245   {
246     "id": "43d96423.28d03c",
247     "type": "success",
248     "name": "success",
249     "xml": "<outcome value='success'>\n",
250     "comments": "",
251     "outputs": 1,
252     "x": 1122.000228881836,
253     "y": 626.777868270874,
254     "z": "6ade2963.0875b8",
255     "wires": [
256       [
257         "1050cf03.802321"
258       ]
259     ]
260   },
261   {
262     "id": "b3c8cfd5.7bea1",
263     "type": "returnFailure",
264     "name": "return failure",
265     "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",
266     "comments": "",
267     "x": 1855.5186080932617,
268     "y": 627.843939781189,
269     "z": "6ade2963.0875b8",
270     "wires": []
271   },
272   {
273     "id": "293dd257.14194e",
274     "type": "comment",
275     "name": "Check for non existence of allotted resource",
276     "info": "",
277     "comments": "",
278     "x": 978.000150680542,
279     "y": 560.7779350280762,
280     "z": "6ade2963.0875b8",
281     "wires": []
282   },
283   {
284     "id": "c5387b68.c01b28",
285     "type": "for",
286     "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
287     "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
288     "comments": "",
289     "outputs": 1,
290     "x": 1498.666696548462,
291     "y": 771.0000474452972,
292     "z": "6ade2963.0875b8",
293     "wires": [
294       [
295         "c340ff54.e12d9"
296       ]
297     ]
298   },
299   {
300     "id": "afaa69e7.b4aba8",
301     "type": "switchNode",
302     "name": "switch service-data.consumed-allotted-resources_length",
303     "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
304     "comments": "",
305     "outputs": 1,
306     "x": 680.6660213470459,
307     "y": 747.7140798568726,
308     "z": "6ade2963.0875b8",
309     "wires": [
310       [
311         "7d136f12.04ec4",
312         "c30cd80f.81caf8"
313       ]
314     ]
315   },
316   {
317     "id": "7d136f12.04ec4",
318     "type": "other",
319     "name": "outcome Null",
320     "xml": "<outcome value=''>\n",
321     "comments": "",
322     "outputs": 1,
323     "x": 984.8089199066162,
324     "y": 716.5715169906616,
325     "z": "6ade2963.0875b8",
326     "wires": [
327       [
328         "58b68eae.81516"
329       ]
330     ]
331   },
332   {
333     "id": "c30cd80f.81caf8",
334     "type": "other",
335     "name": "other",
336     "xml": "<outcome value='Other'>\n",
337     "comments": "",
338     "outputs": 1,
339     "x": 961.8089694976807,
340     "y": 777.5714721679688,
341     "z": "6ade2963.0875b8",
342     "wires": [
343       [
344         "7a8ccc70.38dd84"
345       ]
346     ]
347   },
348   {
349     "id": "7a8ccc70.38dd84",
350     "type": "block",
351     "name": "block : atomic",
352     "xml": "<block atomic=\"true\">",
353     "atomic": "true",
354     "outputs": 1,
355     "x": 1121.9360599517822,
356     "y": 775.6974487304688,
357     "z": "6ade2963.0875b8",
358     "wires": [
359       [
360         "c5387b68.c01b28",
361         "e1e02207.f540e",
362         "9846e0ee.d12b5"
363       ]
364     ]
365   },
366   {
367     "id": "58b68eae.81516",
368     "type": "set",
369     "name": "set cidx",
370     "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",
371     "comments": "",
372     "x": 1134.6659030914307,
373     "y": 714.2855672836304,
374     "z": "6ade2963.0875b8",
375     "wires": []
376   },
377   {
378     "id": "4a444e95.a33bb",
379     "type": "set",
380     "name": "set consumed allotted resources",
381     "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",
382     "comments": "",
383     "x": 609.5233135223389,
384     "y": 851.28564453125,
385     "z": "6ade2963.0875b8",
386     "wires": []
387   },
388   {
389     "id": "e1e02207.f540e",
390     "type": "switchNode",
391     "name": "switch tmp.found-cidx",
392     "xml": "<switch test='`$tmp.found-cidx`'>\n",
393     "comments": "",
394     "outputs": 1,
395     "x": 1311.0511074066162,
396     "y": 807.7089715003967,
397     "z": "6ade2963.0875b8",
398     "wires": [
399       [
400         "d3531383.fcd03"
401       ]
402     ]
403   },
404   {
405     "id": "d3531383.fcd03",
406     "type": "outcomeTrue",
407     "name": "false",
408     "xml": "<outcome value='false'>\n",
409     "comments": "",
410     "outputs": 1,
411     "x": 1501.051061630249,
412     "y": 807.7089085578918,
413     "z": "6ade2963.0875b8",
414     "wires": [
415       [
416         "40bc6162.88ce4"
417       ]
418     ]
419   },
420   {
421     "id": "40bc6162.88ce4",
422     "type": "block",
423     "name": "block : atomic",
424     "xml": "<block atomic=\"true\">",
425     "atomic": "true",
426     "outputs": 1,
427     "x": 1667.051061630249,
428     "y": 807.7089085578918,
429     "z": "6ade2963.0875b8",
430     "wires": [
431       [
432         "ae09ce54.6bf07"
433       ]
434     ]
435   },
436   {
437     "id": "c340ff54.e12d9",
438     "type": "switchNode",
439     "name": "switch allotted-resource-id",
440     "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 1915.778326034546,
444     "y": 768.0000743865967,
445     "z": "6ade2963.0875b8",
446     "wires": [
447       [
448         "1d1de9d1.83f6a6"
449       ]
450     ]
451   },
452   {
453     "id": "1d1de9d1.83f6a6",
454     "type": "outcomeTrue",
455     "name": "true",
456     "xml": "<outcome value='true'>\n",
457     "comments": "",
458     "outputs": 1,
459     "x": 2097.587900161743,
460     "y": 768.464521408081,
461     "z": "6ade2963.0875b8",
462     "wires": [
463       [
464         "a46d34eb.cac738"
465       ]
466     ]
467   },
468   {
469     "id": "ae09ce54.6bf07",
470     "type": "set",
471     "name": "set tmp.cidx",
472     "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
473     "comments": "",
474     "x": 1828.9244441986084,
475     "y": 807.220609664917,
476     "z": "6ade2963.0875b8",
477     "wires": []
478   },
479   {
480     "id": "896433e5.65cfe",
481     "type": "comment",
482     "name": "Add to consumed service consumed-allotted-resources in mdsal",
483     "info": "Prepare data and add to service-data",
484     "comments": "",
485     "x": 701.6672344207764,
486     "y": 678.0000438690186,
487     "z": "6ade2963.0875b8",
488     "wires": []
489   },
490   {
491     "id": "f08c9e13.c44cf",
492     "type": "comment",
493     "name": "This set resource will be added to MDSAL by provider code",
494     "info": "Below we add to service-data.consumed-allotted-resource at last index",
495     "comments": "",
496     "x": 689.000150680542,
497     "y": 816.7781362533569,
498     "z": "6ade2963.0875b8",
499     "wires": []
500   },
501   {
502     "id": "c88c64b6.dfe1a8",
503     "type": "failure",
504     "name": "failure",
505     "xml": "<outcome value='failure'>\n",
506     "comments": "",
507     "outputs": 1,
508     "x": 789.4527835845947,
509     "y": 1857.4844884872437,
510     "z": "6ade2963.0875b8",
511     "wires": [
512       [
513         "9e7b6d53.3088c"
514       ]
515     ]
516   },
517   {
518     "id": "9e7b6d53.3088c",
519     "type": "returnFailure",
520     "name": "return failure",
521     "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",
522     "comments": "",
523     "x": 955.9766635894775,
524     "y": 1869.1035594940186,
525     "z": "6ade2963.0875b8",
526     "wires": []
527   },
528   {
529     "id": "d0e9a590.6f6418",
530     "type": "failure",
531     "name": "not-found",
532     "xml": "<outcome value='not-found'>\n",
533     "comments": "",
534     "outputs": 1,
535     "x": 796.5480709075928,
536     "y": 1890.2464561462402,
537     "z": "6ade2963.0875b8",
538     "wires": [
539       [
540         "9e7b6d53.3088c"
541       ]
542     ]
543   },
544   {
545     "id": "939b0538.009728",
546     "type": "comment",
547     "name": "Save Resource to AAI",
548     "info": "",
549     "comments": "",
550     "x": 571.5004863739014,
551     "y": 1809.8338594436646,
552     "z": "6ade2963.0875b8",
553     "wires": []
554   },
555   {
556     "id": "452cb6fa.b17108",
557     "type": "comment",
558     "name": "Set allotted resource type if not sent by SO",
559     "info": "",
560     "comments": "",
561     "x": 650.0000076293945,
562     "y": 252.9999942779541,
563     "z": "6ade2963.0875b8",
564     "wires": []
565   },
566   {
567     "id": "79a41f6b.cf86f",
568     "type": "switchNode",
569     "name": "switch allotted-resource-type",
570     "xml": "<switch test='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`'>\n",
571     "comments": "",
572     "outputs": 1,
573     "x": 611.9233169555664,
574     "y": 293.56605052948,
575     "z": "6ade2963.0875b8",
576     "wires": [
577       [
578         "9df4ab55.c16cf8",
579         "31f43c4.20babc4"
580       ]
581     ]
582   },
583   {
584     "id": "9df4ab55.c16cf8",
585     "type": "outcome",
586     "name": "NULL",
587     "xml": "<outcome value=''>",
588     "comments": "",
589     "outputs": 1,
590     "x": 814.923469543457,
591     "y": 278.56605339050293,
592     "z": "6ade2963.0875b8",
593     "wires": [
594       [
595         "e98a3f5.eded9c"
596       ]
597     ]
598   },
599   {
600     "id": "31f43c4.20babc4",
601     "type": "other",
602     "name": "other",
603     "xml": "<outcome value='Other'>\n",
604     "comments": "",
605     "outputs": 1,
606     "x": 807.9232978820801,
607     "y": 318.5660734176636,
608     "z": "6ade2963.0875b8",
609     "wires": [
610       [
611         "1fb5cc66.1487a4"
612       ]
613     ]
614   },
615   {
616     "id": "1fb5cc66.1487a4",
617     "type": "set",
618     "name": "set tmp.ar.allotted-resource-type",
619     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value='`$connection-attachment-topology-operation-input.allotted-resource-information.allotted-resource-type`' />\n",
620     "comments": "",
621     "x": 1039.923282623291,
622     "y": 318.56607818603516,
623     "z": "6ade2963.0875b8",
624     "wires": []
625   },
626   {
627     "id": "fd7e59b0.bdc4b8",
628     "type": "comment",
629     "name": "For storage in AAI connection-attachment-topology",
630     "info": "",
631     "comments": "",
632     "x": 659.9999599456787,
633     "y": 352.99999713897705,
634     "z": "6ade2963.0875b8",
635     "wires": []
636   },
637   {
638     "id": "80a14ec4.93ba1",
639     "type": "comment",
640     "name": "Obtain different URL, template location etc",
641     "info": "For saving resource information to MDSAL & for AAI",
642     "comments": "",
643     "x": 634.9999446868896,
644     "y": 434.88890647888184,
645     "z": "6ade2963.0875b8",
646     "wires": []
647   },
648   {
649     "id": "77a4ea23.6f89a4",
650     "type": "comment",
651     "name": "Used for Put AR by id to MDSAL",
652     "info": "",
653     "comments": "",
654     "x": 601.0000286102295,
655     "y": 523.8889236450195,
656     "z": "6ade2963.0875b8",
657     "wires": []
658   },
659   {
660     "id": "9a5ebcbf.d7c64",
661     "type": "comment",
662     "name": "Obtain the last index in services",
663     "info": "ServiceData is added by Provider code",
664     "comments": "",
665     "x": 602.4444713592529,
666     "y": 709.8888683319092,
667     "z": "6ade2963.0875b8",
668     "wires": []
669   },
670   {
671     "id": "547adbe.09cf724",
672     "type": "set",
673     "name": "set output to api handler",
674     "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",
675     "comments": "",
676     "x": 580.2681331634521,
677     "y": 1773.3591861724854,
678     "z": "6ade2963.0875b8",
679     "wires": []
680   },
681   {
682     "id": "1c8354a6.82036b",
683     "type": "returnSuccess",
684     "name": "return success",
685     "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",
686     "comments": "",
687     "x": 525.6813278198242,
688     "y": 2062.9751262664795,
689     "z": "6ade2963.0875b8",
690     "wires": []
691   },
692   {
693     "id": "e98a3f5.eded9c",
694     "type": "set",
695     "name": "set tmp.ar.allotted-resource-type",
696     "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-type' value=\"SOTNAttachmentInstance\" />\n",
697     "comments": "",
698     "x": 1054.000156402588,
699     "y": 278.99997997283936,
700     "z": "6ade2963.0875b8",
701     "wires": []
702   },
703   {
704     "id": "1a362e33.d91322",
705     "type": "call",
706     "name": "call GENERIC-RESOURCE-API:sotn-get-saved-ar-param",
707     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-get-saved-ar-param' mode='sync' >\n",
708     "comments": "",
709     "outputs": 1,
710     "x": 881.9941539764404,
711     "y": 1622.4937267303467,
712     "z": "6ade2963.0875b8",
713     "wires": [
714       []
715     ]
716   },
717   {
718     "id": "47b622.5f78d9e",
719     "type": "execute",
720     "name": "execute RestApiCallNode - PUT AR by id",
721     "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",
722     "comments": "",
723     "outputs": 1,
724     "x": 631.00026512146,
725     "y": 1707.0001153945923,
726     "z": "6ade2963.0875b8",
727     "wires": [
728       [
729         "b728505b.0e0f4",
730         "c43ce215.10dc2",
731         "e9e15e53.ae354"
732       ]
733     ]
734   },
735   {
736     "id": "b728505b.0e0f4",
737     "type": "not-found",
738     "name": "not-found",
739     "xml": "<outcome value='not-found'>\n",
740     "comments": "",
741     "outputs": 1,
742     "x": 880.6416187286377,
743     "y": 1745.3314456939697,
744     "z": "6ade2963.0875b8",
745     "wires": [
746       [
747         "66f7d186.f5a07"
748       ]
749     ]
750   },
751   {
752     "id": "c43ce215.10dc2",
753     "type": "failure",
754     "name": "failure",
755     "xml": "<outcome value='failure'>\n",
756     "comments": "",
757     "outputs": 1,
758     "x": 871.6416683197021,
759     "y": 1713.8314714431763,
760     "z": "6ade2963.0875b8",
761     "wires": [
762       [
763         "66f7d186.f5a07"
764       ]
765     ]
766   },
767   {
768     "id": "e9e15e53.ae354",
769     "type": "success",
770     "name": "success",
771     "xml": "<outcome value='success'>\n",
772     "comments": "",
773     "outputs": 1,
774     "x": 875.3917064666748,
775     "y": 1684.1885763183236,
776     "z": "6ade2963.0875b8",
777     "wires": [
778       [
779         "7fa6f3ff.c75f4c"
780       ]
781     ]
782   },
783   {
784     "id": "66f7d186.f5a07",
785     "type": "returnFailure",
786     "name": "return failure",
787     "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",
788     "comments": "",
789     "x": 1041.3917064666748,
790     "y": 1714.5814952850342,
791     "z": "6ade2963.0875b8",
792     "wires": []
793   },
794   {
795     "id": "7fa6f3ff.c75f4c",
796     "type": "block",
797     "name": "block",
798     "xml": "<block>\n",
799     "atomic": "false",
800     "comments": "",
801     "outputs": 1,
802     "x": 1017.0476741790771,
803     "y": 1680.3807455077767,
804     "z": "6ade2963.0875b8",
805     "wires": [
806       []
807     ]
808   },
809   {
810     "id": "7e65d530.30d0fc",
811     "type": "execute",
812     "name": "execute RestApiCallNode - Update parent provided service AR",
813     "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",
814     "comments": "",
815     "outputs": 1,
816     "x": 700.9999523162842,
817     "y": 1133.0001621246338,
818     "z": "6ade2963.0875b8",
819     "wires": [
820       [
821         "b6d4488a.291cc8",
822         "59f3d9b4.dd0088",
823         "20a7e6fe.74d03a"
824       ]
825     ]
826   },
827   {
828     "id": "b6d4488a.291cc8",
829     "type": "not-found",
830     "name": "not-found",
831     "xml": "<outcome value='not-found'>\n",
832     "comments": "",
833     "outputs": 1,
834     "x": 1009.308012008667,
835     "y": 1164.9984378814697,
836     "z": "6ade2963.0875b8",
837     "wires": [
838       [
839         "2d8af8d.61d7808"
840       ]
841     ]
842   },
843   {
844     "id": "59f3d9b4.dd0088",
845     "type": "failure",
846     "name": "failure",
847     "xml": "<outcome value='failure'>\n",
848     "comments": "",
849     "outputs": 1,
850     "x": 1000.3080615997314,
851     "y": 1133.4984636306763,
852     "z": "6ade2963.0875b8",
853     "wires": [
854       [
855         "2d8af8d.61d7808"
856       ]
857     ]
858   },
859   {
860     "id": "20a7e6fe.74d03a",
861     "type": "success",
862     "name": "success",
863     "xml": "<outcome value='success'>\n",
864     "comments": "",
865     "outputs": 1,
866     "x": 1004.0580997467041,
867     "y": 1103.8555685058236,
868     "z": "6ade2963.0875b8",
869     "wires": [
870       [
871         "3fdd6b37.b0dbe4"
872       ]
873     ]
874   },
875   {
876     "id": "2d8af8d.61d7808",
877     "type": "returnFailure",
878     "name": "return failure",
879     "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",
880     "comments": "",
881     "x": 1170.058099746704,
882     "y": 1134.2484874725342,
883     "z": "6ade2963.0875b8",
884     "wires": []
885   },
886   {
887     "id": "3fdd6b37.b0dbe4",
888     "type": "block",
889     "name": "block",
890     "xml": "<block>\n",
891     "atomic": "false",
892     "comments": "",
893     "outputs": 1,
894     "x": 1145.7140674591064,
895     "y": 1100.0477376952767,
896     "z": "6ade2963.0875b8",
897     "wires": [
898       []
899     ]
900   },
901   {
902     "id": "fef74984.54b2d8",
903     "type": "comment",
904     "name": "Put the parent allotted resource in mdsal",
905     "info": "",
906     "comments": "",
907     "x": 629.9998989105225,
908     "y": 1095.0000686645508,
909     "z": "6ade2963.0875b8",
910     "wires": []
911   },
912   {
913     "id": "b279212f.2876c",
914     "type": "set",
915     "name": "set connection-attachment-ar-identifiers",
916     "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",
917     "comments": "",
918     "x": 626.357084274292,
919     "y": 1297.5716876983643,
920     "z": "6ade2963.0875b8",
921     "wires": []
922   },
923   {
924     "id": "17bffa68.c6e1f6",
925     "type": "set",
926     "name": "set ar-data",
927     "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.` \" />",
928     "comments": "",
929     "x": 540.2138652801514,
930     "y": 1265.3810443878174,
931     "z": "6ade2963.0875b8",
932     "wires": []
933   },
934   {
935     "id": "624c4802.103f08",
936     "type": "set",
937     "name": "set identifiers in overall structure",
938     "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",
939     "comments": "",
940     "x": 605.1668834686279,
941     "y": 1331.6668729782104,
942     "z": "6ade2963.0875b8",
943     "wires": []
944   },
945   {
946     "id": "15e63162.783f4f",
947     "type": "execute",
948     "name": "execute getTime",
949     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
950     "comments": "",
951     "outputs": 1,
952     "x": 557.4997234344482,
953     "y": 1405.000400543213,
954     "z": "6ade2963.0875b8",
955     "wires": [
956       []
957     ]
958   },
959   {
960     "id": "4d0b157.d3d26ec",
961     "type": "set",
962     "name": "set allotted-resource-oper-status",
963     "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",
964     "comments": "",
965     "x": 608.4867610931396,
966     "y": 1460.9516334533691,
967     "z": "6ade2963.0875b8",
968     "wires": []
969   },
970   {
971     "id": "7b0dce99.088f9",
972     "type": "set",
973     "name": "set model-data",
974     "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.` \" />",
975     "comments": "",
976     "x": 553.0553798675537,
977     "y": 1366.5557584762573,
978     "z": "6ade2963.0875b8",
979     "wires": []
980   },
981   {
982     "id": "3f9a586f.0ed898",
983     "type": "comment",
984     "name": "Prepare data for allotted-resource addition to MDSAL",
985     "info": "This will add to allotted-resource which is present inside service.",
986     "comments": "",
987     "x": 670.3888683319092,
988     "y": 1231.5556049346924,
989     "z": "6ade2963.0875b8",
990     "wires": []
991   },
992   {
993     "id": "5f01282.a94d0d8",
994     "type": "execute",
995     "name": "generate parent-ar url - replace allotted-resource-id",
996     "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",
997     "comments": "",
998     "outputs": 1,
999     "x": 665.5000133514404,
1000     "y": 1059.0000076293945,
1001     "z": "6ade2963.0875b8",
1002     "wires": [
1003       []
1004     ]
1005   },
1006   {
1007     "id": "9851c050.afe45",
1008     "type": "execute",
1009     "name": "generate parent-ar url - replace service-instance-id",
1010     "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",
1011     "comments": "",
1012     "outputs": 1,
1013     "x": 661.4999370574951,
1014     "y": 1016.0001440048218,
1015     "z": "6ade2963.0875b8",
1016     "wires": [
1017       []
1018     ]
1019   },
1020   {
1021     "id": "e506fda2.8d2ea",
1022     "type": "comment",
1023     "name": "Prepare Parent AR URL",
1024     "info": "Preparation to set provided-allotted-resource in parent service instance",
1025     "comments": "",
1026     "x": 579.500394821167,
1027     "y": 945.0000972747803,
1028     "z": "6ade2963.0875b8",
1029     "wires": []
1030   },
1031   {
1032     "id": "77c3364e.f87538",
1033     "type": "set",
1034     "name": "set tmp.ar.parent-service-instance-id",
1035     "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",
1036     "comments": "",
1037     "x": 618.5001888275146,
1038     "y": 978.5000367164612,
1039     "z": "6ade2963.0875b8",
1040     "wires": []
1041   },
1042   {
1043     "id": "92f0d3fa.a1c8f",
1044     "type": "comment",
1045     "name": "Required for filling template values",
1046     "info": "This is done because connection-attachment is generic resource and doesn't have specific parameters",
1047     "comments": "",
1048     "x": 808.0003566741943,
1049     "y": 1585.4997997283936,
1050     "z": "6ade2963.0875b8",
1051     "wires": []
1052   },
1053   {
1054     "id": "a46d34eb.cac738",
1055     "type": "returnFailure",
1056     "name": "return failure",
1057     "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",
1058     "comments": "",
1059     "x": 2175.756971359253,
1060     "y": 816.6458263397217,
1061     "z": "6ade2963.0875b8",
1062     "wires": []
1063   },
1064   {
1065     "id": "9846e0ee.d12b5",
1066     "type": "set",
1067     "name": "set tmp.found-cidx",
1068     "xml": "<set>\n<parameter name='tmp.found-cidx' value=\"`false`\" />\n\n\n",
1069     "comments": "",
1070     "x": 1301.6461429595947,
1071     "y": 728.3125693798065,
1072     "z": "6ade2963.0875b8",
1073     "wires": []
1074   },
1075   {
1076     "id": "8a1a8721.8ed3e8",
1077     "type": "comment",
1078     "name": "Add to parent services provided-allotted-resources in mdsal",
1079     "info": "",
1080     "comments": "",
1081     "x": 690.2015056610107,
1082     "y": 912.9792537689209,
1083     "z": "6ade2963.0875b8",
1084     "wires": []
1085   },
1086   {
1087     "id": "1b0d53ce.9a266c",
1088     "type": "comment",
1089     "name": "Add to allotted-resources in mdsal",
1090     "info": "",
1091     "comments": "",
1092     "x": 610.9686946868896,
1093     "y": 1198.968934059143,
1094     "z": "6ade2963.0875b8",
1095     "wires": []
1096   },
1097   {
1098     "id": "1050cf03.802321",
1099     "type": "block",
1100     "name": "block: atomic",
1101     "xml": "<block atomic=\"true\">\n",
1102     "atomic": "false",
1103     "comments": "",
1104     "outputs": 1,
1105     "x": 1284.0000495910645,
1106     "y": 626.2777576446533,
1107     "z": "6ade2963.0875b8",
1108     "wires": [
1109       [
1110         "e1fb702b.b9339"
1111       ]
1112     ]
1113   },
1114   {
1115     "id": "e1fb702b.b9339",
1116     "type": "switchNode",
1117     "name": "switch cr length",
1118     "xml": "<switch test='`$mdsal-ar.connection-attachment-allotted-resource_length`'>\n",
1119     "comments": "",
1120     "outputs": 1,
1121     "x": 1471.8574295043945,
1122     "y": 626.8968930244446,
1123     "z": "6ade2963.0875b8",
1124     "wires": [
1125       [
1126         "e440f3e0.a28bd"
1127       ]
1128     ]
1129   },
1130   {
1131     "id": "e440f3e0.a28bd",
1132     "type": "other",
1133     "name": "outcome 1",
1134     "xml": "<outcome value='1'>\n",
1135     "comments": "",
1136     "outputs": 1,
1137     "x": 1671.1905517578125,
1138     "y": 626.8969717025757,
1139     "z": "6ade2963.0875b8",
1140     "wires": [
1141       [
1142         "b3c8cfd5.7bea1"
1143       ]
1144     ]
1145   },
1146   {
1147     "id": "908c2ae3.c4f938",
1148     "type": "execute",
1149     "name": "execute RestApiCallNode - get-resource connection-attachment-allotted-resource",
1150     "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",
1151     "comments": "",
1152     "outputs": 1,
1153     "x": 756.0000514984131,
1154     "y": 621.0000333786011,
1155     "z": "6ade2963.0875b8",
1156     "wires": [
1157       [
1158         "43d96423.28d03c",
1159         "4feb08ba.5bc668"
1160       ]
1161     ]
1162   },
1163   {
1164     "id": "4feb08ba.5bc668",
1165     "type": "failure",
1166     "name": "failure",
1167     "xml": "<outcome value='failure'>\n",
1168     "comments": "",
1169     "outputs": 1,
1170     "x": 1124.0000820159912,
1171     "y": 591.0000314712524,
1172     "z": "6ade2963.0875b8",
1173     "wires": [
1174       [
1175         "83e21d77.f2154"
1176       ]
1177     ]
1178   },
1179   {
1180     "id": "83e21d77.f2154",
1181     "type": "block",
1182     "name": "block",
1183     "xml": "<block>\n",
1184     "atomic": "false",
1185     "comments": "",
1186     "outputs": 1,
1187     "x": 1276.0000820159912,
1188     "y": 590.0000314712524,
1189     "z": "6ade2963.0875b8",
1190     "wires": [
1191       []
1192     ]
1193   },
1194   {
1195     "id": "323f6bf8.18f834",
1196     "type": "block",
1197     "name": "block : atomic",
1198     "xml": "<block atomic=\"true\">",
1199     "atomic": "true",
1200     "outputs": 1,
1201     "x": 552.5556087493896,
1202     "y": 1540.6666507720947,
1203     "z": "6ade2963.0875b8",
1204     "wires": [
1205       [
1206         "e3e339e2.fb2158",
1207         "1a362e33.d91322"
1208       ]
1209     ]
1210   },
1211   {
1212     "id": "e3e339e2.fb2158",
1213     "type": "for",
1214     "name": "for each sotn-get-request-input-param",
1215     "xml": "<for index='i' start='0' end='`$connection-attachment-ar.allotted-resource-data.allotted-resource-operation-information.connection-attachment-request-input.param_length`' >\n",
1216     "comments": "",
1217     "outputs": 1,
1218     "x": 822.5556735992432,
1219     "y": 1540.6666984558105,
1220     "z": "6ade2963.0875b8",
1221     "wires": [
1222       [
1223         "bbd24f47.537d9"
1224       ]
1225     ]
1226   },
1227   {
1228     "id": "efeae286.69244",
1229     "type": "comment",
1230     "name": "Take the parameter names by removing prefix",
1231     "info": "",
1232     "comments": "",
1233     "x": 1362.555456161499,
1234     "y": 1496.6667318344116,
1235     "z": "6ade2963.0875b8",
1236     "wires": []
1237   },
1238   {
1239     "id": "7418c4f0.7b725c",
1240     "type": "execute",
1241     "name": "execute split parameterName",
1242     "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",
1243     "comments": "",
1244     "outputs": 1,
1245     "x": 1320.590124130249,
1246     "y": 1531.6458749771118,
1247     "z": "6ade2963.0875b8",
1248     "wires": [
1249       []
1250     ]
1251   },
1252   {
1253     "id": "91cb2a09.3ae8f8",
1254     "type": "set",
1255     "name": "set parameterName",
1256     "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",
1257     "comments": "",
1258     "x": 1291.0346508026123,
1259     "y": 1564.6458749771118,
1260     "z": "6ade2963.0875b8",
1261     "wires": []
1262   },
1263   {
1264     "id": "6e625d6.e7e6ea4",
1265     "type": "comment",
1266     "name": "Remove VNFC prefix",
1267     "info": "",
1268     "comments": "",
1269     "x": 763.5556011199951,
1270     "y": 1508.1110124588013,
1271     "z": "6ade2963.0875b8",
1272     "wires": []
1273   },
1274   {
1275     "id": "bbd24f47.537d9",
1276     "type": "block",
1277     "name": "block : atomic",
1278     "xml": "<block atomic=\"true\">",
1279     "atomic": "true",
1280     "outputs": 1,
1281     "x": 1069.5555095672607,
1282     "y": 1539.1110429763794,
1283     "z": "6ade2963.0875b8",
1284     "wires": [
1285       [
1286         "7418c4f0.7b725c",
1287         "91cb2a09.3ae8f8"
1288       ]
1289     ]
1290   },
1291   {
1292     "id": "ef225a8b.70ebd8",
1293     "type": "set",
1294     "name": "set src-ltpId",
1295     "xml": "<set>\n<parameter name='src-ltpId' value=\"`'nodeId-' + $prop.connection-attachment.access-node-id + '-ltpId-' + $prop.connection-attachment.access-ltp-id`\" />\n",
1296     "comments": "",
1297     "x": 529.0000972747803,
1298     "y": 1930.0003395080566,
1299     "z": "6ade2963.0875b8",
1300     "wires": []
1301   },
1302   {
1303     "id": "16153237.cff69e",
1304     "type": "update",
1305     "name": "save AAI allotted-resource",
1306     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='allotted-resource' \n      key='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.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id' >        \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",
1307     "comments": "",
1308     "outputs": 1,
1309     "x": 579.0039520263672,
1310     "y": 1870.5039854049683,
1311     "z": "6ade2963.0875b8",
1312     "wires": [
1313       [
1314         "c88c64b6.dfe1a8",
1315         "d0e9a590.6f6418"
1316       ]
1317     ]
1318   },
1319   {
1320     "id": "5054f74f.3fad08",
1321     "type": "save",
1322     "name": "save srcLTP relationship in AAI",
1323     "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.service-information.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",
1324     "comments": "",
1325     "outputs": 1,
1326     "x": 579.3170623779297,
1327     "y": 1976.9767112731934,
1328     "z": "6ade2963.0875b8",
1329     "wires": [
1330       []
1331     ]
1332   },
1333   {
1334     "id": "9ff190ab.bed71",
1335     "type": "save",
1336     "name": "save allotted relationship in AAI",
1337     "xml": "<save plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource=\"service-instance: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\" \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"allotted-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/business/customers/customer/' + $connection-attachment-topology-operation-input.service-information.global-customer-id + '/service-subscriptions/service-subscription/' + $connection-attachment-topology-operation-input.service-information.subscription-service-type + '/service-instances/service-instance/' + $connection-attachment-topology-operation-input.service-information.service-instance-id + '/allotted-resources/allotted-resource/' + $tmp.ar.allotted-resource-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"allotted-resource.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$tmp.ar.allotted-resource-id`\" />\n\n\n\n",
1338     "comments": "",
1339     "outputs": 1,
1340     "x": 577.3130798339844,
1341     "y": 2015.9724407196045,
1342     "z": "6ade2963.0875b8",
1343     "wires": [
1344       []
1345     ]
1346   }
1347 ]