[SDNGC-5859] copy local change to onap
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vnf-topology-changedelete.json
1 [
2     {
3         "id": "793c9be.5fc6b64",
4         "type": "block",
5         "name": "block : atomic",
6         "xml": "<block atomic=\"true\">",
7         "atomic": "true",
8         "outputs": 1,
9         "x": 268.7654113769531,
10         "y": 201.6666717529297,
11         "z": "3dd6ebc6.a724f4",
12         "wires": [
13             [
14                 "7a4e0a99.334ed4",
15                 "e4ca79b3.d28a88",
16                 "1cd82265.55c3be",
17                 "3ae9090d.f22816",
18                 "dec0e9d5.73e028",
19                 "d825c0c4.1d4a1",
20                 "407cc4f8.57aaec",
21                 "af3c9c59.5186d"
22             ]
23         ]
24     },
25     {
26         "id": "4d73e6f.4df7218",
27         "type": "method",
28         "name": "method vnf-topology-changedelete",
29         "xml": "<method rpc='vnf-topology-changedelete' mode='sync'>\n",
30         "comments": "",
31         "outputs": 1,
32         "x": 329.4320983886719,
33         "y": 127.83333683013916,
34         "z": "3dd6ebc6.a724f4",
35         "wires": [
36             [
37                 "793c9be.5fc6b64"
38             ]
39         ]
40     },
41     {
42         "id": "7a4e0a99.334ed4",
43         "type": "switchNode",
44         "name": "switch: order-status = Active",
45         "xml": "<switch test=\"'$service-data.oper-status.order-status == Active'\">\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-->",
46         "comments": "",
47         "outputs": 1,
48         "x": 564.0987243652344,
49         "y": 259.9998321533203,
50         "z": "3dd6ebc6.a724f4",
51         "wires": [
52             [
53                 "ce1b152f.c5c3d8"
54             ]
55         ]
56     },
57     {
58         "id": "20352e7f.4c6aa2",
59         "type": "service-logic",
60         "name": "VNF-API ${project.version}",
61         "module": "VNF-API",
62         "version": "${project.version}",
63         "comments": "",
64         "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}'>",
65         "outputs": 1,
66         "x": 399.43206787109375,
67         "y": 81.83334445953369,
68         "z": "3dd6ebc6.a724f4",
69         "wires": [
70             [
71                 "4d73e6f.4df7218"
72             ]
73         ]
74     },
75     {
76         "id": "ce1b152f.c5c3d8",
77         "type": "other",
78         "name": "false",
79         "xml": "<outcome value='false'>",
80         "comments": "",
81         "outputs": 1,
82         "x": 784.4320983886719,
83         "y": 260.33314514160156,
84         "z": "3dd6ebc6.a724f4",
85         "wires": [
86             [
87                 "ba2b0430.95ba08"
88             ]
89         ]
90     },
91     {
92         "id": "6ebec187.42b24",
93         "type": "dgstart",
94         "name": "DGSTART",
95         "outputs": 1,
96         "x": 236.26541137695312,
97         "y": 81.666672706604,
98         "z": "3dd6ebc6.a724f4",
99         "wires": [
100             [
101                 "20352e7f.4c6aa2"
102             ]
103         ]
104     },
105     {
106         "id": "ba2b0430.95ba08",
107         "type": "returnFailure",
108         "name": "return failure",
109         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid last-order-status'/>",
110         "comments": "",
111         "x": 943.7652282714844,
112         "y": 260.33319091796875,
113         "z": "3dd6ebc6.a724f4",
114         "wires": []
115     },
116     {
117         "id": "e4ca79b3.d28a88",
118         "type": "set",
119         "name": "set: order-status = PendingDelete",
120         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"PendingDelete\"/>",
121         "comments": "",
122         "x": 579.265380859375,
123         "y": 421.66664123535156,
124         "z": "3dd6ebc6.a724f4",
125         "wires": [
126             []
127         ]
128     },
129     {
130         "id": "1cd82265.55c3be",
131         "type": "returnSuccess",
132         "name": "return success",
133         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />\n",
134         "comments": "",
135         "x": 525.2654113769531,
136         "y": 588.6666412353516,
137         "z": "3dd6ebc6.a724f4",
138         "wires": []
139     },
140     {
141         "id": "edf99f91.a8ecc",
142         "type": "comment",
143         "name": "Update VNF status to PendingDelete",
144         "info": "",
145         "comments": "",
146         "x": 1137.5987854003906,
147         "y": 72.55556964874268,
148         "z": "3dd6ebc6.a724f4",
149         "wires": []
150     },
151     {
152         "id": "b076f9c8.0ae248",
153         "type": "comment",
154         "name": "VNF-TOPOLOGY-CHANGEDELETE",
155         "info": "",
156         "comments": "",
157         "x": 833.1543121337891,
158         "y": 72.22222900390625,
159         "z": "3dd6ebc6.a724f4",
160         "wires": []
161     },
162     {
163         "id": "2780acb6.663784",
164         "type": "comment",
165         "name": "request-action = DisconnectVNFRequest, svc-action = changedelete",
166         "info": "",
167         "comments": "",
168         "x": 966.0431518554688,
169         "y": 108.3333387374878,
170         "z": "3dd6ebc6.a724f4",
171         "wires": []
172     },
173     {
174         "id": "d825c0c4.1d4a1",
175         "type": "set",
176         "name": "set: last-action ",
177         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>",
178         "comments": "",
179         "x": 522.2654113769531,
180         "y": 475.66664123535156,
181         "z": "3dd6ebc6.a724f4",
182         "wires": [
183             []
184         ]
185     },
186     {
187         "id": "3ae9090d.f22816",
188         "type": "switchNode",
189         "name": "switch:vnf-id   config == input",
190         "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
191         "comments": "",
192         "outputs": 1,
193         "x": 561.4018096923828,
194         "y": 202.8586196899414,
195         "z": "3dd6ebc6.a724f4",
196         "wires": [
197             [
198                 "34619221.3001ae"
199             ]
200         ]
201     },
202     {
203         "id": "34619221.3001ae",
204         "type": "outcomeFalse",
205         "name": "false",
206         "xml": "<outcome value='false'>\n",
207         "comments": "",
208         "outputs": 1,
209         "x": 783.8563232421875,
210         "y": 203.04042434692383,
211         "z": "3dd6ebc6.a724f4",
212         "wires": [
213             [
214                 "eb0b61e2.b88"
215             ]
216         ]
217     },
218     {
219         "id": "eb0b61e2.b88",
220         "type": "returnFailure",
221         "name": "return failure",
222         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='vnf-id not found'/>",
223         "comments": "",
224         "x": 941.9472274780273,
225         "y": 202.94952201843262,
226         "z": "3dd6ebc6.a724f4",
227         "wires": []
228     },
229     {
230         "id": "dec0e9d5.73e028",
231         "type": "set",
232         "name": "set: last-order-status = order-status",
233         "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>",
234         "comments": "",
235         "x": 584.4017639160156,
236         "y": 370.8585968017578,
237         "z": "3dd6ebc6.a724f4",
238         "wires": [
239             []
240         ]
241     },
242     {
243         "id": "407cc4f8.57aaec",
244         "type": "set",
245         "name": "set: service-data = input",
246         "xml": "<set>\n\t<parameter name=\"service-data.\" value=\"vnf-topology-operation-input.\" /> \n",
247         "comments": "",
248         "x": 553.4017639160156,
249         "y": 529.8585357666016,
250         "z": "3dd6ebc6.a724f4",
251         "wires": [
252             []
253         ]
254     },
255     {
256         "id": "af3c9c59.5186d",
257         "type": "save",
258         "name": "update generic-vnf status to pending-delete",
259         "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-request-information.generic-vnf-id\" \n\tforce=\"true\" \n\tlocal-only=\"false\" >\n\t<parameter name=\"orchestration-status\" value=\"pending-delete\" />\n",
260         "comments": "",
261         "outputs": 1,
262         "x": 611.7352142333984,
263         "y": 315.85854721069336,
264         "z": "3dd6ebc6.a724f4",
265         "wires": [
266             []
267         ]
268     }
269 ]