Initial add of appc-directed-graph bundles
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / APPC_Start_VM.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": "d52f4308.555fb",
24     "type": "dgstart",
25     "name": "DGSTART",
26     "outputs": 1,
27     "x": 96.99993896484375,
28     "y": 54,
29     "z": "1cdd4efa.2a36b1",
30     "wires": [
31       [
32         "763cad7e.1450b4"
33       ]
34     ]
35   },
36   {
37     "id": "763cad7e.1450b4",
38     "type": "service-logic",
39     "name": "APPC 2.0.0",
40     "module": "APPC",
41     "version": "2.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' version='2.0.0'>",
44     "outputs": 1,
45     "x": 141.99993896484375,
46     "y": 137,
47     "z": "1cdd4efa.2a36b1",
48     "wires": [
49       [
50         "812b1c37.4885c"
51       ]
52     ]
53   },
54   {
55     "id": "812b1c37.4885c",
56     "type": "method",
57     "name": "Start VM",
58     "xml": "<method rpc='Start_VM' mode='sync'>\n",
59     "comments": "",
60     "outputs": 1,
61     "x": 301.99993896484375,
62     "y": 137,
63     "z": "1cdd4efa.2a36b1",
64     "wires": [
65       [
66         "c47aa6c9.8c9378"
67       ]
68     ]
69   },
70   {
71     "id": "280842c.c99e1be",
72     "type": "call",
73     "name": "Start Application ",
74     "xml": "<call module='`$ApplicationStart.dg_module`' rpc='`$ApplicationStart.dg_name`' version='`$ApplicationStart.dg_version`' mode='sync'  >\n",
75     "comments": "",
76     "outputs": 1,
77     "x": 766.9999771118164,
78     "y": 336.0000305175781,
79     "z": "1cdd4efa.2a36b1",
80     "wires": [
81       [
82         "144156f7.572b29",
83         "7eab80e5.2adb3",
84         "70e14c1f.8e34e4"
85       ]
86     ]
87   },
88   {
89     "id": "144156f7.572b29",
90     "type": "success",
91     "name": "success",
92     "xml": "<outcome value='success'>\n",
93     "comments": "",
94     "outputs": 1,
95     "x": 998.9999771118164,
96     "y": 266.9998779296875,
97     "z": "1cdd4efa.2a36b1",
98     "wires": [
99       [
100         "96fd3f86.877cb"
101       ]
102     ]
103   },
104   {
105     "id": "7eab80e5.2adb3",
106     "type": "failure",
107     "name": "failure",
108     "xml": "<outcome value='failure'>\n",
109     "comments": "",
110     "outputs": 1,
111     "x": 996.9999771118164,
112     "y": 407.9999694824219,
113     "z": "1cdd4efa.2a36b1",
114     "wires": [
115       [
116         "deb77571.89feb8"
117       ]
118     ]
119   },
120   {
121     "id": "db549b18.455358",
122     "type": "returnSuccess",
123     "name": "return success",
124     "xml": "<return status='success'>\n",
125     "comments": "",
126     "x": 1378.0005493164062,
127     "y": 262.9998779296875,
128     "z": "1cdd4efa.2a36b1",
129     "wires": []
130   },
131   {
132     "id": "c47aa6c9.8c9378",
133     "type": "execute",
134     "name": "Resolve Application Start DG",
135     "xml": "<execute plugin='org.openecomp.appc.dg.common.DgResolverPlugin' method='resolveDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcType`' />\n<parameter name=\"action\" value=\"Start_Application\" />\n<parameter name=\"api-ver\" value=\"2.0.0\" />\n<parameter name=\"prefix\" value=\"ApplicationStart\" />\n<parameter name=\"DGResolutionType\" value=\"VNFC\" />\n",
136     "comments": "",
137     "outputs": 1,
138     "x": 349,
139     "y": 238,
140     "z": "1cdd4efa.2a36b1",
141     "wires": [
142       [
143         "ba0ce95d.a32d48",
144         "cc32ed95.f1246"
145       ]
146     ]
147   },
148   {
149     "id": "ba0ce95d.a32d48",
150     "type": "failure",
151     "name": "failure",
152     "xml": "<outcome value='failure'>\n",
153     "comments": "",
154     "outputs": 1,
155     "x": 604,
156     "y": 143,
157     "z": "1cdd4efa.2a36b1",
158     "wires": [
159       [
160         "c89af7a5.6217e8"
161       ]
162     ]
163   },
164   {
165     "id": "cc32ed95.f1246",
166     "type": "success",
167     "name": "success",
168     "xml": "<outcome value='success'>\n",
169     "comments": "",
170     "outputs": 1,
171     "x": 598.9999771118164,
172     "y": 336.0000305175781,
173     "z": "1cdd4efa.2a36b1",
174     "wires": [
175       [
176         "280842c.c99e1be"
177       ]
178     ]
179   },
180   {
181     "id": "c89af7a5.6217e8",
182     "type": "block",
183     "name": "block : atomic",
184     "xml": "<block atomic='true'>",
185     "atomic": "true",
186     "comments": "",
187     "outputs": 1,
188     "x": 770.0000610351562,
189     "y": 142,
190     "z": "1cdd4efa.2a36b1",
191     "wires": [
192       [
193         "e4e7b04c.adb7d",
194         "d2671f6c.53d78",
195         "735a4bd9.4bb604"
196       ]
197     ]
198   },
199   {
200     "id": "e4e7b04c.adb7d",
201     "type": "record",
202     "name": "Log message",
203     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
204     "comments": "",
205     "outputs": 1,
206     "x": 992,
207     "y": 143,
208     "z": "1cdd4efa.2a36b1",
209     "wires": [
210       []
211     ]
212   },
213   {
214     "id": "735a4bd9.4bb604",
215     "type": "set",
216     "name": "Set failure code and message",
217     "xml": "<set>\n<parameter name='error-code' value=\"401\"/>\n<parameter name='error-message' value=\"`'Failed to resolve Application start DG for : ' + $vnfcType`\"/>\n",
218     "comments": "",
219     "x": 1037,
220     "y": 98.88888549804688,
221     "z": "1cdd4efa.2a36b1",
222     "wires": []
223   },
224   {
225     "id": "d2671f6c.53d78",
226     "type": "returnFailure",
227     "name": "return failure",
228     "xml": "<return status='failure'>\n",
229     "comments": "",
230     "x": 989.9998779296875,
231     "y": 186.00006103515625,
232     "z": "1cdd4efa.2a36b1",
233     "wires": []
234   },
235   {
236     "id": "70e14c1f.8e34e4",
237     "type": "not-found",
238     "name": "not-found",
239     "xml": "<outcome value='not-found'>\n",
240     "comments": "",
241     "outputs": 1,
242     "x": 996.5555191040039,
243     "y": 335.8888854980469,
244     "z": "1cdd4efa.2a36b1",
245     "wires": [
246       [
247         "bbaacbc9.6e42a8"
248       ]
249     ]
250   },
251   {
252     "id": "bbaacbc9.6e42a8",
253     "type": "block",
254     "name": "block : atomic",
255     "xml": "<block atomic='true'>",
256     "atomic": "true",
257     "comments": "",
258     "outputs": 1,
259     "x": 1172.222267150879,
260     "y": 336.8888854980469,
261     "z": "1cdd4efa.2a36b1",
262     "wires": [
263       [
264         "2620f33d.ba7aac",
265         "d98a42e2.78acd",
266         "87259f65.26a31"
267       ]
268     ]
269   },
270   {
271     "id": "2620f33d.ba7aac",
272     "type": "set",
273     "name": "Set failure code and message",
274     "xml": "<set>\n<parameter name='error-code' value=\"401\"/>\n<parameter name='error-message' value=\"`'Application Start DG not found for : ' + $vnfcType`\" />\n",
275     "comments": "",
276     "x": 1426.5555419921875,
277     "y": 316.77777099609375,
278     "z": "1cdd4efa.2a36b1",
279     "wires": []
280   },
281   {
282     "id": "d98a42e2.78acd",
283     "type": "record",
284     "name": "Log message",
285     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
286     "comments": "",
287     "outputs": 1,
288     "x": 1381.5554809570312,
289     "y": 362.8888854980469,
290     "z": "1cdd4efa.2a36b1",
291     "wires": [
292       []
293     ]
294   },
295   {
296     "id": "87259f65.26a31",
297     "type": "returnFailure",
298     "name": "return failure",
299     "xml": "<return status='failure'>\n",
300     "comments": "",
301     "x": 1379.555519104004,
302     "y": 408.8888854980469,
303     "z": "1cdd4efa.2a36b1",
304     "wires": []
305   },
306   {
307     "id": "deb77571.89feb8",
308     "type": "block",
309     "name": "block : atomic",
310     "xml": "<block atomic='true'>",
311     "atomic": "true",
312     "comments": "",
313     "outputs": 1,
314     "x": 1155.555549621582,
315     "y": 407.8888854980469,
316     "z": "1cdd4efa.2a36b1",
317     "wires": [
318       [
319         "d98a42e2.78acd",
320         "87259f65.26a31"
321       ]
322     ]
323   },
324   {
325     "id": "96fd3f86.877cb",
326     "type": "block",
327     "name": "block : atomic",
328     "xml": "<block atomic='true'>",
329     "atomic": "true",
330     "comments": "",
331     "outputs": 1,
332     "x": 1172.9999389648438,
333     "y": 264,
334     "z": "1cdd4efa.2a36b1",
335     "wires": [
336       [
337         "db549b18.455358",
338         "ba9d1c0b.3d282"
339       ]
340     ]
341   },
342   {
343     "id": "ba9d1c0b.3d282",
344     "type": "set",
345     "name": "Set success code and message",
346     "xml": "<set>\n<parameter name='error-code' value=\"400\"/>\n<parameter name='error-message' value=\"Success\" />\n",
347     "comments": "",
348     "x": 1430.9999389648438,
349     "y": 218,
350     "z": "1cdd4efa.2a36b1",
351     "wires": []
352   }
353 ]