4ec3a58c967c827e82e7c1ddbb09c1c570ee768e
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_RebuildVM.json
1 [\r
2     {\r
3         "id": "e426d1a4.04b0b",\r
4         "type": "service-logic",\r
5         "name": "APPC 2.0.0",\r
6         "module": "APPC",\r
7         "version": "2.0.0",\r
8         "comments": "",\r
9         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>",\r
10         "outputs": 1,\r
11         "x": 281.75,\r
12         "y": 295,\r
13         "z": "734c8384.84e874",\r
14         "wires": [\r
15             [\r
16                 "f11dad1d.996b88"\r
17             ]\r
18         ]\r
19     },\r
20     {\r
21         "id": "b1ce76a2.53d928",\r
22         "type": "dgstart",\r
23         "name": "DGSTART",\r
24         "outputs": 1,\r
25         "x": 288.75,\r
26         "y": 245,\r
27         "z": "734c8384.84e874",\r
28         "wires": [\r
29             [\r
30                 "e426d1a4.04b0b"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "5bf06fcf.867b98",\r
36         "type": "execute",\r
37         "name": "rebuildServer()",\r
38         "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='rebuildServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\"/>\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />\n<parameter name=\"org.onap.appc.skiphypervisorcheck\" value=\"`$skip-hypervisor-check`\" />",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 722.7499694824219,\r
42         "y": 348,\r
43         "z": "734c8384.84e874",\r
44         "wires": [\r
45             [\r
46                 "7d4aacf6.6c04fc",\r
47                 "4916b7b8.2d8468"\r
48             ]\r
49         ]\r
50     },\r
51     {\r
52         "id": "7d4aacf6.6c04fc",\r
53         "type": "success",\r
54         "name": "success",\r
55         "xml": "<outcome value='success'>\n",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 866.7499694824219,\r
59         "y": 403,\r
60         "z": "734c8384.84e874",\r
61         "wires": [\r
62             [\r
63                 "e3c23dad.ae06a"\r
64             ]\r
65         ]\r
66     },\r
67     {\r
68         "id": "4916b7b8.2d8468",\r
69         "type": "other",\r
70         "name": "other",\r
71         "xml": "<outcome value='Other'>\n",\r
72         "comments": "",\r
73         "outputs": 1,\r
74         "x": 835.7499694824219,\r
75         "y": 225,\r
76         "z": "734c8384.84e874",\r
77         "wires": [\r
78             [\r
79                 "dc58c2ba.2db078"\r
80             ]\r
81         ]\r
82     },\r
83     {\r
84         "id": "4eeee11d.fb26f",\r
85         "type": "block",\r
86         "name": "block",\r
87         "xml": "<block>\n",\r
88         "atomic": "false",\r
89         "comments": "",\r
90         "outputs": 1,\r
91         "x": 571.75,\r
92         "y": 294.8833312988281,\r
93         "z": "734c8384.84e874",\r
94         "wires": [\r
95             [\r
96                 "2c303534.0f7902",\r
97                 "5bf06fcf.867b98",\r
98                 "f2e4ec01.884618"\r
99             ]\r
100         ]\r
101     },\r
102     {\r
103         "id": "2c303534.0f7902",\r
104         "type": "record",\r
105         "name": "record",\r
106         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id = '+ $vm-id`\" />",\r
107         "comments": "",\r
108         "outputs": 1,\r
109         "x": 701.7499694824219,\r
110         "y": 295.8833312988281,\r
111         "z": "734c8384.84e874",\r
112         "wires": [\r
113             []\r
114         ]\r
115     },\r
116     {\r
117         "id": "6e491f05.7959",\r
118         "type": "returnFailure",\r
119         "name": "return failure",\r
120         "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC Rebuild not found' />",\r
121         "comments": "",\r
122         "x": 1120.7499694824219,\r
123         "y": 226.88333129882812,\r
124         "z": "734c8384.84e874",\r
125         "wires": []\r
126     },\r
127     {\r
128         "id": "dc58c2ba.2db078",\r
129         "type": "block",\r
130         "name": "block",\r
131         "xml": "<block>\n",\r
132         "atomic": "false",\r
133         "comments": "",\r
134         "outputs": 1,\r
135         "x": 973.7499694824219,\r
136         "y": 226.88333129882812,\r
137         "z": "734c8384.84e874",\r
138         "wires": [\r
139             [\r
140                 "6e491f05.7959"\r
141             ]\r
142         ]\r
143     },\r
144     {\r
145         "id": "f11dad1d.996b88",\r
146         "type": "method",\r
147         "name": "RebuildVM",\r
148         "xml": "<method rpc='RebuildVM' mode='sync'>\n",\r
149         "comments": "",\r
150         "outputs": 1,\r
151         "x": 432.75,\r
152         "y": 295.8833312988281,\r
153         "z": "734c8384.84e874",\r
154         "wires": [\r
155             [\r
156                 "4eeee11d.fb26f"\r
157             ]\r
158         ]\r
159     },\r
160     {\r
161         "id": "e3bd299a.2eb3d",\r
162         "type": "returnSuccess",\r
163         "name": "return success",\r
164         "xml": "<return status='success'>",\r
165         "comments": "",\r
166         "x": 1448.7499694824219,\r
167         "y": 363.8833312988281,\r
168         "z": "734c8384.84e874",\r
169         "wires": []\r
170     },\r
171     {\r
172         "id": "6da3c674.de3f5",\r
173         "type": "block",\r
174         "name": "block",\r
175         "xml": "<block>\n",\r
176         "atomic": "false",\r
177         "comments": "",\r
178         "outputs": 1,\r
179         "x": 1365.7499694824219,\r
180         "y": 447.8833312988281,\r
181         "z": "734c8384.84e874",\r
182         "wires": [\r
183             [\r
184                 "d3e45f44.e31868",\r
185                 "52bdc72a.f6f06"\r
186             ]\r
187         ]\r
188     },\r
189     {\r
190         "id": "d3e45f44.e31868",\r
191         "type": "returnFailure",\r
192         "name": "return failure",\r
193         "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n",\r
194         "comments": "",\r
195         "x": 1522.7499694824219,\r
196         "y": 480.88336181640625,\r
197         "z": "734c8384.84e874",\r
198         "wires": []\r
199     },\r
200     {\r
201         "id": "52bdc72a.f6f06",\r
202         "type": "record",\r
203         "name": "record",\r
204         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />",\r
205         "comments": "",\r
206         "outputs": 1,\r
207         "x": 1504.6166687011719,\r
208         "y": 427.7500305175781,\r
209         "z": "734c8384.84e874",\r
210         "wires": [\r
211             []\r
212         ]\r
213     },\r
214     {\r
215         "id": "e3c23dad.ae06a",\r
216         "type": "switchNode",\r
217         "name": "switch error-code",\r
218         "xml": "<switch test='`$error_code`'>\n",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 1044.7499694824219,\r
222         "y": 403.8833312988281,\r
223         "z": "734c8384.84e874",\r
224         "wires": [\r
225             [\r
226                 "45af49c7.7ad408",\r
227                 "14becb17.12bdad"\r
228             ]\r
229         ]\r
230     },\r
231     {\r
232         "id": "45af49c7.7ad408",\r
233         "type": "success",\r
234         "name": "SUCCESS-200",\r
235         "xml": "<outcome value='200'>\n",\r
236         "comments": "",\r
237         "outputs": 1,\r
238         "x": 1240.7499694824219,\r
239         "y": 365.8833312988281,\r
240         "z": "734c8384.84e874",\r
241         "wires": [\r
242             [\r
243                 "e3bd299a.2eb3d"\r
244             ]\r
245         ]\r
246     },\r
247     {\r
248         "id": "14becb17.12bdad",\r
249         "type": "outcome",\r
250         "name": "ERROR",\r
251         "xml": "<outcome value='Other'>\n",\r
252         "comments": "",\r
253         "outputs": 1,\r
254         "x": 1224.7499694824219,\r
255         "y": 448.8833312988281,\r
256         "z": "734c8384.84e874",\r
257         "wires": [\r
258             [\r
259                 "6da3c674.de3f5"\r
260             ]\r
261         ]\r
262     },\r
263     {\r
264         "id": "f2e4ec01.884618",\r
265         "type": "set",\r
266         "name": "set skiphypervisorcheck",\r
267         "xml": "<set>\n<parameter name='org.onap.appc.skiphypervisorcheck' value='`$skip-hypervisor-check`' />\n",\r
268         "comments": "",\r
269         "x": 758.75,\r
270         "y": 174.75,\r
271         "z": "734c8384.84e874",\r
272         "wires": []\r
273     }\r
274 ]\r