Initial add of appc-directed-graph bundles
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / Appc-API_2.0.0.0_method_VSCP_SoftwareUpload.json
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property.  All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 [{
22     "id": "64f09cfb.65f934",
23     "type": "dgstart",
24     "name": "DGSTART",
25     "outputs": 1,
26     "x": 123.75,
27     "y": 96,
28     "z": "c82a79e8.e87b78",
29     "wires": [["89378c24.7257"]]
30 },
31     {
32         "id": "89378c24.7257",
33         "type": "service-logic",
34         "name": "Appc-API 2.0.0.0",
35         "module": "Appc-API",
36         "version": "2.0.0.0",
37         "comments": "",
38         "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='Appc-API' version='2.0.0.0'>",
39         "outputs": 1,
40         "x": 289.75000381469727,
41         "y": 97.00000762939453,
42         "z": "c82a79e8.e87b78",
43         "wires": [["ba19fcdd.41804"]]
44     },
45     {
46         "id": "ba19fcdd.41804",
47         "type": "method",
48         "name": "VSCP_SoftwareUpload",
49         "xml": "<method rpc='VSCP_SoftwareUpload' mode='sync'>\n",
50         "comments": "",
51         "outputs": 1,
52         "x": 340.75000381469727,
53         "y": 151.9999771118164,
54         "z": "c82a79e8.e87b78",
55         "wires": [["5ec41e43.b3427"]]
56     },
57     {
58         "id": "d64712c6.1e102",
59         "type": "returnFailure",
60         "name": "return failure",
61         "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n<parameter name='output.status.code' value='401'/>",
62         "comments": "",
63         "x": 2084.75,
64         "y": 330.0001220703125,
65         "z": "c82a79e8.e87b78",
66         "wires": []
67     },
68     {
69         "id": "c7104b30.9f8748",
70         "type": "returnSuccess",
71         "name": "return success",
72         "xml": "<return status='success'>\n<parameter name='error-code' value='400' />\n",
73         "comments": "",
74         "x": 2017.749912261963,
75         "y": 678.000129699707,
76         "z": "c82a79e8.e87b78",
77         "wires": []
78     },
79     {
80         "id": "1d1d05aa.1712aa",
81         "type": "execute",
82         "name": "execute: handleErrorToDCAE",
83         "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"org.openecomp.appc.dg.error\" value=\"`$org.openecomp.appc.dg.error`\" />\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
84         "comments": "",
85         "outputs": 1,
86         "x": 1722.749942779541,
87         "y": 332.00012969970703,
88         "z": "c82a79e8.e87b78",
89         "wires": [["a7d06ef5.ab8e1"]]
90     },
91     {
92         "id": "457ba9cf.7006a8",
93         "type": "execute",
94         "name": "execute: retrieveConnectionDetails",
95         "xml": "<execute plugin='org.openecomp.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n",
96         "comments": "",
97         "outputs": 1,
98         "x": 1236.7498512268066,
99         "y": 667.0001831054688,
100         "z": "c82a79e8.e87b78",
101         "wires": [["c5cf7972.aa19a8",
102             "3fd4e7ce.48fc38"]]
103     },
104     {
105         "id": "3fd4e7ce.48fc38",
106         "type": "other",
107         "name": "other",
108         "xml": "<outcome value='Other'>\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 1524.7498512268066,
112         "y": 655.0001373291016,
113         "z": "c82a79e8.e87b78",
114         "wires": [["1d1d05aa.1712aa"]]
115     },
116     {
117         "id": "c5cf7972.aa19a8",
118         "type": "success",
119         "name": "success",
120         "xml": "<outcome value='success'>\n",
121         "comments": "",
122         "outputs": 1,
123         "x": 1537.7498512268066,
124         "y": 702.0001373291016,
125         "z": "c82a79e8.e87b78",
126         "wires": [["6a8d06b2.533f18"]]
127     },
128     {
129         "id": "92a57ed9.e2bc2",
130         "type": "other",
131         "name": "other",
132         "xml": "<outcome value='Other'>\n",
133         "comments": "",
134         "outputs": 1,
135         "x": 1845.749912261963,
136         "y": 636.000129699707,
137         "z": "c82a79e8.e87b78",
138         "wires": [["1d1d05aa.1712aa"]]
139     },
140     {
141         "id": "9c548b9d.bbb638",
142         "type": "success",
143         "name": "success",
144         "xml": "<outcome value='success'>\n",
145         "comments": "",
146         "outputs": 1,
147         "x": 1852.749912261963,
148         "y": 678.000129699707,
149         "z": "c82a79e8.e87b78",
150         "wires": [["c7104b30.9f8748"]]
151     },
152     {
153         "id": "6a8d06b2.533f18",
154         "type": "execute",
155         "name": "executeUpload",
156         "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='executeUpload'>\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"source-file-url\" value=\"`$source-file-url`\" />\n<parameter name=\"timeout\" value=\"`$timeout`\" />",
157         "comments": "",
158         "outputs": 1,
159         "x": 1714.7499732971191,
160         "y": 666.0001373291016,
161         "z": "c82a79e8.e87b78",
162         "wires": [["92a57ed9.e2bc2",
163             "9c548b9d.bbb638"]]
164     },
165     {
166         "id": "4ad2faef.9c5264",
167         "type": "call",
168         "name": "call_VSCP_UpgradePreconditionCheck",
169         "xml": "<call rpc='VSCP_UpgradePreconditionCheck' mode='sync' version='2.0.0.0' >\n",
170         "comments": "",
171         "outputs": 1,
172         "x": 759.749942779541,
173         "y": 423.0000991821289,
174         "z": "c82a79e8.e87b78",
175         "wires": [["5788fb68.1d3114",
176             "5289eab5.3ed8d4"]]
177     },
178     {
179         "id": "5788fb68.1d3114",
180         "type": "other",
181         "name": "other",
182         "xml": "<outcome value='Other'>\n",
183         "comments": "",
184         "outputs": 1,
185         "x": 983.749942779541,
186         "y": 403.0000991821289,
187         "z": "c82a79e8.e87b78",
188         "wires": [["1d1d05aa.1712aa"]]
189     },
190     {
191         "id": "5289eab5.3ed8d4",
192         "type": "success",
193         "name": "success",
194         "xml": "<outcome value='success'>\n",
195         "comments": "",
196         "outputs": 1,
197         "x": 989.749942779541,
198         "y": 456.0000991821289,
199         "z": "c82a79e8.e87b78",
200         "wires": [["e9d1e289.2189c"]]
201     },
202     {
203         "id": "5ec41e43.b3427",
204         "type": "execute",
205         "name": "execute: flatAndAddToContext",
206         "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
207         "comments": "",
208         "outputs": 1,
209         "x": 418.74997329711914,
210         "y": 201.9999771118164,
211         "z": "c82a79e8.e87b78",
212         "wires": [["ecbcc2c5.a3e3",
213             "315df407.1e37bc"]]
214     },
215     {
216         "id": "315df407.1e37bc",
217         "type": "success",
218         "name": "success",
219         "xml": "<outcome value='success'>\n",
220         "comments": "",
221         "outputs": 1,
222         "x": 642.7498207092285,
223         "y": 224.00000762939453,
224         "z": "c82a79e8.e87b78",
225         "wires": [["8a0677d8.02aee8"]]
226     },
227     {
228         "id": "ecbcc2c5.a3e3",
229         "type": "other",
230         "name": "other",
231         "xml": "<outcome value='Other'>\n",
232         "comments": "",
233         "outputs": 1,
234         "x": 635.749942779541,
235         "y": 174.00000762939453,
236         "z": "c82a79e8.e87b78",
237         "wires": [["1d1d05aa.1712aa"]]
238     },
239     {
240         "id": "f6093e6d.21ba",
241         "type": "success",
242         "name": "success",
243         "xml": "<outcome value='success'>\n",
244         "comments": "",
245         "outputs": 1,
246         "x": 798.7499122619629,
247         "y": 362.0000228881836,
248         "z": "c82a79e8.e87b78",
249         "wires": [["4ad2faef.9c5264"]]
250     },
251     {
252         "id": "5757eca4.d4a414",
253         "type": "other",
254         "name": "other",
255         "xml": "<outcome value='Other'>\n",
256         "comments": "",
257         "outputs": 1,
258         "x": 801.7499122619629,
259         "y": 310.00003814697266,
260         "z": "c82a79e8.e87b78",
261         "wires": [["1d1d05aa.1712aa"]]
262     },
263     {
264         "id": "8a0677d8.02aee8",
265         "type": "block",
266         "name": "block : atomic",
267         "xml": "<block atomic='true'>",
268         "atomic": "true",
269         "comments": "",
270         "outputs": 1,
271         "x": 474.74997329711914,
272         "y": 271.00003814697266,
273         "z": "c82a79e8.e87b78",
274         "wires": [["54f1eab.e4bcc14",
275             "a7c355e0.0616b8"]]
276     },
277     {
278         "id": "54f1eab.e4bcc14",
279         "type": "set",
280         "name": "set",
281         "xml": "<set>\n\t<parameter name='aai.vnfID' value='`$input.action-identifiers.vnf-id`' />\n\t<parameter name='aai.prefix' value='aai.input.data' />\t",
282         "comments": "",
283         "x": 640.749942779541,
284         "y": 271.0000686645508,
285         "z": "c82a79e8.e87b78",
286         "wires": []
287     },
288     {
289         "id": "a7c355e0.0616b8",
290         "type": "execute",
291         "name": "execute: getVNFData",
292         "xml": "<execute plugin='org.openecomp.appc.dg.aai.AAIPlugin' method='getGenericVnfData' >",
293         "comments": "",
294         "outputs": 1,
295         "x": 595.7499580383301,
296         "y": 338.0000915527344,
297         "z": "c82a79e8.e87b78",
298         "wires": [["5757eca4.d4a414",
299             "f6093e6d.21ba"]]
300     },
301     {
302         "id": "e9d1e289.2189c",
303         "type": "execute",
304         "name": "execute: retrieveConnectionDetails",
305         "xml": "<execute plugin='org.openecomp.appc.dg.ssh.SshDBPlugin' method='retrieveConnectionDetails' >\n<parameter name=\"vnf-host-ip-address\" value=\"`$vnf-host-ip-address`\" />\n<parameter name='vnf-type' value=\"`$aai.input.data.vnf-type`\" />\n",
306         "comments": "",
307         "outputs": 1,
308         "x": 1190.0832710266113,
309         "y": 558.0001220703125,
310         "z": "c82a79e8.e87b78",
311         "wires": [["98e434ab.bc9368",
312             "c4bcc02d.c078d"]]
313     },
314     {
315         "id": "98e434ab.bc9368",
316         "type": "other",
317         "name": "other",
318         "xml": "<outcome value='Other'>\n",
319         "comments": "",
320         "outputs": 1,
321         "x": 1425.749942779541,
322         "y": 519.0000381469727,
323         "z": "c82a79e8.e87b78",
324         "wires": [["1d1d05aa.1712aa"]]
325     },
326     {
327         "id": "c4bcc02d.c078d",
328         "type": "success",
329         "name": "success",
330         "xml": "<outcome value='success'>\n",
331         "comments": "",
332         "outputs": 1,
333         "x": 1428.7498817443848,
334         "y": 574.0000991821289,
335         "z": "c82a79e8.e87b78",
336         "wires": [["457ba9cf.7006a8"]]
337     },
338     {
339         "id": "a7d06ef5.ab8e1",
340         "type": "success",
341         "name": "success",
342         "xml": "<outcome value='success'>\n",
343         "comments": "",
344         "outputs": 1,
345         "x": 1932.75,
346         "y": 331,
347         "z": "c82a79e8.e87b78",
348         "wires": [["d64712c6.1e102"]]
349     }]