003fc187bd377ed800661c0dfa000604da0da969
[appc.git] /
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": "e30b7047.c8c7b",
23     "type": "execute",
24     "name": "execute: flatAndAddToContext",
25     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
26     "comments": "",
27     "outputs": 1,
28     "x": 473.75,
29     "y": 315,
30     "z": "822325c1.dd7df8",
31     "wires": [["32e6aaee.9b6a36",
32         "e32b0726.3df2c8"]]
33 },
34     {
35         "id": "32e6aaee.9b6a36",
36         "type": "success",
37         "name": "success",
38         "xml": "<outcome value='success'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 693.7499694824219,
42         "y": 349,
43         "z": "822325c1.dd7df8",
44         "wires": [["83239337.5a415"]]
45     },
46     {
47         "id": "e32b0726.3df2c8",
48         "type": "other",
49         "name": "other",
50         "xml": "<outcome value='Other'>\n",
51         "comments": "",
52         "outputs": 1,
53         "x": 682.7499694824219,
54         "y": 301,
55         "z": "822325c1.dd7df8",
56         "wires": [["52e82bf7.a1e6b4"]]
57     },
58     {
59         "id": "eb520291.dd81f",
60         "type": "dgstart",
61         "name": "DGSTART",
62         "outputs": 1,
63         "x": 178.75,
64         "y": 140,
65         "z": "822325c1.dd7df8",
66         "wires": [["7d65d4d5.ab461c"]]
67     },
68     {
69         "id": "7d65d4d5.ab461c",
70         "type": "service-logic",
71         "name": "Appc-API 2.0.0.0",
72         "module": "Appc-API",
73         "version": "2.0.0.0",
74         "comments": "",
75         "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'>",
76         "outputs": 1,
77         "x": 284.75,
78         "y": 197,
79         "z": "822325c1.dd7df8",
80         "wires": [["37c9d8bc.8d9b88"]]
81     },
82     {
83         "id": "37c9d8bc.8d9b88",
84         "type": "method",
85         "name": "VSCP_LiveUpgrade",
86         "xml": "<method rpc='VSCP_LiveUpgrade' mode='sync'>\n",
87         "comments": "",
88         "outputs": 1,
89         "x": 375.75,
90         "y": 258.99999237060547,
91         "z": "822325c1.dd7df8",
92         "wires": [["e30b7047.c8c7b"]]
93     },
94     {
95         "id": "804247b9.b06658",
96         "type": "returnSuccess",
97         "name": "return success",
98         "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='error-message' value=\"success in Upgrade\" />\n",
99         "comments": "",
100         "x": 1280.1944198608398,
101         "y": 766.6666898727417,
102         "z": "822325c1.dd7df8",
103         "wires": []
104     },
105     {
106         "id": "52e82bf7.a1e6b4",
107         "type": "execute",
108         "name": "execute: handleErrorToDCAE",
109         "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=\"`$org.openecomp.appc.dg.error`\" />\n",
110         "comments": "",
111         "outputs": 1,
112         "x": 1100.638900756836,
113         "y": 327.9999599456787,
114         "z": "822325c1.dd7df8",
115         "wires": [["83a57cf0.ab1d9"]]
116     },
117     {
118         "id": "d4e3b7fe.4d6b28",
119         "type": "returnFailure",
120         "name": "return failure",
121         "xml": "<return status='failure'>\n<parameter name='error-code' value=\"401\" />\n<parameter name='error-message' value=\"`$org.openecomp.appc.dg.error`\" />\n<parameter name='output.status.code' value='401'/>\n",
122         "comments": "",
123         "x": 1452.41650390625,
124         "y": 328.44439697265625,
125         "z": "822325c1.dd7df8",
126         "wires": []
127     },
128     {
129         "id": "6711af89.05acc",
130         "type": "execute",
131         "name": "execute: liveUpgrade",
132         "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='liveUpgrade' >\n<parameter name=\"upgrade-version\" value=\"`$upgrade-version`\" />\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />\n<parameter name=\"Skip-execution-installer-bin-file\" value=\"`$Skip-execution-installer-bin-file`\" />\n<parameter name=\"Skip-deploy\" value=\"`$Skip-deploy`\" />\n<parameter name=\"timeout\" value=\"`$timeout`\" />\n\n\n",
133         "comments": "",
134         "outputs": 1,
135         "x": 919.5277938842773,
136         "y": 716.8888883590698,
137         "z": "822325c1.dd7df8",
138         "wires": [["c3be342b.05c078",
139             "174e8a05.944846"]]
140     },
141     {
142         "id": "174e8a05.944846",
143         "type": "other",
144         "name": "other",
145         "xml": "<outcome value='Other'>\n",
146         "comments": "",
147         "outputs": 1,
148         "x": 1108.1944198608398,
149         "y": 716.6666593551636,
150         "z": "822325c1.dd7df8",
151         "wires": [["52e82bf7.a1e6b4"]]
152     },
153     {
154         "id": "c3be342b.05c078",
155         "type": "success",
156         "name": "success",
157         "xml": "<outcome value='success'>\n",
158         "comments": "",
159         "outputs": 1,
160         "x": 1113.1944198608398,
161         "y": 767.6666898727417,
162         "z": "822325c1.dd7df8",
163         "wires": [["804247b9.b06658"]]
164     },
165     {
166         "id": "9e7f2be9.363dc8",
167         "type": "execute",
168         "name": "execute: retrieveConnectionDetails",
169         "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",
170         "comments": "",
171         "outputs": 1,
172         "x": 828.0833129882812,
173         "y": 606.222282409668,
174         "z": "822325c1.dd7df8",
175         "wires": [["beb31231.140ba",
176             "e66ec871.d79678"]]
177     },
178     {
179         "id": "beb31231.140ba",
180         "type": "other",
181         "name": "other",
182         "xml": "<outcome value='Other'>\n",
183         "comments": "",
184         "outputs": 1,
185         "x": 1043.75,
186         "y": 583.0000228881836,
187         "z": "822325c1.dd7df8",
188         "wires": [["52e82bf7.a1e6b4"]]
189     },
190     {
191         "id": "e66ec871.d79678",
192         "type": "success",
193         "name": "success",
194         "xml": "<outcome value='success'>\n",
195         "comments": "",
196         "outputs": 1,
197         "x": 1044.9722862243652,
198         "y": 632.2222585678101,
199         "z": "822325c1.dd7df8",
200         "wires": [["6711af89.05acc"]]
201     },
202     {
203         "id": "36c1a02b.a44c5",
204         "type": "success",
205         "name": "success",
206         "xml": "<outcome value='success'>\n",
207         "comments": "",
208         "outputs": 1,
209         "x": 856.7499694824219,
210         "y": 515,
211         "z": "822325c1.dd7df8",
212         "wires": [["9e7f2be9.363dc8"]]
213     },
214     {
215         "id": "ae425047.deb98",
216         "type": "other",
217         "name": "other",
218         "xml": "<outcome value='Other'>\n",
219         "comments": "",
220         "outputs": 1,
221         "x": 859.7499694824219,
222         "y": 463.00001525878906,
223         "z": "822325c1.dd7df8",
224         "wires": [["52e82bf7.a1e6b4"]]
225     },
226     {
227         "id": "83239337.5a415",
228         "type": "block",
229         "name": "block : atomic",
230         "xml": "<block atomic='true'>",
231         "atomic": "true",
232         "comments": "",
233         "outputs": 1,
234         "x": 532.7500305175781,
235         "y": 424.00001525878906,
236         "z": "822325c1.dd7df8",
237         "wires": [["130fd187.c9cb5e",
238             "2cd2b34d.4a7c9c"]]
239     },
240     {
241         "id": "130fd187.c9cb5e",
242         "type": "set",
243         "name": "set",
244         "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",
245         "comments": "",
246         "x": 698.75,
247         "y": 424.0000228881836,
248         "z": "822325c1.dd7df8",
249         "wires": []
250     },
251     {
252         "id": "2cd2b34d.4a7c9c",
253         "type": "execute",
254         "name": "execute: getVNFData",
255         "xml": "<execute plugin='org.openecomp.appc.dg.aai.AAIPlugin' method='getGenericVnfData' >",
256         "comments": "",
257         "outputs": 1,
258         "x": 653.7500152587891,
259         "y": 491.0000686645508,
260         "z": "822325c1.dd7df8",
261         "wires": [["ae425047.deb98",
262             "36c1a02b.a44c5"]]
263     },
264     {
265         "id": "83a57cf0.ab1d9",
266         "type": "success",
267         "name": "success",
268         "xml": "<outcome value='success'>\n",
269         "comments": "",
270         "outputs": 1,
271         "x": 1299.75,
272         "y": 328,
273         "z": "822325c1.dd7df8",
274         "wires": [["d4e3b7fe.4d6b28"]]
275     }]