4985c132749357d67618f5484ade77bcb502305e
[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": "4a37fdf2.6a2504",
24     "type": "dgstart",
25     "name": "DGSTART",
26     "outputs": 1,
27     "x": 114,
28     "y": 144,
29     "z": "bff4e0f.991972",
30     "wires": [
31       [
32         "24ca19d3.fe69f6"
33       ]
34     ]
35   },
36   {
37     "id": "24ca19d3.fe69f6",
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": 261,
46     "y": 144,
47     "z": "bff4e0f.991972",
48     "wires": [
49       [
50         "68e5e092.be1d4"
51       ]
52     ]
53   },
54   {
55     "id": "68e5e092.be1d4",
56     "type": "method",
57     "name": "Stop_VM",
58     "xml": "<method rpc='Stop_VM' mode='sync'>\n",
59     "comments": "",
60     "outputs": 1,
61     "x": 413.5,
62     "y": 144,
63     "z": "bff4e0f.991972",
64     "wires": [
65       [
66         "79ce376b.14ba38"
67       ]
68     ]
69   },
70   {
71     "id": "546085a8.48136c",
72     "type": "execute",
73     "name": "Resolve Stop Application DG",
74     "xml": "<execute plugin='org.openecomp.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcFlow[$i].vnfcType`' /> \n<parameter name=\"action\" value=\"Stop_Application\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' />\n<parameter name=\"prefix\" value='StopApplication' />",
75     "comments": "",
76     "outputs": 1,
77     "x": 315.5,
78     "y": 364,
79     "z": "bff4e0f.991972",
80     "wires": [
81       [
82         "af254db7.09d53",
83         "27344cac.0eda34"
84       ]
85     ]
86   },
87   {
88     "id": "af254db7.09d53",
89     "type": "failure",
90     "name": "failure",
91     "xml": "<outcome value='failure'>\n",
92     "comments": "",
93     "outputs": 1,
94     "x": 546,
95     "y": 444,
96     "z": "bff4e0f.991972",
97     "wires": [
98       [
99         "b3421a0a.ab34d8"
100       ]
101     ]
102   },
103   {
104     "id": "4a4711ec.83e88",
105     "type": "call",
106     "name": "Call Stop Application DG",
107     "xml": "<call module='`$StopApplication.dg_module`' rpc='`$StopApplication.dg_name`' mode='sync' >\n",
108     "comments": "",
109     "outputs": 1,
110     "x": 742,
111     "y": 364,
112     "z": "bff4e0f.991972",
113     "wires": [
114       [
115         "5b84fc8a.59ac94",
116         "c108322b.df0e7",
117         "3efda8ab.632bf8"
118       ]
119     ]
120   },
121   {
122     "id": "5b84fc8a.59ac94",
123     "type": "success",
124     "name": "success",
125     "xml": "<outcome value='success'>\n",
126     "comments": "",
127     "outputs": 1,
128     "x": 990,
129     "y": 364,
130     "z": "bff4e0f.991972",
131     "wires": [
132       [
133         "3c46d78d.4277c8"
134       ]
135     ]
136   },
137   {
138     "id": "7892211.d99b2e",
139     "type": "block",
140     "name": "block",
141     "xml": "<block>\n",
142     "atomic": "false",
143     "comments": "",
144     "outputs": 1,
145     "x": 1146,
146     "y": 244,
147     "z": "bff4e0f.991972",
148     "wires": [
149       [
150         "b3421a0a.ab34d8",
151         "2013c4a3.b2f33c",
152         "f600a7ce.f7f418"
153       ]
154     ]
155   },
156   {
157     "id": "b3421a0a.ab34d8",
158     "type": "call",
159     "name": "Call StopVM_VM",
160     "xml": "<call module='APPC' rpc='StopVM_VM' mode='sync' >\n",
161     "comments": "",
162     "outputs": 1,
163     "x": 1398,
164     "y": 444,
165     "z": "bff4e0f.991972",
166     "wires": [
167       [
168         "823575c7.9529b8",
169         "403b9a.8f504468",
170         "ff7db04.0cfe85"
171       ]
172     ]
173   },
174   {
175     "id": "823575c7.9529b8",
176     "type": "failure",
177     "name": "failure",
178     "xml": "<outcome value='failure'>\n",
179     "comments": "",
180     "outputs": 1,
181     "x": 1646,
182     "y": 304,
183     "z": "bff4e0f.991972",
184     "wires": [
185       [
186         "f628fc33.96856"
187       ]
188     ]
189   },
190   {
191     "id": "403b9a.8f504468",
192     "type": "success",
193     "name": "success",
194     "xml": "<outcome value='success'>\n",
195     "comments": "",
196     "outputs": 1,
197     "x": 1650,
198     "y": 444,
199     "z": "bff4e0f.991972",
200     "wires": [
201       [
202         "ea7f288e.c58648"
203       ]
204     ]
205   },
206   {
207     "id": "27344cac.0eda34",
208     "type": "other",
209     "name": "success",
210     "xml": "<outcome value='success'>\n",
211     "comments": "",
212     "outputs": 1,
213     "x": 546,
214     "y": 364,
215     "z": "bff4e0f.991972",
216     "wires": [
217       [
218         "4a4711ec.83e88"
219       ]
220     ]
221   },
222   {
223     "id": "c108322b.df0e7",
224     "type": "other",
225     "name": "failure",
226     "xml": "<outcome value='failure'>\n",
227     "comments": "",
228     "outputs": 1,
229     "x": 986,
230     "y": 244,
231     "z": "bff4e0f.991972",
232     "wires": [
233       [
234         "7892211.d99b2e"
235       ]
236     ]
237   },
238   {
239     "id": "3efda8ab.632bf8",
240     "type": "not-found",
241     "name": "not-found",
242     "xml": "<outcome value='not-found'>\n",
243     "comments": "",
244     "outputs": 1,
245     "x": 995,
246     "y": 144,
247     "z": "bff4e0f.991972",
248     "wires": [
249       [
250         "191e02b6.f79f4d"
251       ]
252     ]
253   },
254   {
255     "id": "191e02b6.f79f4d",
256     "type": "block",
257     "name": "block",
258     "xml": "<block>\n",
259     "atomic": "false",
260     "comments": "",
261     "outputs": 1,
262     "x": 1806,
263     "y": 144,
264     "z": "bff4e0f.991972",
265     "wires": [
266       [
267         "8812042b.ba9358",
268         "f628fc33.96856"
269       ]
270     ]
271   },
272   {
273     "id": "8812042b.ba9358",
274     "type": "set",
275     "name": "Set event message",
276     "xml": "<set>\n<parameter name='event-message' value=\"`'Cannot find DG: ' + $StopApplication.dg_module + ' ' + $StopApplication.dg_name`\"/>\n\n\n",
277     "comments": "",
278     "x": 2085.5,
279     "y": 144,
280     "z": "bff4e0f.991972",
281     "wires": []
282   },
283   {
284     "id": "59b9a03e.8323b",
285     "type": "set",
286     "name": "init",
287     "xml": "<set>\n<parameter name='StopApplicationFailed' value='false' />\n",
288     "comments": "",
289     "outputs": 1,
290     "x": 246,
291     "y": 244,
292     "z": "bff4e0f.991972",
293     "wires": [
294       []
295     ]
296   },
297   {
298     "id": "79ce376b.14ba38",
299     "type": "block",
300     "name": "block",
301     "xml": "<block>\n",
302     "atomic": "false",
303     "comments": "",
304     "outputs": 1,
305     "x": 106,
306     "y": 244,
307     "z": "bff4e0f.991972",
308     "wires": [
309       [
310         "59b9a03e.8323b",
311         "546085a8.48136c"
312       ]
313     ]
314   },
315   {
316     "id": "ea7f288e.c58648",
317     "type": "block",
318     "name": "block",
319     "xml": "<block>\n",
320     "atomic": "false",
321     "comments": "",
322     "outputs": 1,
323     "x": 1806,
324     "y": 444,
325     "z": "bff4e0f.991972",
326     "wires": [
327       [
328         "d59b6aa1.c91618",
329         "b8335fae.52296"
330       ]
331     ]
332   },
333   {
334     "id": "3c46d78d.4277c8",
335     "type": "block",
336     "name": "block",
337     "xml": "<block>\n",
338     "atomic": "false",
339     "comments": "",
340     "outputs": 1,
341     "x": 1146,
342     "y": 364,
343     "z": "bff4e0f.991972",
344     "wires": [
345       [
346         "b3421a0a.ab34d8",
347         "b8335fae.52296"
348       ]
349     ]
350   },
351   {
352     "id": "2013c4a3.b2f33c",
353     "type": "set",
354     "name": "Set Stop Application Failed",
355     "xml": "<set>\n<parameter name='StopApplicationFailed' value='true' />\n",
356     "comments": "",
357     "outputs": 1,
358     "x": 1429.5,
359     "y": 204,
360     "z": "bff4e0f.991972",
361     "wires": [
362       []
363     ]
364   },
365   {
366     "id": "d59b6aa1.c91618",
367     "type": "switchNode",
368     "name": "Switch Stop Application Failed",
369     "xml": "<switch test=\"`$StopApplicationFailed`\">\n",
370     "comments": "",
371     "outputs": 1,
372     "x": 2035.5,
373     "y": 471,
374     "z": "bff4e0f.991972",
375     "wires": [
376       [
377         "b987da03.0dc0f8",
378         "8fa7fbb8.8355c8"
379       ]
380     ]
381   },
382   {
383     "id": "b987da03.0dc0f8",
384     "type": "outcomeTrue",
385     "name": "true",
386     "xml": "<outcome value='true'>\n",
387     "comments": "",
388     "outputs": 1,
389     "x": 2266,
390     "y": 444,
391     "z": "bff4e0f.991972",
392     "wires": [
393       [
394         "98412d6e.2237"
395       ]
396     ]
397   },
398   {
399     "id": "98412d6e.2237",
400     "type": "returnFailure",
401     "name": "return failure",
402     "xml": "<return status='failure'>\n",
403     "comments": "",
404     "x": 2465,
405     "y": 444,
406     "z": "bff4e0f.991972",
407     "wires": []
408   },
409   {
410     "id": "fffd4e3c.8b204",
411     "type": "returnSuccess",
412     "name": "return success",
413     "xml": "<return status='success'>\n",
414     "comments": "",
415     "x": 2471,
416     "y": 504,
417     "z": "bff4e0f.991972",
418     "wires": []
419   },
420   {
421     "id": "8fa7fbb8.8355c8",
422     "type": "other",
423     "name": "other",
424     "xml": "<outcome value='Other'>\n",
425     "comments": "",
426     "outputs": 1,
427     "x": 2266,
428     "y": 504,
429     "z": "bff4e0f.991972",
430     "wires": [
431       [
432         "fffd4e3c.8b204"
433       ]
434     ]
435   },
436   {
437     "id": "ff7db04.0cfe85",
438     "type": "not-found",
439     "name": "not-found",
440     "xml": "<outcome value='not-found'>\n",
441     "comments": "",
442     "outputs": 1,
443     "x": 1655,
444     "y": 204,
445     "z": "bff4e0f.991972",
446     "wires": [
447       [
448         "c640b015.2be11"
449       ]
450     ]
451   },
452   {
453     "id": "1dffaf3f.e12151",
454     "type": "execute",
455     "name": "OutputMessageBuilder",
456     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`$event-message`\"/>",
457     "comments": "",
458     "outputs": 1,
459     "x": 2509,
460     "y": 122,
461     "z": "bff4e0f.991972",
462     "wires": [
463       []
464     ]
465   },
466   {
467     "id": "f628fc33.96856",
468     "type": "block",
469     "name": "block",
470     "xml": "<block>\n",
471     "atomic": "false",
472     "comments": "",
473     "outputs": 1,
474     "x": 2046,
475     "y": 304,
476     "z": "bff4e0f.991972",
477     "wires": [
478       [
479         "f600a7ce.f7f418",
480         "cf5c9d26.942c4"
481       ]
482     ]
483   },
484   {
485     "id": "c41ea253.33c72",
486     "type": "set",
487     "name": "Set event message",
488     "xml": "<set>\n<parameter name='event-message' value=\"Cannot find DG: StopVM_VM\"/>\n\n\n",
489     "comments": "",
490     "x": 2085.5,
491     "y": 204,
492     "z": "bff4e0f.991972",
493     "wires": []
494   },
495   {
496     "id": "2186d059.4b82f",
497     "type": "record",
498     "name": "Log error",
499     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$event-message`\"/>\n",
500     "comments": "",
501     "outputs": 1,
502     "x": 2465,
503     "y": 71,
504     "z": "bff4e0f.991972",
505     "wires": [
506       []
507     ]
508   },
509   {
510     "id": "cf5c9d26.942c4",
511     "type": "returnFailure",
512     "name": "return failure",
513     "xml": "<return status='failure'>\n",
514     "comments": "",
515     "x": 2465,
516     "y": 304,
517     "z": "bff4e0f.991972",
518     "wires": []
519   },
520   {
521     "id": "c640b015.2be11",
522     "type": "block",
523     "name": "block",
524     "xml": "<block>\n",
525     "atomic": "false",
526     "comments": "",
527     "outputs": 1,
528     "x": 1806,
529     "y": 204,
530     "z": "bff4e0f.991972",
531     "wires": [
532       [
533         "c41ea253.33c72",
534         "f628fc33.96856"
535       ]
536     ]
537   },
538   {
539     "id": "5fb32110.cadf8",
540     "type": "execute",
541     "name": "Report Error",
542     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
543     "comments": "",
544     "outputs": 1,
545     "x": 2478,
546     "y": 176,
547     "z": "bff4e0f.991972",
548     "wires": [
549       []
550     ]
551   },
552   {
553     "id": "f600a7ce.f7f418",
554     "type": "block",
555     "name": "block",
556     "xml": "<block>\n",
557     "atomic": "false",
558     "comments": "",
559     "outputs": 1,
560     "x": 2266,
561     "y": 244,
562     "z": "bff4e0f.991972",
563     "wires": [
564       [
565         "2186d059.4b82f",
566         "1dffaf3f.e12151",
567         "5fb32110.cadf8",
568         "a2ebc53c.230e08"
569       ]
570     ]
571   },
572   {
573     "id": "b8335fae.52296",
574     "type": "block",
575     "name": "block",
576     "xml": "<block>\n",
577     "atomic": "false",
578     "comments": "",
579     "outputs": 1,
580     "x": 2446,
581     "y": 364,
582     "z": "bff4e0f.991972",
583     "wires": [
584       [
585         "72a691f7.431cd",
586         "2b14f2c8.13f01e",
587         "292317f2.1be5c8"
588       ]
589     ]
590   },
591   {
592     "id": "2b14f2c8.13f01e",
593     "type": "execute",
594     "name": "Report Success",
595     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />",
596     "comments": "",
597     "outputs": 1,
598     "x": 2684.5,
599     "y": 358,
600     "z": "bff4e0f.991972",
601     "wires": [
602       []
603     ]
604   },
605   {
606     "id": "72a691f7.431cd",
607     "type": "record",
608     "name": "Log success",
609     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$success-message`\"/>\n",
610     "comments": "",
611     "outputs": 1,
612     "x": 2674,
613     "y": 300,
614     "z": "bff4e0f.991972",
615     "wires": [
616       []
617     ]
618   },
619   {
620     "id": "a2ebc53c.230e08",
621     "type": "set",
622     "name": "Set failure code and message",
623     "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$event-message`\" />\n",
624     "comments": "",
625     "outputs": 1,
626     "x": 2531,
627     "y": 229,
628     "z": "bff4e0f.991972",
629     "wires": [
630       []
631     ]
632   },
633   {
634     "id": "292317f2.1be5c8",
635     "type": "set",
636     "name": "Set success code and message",
637     "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"`$success-message`\" />\n",
638     "comments": "",
639     "outputs": 1,
640     "x": 2737,
641     "y": 412,
642     "z": "bff4e0f.991972",
643     "wires": [
644       []
645     ]
646   }
647 ]