f26343e03846d56d7a4977ac7a897ce7a9d4bf96
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vnf-instance-topology-activate.json
1 [
2     {
3         "id": "224ab88a.0adf58",
4         "type": "set",
5         "name": "set: order-status = Active",
6         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.order-status\" value=\"Active\"/>",
7         "comments": "",
8         "outputs": 1,
9         "x": 423.33331298828125,
10         "y": 374.3888626098633,
11         "z": "76e70bd1.ad60c4",
12         "wires": [
13             []
14         ]
15     },
16     {
17         "id": "ab9eb400.713038",
18         "type": "block",
19         "name": "block : atomic",
20         "xml": "<block atomic=\"true\">",
21         "atomic": "true",
22         "outputs": 1,
23         "x": 170.33330535888672,
24         "y": 141.88887786865234,
25         "z": "76e70bd1.ad60c4",
26         "wires": [
27             [
28                 "224ab88a.0adf58",
29                 "c8ee6ab7.bac638",
30                 "c0d479cd.b79348",
31                 "34cb709c.929ed",
32                 "f798ae57.6d47d",
33                 "b8342ba1.d183f8",
34                 "a8c37c05.42ceb",
35                 "716ea0ca.5337a"
36             ]
37         ]
38     },
39     {
40         "id": "e7f31ebf.f0df3",
41         "type": "method",
42         "name": "method vnf-instance-topology-activate",
43         "xml": "<method rpc='vnf-instance-topology-activate' mode='sync'>\n",
44         "comments": "",
45         "outputs": 1,
46         "x": 212.99999237060547,
47         "y": 86.0555419921875,
48         "z": "76e70bd1.ad60c4",
49         "wires": [
50             [
51                 "ab9eb400.713038"
52             ]
53         ]
54     },
55     {
56         "id": "ef96001e.3e2e5",
57         "type": "service-logic",
58         "name": "VNF-API ${project.version}",
59         "module": "VNF-API",
60         "version": "${project.version}",
61         "comments": "",
62         "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}'>",
63         "outputs": 1,
64         "x": 304.99996185302734,
65         "y": 39.05554962158203,
66         "z": "76e70bd1.ad60c4",
67         "wires": [
68             [
69                 "e7f31ebf.f0df3"
70             ]
71         ]
72     },
73     {
74         "id": "5b8d2293.3efc3c",
75         "type": "dgstart",
76         "name": "DGSTART",
77         "outputs": 1,
78         "x": 139.83330535888672,
79         "y": 38.888877868652344,
80         "z": "76e70bd1.ad60c4",
81         "wires": [
82             [
83                 "ef96001e.3e2e5"
84             ]
85         ]
86     },
87     {
88         "id": "c8ee6ab7.bac638",
89         "type": "switchNode",
90         "name": "switch: order-status = PendingCreate",
91         "xml": "<switch test=\"`$vnf-instance-service-data.oper-status.order-status == PendingCreate`\">",
92         "comments": "",
93         "outputs": 1,
94         "x": 462.66668701171875,
95         "y": 270.72208404541016,
96         "z": "76e70bd1.ad60c4",
97         "wires": [
98             [
99                 "2f2bb679.ddde5a"
100             ]
101         ]
102     },
103     {
104         "id": "2f2bb679.ddde5a",
105         "type": "other",
106         "name": "false",
107         "xml": "<outcome value='false'>",
108         "comments": "",
109         "outputs": 1,
110         "x": 712.0000381469727,
111         "y": 271.05539321899414,
112         "z": "76e70bd1.ad60c4",
113         "wires": [
114             [
115                 "caf23eef.2d6a7"
116             ]
117         ]
118     },
119     {
120         "id": "9112f66c.accf18",
121         "type": "returnFailure",
122         "name": "return failure",
123         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
124         "comments": "",
125         "x": 1370.3331604003906,
126         "y": 270.0554447174072,
127         "z": "76e70bd1.ad60c4",
128         "wires": []
129     },
130     {
131         "id": "f798ae57.6d47d",
132         "type": "switchNode",
133         "name": "switch:vnf-instance-id   config == input",
134         "xml": "<switch test=\"`$vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id == $vnf-instance-service-data.vnf-instance-id`\">",
135         "comments": "",
136         "outputs": 1,
137         "x": 456.1060485839844,
138         "y": 218.93431854248047,
139         "z": "76e70bd1.ad60c4",
140         "wires": [
141             [
142                 "d6b1f417.d762b8"
143             ]
144         ]
145     },
146     {
147         "id": "d6b1f417.d762b8",
148         "type": "outcomeFalse",
149         "name": "false",
150         "xml": "<outcome value='false'>\n",
151         "comments": "",
152         "outputs": 1,
153         "x": 684.5605239868164,
154         "y": 219.11613845825195,
155         "z": "76e70bd1.ad60c4",
156         "wires": [
157             [
158                 "7f1082ca.4c62bc"
159             ]
160         ]
161     },
162     {
163         "id": "7f1082ca.4c62bc",
164         "type": "returnFailure",
165         "name": "return failure",
166         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value=\"`'vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id + ' not found in SDNC'`\"/>",
167         "comments": "",
168         "x": 837.6514663696289,
169         "y": 219.02524185180664,
170         "z": "76e70bd1.ad60c4",
171         "wires": []
172     },
173     {
174         "id": "c0d479cd.b79348",
175         "type": "returnSuccess",
176         "name": "return success",
177         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
178         "comments": "",
179         "x": 392.4444274902344,
180         "y": 595.0555191040039,
181         "z": "76e70bd1.ad60c4",
182         "wires": []
183     },
184     {
185         "id": "caf23eef.2d6a7",
186         "type": "switchNode",
187         "name": "switch: order-status = PendingUpdate",
188         "xml": "<switch test=\"`$vnf-instance-service-data.oper-status.order-status == PendingUpdate`\">",
189         "comments": "",
190         "outputs": 1,
191         "x": 962.9242324829102,
192         "y": 270.4798011779785,
193         "z": "76e70bd1.ad60c4",
194         "wires": [
195             [
196                 "3d49c074.c55d4"
197             ]
198         ]
199     },
200     {
201         "id": "3d49c074.c55d4",
202         "type": "other",
203         "name": "false",
204         "xml": "<outcome value='false'>",
205         "comments": "",
206         "outputs": 1,
207         "x": 1205.3786392211914,
208         "y": 270.4797706604004,
209         "z": "76e70bd1.ad60c4",
210         "wires": [
211             [
212                 "9112f66c.accf18"
213             ]
214         ]
215     },
216     {
217         "id": "26b3d7a2.652ae8",
218         "type": "comment",
219         "name": "once success is returned, operational-data gets saved",
220         "info": "",
221         "comments": "",
222         "x": 738.8510208129883,
223         "y": 555.9898414611816,
224         "z": "76e70bd1.ad60c4",
225         "wires": []
226     },
227     {
228         "id": "34cb709c.929ed",
229         "type": "set",
230         "name": "set: last-order-status = order-status",
231         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.last-order-status\" value=\"`$vnf-instance-service-data.oper-status.order-status`\"/>",
232         "comments": "",
233         "outputs": 1,
234         "x": 456.4469909667969,
235         "y": 323.00257110595703,
236         "z": "76e70bd1.ad60c4",
237         "wires": [
238             []
239         ]
240     },
241     {
242         "id": "1c5ee2ad.503e0d",
243         "type": "comment",
244         "name": "request-action = VNFActivateRequest, svc-action = activate",
245         "info": "",
246         "comments": "",
247         "x": 718.9443893432617,
248         "y": 78.22221183776855,
249         "z": "76e70bd1.ad60c4",
250         "wires": []
251     },
252     {
253         "id": "b8342ba1.d183f8",
254         "type": "set",
255         "name": "set: service-data = input",
256         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.\" value=\"vnf-instance-topology-operation-input.\" />",
257         "comments": "",
258         "outputs": 1,
259         "x": 420.33331298828125,
260         "y": 509.4444351196289,
261         "z": "76e70bd1.ad60c4",
262         "wires": [
263             []
264         ]
265     },
266     {
267         "id": "a8c37c05.42ceb",
268         "type": "set",
269         "name": "set: last-action ",
270         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.last-action\" value=\"`$vnf-instance-service-data.request-information.request-action`\"/>",
271         "comments": "",
272         "outputs": 1,
273         "x": 390.33331298828125,
274         "y": 421.4444351196289,
275         "z": "76e70bd1.ad60c4",
276         "wires": [
277             []
278         ]
279     },
280     {
281         "id": "9d73784e.83dda8",
282         "type": "failure",
283         "name": "failure",
284         "xml": "<outcome value='failure'>\n",
285         "comments": "",
286         "outputs": 1,
287         "x": 778.7460327148438,
288         "y": 464.43293380737305,
289         "z": "76e70bd1.ad60c4",
290         "wires": [
291             [
292                 "852e8aa2.d5c6c8"
293             ]
294         ]
295     },
296     {
297         "id": "852e8aa2.d5c6c8",
298         "type": "returnFailure",
299         "name": "return failure",
300         "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 with vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id`\"/>",
301         "comments": "",
302         "x": 961.8889617919922,
303         "y": 464.43300437927246,
304         "z": "76e70bd1.ad60c4",
305         "wires": []
306     },
307     {
308         "id": "5f34e90c.952258",
309         "type": "set",
310         "name": "Set final indicator to Y",
311         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
312         "comments": "",
313         "outputs": 1,
314         "x": 414.65076446533203,
315         "y": 553.1586799621582,
316         "z": "76e70bd1.ad60c4",
317         "wires": [
318             []
319         ]
320     },
321     {
322         "id": "716ea0ca.5337a",
323         "type": "save",
324         "name": "update AnAI - vnf-instance.orchestration-status",
325         "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<parameter name=\"orchestration-status\" value=\"active\" />",
326         "comments": "",
327         "outputs": 1,
328         "x": 491.22217559814453,
329         "y": 464.44443130493164,
330         "z": "76e70bd1.ad60c4",
331         "wires": [
332             [
333                 "9d73784e.83dda8",
334                 "d85d5574.f399a8"
335             ]
336         ]
337     },
338     {
339         "id": "d85d5574.f399a8",
340         "type": "not-found",
341         "name": "not-found",
342         "xml": "<outcome value='not-found'>\n",
343         "comments": "",
344         "outputs": 1,
345         "x": 785.9721984863281,
346         "y": 507.1944456100464,
347         "z": "76e70bd1.ad60c4",
348         "wires": [
349             [
350                 "852e8aa2.d5c6c8"
351             ]
352         ]
353     }
354 ]