Fix openecomp references in vnfapi
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vnf-topology-activate.json
1 [
2     {
3         "id": "88706b6c.d7e8f8",
4         "type": "comment",
5         "name": "VNF-TOPOLOGY-ACTIVATE",
6         "info": "",
7         "comments": "",
8         "x": 705,
9         "y": 56.25,
10         "z": "bdb7525f.b82ac",
11         "wires": []
12     },
13     {
14         "id": "9919a3a0.0db84",
15         "type": "set",
16         "name": "set: order-status = Active",
17         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Active\"/>",
18         "comments": "",
19         "outputs": 1,
20         "x": 416.1111373901367,
21         "y": 392.19443130493164,
22         "z": "bdb7525f.b82ac",
23         "wires": [
24             []
25         ]
26     },
27     {
28         "id": "c7aef71a.0546b8",
29         "type": "block",
30         "name": "block : atomic",
31         "xml": "<block atomic=\"true\">",
32         "atomic": "true",
33         "outputs": 1,
34         "x": 163.1111297607422,
35         "y": 159.6944465637207,
36         "z": "bdb7525f.b82ac",
37         "wires": [
38             [
39                 "9919a3a0.0db84",
40                 "d2f822b9.c0ba2",
41                 "cb7a4a21.63f1a8",
42                 "a2825e7b.f1f5b",
43                 "997d743b.93f348",
44                 "4d75942d.b062cc",
45                 "4d26f461.ab756c",
46                 "be925673.a43ed8"
47             ]
48         ]
49     },
50     {
51         "id": "e1d7f022.0eec5",
52         "type": "method",
53         "name": "method vnf-topology-activate",
54         "xml": "<method rpc='vnf-topology-activate' mode='sync'>\n",
55         "comments": "",
56         "outputs": 1,
57         "x": 205.77781677246094,
58         "y": 103.86111068725586,
59         "z": "bdb7525f.b82ac",
60         "wires": [
61             [
62                 "c7aef71a.0546b8"
63             ]
64         ]
65     },
66     {
67         "id": "8ecea6c6.be7228",
68         "type": "service-logic",
69         "name": "VNF-API ${project.version}",
70         "module": "VNF-API",
71         "version": "${project.version}",
72         "comments": "",
73         "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='VNF-API' version='${project.version}'>",
74         "outputs": 1,
75         "x": 297.7777862548828,
76         "y": 56.86111831665039,
77         "z": "bdb7525f.b82ac",
78         "wires": [
79             [
80                 "e1d7f022.0eec5"
81             ]
82         ]
83     },
84     {
85         "id": "c14838e9.4ff538",
86         "type": "dgstart",
87         "name": "DGSTART",
88         "outputs": 1,
89         "x": 132.6111297607422,
90         "y": 56.6944465637207,
91         "z": "bdb7525f.b82ac",
92         "wires": [
93             [
94                 "8ecea6c6.be7228"
95             ]
96         ]
97     },
98     {
99         "id": "d2f822b9.c0ba2",
100         "type": "switchNode",
101         "name": "switch: order-status = PendingCreate",
102         "xml": "<switch test=\"`$service-data.oper-status.order-status == PendingCreate`\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
103         "comments": "",
104         "outputs": 1,
105         "x": 455.4445114135742,
106         "y": 288.5276527404785,
107         "z": "bdb7525f.b82ac",
108         "wires": [
109             [
110                 "7fbf2884.337bd8"
111             ]
112         ]
113     },
114     {
115         "id": "7fbf2884.337bd8",
116         "type": "other",
117         "name": "false",
118         "xml": "<outcome value='false'>",
119         "comments": "",
120         "outputs": 1,
121         "x": 704.7778625488281,
122         "y": 288.8609619140625,
123         "z": "bdb7525f.b82ac",
124         "wires": [
125             [
126                 "6a86c40f.3cacbc"
127             ]
128         ]
129     },
130     {
131         "id": "5ab563ab.d3ac3c",
132         "type": "returnFailure",
133         "name": "return failure",
134         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid last-order-status'/>",
135         "comments": "",
136         "x": 1363.110984802246,
137         "y": 287.8610134124756,
138         "z": "bdb7525f.b82ac",
139         "wires": []
140     },
141     {
142         "id": "997d743b.93f348",
143         "type": "switchNode",
144         "name": "switch:vnf-id   config == input",
145         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
146         "comments": "",
147         "outputs": 1,
148         "x": 427.88387298583984,
149         "y": 236.73988723754883,
150         "z": "bdb7525f.b82ac",
151         "wires": [
152             [
153                 "18372478.ff847c"
154             ]
155         ]
156     },
157     {
158         "id": "18372478.ff847c",
159         "type": "outcomeFalse",
160         "name": "false",
161         "xml": "<outcome value='false'>\n",
162         "comments": "",
163         "outputs": 1,
164         "x": 647.3383483886719,
165         "y": 236.9217071533203,
166         "z": "bdb7525f.b82ac",
167         "wires": [
168             [
169                 "a2862881.e98788"
170             ]
171         ]
172     },
173     {
174         "id": "a2862881.e98788",
175         "type": "returnFailure",
176         "name": "return failure",
177         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value=\"`'vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' not found in config tree'`\"/>",
178         "comments": "",
179         "x": 825.4292907714844,
180         "y": 236.830810546875,
181         "z": "bdb7525f.b82ac",
182         "wires": []
183     },
184     {
185         "id": "cb7a4a21.63f1a8",
186         "type": "returnSuccess",
187         "name": "return success",
188         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
189         "comments": "",
190         "x": 385.22225189208984,
191         "y": 612.8610877990723,
192         "z": "bdb7525f.b82ac",
193         "wires": []
194     },
195     {
196         "id": "6a86c40f.3cacbc",
197         "type": "switchNode",
198         "name": "switch: order-status = PendingUpdate",
199         "xml": "<switch test=\"`$service-data.oper-status.order-status == PendingUpdate`\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
200         "comments": "",
201         "outputs": 1,
202         "x": 955.7020568847656,
203         "y": 288.2853698730469,
204         "z": "bdb7525f.b82ac",
205         "wires": [
206             [
207                 "8c8f2029.ca786"
208             ]
209         ]
210     },
211     {
212         "id": "8c8f2029.ca786",
213         "type": "other",
214         "name": "false",
215         "xml": "<outcome value='false'>",
216         "comments": "",
217         "outputs": 1,
218         "x": 1198.1564636230469,
219         "y": 288.28533935546875,
220         "z": "bdb7525f.b82ac",
221         "wires": [
222             [
223                 "5ab563ab.d3ac3c"
224             ]
225         ]
226     },
227     {
228         "id": "3c6838ea.3c4ff8",
229         "type": "comment",
230         "name": "once success is returned, operational-data gets saved",
231         "info": "",
232         "comments": "",
233         "x": 731.6288452148438,
234         "y": 573.79541015625,
235         "z": "bdb7525f.b82ac",
236         "wires": []
237     },
238     {
239         "id": "a2825e7b.f1f5b",
240         "type": "set",
241         "name": "set: last-order-status = order-status",
242         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>",
243         "comments": "",
244         "outputs": 1,
245         "x": 449.22481536865234,
246         "y": 340.8081398010254,
247         "z": "bdb7525f.b82ac",
248         "wires": [
249             []
250         ]
251     },
252     {
253         "id": "b434395d.5c9488",
254         "type": "comment",
255         "name": "request-action = VNFActivateRequest, svc-action = activate",
256         "info": "",
257         "comments": "",
258         "x": 711.7222137451172,
259         "y": 96.02778053283691,
260         "z": "bdb7525f.b82ac",
261         "wires": []
262     },
263     {
264         "id": "4d75942d.b062cc",
265         "type": "set",
266         "name": "set: service-data = input",
267         "xml": "<set>\n\t<parameter name=\"service-data.\" value=\"vnf-topology-operation-input.\" />",
268         "comments": "",
269         "outputs": 1,
270         "x": 413.1111373901367,
271         "y": 527.2500038146973,
272         "z": "bdb7525f.b82ac",
273         "wires": [
274             []
275         ]
276     },
277     {
278         "id": "4d26f461.ab756c",
279         "type": "set",
280         "name": "set: last-action ",
281         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>",
282         "comments": "",
283         "outputs": 1,
284         "x": 383.1111373901367,
285         "y": 439.25000381469727,
286         "z": "bdb7525f.b82ac",
287         "wires": [
288             []
289         ]
290     },
291     {
292         "id": "25f69501.db82ca",
293         "type": "failure",
294         "name": "failure",
295         "xml": "<outcome value='failure'>\n",
296         "comments": "",
297         "outputs": 1,
298         "x": 741.5238571166992,
299         "y": 482.2385025024414,
300         "z": "bdb7525f.b82ac",
301         "wires": [
302             [
303                 "8b31c6d4.18a8e8"
304             ]
305         ]
306     },
307     {
308         "id": "8b31c6d4.18a8e8",
309         "type": "returnFailure",
310         "name": "return failure",
311         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Encountered error while updating vf-module orchestration-status in AnAI with vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' and generic-vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.generic-vnf-id`\"/>",
312         "comments": "",
313         "x": 909.6667861938477,
314         "y": 482.2385730743408,
315         "z": "bdb7525f.b82ac",
316         "wires": []
317     },
318     {
319         "id": "baf5a37d.f9734",
320         "type": "set",
321         "name": "Set final indicator to Y",
322         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
323         "comments": "",
324         "outputs": 1,
325         "x": 407.4285888671875,
326         "y": 570.9642486572266,
327         "z": "bdb7525f.b82ac",
328         "wires": [
329             []
330         ]
331     },
332     {
333         "id": "be925673.a43ed8",
334         "type": "save",
335         "name": "update AnAI - vf-module.orchestration-status",
336         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vnf-topology-operation-input.vnf-request-information.vnf-id \n\t\t\tAND generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-request-information.generic-vnf-id\" \n\t\tlocal-only=\"false\" >\n\t<parameter name=\"orchestration-status\" value=\"active\" />",
337         "comments": "",
338         "outputs": 1,
339         "x": 477,
340         "y": 482.25,
341         "z": "bdb7525f.b82ac",
342         "wires": [
343             [
344                 "25f69501.db82ca"
345             ]
346         ]
347     }
348 ]