1d3d454b3b2c7ba9901847a401401834329d3dfe
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vnf-topology-rollback.json
1 [
2     {
3         "id": "91e51a78.f2f898",
4         "type": "comment",
5         "name": "vnf-topology-rollback",
6         "info": "",
7         "comments": "",
8         "x": 744.3209228515625,
9         "y": 66.54320526123047,
10         "z": "da6e10f.d63acf",
11         "wires": []
12     },
13     {
14         "id": "cf768572.2720b8",
15         "type": "block",
16         "name": "block : atomic",
17         "xml": "<block atomic=\"true\">",
18         "atomic": "true",
19         "outputs": 1,
20         "x": 167.79322814941406,
21         "y": 531.182092666626,
22         "z": "da6e10f.d63acf",
23         "wires": [
24             [
25                 "38ee8eff.5172c2"
26             ]
27         ]
28     },
29     {
30         "id": "685886bd.6497f8",
31         "type": "method",
32         "name": "method vnf-topology-rollback",
33         "xml": "<method rpc='vnf-topology-rollback' mode='sync'>\n",
34         "comments": "",
35         "outputs": 1,
36         "x": 180.65435028076172,
37         "y": 125.26542377471924,
38         "z": "da6e10f.d63acf",
39         "wires": [
40             [
41                 "e765cc09.203e5"
42             ]
43         ]
44     },
45     {
46         "id": "9497dff0.cd216",
47         "type": "service-logic",
48         "name": "VNF-API ${project.version}",
49         "module": "VNF-API",
50         "version": "${project.version}",
51         "comments": "",
52         "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}'>",
53         "outputs": 1,
54         "x": 329.6543884277344,
55         "y": 77.15432167053223,
56         "z": "da6e10f.d63acf",
57         "wires": [
58             [
59                 "685886bd.6497f8"
60             ]
61         ]
62     },
63     {
64         "id": "bd68af1b.bf9c3",
65         "type": "dgstart",
66         "name": "DGSTART",
67         "outputs": 1,
68         "x": 126.48766326904297,
69         "y": 77.09875869750977,
70         "z": "da6e10f.d63acf",
71         "wires": [
72             [
73                 "9497dff0.cd216"
74             ]
75         ]
76     },
77     {
78         "id": "cdbdf7d4.379e78",
79         "type": "returnSuccess",
80         "name": "return success",
81         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
82         "comments": "",
83         "x": 489.3766670227051,
84         "y": 447.2627954483032,
85         "z": "da6e10f.d63acf",
86         "wires": []
87     },
88     {
89         "id": "c94fe78d.f21d78",
90         "type": "set",
91         "name": "set: order-status = Deleted",
92         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Deleted\"/>",
93         "comments": "",
94         "x": 526.2377548217773,
95         "y": 318.2627754211426,
96         "z": "da6e10f.d63acf",
97         "wires": []
98     },
99     {
100         "id": "77ddff10.81a9e",
101         "type": "switchNode",
102         "name": "switch: order-status = PendingCreate",
103         "xml": "<switch test=\"`$service-data.oper-status.order-status == PendingCreate`\">",
104         "comments": "",
105         "outputs": 1,
106         "x": 559.0786972045898,
107         "y": 232.39155769348145,
108         "z": "da6e10f.d63acf",
109         "wires": [
110             [
111                 "1dbee524.28393b"
112             ]
113         ]
114     },
115     {
116         "id": "1dbee524.28393b",
117         "type": "other",
118         "name": "false",
119         "xml": "<outcome value='false'>",
120         "comments": "",
121         "outputs": 1,
122         "x": 790.6620788574219,
123         "y": 232.22486972808838,
124         "z": "da6e10f.d63acf",
125         "wires": [
126             [
127                 "a0f6ee02.fe089"
128             ]
129         ]
130     },
131     {
132         "id": "a0f6ee02.fe089",
133         "type": "returnFailure",
134         "name": "return failure",
135         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
136         "comments": "",
137         "x": 942.9952087402344,
138         "y": 232.22493076324463,
139         "z": "da6e10f.d63acf",
140         "wires": []
141     },
142     {
143         "id": "712c6030.e56b2",
144         "type": "set",
145         "name": "set: last-action ",
146         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>",
147         "comments": "",
148         "x": 487.9954490661621,
149         "y": 360.5583686828613,
150         "z": "da6e10f.d63acf",
151         "wires": []
152     },
153     {
154         "id": "aa95e846.1b2478",
155         "type": "outcomeFalse",
156         "name": "false",
157         "xml": "<outcome value='false'>\n",
158         "comments": "",
159         "outputs": 1,
160         "x": 779.3362731933594,
161         "y": 185.18211460113525,
162         "z": "da6e10f.d63acf",
163         "wires": [
164             [
165                 "4527a17.6e2476"
166             ]
167         ]
168     },
169     {
170         "id": "4527a17.6e2476",
171         "type": "returnFailure",
172         "name": "return failure",
173         "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'`\"/>",
174         "comments": "",
175         "x": 942.4270935058594,
176         "y": 185.59121799468994,
177         "z": "da6e10f.d63acf",
178         "wires": []
179     },
180     {
181         "id": "9ab6d07b.bdd0c",
182         "type": "set",
183         "name": "set: last-order-status = order-status",
184         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>",
185         "comments": "",
186         "x": 552.8817977905273,
187         "y": 275.25032234191895,
188         "z": "da6e10f.d63acf",
189         "wires": []
190     },
191     {
192         "id": "95a16bfa.1fed78",
193         "type": "set",
194         "name": "Clear vnf topology",
195         "xml": "<set>\n\t<parameter name=\"service-data.\" value=\"\" /> \n",
196         "comments": "",
197         "x": 500.2707099914551,
198         "y": 404.2503433227539,
199         "z": "da6e10f.d63acf",
200         "wires": []
201     },
202     {
203         "id": "52c9c127.4c5ea",
204         "type": "switchNode",
205         "name": "switch:CONFIG == INPUT - vnf-id",
206         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
207         "comments": "",
208         "outputs": 1,
209         "x": 548.4877548217773,
210         "y": 185.18211460113525,
211         "z": "da6e10f.d63acf",
212         "wires": [
213             [
214                 "aa95e846.1b2478"
215             ]
216         ]
217     },
218     {
219         "id": "38ee8eff.5172c2",
220         "type": "switchNode",
221         "name": "switch: order-status = PendingCreate",
222         "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-->",
223         "comments": "",
224         "outputs": 1,
225         "x": 275.2932357788086,
226         "y": 578.1265535354614,
227         "z": "da6e10f.d63acf",
228         "wires": [
229             [
230                 "3321b25c.99345e"
231             ]
232         ]
233     },
234     {
235         "id": "3321b25c.99345e",
236         "type": "other",
237         "name": "true",
238         "xml": "<outcome value='true'>",
239         "comments": "",
240         "outputs": 1,
241         "x": 511.54322814941406,
242         "y": 578.8765468597412,
243         "z": "da6e10f.d63acf",
244         "wires": [
245             []
246         ]
247     },
248     {
249         "id": "e765cc09.203e5",
250         "type": "block",
251         "name": "block : atomic",
252         "xml": "<block atomic=\"true\">",
253         "atomic": "true",
254         "outputs": 1,
255         "x": 257.98773193359375,
256         "y": 184.4321117401123,
257         "z": "da6e10f.d63acf",
258         "wires": [
259             [
260                 "52c9c127.4c5ea",
261                 "77ddff10.81a9e",
262                 "9ab6d07b.bdd0c",
263                 "c94fe78d.f21d78",
264                 "712c6030.e56b2",
265                 "95a16bfa.1fed78",
266                 "cdbdf7d4.379e78"
267             ]
268         ]
269     },
270     {
271         "id": "a864c3f6.a048c",
272         "type": "comment",
273         "name": "request-action = VNFActivateRequest, svc-action = rollback",
274         "info": "",
275         "comments": "",
276         "x": 755.7376708984375,
277         "y": 102.5432071685791,
278         "z": "da6e10f.d63acf",
279         "wires": []
280     },
281     {
282         "id": "5b757381.4bc8ac",
283         "type": "comment",
284         "name": "Removing the redundent check",
285         "info": "ks220y: it's being checked at node 3",
286         "comments": "",
287         "x": 217.65431213378906,
288         "y": 490.987642288208,
289         "z": "da6e10f.d63acf",
290         "wires": []
291     }
292 ]