[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vnf-instance-topology-assign.json
1 [
2     {
3         "id": "2cedcd37.fe8ab2",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 174.57137298583984,
8         "y": 71.4285888671875,
9         "z": "cee53bf1.d63798",
10         "wires": [
11             [
12                 "d0b308e8.cdee18"
13             ]
14         ]
15     },
16     {
17         "id": "d0b308e8.cdee18",
18         "type": "service-logic",
19         "name": "VNF-API ${project.version}",
20         "module": "VNF-API",
21         "version": "${project.version}",
22         "comments": "",
23         "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>",
24         "outputs": 1,
25         "x": 339.73802947998047,
26         "y": 71.59526062011719,
27         "z": "cee53bf1.d63798",
28         "wires": [
29             [
30                 "7508dd9c.f543d4"
31             ]
32         ]
33     },
34     {
35         "id": "7508dd9c.f543d4",
36         "type": "method",
37         "name": "method vnf-instance-topology-assign",
38         "xml": "<method rpc='vnf-instance-topology-assign' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 289.16661834716797,
42         "y": 118.59525680541992,
43         "z": "cee53bf1.d63798",
44         "wires": [
45             [
46                 "df9a3175.c6c8d"
47             ]
48         ]
49     },
50     {
51         "id": "df9a3175.c6c8d",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 235.07138061523438,
59         "y": 174.4285888671875,
60         "z": "cee53bf1.d63798",
61         "wires": [
62             [
63                 "da24c094.d6258",
64                 "7e403afc.ca86f4",
65                 "db6cf5b9.be6428",
66                 "41693571.36e60c",
67                 "8723af06.8912c",
68                 "4e11edf0.dd1024",
69                 "33375972.3ee9b6",
70                 "88fc01a3.bf7a3"
71             ]
72         ]
73     },
74     {
75         "id": "da24c094.d6258",
76         "type": "set",
77         "name": "set: order-status = PendingCreate",
78         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.order-status\" value=\"PendingCreate\"/>",
79         "comments": "",
80         "outputs": 1,
81         "x": 502.96221923828125,
82         "y": 595.6208057403564,
83         "z": "cee53bf1.d63798",
84         "wires": [
85             []
86         ]
87     },
88     {
89         "id": "7e403afc.ca86f4",
90         "type": "returnSuccess",
91         "name": "return success",
92         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
93         "comments": "",
94         "x": 442.1050567626953,
95         "y": 681.3254375457764,
96         "z": "cee53bf1.d63798",
97         "wires": []
98     },
99     {
100         "id": "c1bd5bbc.d08278",
101         "type": "comment",
102         "name": "request-action = VNFActivateRequest",
103         "info": "",
104         "comments": "",
105         "x": 681.738037109375,
106         "y": 91.53970336914062,
107         "z": "cee53bf1.d63798",
108         "wires": []
109     },
110     {
111         "id": "2983e427.e89c6c",
112         "type": "failure",
113         "name": "failure",
114         "xml": "<outcome value='failure'>\n",
115         "comments": "",
116         "outputs": 1,
117         "x": 820.0119781494141,
118         "y": 546.6433296203613,
119         "z": "cee53bf1.d63798",
120         "wires": [
121             [
122                 "6e9f230e.fe328c"
123             ]
124         ]
125     },
126     {
127         "id": "5785fdd6.aeaed4",
128         "type": "returnFailure",
129         "name": "return failure",
130         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"An error occurred while updating vnf-instance orchestration-status in AnAI\"/>",
131         "comments": "",
132         "x": 1204.1549072265625,
133         "y": 546.6434001922607,
134         "z": "cee53bf1.d63798",
135         "wires": []
136     },
137     {
138         "id": "67bf7768.b620d8",
139         "type": "save",
140         "name": "save relationship: l3-network",
141         "xml": "<save plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id\" >\n\t<parameter name=\"relationship-list.relationship[0].related-to\" value=\"l3-network\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"l3-network.network-id\" />\n\t<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks[$i].network-id`\" />",
142         "comments": "",
143         "outputs": 1,
144         "x": 822.3174667358398,
145         "y": 389.54354763031006,
146         "z": "cee53bf1.d63798",
147         "wires": [
148             [
149                 "a997a0b4.695d1"
150             ]
151         ]
152     },
153     {
154         "id": "a997a0b4.695d1",
155         "type": "failure",
156         "name": "failure",
157         "xml": "<outcome value='failure'>\n",
158         "comments": "",
159         "outputs": 1,
160         "x": 1034.9617385864258,
161         "y": 389.59056186676025,
162         "z": "cee53bf1.d63798",
163         "wires": [
164             [
165                 "aea10b11.934cb8"
166             ]
167         ]
168     },
169     {
170         "id": "db6cf5b9.be6428",
171         "type": "for",
172         "name": "for i : SERVICE_DATA vnf-networks",
173         "xml": "<for index=\"i\" start=\"0\" end=\"`$vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks_length`\">",
174         "comments": "",
175         "outputs": 1,
176         "x": 507.96427154541016,
177         "y": 389.51202869415283,
178         "z": "cee53bf1.d63798",
179         "wires": [
180             [
181                 "67bf7768.b620d8"
182             ]
183         ]
184     },
185     {
186         "id": "12eea8c7.978027",
187         "type": "returnFailure",
188         "name": "return failure",
189         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while saving generic-vnf l3-network relationship in AnAI with network-id = ' + $vnf-instance.service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks[$i].network-id`\"/>",
190         "comments": "",
191         "x": 1204.0118026733398,
192         "y": 499.60688877105713,
193         "z": "cee53bf1.d63798",
194         "wires": []
195     },
196     {
197         "id": "aea10b11.934cb8",
198         "type": "block",
199         "name": "block : atomic",
200         "xml": "<block atomic='true'>",
201         "atomic": "true",
202         "comments": "",
203         "outputs": 1,
204         "x": 993.726188659668,
205         "y": 451.8927421569824,
206         "z": "cee53bf1.d63798",
207         "wires": [
208             [
209                 "98086e0f.3b64d",
210                 "12eea8c7.978027"
211             ]
212         ]
213     },
214     {
215         "id": "98086e0f.3b64d",
216         "type": "save",
217         "name": "delete vnf-instance: l3-network relationship",
218         "xml": "<delete plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf:relationship-list\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id \n\t\t\tAND related-to = l3-network\" >",
219         "comments": "",
220         "outputs": 1,
221         "x": 1287.15478515625,
222         "y": 452.32148838043213,
223         "z": "cee53bf1.d63798",
224         "wires": [
225             []
226         ]
227     },
228     {
229         "id": "41693571.36e60c",
230         "type": "save",
231         "name": "update AnAI - vnf-instance.orchestration-status",
232         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id\" >\n\t<parameter name=\"orchestration-status\" value=\"pending-create\" />",
233         "comments": "",
234         "outputs": 1,
235         "x": 544.4881210327148,
236         "y": 546.6548271179199,
237         "z": "cee53bf1.d63798",
238         "wires": [
239             [
240                 "2983e427.e89c6c"
241             ]
242         ]
243     },
244     {
245         "id": "6e9f230e.fe328c",
246         "type": "block",
247         "name": "block: atomic",
248         "xml": "<block atomic=\"true\">\n",
249         "atomic": "false",
250         "comments": "",
251         "outputs": 1,
252         "x": 978.4405517578125,
253         "y": 546.7500886917114,
254         "z": "cee53bf1.d63798",
255         "wires": [
256             [
257                 "5785fdd6.aeaed4",
258                 "98086e0f.3b64d"
259             ]
260         ]
261     },
262     {
263         "id": "8723af06.8912c",
264         "type": "call",
265         "name": "call: vnf-instance-topology-assign-vnf-networks",
266         "xml": "<call module='VNF-API' rpc='vnf-instance-topology-assign-vnf-networks' mode='sync' >",
267         "comments": "",
268         "outputs": 1,
269         "x": 542.2380599975586,
270         "y": 279.17860412597656,
271         "z": "cee53bf1.d63798",
272         "wires": [
273             []
274         ]
275     },
276     {
277         "id": "4e11edf0.dd1024",
278         "type": "set",
279         "name": "Set final indicator to Y",
280         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
281         "comments": "",
282         "outputs": 1,
283         "x": 466.1428680419922,
284         "y": 640.7500247955322,
285         "z": "cee53bf1.d63798",
286         "wires": [
287             []
288         ]
289     },
290     {
291         "id": "33375972.3ee9b6",
292         "type": "switchNode",
293         "name": "switch ...SERVICE-DATA vnf-networks[]",
294         "xml": "<switch test=\"`$vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks_length`\">",
295         "comments": "",
296         "outputs": 1,
297         "x": 520.321418762207,
298         "y": 329.7500343322754,
299         "z": "cee53bf1.d63798",
300         "wires": [
301             [
302                 "de2601f5.481bb"
303             ]
304         ]
305     },
306     {
307         "id": "de2601f5.481bb",
308         "type": "outcome",
309         "name": "NULL",
310         "xml": "<outcome value=''>",
311         "outputs": 1,
312         "x": 766.7658920288086,
313         "y": 329.2777442932129,
314         "z": "cee53bf1.d63798",
315         "wires": [
316             [
317                 "bc89e7d4.363558"
318             ]
319         ]
320     },
321     {
322         "id": "bc89e7d4.363558",
323         "type": "set",
324         "name": "set SERVICE-DATA vnf-networks[] = 0",
325         "xml": "<set>\n<parameter name='vnf-instance-service-data.vnf-instance-topology-information.vnf-assignments.vnf-networks_length' value='0' />\n",
326         "comments": "",
327         "outputs": 1,
328         "x": 1012.321500990126,
329         "y": 329.27776495615626,
330         "z": "cee53bf1.d63798",
331         "wires": [
332             []
333         ]
334     },
335     {
336         "id": "88fc01a3.bf7a3",
337         "type": "save",
338         "name": "GET AnAI - vnf-instance",
339         "xml": "<get-resource plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id\" \n\tpfx=\"tmp.AnAI.vnf-instance\" >",
340         "comments": "",
341         "outputs": 1,
342         "x": 465.8213882446289,
343         "y": 173.92859935760498,
344         "z": "cee53bf1.d63798",
345         "wires": [
346             [
347                 "544d350b.3602ec",
348                 "2400a64e.19d90a"
349             ]
350         ]
351     },
352     {
353         "id": "544d350b.3602ec",
354         "type": "failure",
355         "name": "failure",
356         "xml": "<outcome value='failure'>\n",
357         "comments": "",
358         "outputs": 1,
359         "x": 666.8213882446289,
360         "y": 173.67859935760498,
361         "z": "cee53bf1.d63798",
362         "wires": [
363             [
364                 "24cc16d1.2a783a"
365             ]
366         ]
367     },
368     {
369         "id": "2400a64e.19d90a",
370         "type": "not-found",
371         "name": "not-found",
372         "xml": "<outcome value='not-found'>\n",
373         "comments": "",
374         "outputs": 1,
375         "x": 674.321403503418,
376         "y": 213.67860984802246,
377         "z": "cee53bf1.d63798",
378         "wires": [
379             [
380                 "e96a9f54.0d0cd"
381             ]
382         ]
383     },
384     {
385         "id": "24cc16d1.2a783a",
386         "type": "returnFailure",
387         "name": "return failure",
388         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while querying generic-vnf from AnAI with vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id`\"/>",
389         "comments": "",
390         "x": 833.0713882446289,
391         "y": 173.42859935760498,
392         "z": "cee53bf1.d63798",
393         "wires": []
394     },
395     {
396         "id": "e96a9f54.0d0cd",
397         "type": "returnFailure",
398         "name": "return failure",
399         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'generic-vnf not found in AnAI with vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id`\"/>",
400         "comments": "",
401         "x": 834.5713882446289,
402         "y": 213.92859935760498,
403         "z": "cee53bf1.d63798",
404         "wires": []
405     }
406 ]