fe0f8786b7f0b49386c02f3c0698ebd4f8787381
[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   {
23     "id": "5e8f7716.499198",
24     "type": "success",
25     "name": "success",
26     "xml": "<outcome value='success'>\n",
27     "comments": "",
28     "outputs": 1,
29     "x": 555,
30     "y": 396.55555629730225,
31     "z": "75a9f4e5.a1649c",
32     "wires": [
33       [
34         "4b22d8a1.f3d148"
35       ]
36     ]
37   },
38   {
39     "id": "145d561d.5cc62a",
40     "type": "execute",
41     "name": "execute_getVNF_Hierarchy",
42     "xml": "<execute plugin='org.openecomp.appc.dg.util.ExecuteNodeAction' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />",
43     "comments": "",
44     "outputs": 1,
45     "x": 318,
46     "y": 396.55555629730225,
47     "z": "75a9f4e5.a1649c",
48     "wires": [
49       [
50         "5e8f7716.499198",
51         "bb8a0f0f.b2fe4",
52         "a25b25dc.c0a438"
53       ]
54     ]
55   },
56   {
57     "id": "4b22d8a1.f3d148",
58     "type": "switchNode",
59     "name": "switch",
60     "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
61     "comments": "",
62     "outputs": 1,
63     "x": 692.0000610351562,
64     "y": 396.55555629730225,
65     "z": "75a9f4e5.a1649c",
66     "wires": [
67       [
68         "25fd98ba.13e158",
69         "606b452c.8152dc"
70       ]
71     ]
72   },
73   {
74     "id": "bb8a0f0f.b2fe4",
75     "type": "failure",
76     "name": "failure",
77     "xml": "<outcome value='failure'>\n",
78     "comments": "",
79     "outputs": 1,
80     "x": 848,
81     "y": 235.55555629730225,
82     "z": "75a9f4e5.a1649c",
83     "wires": [
84       [
85         "c13d50ec.a9c2"
86       ]
87     ]
88   },
89   {
90     "id": "a25b25dc.c0a438",
91     "type": "other",
92     "name": "other",
93     "xml": "<outcome value='Other'>\n",
94     "comments": "",
95     "outputs": 1,
96     "x": 863,
97     "y": 155.55555629730225,
98     "z": "75a9f4e5.a1649c",
99     "wires": [
100       [
101         "c13d50ec.a9c2"
102       ]
103     ]
104   },
105   {
106     "id": "6d026903.3c9f08",
107     "type": "success",
108     "name": "success",
109     "xml": "<outcome value='success'>\n",
110     "comments": "",
111     "outputs": 1,
112     "x": 318.66668701171875,
113     "y": 319.4444417953491,
114     "z": "75a9f4e5.a1649c",
115     "wires": [
116       [
117         "145d561d.5cc62a"
118       ]
119     ]
120   },
121   {
122     "id": "25fd98ba.13e158",
123     "type": "outcome",
124     "name": "SUCCESS",
125     "xml": "<outcome value='SUCCESS'>\n",
126     "comments": "",
127     "outputs": 1,
128     "x": 657,
129     "y": 563.5555562973022,
130     "z": "75a9f4e5.a1649c",
131     "wires": [
132       [
133         "7d6b675f.944888"
134       ]
135     ]
136   },
137   {
138     "id": "606b452c.8152dc",
139     "type": "outcome",
140     "name": "FAILURE",
141     "xml": "<outcome value='FAILURE'>\n",
142     "comments": "",
143     "outputs": 1,
144     "x": 860,
145     "y": 325.55555629730225,
146     "z": "75a9f4e5.a1649c",
147     "wires": [
148       [
149         "c13d50ec.a9c2"
150       ]
151     ]
152   },
153   {
154     "id": "c13d50ec.a9c2",
155     "type": "block",
156     "name": "block : atomic",
157     "xml": "<block atomic='true'>",
158     "atomic": "true",
159     "comments": "",
160     "outputs": 1,
161     "x": 1045,
162     "y": 269.55555629730225,
163     "z": "75a9f4e5.a1649c",
164     "wires": [
165       [
166         "6b85300.44ae5d",
167         "b50265a4.9ec658",
168         "ff92154a.222ad8"
169       ]
170     ]
171   },
172   {
173     "id": "f205d4a8.a6d008",
174     "type": "execute",
175     "name": "execute: flatAndAddToContext",
176     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
177     "comments": "",
178     "outputs": 1,
179     "x": 273.6666564941406,
180     "y": 255.44444179534912,
181     "z": "75a9f4e5.a1649c",
182     "wires": [
183       [
184         "6d026903.3c9f08",
185         "d9efdcd7.d999"
186       ]
187     ]
188   },
189   {
190     "id": "7d6b675f.944888",
191     "type": "switchNode",
192     "name": "switch",
193     "xml": "<switch test='`$VNF.VMCount`'>\n",
194     "comments": "",
195     "outputs": 1,
196     "x": 803.0000305175781,
197     "y": 563.5555562973022,
198     "z": "75a9f4e5.a1649c",
199     "wires": [
200       [
201         "b3dc1924.975c18",
202         "61b52cec.5b91d4"
203       ]
204     ]
205   },
206   {
207     "id": "6b85300.44ae5d",
208     "type": "returnFailure",
209     "name": "return failure",
210     "xml": "<return status='failure'>\n",
211     "comments": "",
212     "x": 1308,
213     "y": 205.55555725097656,
214     "z": "75a9f4e5.a1649c",
215     "wires": []
216   },
217   {
218     "id": "b50265a4.9ec658",
219     "type": "execute",
220     "name": "execute_SendUEBEvent",
221     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.openecomp.appc.dg.error\" value=\"Exception in getting VNF Hierachy\"/>\n<parameter name='output.status.message' value=\"Exception in getting VNF Hierachy\"/>\n",
222     "comments": "",
223     "outputs": 1,
224     "x": 1315,
225     "y": 91.55555725097656,
226     "z": "75a9f4e5.a1649c",
227     "wires": [
228       []
229     ]
230   },
231   {
232     "id": "d9efdcd7.d999",
233     "type": "other",
234     "name": "other",
235     "xml": "<outcome value='Other'>\n",
236     "comments": "",
237     "outputs": 1,
238     "x": 529.6666870117188,
239     "y": 196.44444179534912,
240     "z": "75a9f4e5.a1649c",
241     "wires": [
242       []
243     ]
244   },
245   {
246     "id": "b3dc1924.975c18",
247     "type": "other",
248     "name": "outcome_0",
249     "xml": "<outcome value='0'>\n",
250     "comments": "",
251     "outputs": 1,
252     "x": 881,
253     "y": 481.55555629730225,
254     "z": "75a9f4e5.a1649c",
255     "wires": [
256       [
257         "7edbf7e6.e29b28"
258       ]
259     ]
260   },
261   {
262     "id": "61b52cec.5b91d4",
263     "type": "other",
264     "name": "other",
265     "xml": "<outcome value='Other'>\n",
266     "comments": "",
267     "outputs": 1,
268     "x": 865,
269     "y": 652.5555562973022,
270     "z": "75a9f4e5.a1649c",
271     "wires": [
272       [
273         "1afd140e.b8e10c"
274       ]
275     ]
276   },
277   {
278     "id": "7edbf7e6.e29b28",
279     "type": "block",
280     "name": "block : atomic",
281     "xml": "<block atomic='true'>",
282     "atomic": "true",
283     "comments": "",
284     "outputs": 1,
285     "x": 1002,
286     "y": 405.55555629730225,
287     "z": "75a9f4e5.a1649c",
288     "wires": [
289       [
290         "ce24c821.4cd8e8",
291         "c6500acc.d09d98",
292         "f9c012e3.68717"
293       ]
294     ]
295   },
296   {
297     "id": "1afd140e.b8e10c",
298     "type": "block",
299     "name": "block : atomic",
300     "xml": "<block atomic='true'>\n",
301     "atomic": "true",
302     "comments": "",
303     "outputs": 1,
304     "x": 1016.0000610351562,
305     "y": 653.5556173324585,
306     "z": "75a9f4e5.a1649c",
307     "wires": [
308       [
309         "e690e466.a45438"
310       ]
311     ]
312   },
313   {
314     "id": "ce24c821.4cd8e8",
315     "type": "returnFailure",
316     "name": "return failure",
317     "xml": "<return status='failure'>\n",
318     "comments": "",
319     "x": 1230,
320     "y": 496.5555419921875,
321     "z": "75a9f4e5.a1649c",
322     "wires": []
323   },
324   {
325     "id": "c6500acc.d09d98",
326     "type": "execute",
327     "name": "execute_SendUEBEvent",
328     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.openecomp.appc.dg.error\" value=\"VM Count is 0\"/>\n<parameter name='output.status.message' value=\"VM Count is 0\"/>\n\n",
329     "comments": "",
330     "outputs": 1,
331     "x": 1260,
332     "y": 347.55555629730225,
333     "z": "75a9f4e5.a1649c",
334     "wires": [
335       []
336     ]
337   },
338   {
339     "id": "e690e466.a45438",
340     "type": "execute",
341     "name": "execute_RollbackStack",
342     "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='restoreStack' >\n <parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n <parameter name=\"org.openecomp.appc.instance.url\" value=\"`$VNF.VM[0].URL`\" />\n <parameter name=\"org.openecomp.appc.identity.url\" value=\"`$input.identity-url`\" />\n <parameter name=\"org.openecomp.appc.stack.id\" value =\"`$VNF.heat-stack-id`\" />\n <parameter name=\"org.openecomp.appc.snapshot.id\" value=\"`$input.snapshot-id`\" />",
343     "comments": "",
344     "outputs": 1,
345     "x": 1235,
346     "y": 653.5555562973022,
347     "z": "75a9f4e5.a1649c",
348     "wires": [
349       [
350         "755e1d66.83efb4",
351         "99ec0c41.3c7b8",
352         "e20a4882.f1ee38"
353       ]
354     ]
355   },
356   {
357     "id": "755e1d66.83efb4",
358     "type": "outcome",
359     "name": "success",
360     "xml": "<outcome value='success'>\n",
361     "comments": "",
362     "outputs": 1,
363     "x": 1383,
364     "y": 751.5555419921875,
365     "z": "75a9f4e5.a1649c",
366     "wires": [
367       [
368         "2d2f9438.4676ec"
369       ]
370     ]
371   },
372   {
373     "id": "99ec0c41.3c7b8",
374     "type": "failure",
375     "name": "failure",
376     "xml": "<outcome value='failure'>\n",
377     "comments": "",
378     "outputs": 1,
379     "x": 1378,
380     "y": 560.5555562973022,
381     "z": "75a9f4e5.a1649c",
382     "wires": [
383       [
384         "4ef40628.63bd68"
385       ]
386     ]
387   },
388   {
389     "id": "e20a4882.f1ee38",
390     "type": "other",
391     "name": "other",
392     "xml": "<outcome value='Other'>\n",
393     "comments": "",
394     "outputs": 1,
395     "x": 1434,
396     "y": 653.5556783676147,
397     "z": "75a9f4e5.a1649c",
398     "wires": [
399       [
400         "4ef40628.63bd68"
401       ]
402     ]
403   },
404   {
405     "id": "290b41b8.e128ee",
406     "type": "returnSuccess",
407     "name": "return success",
408     "xml": "<return status='success'>",
409     "comments": "",
410     "x": 1813.4285888671875,
411     "y": 800.126953125,
412     "z": "75a9f4e5.a1649c",
413     "wires": []
414   },
415   {
416     "id": "4ef40628.63bd68",
417     "type": "block",
418     "name": "block : atomic",
419     "xml": "<block atomic='true'>",
420     "atomic": "true",
421     "comments": "",
422     "outputs": 1,
423     "x": 1627.4285888671875,
424     "y": 653.6983785629272,
425     "z": "75a9f4e5.a1649c",
426     "wires": [
427       [
428         "da2d458c.b135f8",
429         "57c76a69.3aba64",
430         "c1763a92.eaaf28"
431       ]
432     ]
433   },
434   {
435     "id": "da2d458c.b135f8",
436     "type": "execute",
437     "name": "execute_SendUEBEvent",
438     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.openecomp.appc.dg.error\" value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n<parameter name='output.status.message' value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n",
439     "comments": "",
440     "outputs": 1,
441     "x": 1888,
442     "y": 520.5555419921875,
443     "z": "75a9f4e5.a1649c",
444     "wires": [
445       [
446         "4571b850.f77f68"
447       ]
448     ]
449   },
450   {
451     "id": "57c76a69.3aba64",
452     "type": "returnFailure",
453     "name": "return failure",
454     "xml": "<return status='failure'>\n",
455     "comments": "",
456     "x": 1877,
457     "y": 648.5555419921875,
458     "z": "75a9f4e5.a1649c",
459     "wires": []
460   },
461   {
462     "id": "4571b850.f77f68",
463     "type": "success",
464     "name": "success",
465     "xml": "<outcome value='success'>\n",
466     "comments": "",
467     "outputs": 1,
468     "x": 2111.666748046875,
469     "y": 494.888916015625,
470     "z": "75a9f4e5.a1649c",
471     "wires": [
472       []
473     ]
474   },
475   {
476     "id": "7068b4fa.7f618c",
477     "type": "dgstart",
478     "name": "DGSTART",
479     "outputs": 1,
480     "x": 111.66665649414062,
481     "y": 20,
482     "z": "75a9f4e5.a1649c",
483     "wires": [
484       [
485         "3f3fa052.71537"
486       ]
487     ]
488   },
489   {
490     "id": "3f3fa052.71537",
491     "type": "service-logic",
492     "name": "APPC-API 2.0.0.0",
493     "module": "APPC-API",
494     "version": "2.0.0.0",
495     "comments": "",
496     "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'>",
497     "outputs": 1,
498     "x": 145.66665649414062,
499     "y": 114,
500     "z": "75a9f4e5.a1649c",
501     "wires": [
502       [
503         "90f1096d.987a68"
504       ]
505     ]
506   },
507   {
508     "id": "90f1096d.987a68",
509     "type": "method",
510     "name": "VNF_Rollback",
511     "xml": "<method rpc='VNF_Rollback' mode='sync'>\n",
512     "comments": "",
513     "outputs": 1,
514     "x": 145.66665649414062,
515     "y": 187,
516     "z": "75a9f4e5.a1649c",
517     "wires": [
518       [
519         "f205d4a8.a6d008"
520       ]
521     ]
522   },
523   {
524     "id": "ff92154a.222ad8",
525     "type": "execute",
526     "name": "Set failure code and message",
527     "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"Exception in getting VNF Hierachy\"/>\n",
528     "comments": "",
529     "outputs": 1,
530     "x": 1331,
531     "y": 150,
532     "z": "75a9f4e5.a1649c",
533     "wires": [
534       []
535     ]
536   },
537   {
538     "id": "f9c012e3.68717",
539     "type": "execute",
540     "name": "Set failure code and message",
541     "xml": "<set>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"VM Count is 0\"/>\n",
542     "comments": "",
543     "outputs": 1,
544     "x": 1257,
545     "y": 424,
546     "z": "75a9f4e5.a1649c",
547     "wires": [
548       []
549     ]
550   },
551   {
552     "id": "c1763a92.eaaf28",
553     "type": "execute",
554     "name": "Set failure code and message",
555     "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`'Error occured during rollback Stack '+$VNF.heat-stack-id + ' to snapshot ' + $snapshot-id`\"/>\n",
556     "comments": "",
557     "outputs": 1,
558     "x": 1904,
559     "y": 586,
560     "z": "75a9f4e5.a1649c",
561     "wires": [
562       []
563     ]
564   },
565   {
566     "id": "2d2f9438.4676ec",
567     "type": "block",
568     "name": "block : atomic",
569     "xml": "<block atomic='true'>",
570     "atomic": "true",
571     "comments": "",
572     "outputs": 1,
573     "x": 1567,
574     "y": 754,
575     "z": "75a9f4e5.a1649c",
576     "wires": [
577       [
578         "290b41b8.e128ee",
579         "b75c6c94.830d4"
580       ]
581     ]
582   },
583   {
584     "id": "b75c6c94.830d4",
585     "type": "execute",
586     "name": "Set success code and message",
587     "xml": "<set>\n<parameter name='error-code' value='400'/>\n<parameter name='error-message' value=\"Success\"/>\n",
588     "comments": "",
589     "outputs": 1,
590     "x": 1833,
591     "y": 731,
592     "z": "75a9f4e5.a1649c",
593     "wires": [
594       []
595     ]
596   }
597 ]