Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_security-zone-topology-operation-assign.json
1 [
2     {
3         "id": "3aa7dd53.c23282",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 113.75662612915039,
8         "y": 48.518513679504395,
9         "z": "d9f8bc54.6ca48",
10         "wires": [
11             [
12                 "d95c10eb.dc1d4"
13             ]
14         ]
15     },
16     {
17         "id": "d95c10eb.dc1d4",
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": 209.9947052001953,
26         "y": 109.47090435028076,
27         "z": "d9f8bc54.6ca48",
28         "wires": [
29             [
30                 "9ec57dff.79a3e"
31             ]
32         ]
33     },
34     {
35         "id": "9ec57dff.79a3e",
36         "type": "method",
37         "name": "security-zone-topology-operation-assign",
38         "xml": "<method rpc='security-zone-topology-operation-assign' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 255.91148376464844,
42         "y": 144.70895957946777,
43         "z": "d9f8bc54.6ca48",
44         "wires": [
45             [
46                 "b469237.21f31e"
47             ]
48         ]
49     },
50     {
51         "id": "b469237.21f31e",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 164.23281860351562,
59         "y": 288.0423016548157,
60         "z": "d9f8bc54.6ca48",
61         "wires": [
62             [
63                 "da8bc6b3.f36008",
64                 "dd46184f.c5ad68",
65                 "19bd4a95.82d635",
66                 "7ff7d11f.c2ff8",
67                 "5082e4fd.fb398c",
68                 "44a8ff0c.4ea4",
69                 "3f7399d.1a38166",
70                 "df2b47bc.dad938",
71                 "29f6546e.b6ab2c",
72                 "cd2238ce.a361f8",
73                 "f37960af.a307",
74                 "676f8458.1ceddc",
75                 "41c3e1d7.688b9",
76                 "bf0c5aa1.d23018",
77                 "bb728435.7fabc8",
78                 "db115202.e2393",
79                 "773fe048.c730b",
80                 "995418ca.5fe778",
81                 "422fade5.4f8814",
82                 "83f71044.bcea7",
83                 "4f2b0053.cbdf5",
84                 "14e2f5f2.92d2fa",
85                 "121f5121.c5ff2f",
86                 "a4891e73.c917",
87                 "a62f34b1.dd5738",
88                 "87ceb4de.ec7128",
89                 "c025c3c9.338f6"
90             ]
91         ]
92     },
93     {
94         "id": "dd46184f.c5ad68",
95         "type": "returnSuccess",
96         "name": "return success",
97         "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",
98         "comments": "",
99         "x": 380.75672149658203,
100         "y": 2301.73295211792,
101         "z": "d9f8bc54.6ca48",
102         "wires": []
103     },
104     {
105         "id": "da8bc6b3.f36008",
106         "type": "set",
107         "name": "set output to api handler",
108         "xml": "<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='security-zone-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $security-zone-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
109         "comments": "",
110         "x": 409.51063537597656,
111         "y": 2265.855498313904,
112         "z": "d9f8bc54.6ca48",
113         "wires": []
114     },
115     {
116         "id": "a62f34b1.dd5738",
117         "type": "set",
118         "name": "set allotted-resource-oper-status",
119         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='PendingCreate' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$security-zone-topology-operation-input.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$security-zone-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
120         "comments": "",
121         "x": 469.0821876525879,
122         "y": 1642.569899559021,
123         "z": "d9f8bc54.6ca48",
124         "wires": []
125     },
126     {
127         "id": "7ff7d11f.c2ff8",
128         "type": "set",
129         "name": "set tmp.ar.self-link",
130         "xml": "<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:security-zone-allotted-resources/security-zone-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/security-zone-topology/'` \" />\n\n",
131         "comments": "",
132         "x": 426.49468994140625,
133         "y": 261.85183906555176,
134         "z": "d9f8bc54.6ca48",
135         "wires": []
136     },
137     {
138         "id": "19bd4a95.82d635",
139         "type": "set",
140         "name": "set tmp.ar.allotted-resource-id,etc",
141         "xml": "<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$security-zone-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$security-zone-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.sz-vnf-id' value='`$security-zone-topology-operation-input.allotted-resource-data.security-zone-topology.security-zone-assignments.security-zone-vnf-id`' />\n\n\n",
142         "comments": "",
143         "x": 473.7539520263672,
144         "y": 228.11110496520996,
145         "z": "d9f8bc54.6ca48",
146         "wires": []
147     },
148     {
149         "id": "5082e4fd.fb398c",
150         "type": "execute",
151         "name": "execute Properties",
152         "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",
153         "comments": "",
154         "outputs": 1,
155         "x": 432.7500457763672,
156         "y": 297.75003814697266,
157         "z": "d9f8bc54.6ca48",
158         "wires": [
159             []
160         ]
161     },
162     {
163         "id": "3f7399d.1a38166",
164         "type": "execute",
165         "name": "execute RestApiCallNode - Get AR by id",
166         "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",
167         "comments": "",
168         "outputs": 1,
169         "x": 513.2753753662109,
170         "y": 520.9779777526855,
171         "z": "d9f8bc54.6ca48",
172         "wires": [
173             [
174                 "5afe88e8.32e0a8",
175                 "4a737d1.caa4e84"
176             ]
177         ]
178     },
179     {
180         "id": "44a8ff0c.4ea4",
181         "type": "execute",
182         "name": "generate allotted-resource url",
183         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.sz-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",
184         "comments": "",
185         "outputs": 1,
186         "x": 460.8214797973633,
187         "y": 357.5357427597046,
188         "z": "d9f8bc54.6ca48",
189         "wires": [
190             []
191         ]
192     },
193     {
194         "id": "5afe88e8.32e0a8",
195         "type": "success",
196         "name": "success",
197         "xml": "<outcome value='success'>\n",
198         "comments": "",
199         "outputs": 1,
200         "x": 758.5715179443359,
201         "y": 523.7857661247253,
202         "z": "d9f8bc54.6ca48",
203         "wires": [
204             [
205                 "b6853767.ffe678"
206             ]
207         ]
208     },
209     {
210         "id": "14e2f5f2.92d2fa",
211         "type": "execute",
212         "name": "execute RestApiCallNode - PUT AR by id",
213         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.sz.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",
214         "comments": "",
215         "outputs": 1,
216         "x": 487.61922454833984,
217         "y": 1847.2859721183777,
218         "z": "d9f8bc54.6ca48",
219         "wires": [
220             [
221                 "975af54b.31fe88",
222                 "615e377.16035c8",
223                 "3777cc93.f26b94"
224             ]
225         ]
226     },
227     {
228         "id": "975af54b.31fe88",
229         "type": "not-found",
230         "name": "not-found",
231         "xml": "<outcome value='not-found'>\n",
232         "comments": "",
233         "outputs": 1,
234         "x": 756.2606010437012,
235         "y": 1898.6173838600516,
236         "z": "d9f8bc54.6ca48",
237         "wires": [
238             [
239                 "a456aa59.071ed8"
240             ]
241         ]
242     },
243     {
244         "id": "615e377.16035c8",
245         "type": "failure",
246         "name": "failure",
247         "xml": "<outcome value='failure'>\n",
248         "comments": "",
249         "outputs": 1,
250         "x": 747.2606506347656,
251         "y": 1867.1174096092582,
252         "z": "d9f8bc54.6ca48",
253         "wires": [
254             [
255                 "a456aa59.071ed8"
256             ]
257         ]
258     },
259     {
260         "id": "3777cc93.f26b94",
261         "type": "success",
262         "name": "success",
263         "xml": "<outcome value='success'>\n",
264         "comments": "",
265         "outputs": 1,
266         "x": 751.0106887817383,
267         "y": 1837.4745144844055,
268         "z": "d9f8bc54.6ca48",
269         "wires": [
270             [
271                 "4593956d.d1f3ec"
272             ]
273         ]
274     },
275     {
276         "id": "a456aa59.071ed8",
277         "type": "returnFailure",
278         "name": "return failure",
279         "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 security-zone-allotted-resource\" />\n",
280         "comments": "",
281         "x": 917.0106887817383,
282         "y": 1867.867433451116,
283         "z": "d9f8bc54.6ca48",
284         "wires": []
285     },
286     {
287         "id": "b6853767.ffe678",
288         "type": "block",
289         "name": "block: atomic",
290         "xml": "<block atomic=\"true\">\n",
291         "atomic": "false",
292         "comments": "",
293         "outputs": 1,
294         "x": 939.5714721679688,
295         "y": 524.2857155799866,
296         "z": "d9f8bc54.6ca48",
297         "wires": [
298             [
299                 "f8ae24aa.f00bb8",
300                 "a0673b92.f4f7c8"
301             ]
302         ]
303     },
304     {
305         "id": "f8ae24aa.f00bb8",
306         "type": "switchNode",
307         "name": "switch sz length",
308         "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
309         "comments": "",
310         "outputs": 1,
311         "x": 1185.4287185668945,
312         "y": 558.571478843689,
313         "z": "d9f8bc54.6ca48",
314         "wires": [
315             [
316                 "b691cae6.eefd08"
317             ]
318         ]
319     },
320     {
321         "id": "b691cae6.eefd08",
322         "type": "other",
323         "name": "outcome 1",
324         "xml": "<outcome value='1'>\n",
325         "comments": "",
326         "outputs": 1,
327         "x": 1376.4287223815918,
328         "y": 558.5714764595032,
329         "z": "d9f8bc54.6ca48",
330         "wires": [
331             [
332                 "c71c7fc0.fb074"
333             ]
334         ]
335     },
336     {
337         "id": "9e2ca7ca.004578",
338         "type": "set",
339         "name": "set sz-ar from get",
340         "xml": "<set>\n<parameter name='sz-ar.' value='$mdsal-ar.security-zone-allotted-resource[0].' />\n",
341         "comments": "",
342         "x": 1770.286018371582,
343         "y": 493.14292335510254,
344         "z": "d9f8bc54.6ca48",
345         "wires": []
346     },
347     {
348         "id": "c71c7fc0.fb074",
349         "type": "block",
350         "name": "block: atomic",
351         "xml": "<block atomic='true'>\n",
352         "atomic": "false",
353         "comments": "",
354         "outputs": 1,
355         "x": 1563.2858505249023,
356         "y": 527.1428961753845,
357         "z": "d9f8bc54.6ca48",
358         "wires": [
359             [
360                 "9e2ca7ca.004578",
361                 "577032f2.5c728c",
362                 "f6f446f7.eb6e38"
363             ]
364         ]
365     },
366     {
367         "id": "577032f2.5c728c",
368         "type": "set",
369         "name": "set oper-status",
370         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$sz-ar.allotted-resource-status.rpc-action`' />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
371         "comments": "",
372         "x": 1770.286018371582,
373         "y": 572.5714111328125,
374         "z": "d9f8bc54.6ca48",
375         "wires": []
376     },
377     {
378         "id": "b73d4268.63b59",
379         "type": "comment",
380         "name": "Save consumed-allotted-resources to mdsal",
381         "info": "",
382         "comments": "",
383         "x": 491.0000915527344,
384         "y": 1490.238136291504,
385         "z": "d9f8bc54.6ca48",
386         "wires": []
387     },
388     {
389         "id": "9c87c693.6b7aa8",
390         "type": "comment",
391         "name": "GET security-zone-allotted-resource from mdsal",
392         "info": "",
393         "comments": "",
394         "x": 526.5714416503906,
395         "y": 488.28570652008057,
396         "z": "d9f8bc54.6ca48",
397         "wires": []
398     },
399     {
400         "id": "f6f446f7.eb6e38",
401         "type": "switchNode",
402         "name": "switch order-status",
403         "xml": "<switch test='`$sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
404         "comments": "",
405         "outputs": 1,
406         "x": 1778.2858810424805,
407         "y": 526.1428985595703,
408         "z": "d9f8bc54.6ca48",
409         "wires": [
410             [
411                 "1ba18b9c.c66c64",
412                 "e561c273.b01c"
413             ]
414         ]
415     },
416     {
417         "id": "1ba18b9c.c66c64",
418         "type": "outcome",
419         "name": "outcome Created",
420         "xml": "<outcome value='Created'>\n",
421         "comments": "",
422         "outputs": 1,
423         "x": 1989.8858375549316,
424         "y": 487.1428985595703,
425         "z": "d9f8bc54.6ca48",
426         "wires": [
427             [
428                 "ace0f78a.8c4198"
429             ]
430         ]
431     },
432     {
433         "id": "e561c273.b01c",
434         "type": "outcome",
435         "name": "outcome PendingDelete",
436         "xml": "<outcome value='PendingDelete'>\n",
437         "comments": "",
438         "outputs": 1,
439         "x": 2015.600212097168,
440         "y": 522.5714893341064,
441         "z": "d9f8bc54.6ca48",
442         "wires": [
443             [
444                 "ace0f78a.8c4198"
445             ]
446         ]
447     },
448     {
449         "id": "ace0f78a.8c4198",
450         "type": "returnFailure",
451         "name": "return failure",
452         "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\" \n    value=\"`'Existing security-zone-allotted-resource with order status of ' + $sz-ar.allotted-resource-data.allotted-resource-oper-status.order-status + '.'`\" />\n",
453         "comments": "",
454         "x": 2277.885810852051,
455         "y": 495.14288544654846,
456         "z": "d9f8bc54.6ca48",
457         "wires": []
458     },
459     {
460         "id": "df2b47bc.dad938",
461         "type": "set",
462         "name": "set sz-ar-identifiers",
463         "xml": "<set>\n<parameter name='sz-ar-identifiers.consuming-service-instance-id' value=\"`$security-zone-topology-operation-input.service-information.service-instance-id` \" />\n<parameter name='sz-ar-identifiers.parent-service-instance-id' value=\"`$security-zone-topology-operation-input.allotted-resource-information.parent-service-instance-id` \" />\n<parameter name='sz-ar-identifiers.allotted-resource-type' value=\"`$security-zone-topology-operation-input.allotted-resource-information.allotted-resource-type` \" />\n<parameter name='sz-ar-identifiers.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n\n",
464         "comments": "",
465         "x": 437.1429138183594,
466         "y": 677.1428809165955,
467         "z": "d9f8bc54.6ca48",
468         "wires": []
469     },
470     {
471         "id": "c09b6648.7720b8",
472         "type": "comment",
473         "name": "Set allotted-resource-identifiers",
474         "info": "",
475         "comments": "",
476         "x": 478.0952682495117,
477         "y": 622.8571615219116,
478         "z": "d9f8bc54.6ca48",
479         "wires": []
480     },
481     {
482         "id": "29f6546e.b6ab2c",
483         "type": "set",
484         "name": "set identifiers in overal structure",
485         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.allotted-resource-identifiers.' \nvalue=\"`$sz-ar-identifiers.`\" />\n\n\n",
486         "comments": "",
487         "x": 474.1428756713867,
488         "y": 951.428858757019,
489         "z": "d9f8bc54.6ca48",
490         "wires": []
491     },
492     {
493         "id": "cd2238ce.a361f8",
494         "type": "set",
495         "name": "set ecomp model information from input",
496         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.' \nvalue=\"`$security-zone-topology-operation-input.allotted-resource-information.onap-model-information.`\" />\n\n\n",
497         "comments": "",
498         "x": 505.7143325805664,
499         "y": 711.4285831451416,
500         "z": "d9f8bc54.6ca48",
501         "wires": []
502     },
503     {
504         "id": "f37960af.a307",
505         "type": "switchNode",
506         "name": "switch model-invariant-uuid is null",
507         "xml": "<switch test='$security-zone-topology-operation-input.allotted-resource-information.onap-model-information.model-invariant-uuid'>\n",
508         "comments": "",
509         "outputs": 1,
510         "x": 488.5714416503906,
511         "y": 745.714301109314,
512         "z": "d9f8bc54.6ca48",
513         "wires": [
514             [
515                 "cdaca375.86687"
516             ]
517         ]
518     },
519     {
520         "id": "cdaca375.86687",
521         "type": "outcome",
522         "name": "outcome null",
523         "xml": "<outcome value=''>\n",
524         "comments": "",
525         "outputs": 1,
526         "x": 715.7143211364746,
527         "y": 747.1428184509277,
528         "z": "d9f8bc54.6ca48",
529         "wires": [
530             [
531                 "ca95e15f.7a282"
532             ]
533         ]
534     },
535     {
536         "id": "ca95e15f.7a282",
537         "type": "set",
538         "name": "set model-invariant-uuid",
539         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-invariant-uuid' \nvalue=\"`$ar-model.invariant-uuid`\" />\n\n\n",
540         "comments": "",
541         "x": 917.142894744873,
542         "y": 746.5713710784912,
543         "z": "d9f8bc54.6ca48",
544         "wires": []
545     },
546     {
547         "id": "676f8458.1ceddc",
548         "type": "switchNode",
549         "name": "switch model-uuid is null",
550         "xml": "<switch test='$security-zone-topology-operation-input.allotted-resource-information.onap-model-information.model-uuid'>\n",
551         "comments": "",
552         "outputs": 1,
553         "x": 460.00003814697266,
554         "y": 780.0000019073486,
555         "z": "d9f8bc54.6ca48",
556         "wires": [
557             [
558                 "c051003f.4d255"
559             ]
560         ]
561     },
562     {
563         "id": "c051003f.4d255",
564         "type": "outcome",
565         "name": "outcome null",
566         "xml": "<outcome value=''>\n",
567         "comments": "",
568         "outputs": 1,
569         "x": 661.4286041259766,
570         "y": 780.5714235305786,
571         "z": "d9f8bc54.6ca48",
572         "wires": [
573             [
574                 "17a9ad79.daf043"
575             ]
576         ]
577     },
578     {
579         "id": "17a9ad79.daf043",
580         "type": "set",
581         "name": "set model-uuid",
582         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-uuid' \nvalue=\"`$ar-model.uuid`\" />\n\n\n",
583         "comments": "",
584         "x": 854.2857627868652,
585         "y": 780.5713453292847,
586         "z": "d9f8bc54.6ca48",
587         "wires": []
588     },
589     {
590         "id": "41c3e1d7.688b9",
591         "type": "switchNode",
592         "name": "switch model-version is null",
593         "xml": "<switch test='$security-zone-topology-operation-input.allotted-resource-information.onap-model-information.model-version'>\n",
594         "comments": "",
595         "outputs": 1,
596         "x": 468.5714416503906,
597         "y": 812.8571290969849,
598         "z": "d9f8bc54.6ca48",
599         "wires": [
600             [
601                 "834cdb5d.a611a8"
602             ]
603         ]
604     },
605     {
606         "id": "834cdb5d.a611a8",
607         "type": "outcome",
608         "name": "outcome null",
609         "xml": "<outcome value=''>\n",
610         "comments": "",
611         "outputs": 1,
612         "x": 718.5714225769043,
613         "y": 812.8571138381958,
614         "z": "d9f8bc54.6ca48",
615         "wires": [
616             [
617                 "6df03ba1.da4d84"
618             ]
619         ]
620     },
621     {
622         "id": "6df03ba1.da4d84",
623         "type": "set",
624         "name": "set model-version",
625         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.onap-model-information.model-version' \nvalue=\"`$ar-model.version`\" />\n\n\n",
626         "comments": "",
627         "x": 911.428581237793,
628         "y": 812.8570356369019,
629         "z": "d9f8bc54.6ca48",
630         "wires": []
631     },
632     {
633         "id": "bf0c5aa1.d23018",
634         "type": "switchNode",
635         "name": "switch ar-model.ecomp-generated-naming",
636         "xml": "<switch test='`$ar-model.ecomp-generated-naming`'>\n",
637         "comments": "",
638         "outputs": 1,
639         "x": 507.1428413391113,
640         "y": 914.2858047485352,
641         "z": "d9f8bc54.6ca48",
642         "wires": [
643             [
644                 "8263bea9.21776",
645                 "31dce175.8172ce"
646             ]
647         ]
648     },
649     {
650         "id": "8263bea9.21776",
651         "type": "other",
652         "name": "outcome Y",
653         "xml": "<outcome value='Y'>\n",
654         "comments": "",
655         "outputs": 1,
656         "x": 857.1429061889648,
657         "y": 913.7143549919128,
658         "z": "d9f8bc54.6ca48",
659         "wires": [
660             [
661                 "6d3862a4.def2cc"
662             ]
663         ]
664     },
665     {
666         "id": "6d3862a4.def2cc",
667         "type": "block",
668         "name": "block : atomic",
669         "xml": "<block atomic=\"true\">\n",
670         "atomic": "true",
671         "comments": "",
672         "outputs": 1,
673         "x": 1025.8929481506348,
674         "y": 914.214343547821,
675         "z": "d9f8bc54.6ca48",
676         "wires": [
677             [
678                 "340cfc26.1a1d64"
679             ]
680         ]
681     },
682     {
683         "id": "31dce175.8172ce",
684         "type": "other",
685         "name": "other",
686         "xml": "<outcome value='Other'>\n",
687         "comments": "",
688         "outputs": 1,
689         "x": 848.3651962280273,
690         "y": 946.7143549919128,
691         "z": "d9f8bc54.6ca48",
692         "wires": [
693             [
694                 "79411f72.37cc4"
695             ]
696         ]
697     },
698     {
699         "id": "79411f72.37cc4",
700         "type": "returnFailure",
701         "name": "return failure",
702         "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 in allotted-resource-model data.  Ecomp-generated-naming should be true\" />\n\n",
703         "comments": "",
704         "x": 1026.3651962280273,
705         "y": 945.7143549919128,
706         "z": "d9f8bc54.6ca48",
707         "wires": []
708     },
709     {
710         "id": "340cfc26.1a1d64",
711         "type": "switchNode",
712         "name": "switch ar-model.ecomp-generated-naming",
713         "xml": "<switch test='`$ar-model.naming-policy`'>\n",
714         "comments": "",
715         "outputs": 1,
716         "x": 1327.1428527832031,
717         "y": 914.2858171463013,
718         "z": "d9f8bc54.6ca48",
719         "wires": [
720             [
721                 "c60923e3.e3226",
722                 "5fb6c973.79b708"
723             ]
724         ]
725     },
726     {
727         "id": "c60923e3.e3226",
728         "type": "other",
729         "name": "outcome oam_security_zone_name",
730         "xml": "<outcome value='oam_security_zone_name'>\n",
731         "comments": "",
732         "outputs": 1,
733         "x": 1668.000617980957,
734         "y": 914.8638672828674,
735         "z": "d9f8bc54.6ca48",
736         "wires": [
737             [
738                 "64919905.bc8708"
739             ]
740         ]
741     },
742     {
743         "id": "5fb6c973.79b708",
744         "type": "other",
745         "name": "other",
746         "xml": "<outcome value='Other'>\n",
747         "comments": "",
748         "outputs": 1,
749         "x": 1579.4285507202148,
750         "y": 945.714367389679,
751         "z": "d9f8bc54.6ca48",
752         "wires": [
753             [
754                 "64919905.bc8708"
755             ]
756         ]
757     },
758     {
759         "id": "47d880dc.e5c98",
760         "type": "set",
761         "name": "set ar_name",
762         "xml": "<set>\n<parameter name='tmp.ar-name' value='$TenantOAMNetworkRole_$LandingNetworkRole_SZ' />\n",
763         "comments": "",
764         "x": 2108.8573417663574,
765         "y": 914.2857584953308,
766         "z": "d9f8bc54.6ca48",
767         "wires": []
768     },
769     {
770         "id": "e616a9fb.2ba0a8",
771         "type": "execute",
772         "name": "execute SliStringUtils - replace TenantOAMNetworkRole",
773         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n    <parameter name=\"target\" value=\"$TenantOAMNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$security-zone-topology-operation-input.security-zone-request-input.untrusted-network-role`\"/>\n\n",
774         "comments": "",
775         "outputs": 1,
776         "x": 2246.0004119873047,
777         "y": 947.1429333686829,
778         "z": "d9f8bc54.6ca48",
779         "wires": [
780             []
781         ]
782     },
783     {
784         "id": "c3a0064f.e2bfc8",
785         "type": "execute",
786         "name": "execute SliStringUtils - replace LandingNetworkRole",
787         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.ar-name`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.ar-name\"/>\n    <parameter name=\"target\" value=\"$LandingNetworkRole\"/>\n    <parameter name=\"replacement\" value=\"`$security-zone-topology-operation-input.security-zone-request-input.trusted-network-role`\"/>\n\n",
788         "comments": "",
789         "outputs": 1,
790         "x": 2229.0004272460938,
791         "y": 979.2858099937439,
792         "z": "d9f8bc54.6ca48",
793         "wires": [
794             []
795         ]
796     },
797     {
798         "id": "64919905.bc8708",
799         "type": "block",
800         "name": "block: atomic",
801         "xml": "<block atomic='true'>\n",
802         "atomic": "false",
803         "comments": "",
804         "outputs": 1,
805         "x": 1910.2858276367188,
806         "y": 942.8572659492493,
807         "z": "d9f8bc54.6ca48",
808         "wires": [
809             [
810                 "47d880dc.e5c98",
811                 "e616a9fb.2ba0a8",
812                 "c3a0064f.e2bfc8",
813                 "3ea93d43.94b532"
814             ]
815         ]
816     },
817     {
818         "id": "3ea93d43.94b532",
819         "type": "set",
820         "name": "set identifiers.allotted-resource-name",
821         "xml": "<set>\n<parameter name='sz-ar-identifiers.allotted-resource-name' value='`$tmp.ar-name`' />\n",
822         "comments": "",
823         "x": 2178.8573150634766,
824         "y": 1008.571485042572,
825         "z": "d9f8bc54.6ca48",
826         "wires": []
827     },
828     {
829         "id": "db115202.e2393",
830         "type": "set",
831         "name": "set assignments in overal structure",
832         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-data.security-zone-topology.security-zone-assignments.' \nvalue=\"`$sz-ar-assignments.`\" />\n\n\n",
833         "comments": "",
834         "x": 482.61910247802734,
835         "y": 1117.1431503295898,
836         "z": "d9f8bc54.6ca48",
837         "wires": []
838     },
839     {
840         "id": "bb728435.7fabc8",
841         "type": "set",
842         "name": "set sz-ar-assignments",
843         "xml": "<set>\n<parameter name='sz-ar-assignments.vlan-tag' value=\"`$security-zone-topology-operation-input.security-zone-request-input.vlan-tag` \" />\n<parameter name='sz-ar-assignments.trusted-network-role' value=\"`$security-zone-topology-operation-input.security-zone-request-input.trusted-network-role` \" />\n<parameter name='sz-ar-assignments.untrusted-network-role' value=\"`$security-zone-topology-operation-input.security-zone-request-input.untrusted-network-role` \" />\n<parameter name='sz-ar-assignments.security-zone-service-instance-id' value=\"`$tmp.ar.parent-service-instance-id` \" />\n\n",
844         "comments": "",
845         "x": 444.28570556640625,
846         "y": 988.5715227127075,
847         "z": "d9f8bc54.6ca48",
848         "wires": []
849     },
850     {
851         "id": "cae22b42.18c468",
852         "type": "for",
853         "name": "for cidx..service-data.consumed-allotted-resources.consumed-allotted-resource[]",
854         "xml": "<for index='cidx' start='0' end='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' >\n",
855         "comments": "",
856         "outputs": 1,
857         "x": 1360.572135925293,
858         "y": 1564.8096537590027,
859         "z": "d9f8bc54.6ca48",
860         "wires": [
861             [
862                 "7553ad4e.ad7d94"
863             ]
864         ]
865     },
866     {
867         "id": "773fe048.c730b",
868         "type": "switchNode",
869         "name": "switch service-data.consumed-allotted-resources_length",
870         "xml": "<switch test='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`'>\n",
871         "comments": "",
872         "outputs": 1,
873         "x": 534.5714721679688,
874         "y": 1524.5236463546753,
875         "z": "d9f8bc54.6ca48",
876         "wires": [
877             [
878                 "38c33f23.a99c8",
879                 "61a487f.6f30978"
880             ]
881         ]
882     },
883     {
884         "id": "38c33f23.a99c8",
885         "type": "other",
886         "name": "outcome Null",
887         "xml": "<outcome value=''>\n",
888         "comments": "",
889         "outputs": 1,
890         "x": 840.7143859863281,
891         "y": 1529.3809938430786,
892         "z": "d9f8bc54.6ca48",
893         "wires": [
894             [
895                 "3413dfa5.ea0b8"
896             ]
897         ]
898     },
899     {
900         "id": "61a487f.6f30978",
901         "type": "other",
902         "name": "other",
903         "xml": "<outcome value='Other'>\n",
904         "comments": "",
905         "outputs": 1,
906         "x": 820.7143859863281,
907         "y": 1564.3809938430786,
908         "z": "d9f8bc54.6ca48",
909         "wires": [
910             [
911                 "a9ef602f.19524"
912             ]
913         ]
914     },
915     {
916         "id": "7553ad4e.ad7d94",
917         "type": "switchNode",
918         "name": "switch allotted-resource-id",
919         "xml": "<switch test=\"`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].allotted-resource-id == $tmp.ar.allotted-resource-id`\">\n\n",
920         "comments": "",
921         "outputs": 1,
922         "x": 1812.6673278808594,
923         "y": 1562.869366645813,
924         "z": "d9f8bc54.6ca48",
925         "wires": [
926             [
927                 "2bfef68b.19fdca"
928             ]
929         ]
930     },
931     {
932         "id": "2bfef68b.19fdca",
933         "type": "outcomeTrue",
934         "name": "true",
935         "xml": "<outcome value='true'>\n",
936         "comments": "",
937         "outputs": 1,
938         "x": 2004.4769649505615,
939         "y": 1562.3335065841675,
940         "z": "d9f8bc54.6ca48",
941         "wires": [
942             [
943                 "2e1ed2f6.15d1fe"
944             ]
945         ]
946     },
947     {
948         "id": "a9ef602f.19524",
949         "type": "block",
950         "name": "block : atomic",
951         "xml": "<block atomic=\"true\">",
952         "atomic": "true",
953         "outputs": 1,
954         "x": 974.8415298461914,
955         "y": 1564.5069856643677,
956         "z": "d9f8bc54.6ca48",
957         "wires": [
958             [
959                 "cae22b42.18c468",
960                 "91a87775.758588"
961             ]
962         ]
963     },
964     {
965         "id": "2e1ed2f6.15d1fe",
966         "type": "block",
967         "name": "block : atomic",
968         "xml": "<block atomic=\"true\">",
969         "atomic": "true",
970         "outputs": 1,
971         "x": 2160.238296508789,
972         "y": 1562.1907081604004,
973         "z": "d9f8bc54.6ca48",
974         "wires": [
975             [
976                 "e679b033.de33f",
977                 "4d5ec78f.74ab88"
978             ]
979         ]
980     },
981     {
982         "id": "3413dfa5.ea0b8",
983         "type": "set",
984         "name": "set cidx",
985         "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",
986         "comments": "",
987         "x": 999.5713996887207,
988         "y": 1529.0952253341675,
989         "z": "d9f8bc54.6ca48",
990         "wires": []
991     },
992     {
993         "id": "e679b033.de33f",
994         "type": "set",
995         "name": "set tmp.cidx and ctx.consumed-ar",
996         "xml": "<set>\n<parameter name='tmp.cidx' value='`$cidx`' />\n<parameter name='ctx.consumed-ar.' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource[$cidx].`' />\n<parameter name='tmp.found-cidx' value='true' />",
997         "comments": "",
998         "x": 2406.0957565307617,
999         "y": 1556.7621870040894,
1000         "z": "d9f8bc54.6ca48",
1001         "wires": []
1002     },
1003     {
1004         "id": "995418ca.5fe778",
1005         "type": "set",
1006         "name": "set consumed allotted resources",
1007         "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=\"`$security-zone-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",
1008         "comments": "",
1009         "x": 462.42862701416016,
1010         "y": 1565.0951986312866,
1011         "z": "d9f8bc54.6ca48",
1012         "wires": []
1013     },
1014     {
1015         "id": "59610fb0.0a244",
1016         "type": "execute",
1017         "name": "execute RestApiCallNode - PUT SZ VNF Provided Allotted Resource",
1018         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.vnf-p-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-prov-ar\" />\n\n",
1019         "comments": "",
1020         "outputs": 1,
1021         "x": 575.9049606323242,
1022         "y": 2049.0955414772034,
1023         "z": "d9f8bc54.6ca48",
1024         "wires": [
1025             [
1026                 "ae04f7b.eed3208",
1027                 "5027b5f7.e37cbc"
1028             ]
1029         ]
1030     },
1031     {
1032         "id": "a0673b92.f4f7c8",
1033         "type": "set",
1034         "name": "save backup copy of mdsal-ar for rollback",
1035         "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
1036         "comments": "",
1037         "x": 1265.143051147461,
1038         "y": 524.2858076095581,
1039         "z": "d9f8bc54.6ca48",
1040         "wires": []
1041     },
1042     {
1043         "id": "422fade5.4f8814",
1044         "type": "execute",
1045         "name": "generate vnf provided ar url",
1046         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.vnf-provided-allottedresource`\" />\n    <parameter name=\"outputPath\" value=\"tmp.vnf-p-ar-url\" />\n    <parameter name=\"target\" value=\"{service-instance-id}\" />\n    <parameter name=\"replacement\" value=\"`$tmp.ar.parent-service-instance-id`\" />\n",
1047         "comments": "",
1048         "outputs": 1,
1049         "x": 452.8571472167969,
1050         "y": 388.57141876220703,
1051         "z": "d9f8bc54.6ca48",
1052         "wires": [
1053             []
1054         ]
1055     },
1056     {
1057         "id": "83f71044.bcea7",
1058         "type": "execute",
1059         "name": "execute SliStringUtils",
1060         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.vnf-p-ar-url`\" />\n    <parameter name=\"outputPath\" value=\"tmp.vnf-p-ar-url\" />\n    <parameter name=\"target\" value=\"{vnf-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.sz-vnf-id`\"/>\n",
1061         "comments": "",
1062         "outputs": 1,
1063         "x": 443.1428985595703,
1064         "y": 419.99999809265137,
1065         "z": "d9f8bc54.6ca48",
1066         "wires": [
1067             []
1068         ]
1069     },
1070     {
1071         "id": "ec9be6aa.494588",
1072         "type": "comment",
1073         "name": "Create urls for restapi",
1074         "info": "",
1075         "comments": "",
1076         "x": 431.7142868041992,
1077         "y": 327.1428699493408,
1078         "z": "d9f8bc54.6ca48",
1079         "wires": []
1080     },
1081     {
1082         "id": "ae04f7b.eed3208",
1083         "type": "success",
1084         "name": "success",
1085         "xml": "<outcome value='success'>\n",
1086         "comments": "",
1087         "outputs": 1,
1088         "x": 934.4763298034668,
1089         "y": 2049.666941165924,
1090         "z": "d9f8bc54.6ca48",
1091         "wires": [
1092             [
1093                 "f9fdf5f9.8e4668"
1094             ]
1095         ]
1096     },
1097     {
1098         "id": "f9fdf5f9.8e4668",
1099         "type": "block",
1100         "name": "block: atomic",
1101         "xml": "<block atomic=\"true\">\n",
1102         "atomic": "false",
1103         "comments": "",
1104         "outputs": 1,
1105         "x": 1144.047706604004,
1106         "y": 2048.738305568695,
1107         "z": "d9f8bc54.6ca48",
1108         "wires": [
1109             [
1110                 "3eccb358.12c2dc",
1111                 "968252db.ccc84"
1112             ]
1113         ]
1114     },
1115     {
1116         "id": "3eccb358.12c2dc",
1117         "type": "switchNode",
1118         "name": "switch sz length",
1119         "xml": "<switch test='`$mdsal-ar.security-zone-allotted-resource_length`'>\n",
1120         "comments": "",
1121         "outputs": 1,
1122         "x": 1389.9049530029297,
1123         "y": 2083.0240688323975,
1124         "z": "d9f8bc54.6ca48",
1125         "wires": [
1126             [
1127                 "452ba5e6.956fcc"
1128             ]
1129         ]
1130     },
1131     {
1132         "id": "452ba5e6.956fcc",
1133         "type": "other",
1134         "name": "outcome 1",
1135         "xml": "<outcome value='1'>\n",
1136         "comments": "",
1137         "outputs": 1,
1138         "x": 1580.904956817627,
1139         "y": 2083.0240664482117,
1140         "z": "d9f8bc54.6ca48",
1141         "wires": [
1142             []
1143         ]
1144     },
1145     {
1146         "id": "968252db.ccc84",
1147         "type": "set",
1148         "name": "save backup copy of mdsal-ar for rollback",
1149         "xml": "<set>\n<parameter name='bk-sz-ar' value='$mdsal-ar.' />\n",
1150         "comments": "",
1151         "x": 1469.619285583496,
1152         "y": 2048.7383975982666,
1153         "z": "d9f8bc54.6ca48",
1154         "wires": []
1155     },
1156     {
1157         "id": "5027b5f7.e37cbc",
1158         "type": "failure",
1159         "name": "failure",
1160         "xml": "<outcome value='failure'>\n",
1161         "comments": "",
1162         "outputs": 1,
1163         "x": 933.047721862793,
1164         "y": 2139.6668133735657,
1165         "z": "d9f8bc54.6ca48",
1166         "wires": [
1167             [
1168                 "ce01090.f9b9af8"
1169             ]
1170         ]
1171     },
1172     {
1173         "id": "f1ea7873.944388",
1174         "type": "comment",
1175         "name": "Need to rollback?",
1176         "info": "",
1177         "comments": "",
1178         "x": 935.9049758911133,
1179         "y": 2088.238205432892,
1180         "z": "d9f8bc54.6ca48",
1181         "wires": []
1182     },
1183     {
1184         "id": "e06b36.87ea84c8",
1185         "type": "returnFailure",
1186         "name": "return failure",
1187         "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 security-zone-allotted-resource\" />\n",
1188         "comments": "",
1189         "x": 1310.1905517578125,
1190         "y": 2181.0956473350525,
1191         "z": "d9f8bc54.6ca48",
1192         "wires": []
1193     },
1194     {
1195         "id": "eeb0dfbd.307f7",
1196         "type": "execute",
1197         "name": "execute RestApiCallNode - DELETE AR by id",
1198         "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='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
1199         "comments": "",
1200         "outputs": 1,
1201         "x": 1411.6191864013672,
1202         "y": 2142.5242981910706,
1203         "z": "d9f8bc54.6ca48",
1204         "wires": [
1205             []
1206         ]
1207     },
1208     {
1209         "id": "ce01090.f9b9af8",
1210         "type": "block",
1211         "name": "block: atomic",
1212         "xml": "<block atomic=\"true\">\n",
1213         "atomic": "false",
1214         "comments": "",
1215         "outputs": 1,
1216         "x": 1107.3334274291992,
1217         "y": 2142.523895740509,
1218         "z": "d9f8bc54.6ca48",
1219         "wires": [
1220             [
1221                 "eeb0dfbd.307f7",
1222                 "e06b36.87ea84c8"
1223             ]
1224         ]
1225     },
1226     {
1227         "id": "bde153f5.6a65",
1228         "type": "comment",
1229         "name": "Generate Security zone Panorama names",
1230         "info": "",
1231         "comments": "",
1232         "x": 494.8095932006836,
1233         "y": 1016.1907386779785,
1234         "z": "d9f8bc54.6ca48",
1235         "wires": []
1236     },
1237     {
1238         "id": "4f2b0053.cbdf5",
1239         "type": "set",
1240         "name": "set sz-ar-assignments",
1241         "xml": "<set>\n<parameter name='sz-ar-assignments.security-zone-name-untrusted' value=\"`$tmp.untrust-sz` \" />\n<parameter name='sz-ar-assignments.security-zone-name-trusted' value=\"`$tmp.trust-sz` \" />\n\n\n",
1242         "comments": "",
1243         "x": 444.0953140258789,
1244         "y": 1080.7148094177246,
1245         "z": "d9f8bc54.6ca48",
1246         "wires": []
1247     },
1248     {
1249         "id": "c28eabf9.0410c8",
1250         "type": "execute",
1251         "name": "execute SliStringUtils",
1252         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$tmp.vnf-p-ar-url`\" />\n    <parameter name=\"outputPath\" value=\"tmp.vnf-p-ar-url\" />\n    <parameter name=\"target\" value=\"{vnf-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.ar.sz-vnf-id`\"/>\n",
1253         "comments": "",
1254         "outputs": 1,
1255         "x": 444.28570556640625,
1256         "y": 451.4285583496094,
1257         "z": "d9f8bc54.6ca48",
1258         "wires": [
1259             []
1260         ]
1261     },
1262     {
1263         "id": "121f5121.c5ff2f",
1264         "type": "call",
1265         "name": "call generate-panorama-name",
1266         "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-panorama-name' mode='sync' >\n",
1267         "comments": "",
1268         "outputs": 1,
1269         "x": 465.00001525878906,
1270         "y": 1046.66672706604,
1271         "z": "d9f8bc54.6ca48",
1272         "wires": [
1273             []
1274         ]
1275     },
1276     {
1277         "id": "4593956d.d1f3ec",
1278         "type": "block",
1279         "name": "block",
1280         "xml": "<block>\n",
1281         "atomic": "false",
1282         "comments": "",
1283         "outputs": 1,
1284         "x": 892.6666564941406,
1285         "y": 1833.6666836738586,
1286         "z": "d9f8bc54.6ca48",
1287         "wires": [
1288             [
1289                 "297e2310.b99eec"
1290             ]
1291         ]
1292     },
1293     {
1294         "id": "a64508aa.c4e898",
1295         "type": "comment",
1296         "name": "Add SZ AR to mdsal",
1297         "info": "",
1298         "comments": "",
1299         "x": 416.9048080444336,
1300         "y": 1808.3808569908142,
1301         "z": "d9f8bc54.6ca48",
1302         "wires": []
1303     },
1304     {
1305         "id": "a4891e73.c917",
1306         "type": "execute",
1307         "name": "execute getTime",
1308         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n    <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
1309         "comments": "",
1310         "outputs": 1,
1311         "x": 424.66665840148926,
1312         "y": 1602.3333406448364,
1313         "z": "d9f8bc54.6ca48",
1314         "wires": [
1315             []
1316         ]
1317     },
1318     {
1319         "id": "4a737d1.caa4e84",
1320         "type": "other",
1321         "name": "other",
1322         "xml": "<outcome value='Other'>\n",
1323         "comments": "",
1324         "outputs": 1,
1325         "x": 758.3333129882812,
1326         "y": 559.9999389648438,
1327         "z": "d9f8bc54.6ca48",
1328         "wires": [
1329             [
1330                 "f20f59c0.b02038"
1331             ]
1332         ]
1333     },
1334     {
1335         "id": "f20f59c0.b02038",
1336         "type": "block",
1337         "name": "block: atomic",
1338         "xml": "<block atomic=\"true\">\n",
1339         "atomic": "false",
1340         "comments": "",
1341         "outputs": 1,
1342         "x": 938.3332633972168,
1343         "y": 560.6664896011353,
1344         "z": "d9f8bc54.6ca48",
1345         "wires": [
1346             []
1347         ]
1348     },
1349     {
1350         "id": "87ceb4de.ec7128",
1351         "type": "set",
1352         "name": "set id",
1353         "xml": "<set>\n<parameter name='sz-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='sz-ar.allotted-resource-status.action' value=\"`$security-zone-topology-operation-input.request-information.request-action` \" />\n<parameter name='sz-ar.allotted-resource-status.rpc-name' value=\"security-zone-topology-operation\" />\n<parameter name='sz-ar.allotted-resource-status.rpc-action' value=\"`$security-zone-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$security-zone-topology-operation-input.request-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$security-zone-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$security-zone-topology-operation-input.service-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$security-zone-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='sz-ar.allotted-resource-data.allotted-resource-operation-information.security-zone-request-input.' value=\"`$security-zone-topology-operation-input.security-zone-request-input.` \" />",
1354         "comments": "",
1355         "x": 405.000057220459,
1356         "y": 585.9523229598999,
1357         "z": "d9f8bc54.6ca48",
1358         "wires": []
1359     },
1360     {
1361         "id": "c025c3c9.338f6",
1362         "type": "update",
1363         "name": "update AAI allotted-resource",
1364         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"description\" value=\"`$security-zone-topology-operation-input.allotted-resource-information.allotted-resource-type`\" />\n\t<parameter name=\"selflink\" value=\"`$tmp.ar.self-link`\" />\n\t<parameter name=\"model-invariant-id\" value=\"`$ar-model.invariant-uuid`\" />\n\t<parameter name=\"model-version-id\" value=\"`$ar-model.uuid`\" />\n\t<parameter name=\"operational-status\" value=\"null\" />\n",
1365         "comments": "",
1366         "outputs": 1,
1367         "x": 446.66668701171875,
1368         "y": 1730.238124847412,
1369         "z": "d9f8bc54.6ca48",
1370         "wires": [
1371             [
1372                 "78f280c9.aa658",
1373                 "3206f266.94f28e"
1374             ]
1375         ]
1376     },
1377     {
1378         "id": "78f280c9.aa658",
1379         "type": "failure",
1380         "name": "failure",
1381         "xml": "<outcome value='failure'>\n",
1382         "comments": "",
1383         "outputs": 1,
1384         "x": 702.428596496582,
1385         "y": 1713.190628528595,
1386         "z": "d9f8bc54.6ca48",
1387         "wires": [
1388             [
1389                 "e21aa9c5.4ebb08"
1390             ]
1391         ]
1392     },
1393     {
1394         "id": "e21aa9c5.4ebb08",
1395         "type": "returnFailure",
1396         "name": "return failure",
1397         "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",
1398         "comments": "",
1399         "x": 868.9524765014648,
1400         "y": 1724.8096995353699,
1401         "z": "d9f8bc54.6ca48",
1402         "wires": []
1403     },
1404     {
1405         "id": "3206f266.94f28e",
1406         "type": "failure",
1407         "name": "not-found",
1408         "xml": "<outcome value='not-found'>\n",
1409         "comments": "",
1410         "outputs": 1,
1411         "x": 709.5238838195801,
1412         "y": 1745.9525961875916,
1413         "z": "d9f8bc54.6ca48",
1414         "wires": [
1415             [
1416                 "e21aa9c5.4ebb08"
1417             ]
1418         ]
1419     },
1420     {
1421         "id": "91a87775.758588",
1422         "type": "switchNode",
1423         "name": "switch tmp.found-cidx",
1424         "xml": "<switch test='`$tmp.found-cidx`'>\n",
1425         "comments": "",
1426         "outputs": 1,
1427         "x": 1177.999984741211,
1428         "y": 1596.0000410079956,
1429         "z": "d9f8bc54.6ca48",
1430         "wires": [
1431             [
1432                 "f9327230.fb919"
1433             ]
1434         ]
1435     },
1436     {
1437         "id": "f9327230.fb919",
1438         "type": "outcomeTrue",
1439         "name": "false",
1440         "xml": "<outcome value='false'>\n",
1441         "comments": "",
1442         "outputs": 1,
1443         "x": 1367.9999389648438,
1444         "y": 1595.9999780654907,
1445         "z": "d9f8bc54.6ca48",
1446         "wires": [
1447             [
1448                 "fde4a6ad.8b8798"
1449             ]
1450         ]
1451     },
1452     {
1453         "id": "fde4a6ad.8b8798",
1454         "type": "block",
1455         "name": "block : atomic",
1456         "xml": "<block atomic=\"true\">",
1457         "atomic": "true",
1458         "outputs": 1,
1459         "x": 1533.9999389648438,
1460         "y": 1595.9999780654907,
1461         "z": "d9f8bc54.6ca48",
1462         "wires": [
1463             [
1464                 "f243be1.0d9664"
1465             ]
1466         ]
1467     },
1468     {
1469         "id": "f243be1.0d9664",
1470         "type": "set",
1471         "name": "set tmp.cidx ",
1472         "xml": "<set>\n<parameter name='tmp.cidx' value='`$service-data.consumed-allotted-resources.consumed-allotted-resource_length`' />\n",
1473         "comments": "",
1474         "x": 1779.8572673797607,
1475         "y": 1596.571452140808,
1476         "z": "d9f8bc54.6ca48",
1477         "wires": []
1478     },
1479     {
1480         "id": "4d5ec78f.74ab88",
1481         "type": "break",
1482         "name": "break",
1483         "xml": "<break>\n",
1484         "comments": "",
1485         "x": 2324.000057220459,
1486         "y": 1588.0000791549683,
1487         "z": "d9f8bc54.6ca48",
1488         "wires": []
1489     },
1490     {
1491         "id": "297e2310.b99eec",
1492         "type": "execute",
1493         "name": "execute RestApiCallNode - Update parent provided service AR",
1494         "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='DELETE' />\n    <parameter name=\"responsePrefix\" value=\"parent\" />\n\n",
1495         "comments": "",
1496         "outputs": 1,
1497         "x": 1243.708797454834,
1498         "y": 1833.3755688667297,
1499         "z": "d9f8bc54.6ca48",
1500         "wires": [
1501             [
1502                 "90eb7941.4e6d28",
1503                 "529b5fcc.fe782",
1504                 "5dd2303d.8c34d"
1505             ]
1506         ]
1507     },
1508     {
1509         "id": "c07fd6c.a7d3c28",
1510         "type": "comment",
1511         "name": "Rollback parent",
1512         "info": "",
1513         "comments": "",
1514         "x": 1087.708724975586,
1515         "y": 1803.0421993732452,
1516         "z": "d9f8bc54.6ca48",
1517         "wires": []
1518     },
1519     {
1520         "id": "90eb7941.4e6d28",
1521         "type": "not-found",
1522         "name": "not-found",
1523         "xml": "<outcome value='not-found'>\n",
1524         "comments": "",
1525         "outputs": 1,
1526         "x": 1615.016845703125,
1527         "y": 1894.040535211563,
1528         "z": "d9f8bc54.6ca48",
1529         "wires": [
1530             [
1531                 "f889d017.68c21"
1532             ]
1533         ]
1534     },
1535     {
1536         "id": "529b5fcc.fe782",
1537         "type": "failure",
1538         "name": "failure",
1539         "xml": "<outcome value='failure'>\n",
1540         "comments": "",
1541         "outputs": 1,
1542         "x": 1606.0168952941895,
1543         "y": 1862.5405609607697,
1544         "z": "d9f8bc54.6ca48",
1545         "wires": [
1546             [
1547                 "f889d017.68c21"
1548             ]
1549         ]
1550     },
1551     {
1552         "id": "5dd2303d.8c34d",
1553         "type": "success",
1554         "name": "success",
1555         "xml": "<outcome value='success'>\n",
1556         "comments": "",
1557         "outputs": 1,
1558         "x": 1609.766933441162,
1559         "y": 1832.897665835917,
1560         "z": "d9f8bc54.6ca48",
1561         "wires": [
1562             [
1563                 "f889d017.68c21"
1564             ]
1565         ]
1566     },
1567     {
1568         "id": "f889d017.68c21",
1569         "type": "block",
1570         "name": "block",
1571         "xml": "<block>\n",
1572         "atomic": "false",
1573         "comments": "",
1574         "outputs": 1,
1575         "x": 1751.4229011535645,
1576         "y": 1829.0898350253701,
1577         "z": "d9f8bc54.6ca48",
1578         "wires": [
1579             []
1580         ]
1581     },
1582     {
1583         "id": "d41e8d9f.684df",
1584         "type": "comment",
1585         "name": "Generate naming",
1586         "info": "",
1587         "comments": "",
1588         "x": 438.00001525878906,
1589         "y": 876.0000257492065,
1590         "z": "d9f8bc54.6ca48",
1591         "wires": []
1592     }
1593 ]