[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vnf-instance-topology-rollback.json
1 [
2     {
3         "id": "94c92ddd.ae5ed",
4         "type": "block",
5         "name": "block : atomic",
6         "xml": "<block atomic=\"true\">",
7         "atomic": "true",
8         "outputs": 1,
9         "x": 184.44444274902344,
10         "y": 160.74999046325684,
11         "z": "df9d3b3e.c0e1c8",
12         "wires": [
13             [
14                 "93e2a330.f35a"
15             ]
16         ]
17     },
18     {
19         "id": "3d687d14.a75552",
20         "type": "method",
21         "name": "method  vnf-instance-topology-rollback",
22         "xml": "<method rpc='vnf-instance-topology-rollback' mode='sync'>\n",
23         "comments": "",
24         "outputs": 1,
25         "x": 212.8611297607422,
26         "y": 108.16666316986084,
27         "z": "df9d3b3e.c0e1c8",
28         "wires": [
29             [
30                 "94c92ddd.ae5ed"
31             ]
32         ]
33     },
34     {
35         "id": "cee35ab0.d8d768",
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.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}'>",
42         "outputs": 1,
43         "x": 289.9721908569336,
44         "y": 49.05556106567383,
45         "z": "df9d3b3e.c0e1c8",
46         "wires": [
47             [
48                 "3d687d14.a75552"
49             ]
50         ]
51     },
52     {
53         "id": "561962a7.5d021c",
54         "type": "dgstart",
55         "name": "DGSTART",
56         "outputs": 1,
57         "x": 124.25,
58         "y": 48.88888740539551,
59         "z": "df9d3b3e.c0e1c8",
60         "wires": [
61             [
62                 "cee35ab0.d8d768"
63             ]
64         ]
65     },
66     {
67         "id": "1bf35c69.3105c4",
68         "type": "returnSuccess",
69         "name": "return success",
70         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
71         "comments": "",
72         "x": 922.694465637207,
73         "y": 513.4972991943359,
74         "z": "df9d3b3e.c0e1c8",
75         "wires": []
76     },
77     {
78         "id": "faa6e689.963ce8",
79         "type": "set",
80         "name": "set: order-status = Deleted",
81         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.order-status\" value=\"Deleted\"/>",
82         "comments": "",
83         "outputs": 1,
84         "x": 958.444465637207,
85         "y": 342.27510833740234,
86         "z": "df9d3b3e.c0e1c8",
87         "wires": [
88             []
89         ]
90     },
91     {
92         "id": "8bd3d099.709d5",
93         "type": "switchNode",
94         "name": "switch: order-status = PendingCreate",
95         "xml": "<switch test=\"`$vnf-instance-service-data.oper-status.order-status == PendingCreate`\">",
96         "comments": "",
97         "outputs": 1,
98         "x": 991.2854080200195,
99         "y": 256.4038906097412,
100         "z": "df9d3b3e.c0e1c8",
101         "wires": [
102             [
103                 "8b9ee3fe.e64ab"
104             ]
105         ]
106     },
107     {
108         "id": "8b9ee3fe.e64ab",
109         "type": "other",
110         "name": "false",
111         "xml": "<outcome value='false'>",
112         "comments": "",
113         "outputs": 1,
114         "x": 1222.8687896728516,
115         "y": 256.23720264434814,
116         "z": "df9d3b3e.c0e1c8",
117         "wires": [
118             [
119                 "a0d580c9.8f91a"
120             ]
121         ]
122     },
123     {
124         "id": "a0d580c9.8f91a",
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": 1375.201919555664,
130         "y": 256.2372636795044,
131         "z": "df9d3b3e.c0e1c8",
132         "wires": []
133     },
134     {
135         "id": "61bf6764.c0ee08",
136         "type": "set",
137         "name": "set: last-action ",
138         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.last-action\" value=\"`$vnf-instances-service-data.request-information.request-action`\"/>",
139         "comments": "",
140         "outputs": 1,
141         "x": 920.2021598815918,
142         "y": 384.5707015991211,
143         "z": "df9d3b3e.c0e1c8",
144         "wires": [
145             []
146         ]
147     },
148     {
149         "id": "abf35da3.aa20e",
150         "type": "outcomeFalse",
151         "name": "false",
152         "xml": "<outcome value='false'>\n",
153         "comments": "",
154         "outputs": 1,
155         "x": 1246.542984008789,
156         "y": 209.19444751739502,
157         "z": "df9d3b3e.c0e1c8",
158         "wires": [
159             [
160                 "6266141a.67c14c"
161             ]
162         ]
163     },
164     {
165         "id": "6266141a.67c14c",
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=\"`'vnf-instance-id = ' + $vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id + ' not found in SDNC'`\"/>",
169         "comments": "",
170         "x": 1406.633804321289,
171         "y": 209.6035509109497,
172         "z": "df9d3b3e.c0e1c8",
173         "wires": []
174     },
175     {
176         "id": "a6e5c1a8.6bc63",
177         "type": "set",
178         "name": "set: last-order-status = order-status",
179         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.last-order-status\" value=\"`$vnf-instance-service-data.oper-status.order-status`\"/>",
180         "comments": "",
181         "outputs": 1,
182         "x": 984.088508605957,
183         "y": 299.5959997177124,
184         "z": "df9d3b3e.c0e1c8",
185         "wires": [
186             []
187         ]
188     },
189     {
190         "id": "8e3a7d8d.ca152",
191         "type": "set",
192         "name": "Clear vnf-instance topology",
193         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.\" value=\"\" /> \n",
194         "comments": "",
195         "outputs": 1,
196         "x": 960.588508605957,
197         "y": 428.26265716552734,
198         "z": "df9d3b3e.c0e1c8",
199         "wires": [
200             []
201         ]
202     },
203     {
204         "id": "68d58b09.4d9dd4",
205         "type": "switchNode",
206         "name": "switch:CONFIG == INPUT - vnf-instance-id",
207         "xml": "<switch test=\"`$vnf-instance-topology-operation-input.vnf-instance-request-information.vnf-instance-id == $vnf-instance-service-data.vnf-instance-id`\">",
208         "comments": "",
209         "outputs": 1,
210         "x": 1002.694465637207,
211         "y": 209.19444751739502,
212         "z": "df9d3b3e.c0e1c8",
213         "wires": [
214             [
215                 "abf35da3.aa20e"
216             ]
217         ]
218     },
219     {
220         "id": "93e2a330.f35a",
221         "type": "switchNode",
222         "name": "switch: order-status = PendingCreate",
223         "xml": "<switch test=\"`$vnf-instance-service-data.oper-status.order-status == PendingCreate`\">",
224         "comments": "",
225         "outputs": 1,
226         "x": 291.94445037841797,
227         "y": 207.69445133209229,
228         "z": "df9d3b3e.c0e1c8",
229         "wires": [
230             [
231                 "ef7c4880.dd4728"
232             ]
233         ]
234     },
235     {
236         "id": "ef7c4880.dd4728",
237         "type": "other",
238         "name": "true",
239         "xml": "<outcome value='true'>",
240         "comments": "",
241         "outputs": 1,
242         "x": 528.1944427490234,
243         "y": 208.44444465637207,
244         "z": "df9d3b3e.c0e1c8",
245         "wires": [
246             [
247                 "7f540634.54f868"
248             ]
249         ]
250     },
251     {
252         "id": "7f540634.54f868",
253         "type": "block",
254         "name": "block : atomic",
255         "xml": "<block atomic=\"true\">",
256         "atomic": "true",
257         "outputs": 1,
258         "x": 690.1944427490234,
259         "y": 208.44444465637207,
260         "z": "df9d3b3e.c0e1c8",
261         "wires": [
262             [
263                 "68d58b09.4d9dd4",
264                 "8bd3d099.709d5",
265                 "a6e5c1a8.6bc63",
266                 "faa6e689.963ce8",
267                 "61bf6764.c0ee08",
268                 "8e3a7d8d.ca152",
269                 "1bf35c69.3105c4",
270                 "e3c9abe6.25d908"
271             ]
272         ]
273     },
274     {
275         "id": "34d8bebb.20ff92",
276         "type": "comment",
277         "name": "request-action = VNFActivateRequest, svc-action = rollback",
278         "info": "",
279         "comments": "",
280         "x": 787.944450378418,
281         "y": 85.4444465637207,
282         "z": "df9d3b3e.c0e1c8",
283         "wires": []
284     },
285     {
286         "id": "e3c9abe6.25d908",
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": 944.3054733276367,
293         "y": 470.55554389953613,
294         "z": "df9d3b3e.c0e1c8",
295         "wires": [
296             []
297         ]
298     }
299 ]