Fix VM_Start(2.0.0) and VM_Stop(2.0.0) DG
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / Appc-API_2.0.0.0_method_VSCP_UpgradePreconditionCheck.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     {
23         "id": "ce2213a9.8b1db",
24         "type": "dgstart",
25         "name": "DGSTART",
26         "outputs": 1,
27         "x": 113,
28         "y": 70,
29         "z": "3adbb6b3.ff597a",
30         "wires": [
31             [
32                 "c59f5d5e.ea6f8"
33             ]
34         ]
35     },
36     {
37         "id": "c59f5d5e.ea6f8",
38         "type": "service-logic",
39         "name": "Appc-API 2.0.0.0",
40         "module": "Appc-API",
41         "version": "2.0.0.0",
42         "comments": "",
43         "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'>",
44         "outputs": 1,
45         "x": 186,
46         "y": 123.99999237060547,
47         "z": "3adbb6b3.ff597a",
48         "wires": [
49             [
50                 "933cde30.9a082"
51             ]
52         ]
53     },
54     {
55         "id": "933cde30.9a082",
56         "type": "method",
57         "name": "VSCP_UpgradePreconditionCheck",
58         "xml": "<method rpc='VSCP_UpgradePreconditionCheck' mode='sync'>\n",
59         "comments": "",
60         "outputs": 1,
61         "x": 301,
62         "y": 174.99999237060547,
63         "z": "3adbb6b3.ff597a",
64         "wires": [
65             [
66                 "d55c4630.1bcfc8"
67             ]
68         ]
69     },
70     {
71         "id": "d55c4630.1bcfc8",
72         "type": "call",
73         "name": "call_VSCP_HealthCheck",
74         "xml": "<call rpc='VSCP_HealthCheck' mode='sync' version='2.0.0.0' >\n",
75         "comments": "",
76         "outputs": 1,
77         "x": 347,
78         "y": 239.99999237060547,
79         "z": "3adbb6b3.ff597a",
80         "wires": [
81             [
82                 "77b0172.d053ce8",
83                 "136d1da3.0df512"
84             ]
85         ]
86     },
87     {
88         "id": "136d1da3.0df512",
89         "type": "success",
90         "name": "success",
91         "xml": "<outcome value='success'>\n",
92         "comments": "",
93         "outputs": 1,
94         "x": 549.9999694824219,
95         "y": 286.99999237060547,
96         "z": "3adbb6b3.ff597a",
97         "wires": [
98             [
99                 "85331eac.44b8c"
100             ]
101         ]
102     },
103     {
104         "id": "77b0172.d053ce8",
105         "type": "other",
106         "name": "other",
107         "xml": "<outcome value='Other'>\n",
108         "comments": "",
109         "outputs": 1,
110         "x": 541.9999694824219,
111         "y": 239.99999237060547,
112         "z": "3adbb6b3.ff597a",
113         "wires": [
114             [
115                 "631a551d.c6b7bc"
116             ]
117         ]
118     },
119     {
120         "id": "631a551d.c6b7bc",
121         "type": "execute",
122         "name": "execute: handleErrorToDCAE",
123         "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",
124         "comments": "",
125         "outputs": 1,
126         "x": 986,
127         "y": 345.9999694824219,
128         "z": "3adbb6b3.ff597a",
129         "wires": [
130             [
131                 "8d35aa54.0046a8"
132             ]
133         ]
134     },
135     {
136         "id": "1290b9ad.560676",
137         "type": "returnFailure",
138         "name": "return failure",
139         "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'/>\n",
140         "comments": "",
141         "x": 1343,
142         "y": 346.0000305175781,
143         "z": "3adbb6b3.ff597a",
144         "wires": []
145     },
146     {
147         "id": "85331eac.44b8c",
148         "type": "execute",
149         "name": "Execute: PreUpgradeHealthCheck",
150         "xml": "<execute plugin='com.att.appc.dg.vSCP.v3_5_5.VSCPDGUtils' method='executePreUpgradeHealthCheck'>\n<parameter name=\"connection-details\" value=\"`$connection-details`\" />",
151         "comments": "",
152         "outputs": 1,
153         "x": 311.9999694824219,
154         "y": 384.0000305175781,
155         "z": "3adbb6b3.ff597a",
156         "wires": [
157             [
158                 "668bbccc.14b154",
159                 "4e1ac240.56a37c"
160             ]
161         ]
162     },
163     {
164         "id": "4e1ac240.56a37c",
165         "type": "success",
166         "name": "success",
167         "xml": "<outcome value='success'>\n",
168         "comments": "",
169         "outputs": 1,
170         "x": 551,
171         "y": 398.0000305175781,
172         "z": "3adbb6b3.ff597a",
173         "wires": [
174             [
175                 "5d443bdd.126684"
176             ]
177         ]
178     },
179     {
180         "id": "668bbccc.14b154",
181         "type": "other",
182         "name": "other",
183         "xml": "<outcome value='Other'>\n",
184         "comments": "",
185         "outputs": 1,
186         "x": 548,
187         "y": 344,
188         "z": "3adbb6b3.ff597a",
189         "wires": [
190             [
191                 "6efa56e5.3d01c8"
192             ]
193         ]
194     },
195     {
196         "id": "5d443bdd.126684",
197         "type": "returnSuccess",
198         "name": "return success",
199         "xml": "<return status='success'>\n<parameter name='error-code' value='400' />\n",
200         "comments": "",
201         "x": 731,
202         "y": 401.0000305175781,
203         "z": "3adbb6b3.ff597a",
204         "wires": []
205     },
206     {
207         "id": "6efa56e5.3d01c8",
208         "type": "block",
209         "name": "block",
210         "xml": "<block>\n",
211         "atomic": "false",
212         "comments": "",
213         "outputs": 1,
214         "x": 716,
215         "y": 345,
216         "z": "3adbb6b3.ff597a",
217         "wires": [
218             [
219                 "631a551d.c6b7bc",
220                 "d51f8ea3.b2afc"
221             ]
222         ]
223     },
224     {
225         "id": "8d35aa54.0046a8",
226         "type": "success",
227         "name": "success",
228         "xml": "<outcome value='success'>\n",
229         "comments": "",
230         "outputs": 1,
231         "x": 1192,
232         "y": 346,
233         "z": "3adbb6b3.ff597a",
234         "wires": [
235             [
236                 "1290b9ad.560676"
237             ]
238         ]
239     },
240     {
241         "id": "d51f8ea3.b2afc",
242         "type": "set",
243         "name": "set",
244         "xml": "<set>\n<parameter name='error-message' value='Failed to retrieve SSH credentials' />\n",
245         "comments": "",
246         "x": 911,
247         "y": 297,
248         "z": "3adbb6b3.ff597a",
249         "wires": []
250     }
251 ]