2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
23 "id": "4a37fdf2.6a2504",
29 "z": "bff4e0f.991972",
37 "id": "24ca19d3.fe69f6",
38 "type": "service-logic",
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'>",
47 "z": "bff4e0f.991972",
55 "id": "68e5e092.be1d4",
58 "xml": "<method rpc='Stop_VM' mode='sync'>\n",
63 "z": "bff4e0f.991972",
71 "id": "546085a8.48136c",
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' />",
79 "z": "bff4e0f.991972",
88 "id": "af254db7.09d53",
91 "xml": "<outcome value='failure'>\n",
96 "z": "bff4e0f.991972",
104 "id": "4a4711ec.83e88",
106 "name": "Call Stop Application DG",
107 "xml": "<call module='`$StopApplication.dg_module`' rpc='`$StopApplication.dg_name`' mode='sync' >\n",
112 "z": "bff4e0f.991972",
122 "id": "5b84fc8a.59ac94",
125 "xml": "<outcome value='success'>\n",
130 "z": "bff4e0f.991972",
138 "id": "7892211.d99b2e",
147 "z": "bff4e0f.991972",
157 "id": "b3421a0a.ab34d8",
159 "name": "Call StopVM_VM",
160 "xml": "<call module='APPC' rpc='StopVM_VM' mode='sync' >\n",
165 "z": "bff4e0f.991972",
175 "id": "823575c7.9529b8",
178 "xml": "<outcome value='failure'>\n",
183 "z": "bff4e0f.991972",
191 "id": "403b9a.8f504468",
194 "xml": "<outcome value='success'>\n",
199 "z": "bff4e0f.991972",
207 "id": "27344cac.0eda34",
210 "xml": "<outcome value='success'>\n",
215 "z": "bff4e0f.991972",
223 "id": "c108322b.df0e7",
226 "xml": "<outcome value='failure'>\n",
231 "z": "bff4e0f.991972",
239 "id": "3efda8ab.632bf8",
242 "xml": "<outcome value='not-found'>\n",
247 "z": "bff4e0f.991972",
255 "id": "191e02b6.f79f4d",
264 "z": "bff4e0f.991972",
273 "id": "8812042b.ba9358",
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",
280 "z": "bff4e0f.991972",
284 "id": "59b9a03e.8323b",
287 "xml": "<set>\n<parameter name='StopApplicationFailed' value='false' />\n",
292 "z": "bff4e0f.991972",
298 "id": "79ce376b.14ba38",
307 "z": "bff4e0f.991972",
316 "id": "ea7f288e.c58648",
325 "z": "bff4e0f.991972",
334 "id": "3c46d78d.4277c8",
343 "z": "bff4e0f.991972",
352 "id": "2013c4a3.b2f33c",
354 "name": "Set Stop Application Failed",
355 "xml": "<set>\n<parameter name='StopApplicationFailed' value='true' />\n",
360 "z": "bff4e0f.991972",
366 "id": "d59b6aa1.c91618",
367 "type": "switchNode",
368 "name": "Switch Stop Application Failed",
369 "xml": "<switch test=\"`$StopApplicationFailed`\">\n",
374 "z": "bff4e0f.991972",
383 "id": "b987da03.0dc0f8",
384 "type": "outcomeTrue",
386 "xml": "<outcome value='true'>\n",
391 "z": "bff4e0f.991972",
399 "id": "98412d6e.2237",
400 "type": "returnFailure",
401 "name": "return failure",
402 "xml": "<return status='failure'>\n",
406 "z": "bff4e0f.991972",
410 "id": "fffd4e3c.8b204",
411 "type": "returnSuccess",
412 "name": "return success",
413 "xml": "<return status='success'>\n",
417 "z": "bff4e0f.991972",
421 "id": "8fa7fbb8.8355c8",
424 "xml": "<outcome value='Other'>\n",
429 "z": "bff4e0f.991972",
437 "id": "ff7db04.0cfe85",
440 "xml": "<outcome value='not-found'>\n",
445 "z": "bff4e0f.991972",
453 "id": "1dffaf3f.e12151",
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`\"/>",
461 "z": "bff4e0f.991972",
467 "id": "f628fc33.96856",
476 "z": "bff4e0f.991972",
485 "id": "c41ea253.33c72",
487 "name": "Set event message",
488 "xml": "<set>\n<parameter name='event-message' value=\"Cannot find DG: StopVM_VM\"/>\n\n\n",
492 "z": "bff4e0f.991972",
496 "id": "2186d059.4b82f",
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",
504 "z": "bff4e0f.991972",
510 "id": "cf5c9d26.942c4",
511 "type": "returnFailure",
512 "name": "return failure",
513 "xml": "<return status='failure'>\n",
517 "z": "bff4e0f.991972",
521 "id": "c640b015.2be11",
530 "z": "bff4e0f.991972",
539 "id": "5fb32110.cadf8",
541 "name": "Report Error",
542 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
547 "z": "bff4e0f.991972",
553 "id": "f600a7ce.f7f418",
562 "z": "bff4e0f.991972",
573 "id": "b8335fae.52296",
582 "z": "bff4e0f.991972",
592 "id": "2b14f2c8.13f01e",
594 "name": "Report Success",
595 "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='reportSuccess' >\n<parameter name=\"event-message\" value=\"`$success-message`\" />",
600 "z": "bff4e0f.991972",
606 "id": "72a691f7.431cd",
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",
614 "z": "bff4e0f.991972",
620 "id": "a2ebc53c.230e08",
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",
628 "z": "bff4e0f.991972",
634 "id": "292317f2.1be5c8",
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",
642 "z": "bff4e0f.991972",