SOTN siteInstance DGs
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_site-vnf-topology-operation-create.json
1 [
2   {
3     "id": "3fa6c370.2c61bc",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 168,
8     "y": 73,
9     "z": "6855f1c0.cd5d9",
10     "wires": [
11       [
12         "ac645450.910698"
13       ]
14     ]
15   },
16   {
17     "id": "ac645450.910698",
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": 267.2856979370117,
26     "y": 147.23810789268464,
27     "z": "6855f1c0.cd5d9",
28     "wires": [
29       [
30         "5fcc8bf6.3fd144"
31       ]
32     ]
33   },
34   {
35     "id": "5fcc8bf6.3fd144",
36     "type": "method",
37     "name": "method site-vnf-topology-operation-create",
38     "xml": "<method rpc='site-vnf-topology-operation-create' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 288.4286117553711,
42     "y": 236.99999639671296,
43     "z": "6855f1c0.cd5d9",
44     "wires": [
45       [
46         "47608ee1.25de2"
47       ]
48     ]
49   },
50   {
51     "id": "47608ee1.25de2",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 268.6666564941406,
58     "y": 408.66666814964265,
59     "z": "6855f1c0.cd5d9",
60     "wires": [
61       [
62         "4ce2c94.4697a38",
63         "fa21f7d4.da1878",
64         "9f3ac02c.307b8",
65         "fd3d2238.2c1fe",
66         "e2f2310b.40c4e",
67         "5ac01571.a9444c",
68         "8b6a96f4.ee9ed8",
69         "e97be576.bbc408",
70         "ec41d40.2a2183",
71         "7988a83e.fa96c8",
72         "5922b71f.a74538"
73       ]
74     ]
75   },
76   {
77     "id": "fa21f7d4.da1878",
78     "type": "set",
79     "name": "set vnf-level-oper-status to Created",
80     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-rpc-action' value='`$vnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-level-oper-status.last-action' value='`$vnf-topology-operation-input.request-information.request-action`' />\n",
81     "comments": "",
82     "x": 686.8133697509766,
83     "y": 649.6705284118652,
84     "z": "6855f1c0.cd5d9",
85     "wires": []
86   },
87   {
88     "id": "4ce2c94.4697a38",
89     "type": "set",
90     "name": "copy input data to service data",
91     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-id' value='`$prop.vnf-index`' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.sdnc-request-header.' value='$vnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.request-information.' value='$vnf-topology-operation-input.request-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.' value='$vnf-topology-operation-input.service-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.' value='$vnf-topology-operation-input.vnf-information.' />\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-request-input.' value='$vnf-topology-operation-input.vnf-request-input.' />\n\n",
92     "comments": "",
93     "x": 673.6665191650391,
94     "y": 547.6667442321777,
95     "z": "6855f1c0.cd5d9",
96     "wires": []
97   },
98   {
99     "id": "8b6a96f4.ee9ed8",
100     "type": "execute",
101     "name": "execute generate-vnf-index",
102     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='generateUUID' >\n<parameter name=\"ctx-destination\" value=\"prop.vnf-index\"/>\n",
103     "comments": "",
104     "outputs": 1,
105     "x": 666.0000152587891,
106     "y": 486.33337020874023,
107     "z": "6855f1c0.cd5d9",
108     "wires": [
109       []
110     ]
111   },
112   {
113     "id": "9f3ac02c.307b8",
114     "type": "set",
115     "name": "set vnf-index to service data",
116     "xml": "<set>\n<parameter name='service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-information.vnf-id' value='`$prop.vnf-index`' />\n",
117     "comments": "",
118     "x": 664.0000152587891,
119     "y": 603.3333702087402,
120     "z": "6855f1c0.cd5d9",
121     "wires": []
122   },
123   {
124     "id": "fd3d2238.2c1fe",
125     "type": "switchNode",
126     "name": "switch service-data.vnfs.vnf_length",
127     "xml": "<switch test='`$service-data.vnfs.vnf_length`'>\n",
128     "comments": "",
129     "outputs": 1,
130     "x": 697.9999771118164,
131     "y": 287.33335971832275,
132     "z": "6855f1c0.cd5d9",
133     "wires": [
134       [
135         "af77c768.729e28",
136         "9f82c38a.b1c5e"
137       ]
138     ]
139   },
140   {
141     "id": "af77c768.729e28",
142     "type": "other",
143     "name": "NULL",
144     "xml": "<outcome value=''>\n",
145     "comments": "",
146     "outputs": 1,
147     "x": 932.7143630981445,
148     "y": 282.4761800765991,
149     "z": "6855f1c0.cd5d9",
150     "wires": [
151       [
152         "7f22439b.b7e59c"
153       ]
154     ]
155   },
156   {
157     "id": "7f22439b.b7e59c",
158     "type": "set",
159     "name": "set vnf-index=0",
160     "xml": "<set>\n<parameter name='vnf-index' value='0' />\n",
161     "comments": "",
162     "x": 1093.0000686645508,
163     "y": 282.4762716293335,
164     "z": "6855f1c0.cd5d9",
165     "wires": []
166   },
167   {
168     "id": "9f82c38a.b1c5e",
169     "type": "other",
170     "name": "other",
171     "xml": "<outcome value='Other'>\n",
172     "comments": "",
173     "outputs": 1,
174     "x": 929.1429023742676,
175     "y": 315.76201152801514,
176     "z": "6855f1c0.cd5d9",
177     "wires": [
178       [
179         "f21508e6.2fefd8"
180       ]
181     ]
182   },
183   {
184     "id": "d3b6023e.8241",
185     "type": "set",
186     "name": "set vnf-index = vnf_length",
187     "xml": "<set>\n<parameter name='vnf-index' value='`$service-data.vnfs.vnf_length`' />\n",
188     "comments": "",
189     "x": 1322.000144958496,
190     "y": 294.04773712158203,
191     "z": "6855f1c0.cd5d9",
192     "wires": []
193   },
194   {
195     "id": "386f3e01.1a8bf2",
196     "type": "for",
197     "name": "for each existing VNF",
198     "xml": "<for index='idx' start='0' end='`$service-data.vnfs.vnf_length`' >\n",
199     "comments": "",
200     "outputs": 1,
201     "x": 1310.4287643432617,
202     "y": 329.0477089881897,
203     "z": "6855f1c0.cd5d9",
204     "wires": [
205       [
206         "29eb3ce3.eefee4"
207       ]
208     ]
209   },
210   {
211     "id": "f21508e6.2fefd8",
212     "type": "block",
213     "name": "block",
214     "xml": "<block>\n",
215     "atomic": "false",
216     "comments": "",
217     "outputs": 1,
218     "x": 1063.8571853637695,
219     "y": 317.761981010437,
220     "z": "6855f1c0.cd5d9",
221     "wires": [
222       [
223         "d3b6023e.8241",
224         "386f3e01.1a8bf2"
225       ]
226     ]
227   },
228   {
229     "id": "29eb3ce3.eefee4",
230     "type": "switchNode",
231     "name": "switch vnf-information.vnf-id == service-data.vnfs.vnf[].vnf-id",
232     "xml": "<switch test='`$vnf-topology-operation-input.vnf-information.vnf-id == $service-data.vnfs.vnf[$idx].vnf-id`'>\n",
233     "comments": "",
234     "outputs": 1,
235     "x": 1703.714500427246,
236     "y": 329.6191930770874,
237     "z": "6855f1c0.cd5d9",
238     "wires": [
239       [
240         "f4656079.b7339"
241       ]
242     ]
243   },
244   {
245     "id": "f4656079.b7339",
246     "type": "outcomeTrue",
247     "name": "true",
248     "xml": "<outcome value='true'>\n",
249     "comments": "",
250     "outputs": 1,
251     "x": 1985.000202178955,
252     "y": 328.190598487854,
253     "z": "6855f1c0.cd5d9",
254     "wires": [
255       [
256         "a7f60449.092558"
257       ]
258     ]
259   },
260   {
261     "id": "a7f60449.092558",
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=\"`'VNF id ' + $service-data.vnfs.vnf[$idx].vnf-id\n      + ' already exists, and has order status ' + $service-data.vnfs.vnf[$idx].vnf-data.vnf-level-oper-status.order-status`\" />\n",
265     "comments": "",
266     "x": 2113.5715713500977,
267     "y": 379.19061279296875,
268     "z": "6855f1c0.cd5d9",
269     "wires": []
270   },
271   {
272     "id": "ea3b233.535f1e",
273     "type": "comment",
274     "name": "make sure this vnf-id doesn't exist already",
275     "info": "",
276     "comments": "",
277     "x": 1672.8571166992188,
278     "y": 293.1905851364136,
279     "z": "6855f1c0.cd5d9",
280     "wires": []
281   },
282   {
283     "id": "e2f2310b.40c4e",
284     "type": "set",
285     "name": "set new vnf_length",
286     "xml": "<set>\n<parameter name='service-data.vnfs.vnf_length' value='`$vnf-index + 1`' />\n",
287     "comments": "",
288     "x": 640.0000152587891,
289     "y": 441.33337020874023,
290     "z": "6855f1c0.cd5d9",
291     "wires": []
292   },
293   {
294     "id": "5ac01571.a9444c",
295     "type": "for",
296     "name": "for loop i - VNF input parameters",
297     "xml": "<for index=\"idx\" start=\"0\" end=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`\">\n",
298     "comments": "",
299     "outputs": 1,
300     "x": 679.1047325134277,
301     "y": 370.0678906440735,
302     "z": "6855f1c0.cd5d9",
303     "wires": [
304       [
305         "93e1cbb7.57ce48"
306       ]
307     ]
308   },
309   {
310     "id": "7988a83e.fa96c8",
311     "type": "returnSuccess",
312     "name": "return success",
313     "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",
314     "comments": "",
315     "x": 642.0000419616699,
316     "y": 872.5969972610474,
317     "z": "6855f1c0.cd5d9",
318     "wires": []
319   },
320   {
321     "id": "e97be576.bbc408",
322     "type": "save",
323     "name": "save siteInstance configuration in AAI",
324     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='site-resource' \n      key='site-resource.id = $prop.vnf-index' >\n<parameter name='id' value='`$prop.vnf-index`' />      \n<parameter name='name' value='`$prop.site.name`' />\n<parameter name='description' value='`$prop.site.description`' />\n<parameter name='type' value='prop.site.type' />\n<parameter name='role' value='prop.site.role' />\n<parameter name='operational-status' value='Created' />\n<parameter name='model-customization-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-customization-uuid`' />\n<parameter name='model-invariant-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-invariant-uuid`' />\n<parameter name='model-version-id' value='`$vnf-topology-operation-input.vnf-information.onap-model-information.model-uuid`' />\n<parameter name='selflink' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-index  + '/vnf-data/'` \" />\n",
325     "comments": "",
326     "outputs": 1,
327     "x": 690.6667861938477,
328     "y": 744.819028377533,
329     "z": "6855f1c0.cd5d9",
330     "wires": [
331       []
332     ]
333   },
334   {
335     "id": "ec41d40.2a2183",
336     "type": "save",
337     "name": "save service relationship in AAI",
338     "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n      key='service-instance.service-instance-id = $service-data.service-information.service-instance-id \n         AND customer.global-customer-id = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.global-customer-id \n         AND service-subscription.service-type = $service-data.vnfs.vnf[$vnf-index].vnf-data.service-information.subscription-service-type' \n      force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"site-resource\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/site-resources/site-resource/' + $prop.vnf-index`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"site-resource.id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$prop.vnf-index`\" />",
339     "comments": "",
340     "outputs": 1,
341     "x": 679.6667900085449,
342     "y": 807.5969109535217,
343     "z": "6855f1c0.cd5d9",
344     "wires": [
345       []
346     ]
347   },
348   {
349     "id": "5922b71f.a74538",
350     "type": "set",
351     "name": "set vnf-index and vnf-object-path",
352     "xml": "<set>\n<parameter name='vnfId' value='`$prop.vnf-index`' />\n<parameter name=\"vnf-object-path\" value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'  + $vnf-topology-operation-input.service-information.service-instance-id  + '/service-data/vnfs/vnf/'  + $prop.vnf-index  + '/vnf-data/'` \" />",
353     "comments": "",
354     "x": 681.0000381469727,
355     "y": 693.5967993736267,
356     "z": "6855f1c0.cd5d9",
357     "wires": []
358   },
359   {
360     "id": "93e1cbb7.57ce48",
361     "type": "block",
362     "name": "block",
363     "xml": "<block>\n",
364     "atomic": "false",
365     "comments": "",
366     "outputs": 1,
367     "x": 1033.0001964569092,
368     "y": 637.3333625793457,
369     "z": "6855f1c0.cd5d9",
370     "wires": [
371       [
372         "b62a8412.3c1788",
373         "a29c24e2.c2b698",
374         "185872ae.4cf93d",
375         "a2c31dc7.abd3",
376         "518b2b7f.cf5094",
377         "83798f0c.55ca3",
378         "558728b4.014198",
379         "960e77d0.8444e8",
380         "8079e916.7357a8",
381         "27a90ae1.17e976",
382         "e0bb5acb.0941c8",
383         "4078d1f3.66f1c"
384       ]
385     ]
386   },
387   {
388     "id": "518b2b7f.cf5094",
389     "type": "switchNode",
390     "name": "switch name",
391     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'name'`\">\n",
392     "comments": "",
393     "outputs": 1,
394     "x": 1302.2220001220703,
395     "y": 503.3333148956299,
396     "z": "6855f1c0.cd5d9",
397     "wires": [
398       [
399         "a8e94b67.c81878"
400       ]
401     ]
402   },
403   {
404     "id": "a8e94b67.c81878",
405     "type": "outcomeTrue",
406     "name": "true",
407     "xml": "<outcome value='true'>\n",
408     "comments": "",
409     "outputs": 1,
410     "x": 1480.2220134735107,
411     "y": 506.3333148956299,
412     "z": "6855f1c0.cd5d9",
413     "wires": [
414       [
415         "72cf7d47.6ab0e4"
416       ]
417     ]
418   },
419   {
420     "id": "72cf7d47.6ab0e4",
421     "type": "set",
422     "name": "set name",
423     "xml": "<set>\n<parameter name='prop.site.name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
424     "comments": "",
425     "x": 1627.222023010254,
426     "y": 505.933310508728,
427     "z": "6855f1c0.cd5d9",
428     "wires": []
429   },
430   {
431     "id": "b62a8412.3c1788",
432     "type": "switchNode",
433     "name": "switch type",
434     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'type'`\">\n",
435     "comments": "",
436     "outputs": 1,
437     "x": 1281.1176719665527,
438     "y": 801.3067646026611,
439     "z": "6855f1c0.cd5d9",
440     "wires": [
441       [
442         "61dfbdbd.9f7ea4"
443       ]
444     ]
445   },
446   {
447     "id": "61dfbdbd.9f7ea4",
448     "type": "outcomeTrue",
449     "name": "true",
450     "xml": "<outcome value='true'>\n",
451     "comments": "",
452     "outputs": 1,
453     "x": 1460.1175155639648,
454     "y": 802.3066844940186,
455     "z": "6855f1c0.cd5d9",
456     "wires": [
457       [
458         "10f1f531.8f5fbb"
459       ]
460     ]
461   },
462   {
463     "id": "10f1f531.8f5fbb",
464     "type": "set",
465     "name": "set type",
466     "xml": "<set>\n<parameter name='prop.site.type' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value=\"true\" />",
467     "comments": "",
468     "x": 1610.1175270080566,
469     "y": 803.906699180603,
470     "z": "6855f1c0.cd5d9",
471     "wires": []
472   },
473   {
474     "id": "a29c24e2.c2b698",
475     "type": "switchNode",
476     "name": "switch role",
477     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'role'`\">\n",
478     "comments": "",
479     "outputs": 1,
480     "x": 1282.1173477172852,
481     "y": 845.3068046569824,
482     "z": "6855f1c0.cd5d9",
483     "wires": [
484       [
485         "5bd37c75.4f37f4"
486       ]
487     ]
488   },
489   {
490     "id": "5bd37c75.4f37f4",
491     "type": "outcomeTrue",
492     "name": "true",
493     "xml": "<outcome value='true'>\n",
494     "comments": "",
495     "outputs": 1,
496     "x": 1452.1173553466797,
497     "y": 855.3067674636841,
498     "z": "6855f1c0.cd5d9",
499     "wires": [
500       [
501         "1ce2a35f.a33a2d"
502       ]
503     ]
504   },
505   {
506     "id": "83798f0c.55ca3",
507     "type": "switchNode",
508     "name": "switch location-name",
509     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'location-name'`\">\n",
510     "comments": "",
511     "outputs": 1,
512     "x": 1325.1171875,
513     "y": 545.3066234588623,
514     "z": "6855f1c0.cd5d9",
515     "wires": [
516       [
517         "a3698113.22606"
518       ]
519     ]
520   },
521   {
522     "id": "a3698113.22606",
523     "type": "outcomeTrue",
524     "name": "true",
525     "xml": "<outcome value='true'>\n",
526     "comments": "",
527     "outputs": 1,
528     "x": 1489.117359161377,
529     "y": 545.3066244125366,
530     "z": "6855f1c0.cd5d9",
531     "wires": [
532       [
533         "30c433ef.1afe7c"
534       ]
535     ]
536   },
537   {
538     "id": "30c433ef.1afe7c",
539     "type": "set",
540     "name": "set location-name",
541     "xml": "<set>\n<parameter name='prop.site.location-name' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
542     "comments": "",
543     "x": 1651.1173706054688,
544     "y": 544.906681060791,
545     "z": "6855f1c0.cd5d9",
546     "wires": []
547   },
548   {
549     "id": "558728b4.014198",
550     "type": "switchNode",
551     "name": "switch address",
552     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'address'`\">\n",
553     "comments": "",
554     "outputs": 1,
555     "x": 1308.1171875,
556     "y": 581.3066272735596,
557     "z": "6855f1c0.cd5d9",
558     "wires": [
559       [
560         "461f7e3d.fc2b6"
561       ]
562     ]
563   },
564   {
565     "id": "461f7e3d.fc2b6",
566     "type": "outcomeTrue",
567     "name": "true",
568     "xml": "<outcome value='true'>\n",
569     "comments": "",
570     "outputs": 1,
571     "x": 1478.1170349121094,
572     "y": 589.3066263198853,
573     "z": "6855f1c0.cd5d9",
574     "wires": [
575       [
576         "95768555.59f738"
577       ]
578     ]
579   },
580   {
581     "id": "95768555.59f738",
582     "type": "set",
583     "name": "set location-address",
584     "xml": "<set>\n<parameter name='prop.site.location-address' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
585     "comments": "",
586     "x": 1666.1172103881836,
587     "y": 584.9066019058228,
588     "z": "6855f1c0.cd5d9",
589     "wires": []
590   },
591   {
592     "id": "960e77d0.8444e8",
593     "type": "switchNode",
594     "name": "switch postcode",
595     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'postcode'`\">\n",
596     "comments": "",
597     "outputs": 1,
598     "x": 1309.1171875,
599     "y": 623.3065881729126,
600     "z": "6855f1c0.cd5d9",
601     "wires": [
602       [
603         "2481d837.14c698"
604       ]
605     ]
606   },
607   {
608     "id": "2481d837.14c698",
609     "type": "outcomeTrue",
610     "name": "true",
611     "xml": "<outcome value='true'>\n",
612     "comments": "",
613     "outputs": 1,
614     "x": 1474.117359161377,
615     "y": 622.3065881729126,
616     "z": "6855f1c0.cd5d9",
617     "wires": [
618       [
619         "f6fca1a2.7d9b4"
620       ]
621     ]
622   },
623   {
624     "id": "f6fca1a2.7d9b4",
625     "type": "set",
626     "name": "set location-postcode",
627     "xml": "<set>\n<parameter name='prop.site.location-postcode' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
628     "comments": "",
629     "x": 1661.1172103881836,
630     "y": 623.9066047668457,
631     "z": "6855f1c0.cd5d9",
632     "wires": []
633   },
634   {
635     "id": "185872ae.4cf93d",
636     "type": "switchNode",
637     "name": "switch controlPoints",
638     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'controlPoints'`\">\n",
639     "comments": "",
640     "outputs": 1,
641     "x": 1303.0004806518555,
642     "y": 890.3335466384888,
643     "z": "6855f1c0.cd5d9",
644     "wires": [
645       [
646         "e1f3da86.e05088"
647       ]
648     ]
649   },
650   {
651     "id": "e1f3da86.e05088",
652     "type": "outcomeTrue",
653     "name": "true",
654     "xml": "<outcome value='true'>\n",
655     "comments": "",
656     "outputs": 1,
657     "x": 1463.0004959106445,
658     "y": 901.33362865448,
659     "z": "6855f1c0.cd5d9",
660     "wires": [
661       [
662         "88f8ac7d.16131"
663       ]
664     ]
665   },
666   {
667     "id": "cde157fb.eaac18",
668     "type": "set",
669     "name": "set role",
670     "xml": "<set>\n<parameter name='prop.site.role' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n<parameter name='prop.site.sdwan' value=\"true\" />\n",
671     "comments": "",
672     "x": 1806.0005207061768,
673     "y": 822.3335390090942,
674     "z": "6855f1c0.cd5d9",
675     "wires": []
676   },
677   {
678     "id": "ecdf21f6.a7851",
679     "type": "set",
680     "name": "set controlPoint",
681     "xml": "<set>\n<parameter name='prop.site.controlPoint' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n\n",
682     "comments": "",
683     "x": 1848.0005226135254,
684     "y": 921.3336267471313,
685     "z": "6855f1c0.cd5d9",
686     "wires": []
687   },
688   {
689     "id": "56e0196c.fe1028",
690     "type": "execute",
691     "name": "execute split roles",
692     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.role`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.roles\"/>\n",
693     "comments": "",
694     "outputs": 1,
695     "x": 1862.6668701171875,
696     "y": 878.3334608078003,
697     "z": "6855f1c0.cd5d9",
698     "wires": [
699       []
700     ]
701   },
702   {
703     "id": "1ce2a35f.a33a2d",
704     "type": "block",
705     "name": "block : atomic",
706     "xml": "<block atomic=\"true\">",
707     "atomic": "true",
708     "outputs": 1,
709     "x": 1609.667007446289,
710     "y": 858.3334608078003,
711     "z": "6855f1c0.cd5d9",
712     "wires": [
713       [
714         "cde157fb.eaac18",
715         "56e0196c.fe1028"
716       ]
717     ]
718   },
719   {
720     "id": "88f8ac7d.16131",
721     "type": "block",
722     "name": "block : atomic",
723     "xml": "<block atomic=\"true\">",
724     "atomic": "true",
725     "outputs": 1,
726     "x": 1621.6668434143066,
727     "y": 905.333384513855,
728     "z": "6855f1c0.cd5d9",
729     "wires": [
730       [
731         "ecdf21f6.a7851",
732         "913d9445.5019a8"
733       ]
734     ]
735   },
736   {
737     "id": "913d9445.5019a8",
738     "type": "execute",
739     "name": "execute split control points",
740     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.controlPoint`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.controlpoints\"/>\n",
741     "comments": "",
742     "outputs": 1,
743     "x": 1890.666862487793,
744     "y": 982.3334674835205,
745     "z": "6855f1c0.cd5d9",
746     "wires": [
747       []
748     ]
749   },
750   {
751     "id": "8079e916.7357a8",
752     "type": "switchNode",
753     "name": "switch latitude",
754     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'latitude'`\">\n",
755     "comments": "",
756     "outputs": 1,
757     "x": 1299.33349609375,
758     "y": 667.3333654403687,
759     "z": "6855f1c0.cd5d9",
760     "wires": [
761       [
762         "d72cdc6.5e2602"
763       ]
764     ]
765   },
766   {
767     "id": "d72cdc6.5e2602",
768     "type": "outcomeTrue",
769     "name": "true",
770     "xml": "<outcome value='true'>\n",
771     "comments": "",
772     "outputs": 1,
773     "x": 1475.3333435058594,
774     "y": 662.333324432373,
775     "z": "6855f1c0.cd5d9",
776     "wires": [
777       [
778         "f171e729.d22298"
779       ]
780     ]
781   },
782   {
783     "id": "f171e729.d22298",
784     "type": "set",
785     "name": "set location-latitude",
786     "xml": "<set>\n<parameter name='prop.site.location-latitude' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
787     "comments": "",
788     "x": 1649.333351135254,
789     "y": 660.9333410263062,
790     "z": "6855f1c0.cd5d9",
791     "wires": []
792   },
793   {
794     "id": "27a90ae1.17e976",
795     "type": "switchNode",
796     "name": "switch longitude",
797     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'longitude'`\">\n",
798     "comments": "",
799     "outputs": 1,
800     "x": 1302.33349609375,
801     "y": 707.3334083557129,
802     "z": "6855f1c0.cd5d9",
803     "wires": [
804       [
805         "32eefde6.ce89c2"
806       ]
807     ]
808   },
809   {
810     "id": "32eefde6.ce89c2",
811     "type": "outcomeTrue",
812     "name": "true",
813     "xml": "<outcome value='true'>\n",
814     "comments": "",
815     "outputs": 1,
816     "x": 1474.3335037231445,
817     "y": 702.3334503173828,
818     "z": "6855f1c0.cd5d9",
819     "wires": [
820       [
821         "fdc73161.cebd7"
822       ]
823     ]
824   },
825   {
826     "id": "fdc73161.cebd7",
827     "type": "set",
828     "name": "set location-latitude",
829     "xml": "<set>\n<parameter name='prop.site.location-latitude' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
830     "comments": "",
831     "x": 1656.3333587646484,
832     "y": 705.9333019256592,
833     "z": "6855f1c0.cd5d9",
834     "wires": []
835   },
836   {
837     "id": "86d304b7.c70368",
838     "type": "outcomeTrue",
839     "name": "true",
840     "xml": "<outcome value='true'>\n",
841     "comments": "",
842     "outputs": 1,
843     "x": 1465.3335037231445,
844     "y": 752.3334531784058,
845     "z": "6855f1c0.cd5d9",
846     "wires": [
847       [
848         "63e2146a.caa4bc"
849       ]
850     ]
851   },
852   {
853     "id": "d126c16e.ed1c9",
854     "type": "set",
855     "name": "set emails",
856     "xml": "<set>\n<parameter name='prop.site.emails' value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].value`' />\n",
857     "comments": "",
858     "x": 1823.3331985473633,
859     "y": 720.9333052635193,
860     "z": "6855f1c0.cd5d9",
861     "wires": []
862   },
863   {
864     "id": "a2c31dc7.abd3",
865     "type": "switchNode",
866     "name": "switch emails",
867     "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name == 'emails'`\">\n",
868     "comments": "",
869     "outputs": 1,
870     "x": 1292.3335723876953,
871     "y": 752.3334531784058,
872     "z": "6855f1c0.cd5d9",
873     "wires": [
874       [
875         "86d304b7.c70368"
876       ]
877     ]
878   },
879   {
880     "id": "36b11d40.243472",
881     "type": "execute",
882     "name": "execute split emails",
883     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$prop.site.emails`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"prop.site.email\"/>\n",
884     "comments": "",
885     "outputs": 1,
886     "x": 1848.9995422363281,
887     "y": 767.3332080841064,
888     "z": "6855f1c0.cd5d9",
889     "wires": [
890       []
891     ]
892   },
893   {
894     "id": "63e2146a.caa4bc",
895     "type": "block",
896     "name": "block : atomic",
897     "xml": "<block atomic=\"true\">",
898     "atomic": "true",
899     "outputs": 1,
900     "x": 1627.333511352539,
901     "y": 753.3333706855774,
902     "z": "6855f1c0.cd5d9",
903     "wires": [
904       [
905         "d126c16e.ed1c9",
906         "36b11d40.243472"
907       ]
908     ]
909   },
910   {
911     "id": "ac6dde9e.14fd8",
912     "type": "comment",
913     "name": "Take the parameter names by removing prefix",
914     "info": "",
915     "comments": "",
916     "x": 1407.0001831054688,
917     "y": 382.6666793823242,
918     "z": "6855f1c0.cd5d9",
919     "wires": []
920   },
921   {
922     "id": "e0bb5acb.0941c8",
923     "type": "execute",
924     "name": "execute split parameterName",
925     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`'/>                                                                                                 \n<parameter name=\"regex\" value=\"_\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"param-prefix\"/>\n",
926     "comments": "",
927     "outputs": 1,
928     "x": 1360.0348815917969,
929     "y": 413.64584732055664,
930     "z": "6855f1c0.cd5d9",
931     "wires": [
932       []
933     ]
934   },
935   {
936     "id": "4078d1f3.66f1c",
937     "type": "set",
938     "name": "set parameterName",
939     "xml": "<set>\n<parameter name=\"`vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$idx].name`\" value='`$param-prefix[$param-prefix_length -1]`'/>\n",
940     "comments": "",
941     "x": 1327.4792137145996,
942     "y": 447.6458492279053,
943     "z": "6855f1c0.cd5d9",
944     "wires": []
945   }
946 ]