Fix openecomp references in vnfapi
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vf-module-topology-rollback.json
1 [
2     {
3         "id": "c3ce5a21.858818",
4         "type": "block",
5         "name": "block : atomic",
6         "xml": "<block atomic=\"true\">",
7         "atomic": "true",
8         "outputs": 1,
9         "x": 156.80559539794922,
10         "y": 155.7499885559082,
11         "z": "a2906cac.f91a6",
12         "wires": [
13             [
14                 "b7bd282e.ecbe08"
15             ]
16         ]
17     },
18     {
19         "id": "504ed4c1.19f72c",
20         "type": "method",
21         "name": "method  vf-module-topology-rollback",
22         "xml": "<method rpc='vf-module-topology-rollback' mode='sync'>\n",
23         "comments": "",
24         "outputs": 1,
25         "x": 185.22228240966797,
26         "y": 103.1666612625122,
27         "z": "a2906cac.f91a6",
28         "wires": [
29             [
30                 "c3ce5a21.858818"
31             ]
32         ]
33     },
34     {
35         "id": "bbc0a862.2012a8",
36         "type": "service-logic",
37         "name": "VNF-API ${project.version}",
38         "module": "VNF-API",
39         "version": "${project.version}",
40         "comments": "",
41         "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}'>",
42         "outputs": 1,
43         "x": 262.3333435058594,
44         "y": 44.055559158325195,
45         "z": "a2906cac.f91a6",
46         "wires": [
47             [
48                 "504ed4c1.19f72c"
49             ]
50         ]
51     },
52     {
53         "id": "dc5c5f1f.f5323",
54         "type": "dgstart",
55         "name": "DGSTART",
56         "outputs": 1,
57         "x": 96.61115264892578,
58         "y": 43.888885498046875,
59         "z": "a2906cac.f91a6",
60         "wires": [
61             [
62                 "bbc0a862.2012a8"
63             ]
64         ]
65     },
66     {
67         "id": "69f49ed4.8c74a",
68         "type": "returnSuccess",
69         "name": "return success",
70         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
71         "comments": "",
72         "x": 895.0556182861328,
73         "y": 508.4972972869873,
74         "z": "a2906cac.f91a6",
75         "wires": []
76     },
77     {
78         "id": "5f1c1e9f.c2fb3",
79         "type": "set",
80         "name": "set: order-status = Deleted",
81         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.order-status\" value=\"Deleted\"/>",
82         "comments": "",
83         "outputs": 1,
84         "x": 930.8056182861328,
85         "y": 337.2751064300537,
86         "z": "a2906cac.f91a6",
87         "wires": [
88             []
89         ]
90     },
91     {
92         "id": "560147c0.dbc8c8",
93         "type": "switchNode",
94         "name": "switch: order-status = PendingCreate",
95         "xml": "<switch test=\"`$vf-module-service-data.oper-status.order-status == PendingCreate`\">",
96         "comments": "",
97         "outputs": 1,
98         "x": 963.6465606689453,
99         "y": 251.40388870239258,
100         "z": "a2906cac.f91a6",
101         "wires": [
102             [
103                 "190a74c8.9c3ddb"
104             ]
105         ]
106     },
107     {
108         "id": "190a74c8.9c3ddb",
109         "type": "other",
110         "name": "false",
111         "xml": "<outcome value='false'>",
112         "comments": "",
113         "outputs": 1,
114         "x": 1195.2299423217773,
115         "y": 251.2372007369995,
116         "z": "a2906cac.f91a6",
117         "wires": [
118             [
119                 "c8163813.24eb68"
120             ]
121         ]
122     },
123     {
124         "id": "c8163813.24eb68",
125         "type": "returnFailure",
126         "name": "return failure",
127         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
128         "comments": "",
129         "x": 1347.5630722045898,
130         "y": 251.23726177215576,
131         "z": "a2906cac.f91a6",
132         "wires": []
133     },
134     {
135         "id": "9439ef4e.19bcf",
136         "type": "set",
137         "name": "set: last-action ",
138         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-action\" value=\"`$vf-modules-service-data.request-information.request-action`\"/>",
139         "comments": "",
140         "outputs": 1,
141         "x": 892.5633125305176,
142         "y": 379.57069969177246,
143         "z": "a2906cac.f91a6",
144         "wires": [
145             []
146         ]
147     },
148     {
149         "id": "2366439a.26ba4c",
150         "type": "outcomeFalse",
151         "name": "false",
152         "xml": "<outcome value='false'>\n",
153         "comments": "",
154         "outputs": 1,
155         "x": 1218.9041366577148,
156         "y": 204.1944456100464,
157         "z": "a2906cac.f91a6",
158         "wires": [
159             [
160                 "378d2536.971caa"
161             ]
162         ]
163     },
164     {
165         "id": "378d2536.971caa",
166         "type": "returnFailure",
167         "name": "return failure",
168         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='404'/>\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": 1378.9949569702148,
171         "y": 204.60354900360107,
172         "z": "a2906cac.f91a6",
173         "wires": []
174     },
175     {
176         "id": "97215d09.0cf54",
177         "type": "set",
178         "name": "set: last-order-status = order-status",
179         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-order-status\" value=\"`$vf-module-service-data.oper-status.order-status`\"/>",
180         "comments": "",
181         "outputs": 1,
182         "x": 956.4496612548828,
183         "y": 294.59599781036377,
184         "z": "a2906cac.f91a6",
185         "wires": [
186             []
187         ]
188     },
189     {
190         "id": "98c2d38b.6194",
191         "type": "set",
192         "name": "Clear vf-module topology",
193         "xml": "<set>\n\t<parameter name=\"vf-module-service-data.\" value=\"\" /> \n",
194         "comments": "",
195         "outputs": 1,
196         "x": 925.9496612548828,
197         "y": 423.2626552581787,
198         "z": "a2906cac.f91a6",
199         "wires": [
200             []
201         ]
202     },
203     {
204         "id": "77cc369b.dab328",
205         "type": "switchNode",
206         "name": "switch:CONFIG == INPUT - vf-module-id",
207         "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vf-module-id == $vf-module-service-data.vf-module-id`\">",
208         "comments": "",
209         "outputs": 1,
210         "x": 975.0556182861328,
211         "y": 204.1944456100464,
212         "z": "a2906cac.f91a6",
213         "wires": [
214             [
215                 "2366439a.26ba4c"
216             ]
217         ]
218     },
219     {
220         "id": "b7bd282e.ecbe08",
221         "type": "switchNode",
222         "name": "switch: order-status = PendingCreate",
223         "xml": "<switch test=\"`$vf-module-service-data.oper-status.order-status == PendingCreate`\">",
224         "comments": "",
225         "outputs": 1,
226         "x": 264.30560302734375,
227         "y": 202.69444942474365,
228         "z": "a2906cac.f91a6",
229         "wires": [
230             [
231                 "d8a6efb4.1cae2"
232             ]
233         ]
234     },
235     {
236         "id": "d8a6efb4.1cae2",
237         "type": "other",
238         "name": "true",
239         "xml": "<outcome value='true'>",
240         "comments": "",
241         "outputs": 1,
242         "x": 500.5555953979492,
243         "y": 203.44444274902344,
244         "z": "a2906cac.f91a6",
245         "wires": [
246             [
247                 "d28acb25.7ef2e8"
248             ]
249         ]
250     },
251     {
252         "id": "d28acb25.7ef2e8",
253         "type": "block",
254         "name": "block : atomic",
255         "xml": "<block atomic=\"true\">",
256         "atomic": "true",
257         "outputs": 1,
258         "x": 662.5555953979492,
259         "y": 203.44444274902344,
260         "z": "a2906cac.f91a6",
261         "wires": [
262             [
263                 "77cc369b.dab328",
264                 "560147c0.dbc8c8",
265                 "97215d09.0cf54",
266                 "5f1c1e9f.c2fb3",
267                 "9439ef4e.19bcf",
268                 "98c2d38b.6194",
269                 "69f49ed4.8c74a",
270                 "5a9a93a0.4a243c"
271             ]
272         ]
273     },
274     {
275         "id": "58f1f93f.d350c8",
276         "type": "comment",
277         "name": "request-action = VNFActivateRequest, svc-action = rollback",
278         "info": "",
279         "comments": "",
280         "x": 760.3056030273438,
281         "y": 80.44444465637207,
282         "z": "a2906cac.f91a6",
283         "wires": []
284     },
285     {
286         "id": "5a9a93a0.4a243c",
287         "type": "set",
288         "name": "Set final indicator to Y",
289         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
290         "comments": "",
291         "outputs": 1,
292         "x": 916.6666259765625,
293         "y": 465.5555419921875,
294         "z": "a2906cac.f91a6",
295         "wires": [
296             []
297         ]
298     }
299 ]