[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vf-module-topology-activate.json
1 [
2     {
3         "id": "39e8a74f.00d7a8",
4         "type": "set",
5         "name": "set: order-status = Active",
6         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.order-status\" value=\"Active\"/>",
7         "comments": "",
8         "outputs": 1,
9         "x": 432.8571472167969,
10         "y": 392.8571472167969,
11         "z": "99edc426.381898",
12         "wires": [
13             []
14         ]
15     },
16     {
17         "id": "74e6fd2f.dee3c4",
18         "type": "block",
19         "name": "block : atomic",
20         "xml": "<block atomic=\"true\">",
21         "atomic": "true",
22         "outputs": 1,
23         "x": 179.85713958740234,
24         "y": 160.35716247558594,
25         "z": "99edc426.381898",
26         "wires": [
27             [
28                 "39e8a74f.00d7a8",
29                 "83f09b75.461298",
30                 "b65a1681.7c1c38",
31                 "ca5aa154.d8ea2",
32                 "e0967d0e.757cc",
33                 "91c8fd96.73034",
34                 "ef986c0d.9506",
35                 "3041a9ae.a8b0d6",
36                 "38723ef.e0f7bc2",
37                 "7646ab3a.7636e4"
38             ]
39         ]
40     },
41     {
42         "id": "dfa6e2c6.49745",
43         "type": "method",
44         "name": "method vf-module-topology-activate",
45         "xml": "<method rpc='vf-module-topology-activate' mode='sync'>\n",
46         "comments": "",
47         "outputs": 1,
48         "x": 222.5238265991211,
49         "y": 104.5238265991211,
50         "z": "99edc426.381898",
51         "wires": [
52             [
53                 "74e6fd2f.dee3c4"
54             ]
55         ]
56     },
57     {
58         "id": "daef36a1.fa1368",
59         "type": "service-logic",
60         "name": "VNF-API ${project.version}",
61         "module": "VNF-API",
62         "version": "${project.version}",
63         "comments": "",
64         "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}'>",
65         "outputs": 1,
66         "x": 314.52379608154297,
67         "y": 57.523834228515625,
68         "z": "99edc426.381898",
69         "wires": [
70             [
71                 "dfa6e2c6.49745"
72             ]
73         ]
74     },
75     {
76         "id": "1253e5b0.3e31fa",
77         "type": "dgstart",
78         "name": "DGSTART",
79         "outputs": 1,
80         "x": 149.35713958740234,
81         "y": 57.35716247558594,
82         "z": "99edc426.381898",
83         "wires": [
84             [
85                 "daef36a1.fa1368"
86             ]
87         ]
88     },
89     {
90         "id": "83f09b75.461298",
91         "type": "switchNode",
92         "name": "switch: order-status = PendingCreate",
93         "xml": "<switch test=\"`$vf-module-service-data.oper-status.order-status == PendingCreate`\">",
94         "comments": "",
95         "outputs": 1,
96         "x": 472.1905212402344,
97         "y": 289.19036865234375,
98         "z": "99edc426.381898",
99         "wires": [
100             [
101                 "32730681.fc526a"
102             ]
103         ]
104     },
105     {
106         "id": "32730681.fc526a",
107         "type": "other",
108         "name": "false",
109         "xml": "<outcome value='false'>",
110         "comments": "",
111         "outputs": 1,
112         "x": 721.5238723754883,
113         "y": 288.52367782592773,
114         "z": "99edc426.381898",
115         "wires": [
116             [
117                 "94496491.8e1268"
118             ]
119         ]
120     },
121     {
122         "id": "86ef0554.fbc0a8",
123         "type": "returnFailure",
124         "name": "return failure",
125         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
126         "comments": "",
127         "x": 1379.8569946289062,
128         "y": 288.5237293243408,
129         "z": "99edc426.381898",
130         "wires": []
131     },
132     {
133         "id": "e0967d0e.757cc",
134         "type": "switchNode",
135         "name": "switch:vf-module-id   config == input",
136         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vf-module-id == $vf-module-service-data.vf-module-id`\">",
137         "comments": "",
138         "outputs": 1,
139         "x": 465.6298828125,
140         "y": 237.40260314941406,
141         "z": "99edc426.381898",
142         "wires": [
143             [
144                 "f8c73b3a.1a2af8"
145             ]
146         ]
147     },
148     {
149         "id": "f8c73b3a.1a2af8",
150         "type": "outcomeFalse",
151         "name": "false",
152         "xml": "<outcome value='false'>\n",
153         "comments": "",
154         "outputs": 1,
155         "x": 694.084358215332,
156         "y": 237.58442306518555,
157         "z": "99edc426.381898",
158         "wires": [
159             [
160                 "6bcf58a9.7508d8"
161             ]
162         ]
163     },
164     {
165         "id": "6bcf58a9.7508d8",
166         "type": "returnFailure",
167         "name": "return failure",
168         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value=\"`'vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' not found in SDNC'`\"/>",
169         "comments": "",
170         "x": 847.1753005981445,
171         "y": 237.49352645874023,
172         "z": "99edc426.381898",
173         "wires": []
174     },
175     {
176         "id": "b65a1681.7c1c38",
177         "type": "returnSuccess",
178         "name": "return success",
179         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
180         "comments": "",
181         "x": 400.96826171875,
182         "y": 705.5238037109375,
183         "z": "99edc426.381898",
184         "wires": []
185     },
186     {
187         "id": "94496491.8e1268",
188         "type": "switchNode",
189         "name": "switch: order-status = PendingUpdate",
190         "xml": "<switch test=\"`$vf-module-service-data.oper-status.order-status == PendingUpdate`\">",
191         "comments": "",
192         "outputs": 1,
193         "x": 972.4480667114258,
194         "y": 288.9480857849121,
195         "z": "99edc426.381898",
196         "wires": [
197             [
198                 "b04177c6.257fd8"
199             ]
200         ]
201     },
202     {
203         "id": "b04177c6.257fd8",
204         "type": "other",
205         "name": "false",
206         "xml": "<outcome value='false'>",
207         "comments": "",
208         "outputs": 1,
209         "x": 1214.902473449707,
210         "y": 288.948055267334,
211         "z": "99edc426.381898",
212         "wires": [
213             [
214                 "86ef0554.fbc0a8"
215             ]
216         ]
217     },
218     {
219         "id": "ca5aa154.d8ea2",
220         "type": "set",
221         "name": "set: last-order-status = order-status",
222         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-order-status\" value=\"`$vf-module-service-data.oper-status.order-status`\"/>",
223         "comments": "",
224         "outputs": 1,
225         "x": 465.9708251953125,
226         "y": 341.4708557128906,
227         "z": "99edc426.381898",
228         "wires": [
229             []
230         ]
231     },
232     {
233         "id": "a84acf1a.f3c8c",
234         "type": "comment",
235         "name": "request-action = VNFActivateRequest, svc-action = activate",
236         "info": "",
237         "comments": "",
238         "x": 728.4682235717773,
239         "y": 96.69049644470215,
240         "z": "99edc426.381898",
241         "wires": []
242     },
243     {
244         "id": "91c8fd96.73034",
245         "type": "set",
246         "name": "set: service-data = input",
247         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.\" value=\"vf-module-topology-operation-input.\" />",
248         "comments": "",
249         "outputs": 1,
250         "x": 429.8571472167969,
251         "y": 527.9127197265625,
252         "z": "99edc426.381898",
253         "wires": [
254             []
255         ]
256     },
257     {
258         "id": "ef986c0d.9506",
259         "type": "set",
260         "name": "set: last-action ",
261         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-action\" value=\"`$vf-module-service-data.request-information.request-action`\"/>",
262         "comments": "",
263         "outputs": 1,
264         "x": 399.8571472167969,
265         "y": 439.9127197265625,
266         "z": "99edc426.381898",
267         "wires": [
268             []
269         ]
270     },
271     {
272         "id": "cba23ed7.a7888",
273         "type": "failure",
274         "name": "failure",
275         "xml": "<outcome value='failure'>\n",
276         "comments": "",
277         "outputs": 1,
278         "x": 758.2698669433594,
279         "y": 482.90121841430664,
280         "z": "99edc426.381898",
281         "wires": [
282             [
283                 "b1d53231.032d9"
284             ]
285         ]
286     },
287     {
288         "id": "b1d53231.032d9",
289         "type": "returnFailure",
290         "name": "return failure",
291         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while updating vf-module orchestration-status in AnAI with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\"/>",
292         "comments": "",
293         "x": 941.4127960205078,
294         "y": 482.90128898620605,
295         "z": "99edc426.381898",
296         "wires": []
297     },
298     {
299         "id": "d71b0b9.a2878f8",
300         "type": "set",
301         "name": "Set final indicator to Y",
302         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
303         "comments": "",
304         "outputs": 1,
305         "x": 423.17459869384766,
306         "y": 663.6269645690918,
307         "z": "99edc426.381898",
308         "wires": [
309             []
310         ]
311     },
312     {
313         "id": "3041a9ae.a8b0d6",
314         "type": "save",
315         "name": "update AnAI - vf-module.orchestration-status",
316         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" >\n\t<parameter name=\"orchestration-status\" value=\"active\" />",
317         "comments": "",
318         "outputs": 1,
319         "x": 493.74600982666016,
320         "y": 482.91271591186523,
321         "z": "99edc426.381898",
322         "wires": [
323             [
324                 "cba23ed7.a7888",
325                 "324dd0a1.e8559"
326             ]
327         ]
328     },
329     {
330         "id": "324dd0a1.e8559",
331         "type": "not-found",
332         "name": "not-found",
333         "xml": "<outcome value='not-found'>\n",
334         "comments": "",
335         "outputs": 1,
336         "x": 765.4960327148438,
337         "y": 525.66273021698,
338         "z": "99edc426.381898",
339         "wires": [
340             [
341                 "b1d53231.032d9"
342             ]
343         ]
344     },
345     {
346         "id": "38723ef.e0f7bc2",
347         "type": "set",
348         "name": "set: vnf-instance-service-data.vf-module-relationship-list[]",
349         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.vf-module-relationship-list[$vnf-instance-service-data.vf-module-relationship-list_length].vf-module-id\" value=\"`$vf-module-topology-operation-input.vf-module-request-information.vf-module-id`\" />",
350         "comments": "",
351         "outputs": 1,
352         "x": 532.2460098266602,
353         "y": 619.1627159118652,
354         "z": "99edc426.381898",
355         "wires": [
356             []
357         ]
358     },
359     {
360         "id": "d97e99d0.9e7e48",
361         "type": "set",
362         "name": "set: vnf-instance-service-data.vf-module-relationship-list[] = 0",
363         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.vf-module-relationship-list_length\" value=\"0\" />",
364         "comments": "",
365         "outputs": 1,
366         "x": 1149.773796081543,
367         "y": 575.0516405105591,
368         "z": "99edc426.381898",
369         "wires": [
370             []
371         ]
372     },
373     {
374         "id": "7646ab3a.7636e4",
375         "type": "switchNode",
376         "name": "switch: vnf-instance-service-data.vf-module-relationship-list[]",
377         "xml": "<switch test=\"`$vnf-instance-service-data.vf-module-relationship-list_length`\">",
378         "comments": "",
379         "outputs": 1,
380         "x": 543.4960098266602,
381         "y": 574.4127254486084,
382         "z": "99edc426.381898",
383         "wires": [
384             [
385                 "f9261340.ae80b"
386             ]
387         ]
388     },
389     {
390         "id": "f9261340.ae80b",
391         "type": "outcome",
392         "name": "NULL",
393         "xml": "<outcome value=''>",
394         "outputs": 1,
395         "x": 844.7460098266602,
396         "y": 574.4127254486084,
397         "z": "99edc426.381898",
398         "wires": [
399             [
400                 "d97e99d0.9e7e48"
401             ]
402         ]
403     }
404 ]