From 7b56c614d133050c80959d2637d49c987649c80c Mon Sep 17 00:00:00 2001 From: "Boslet, Cory" Date: Fri, 24 Apr 2020 16:13:29 -0400 Subject: Fixed error handling in the completion handler Fixed error handling in the completion handler subflows. Issue-ID: SO-2829 Signed-off-by: Benjamin, Max (mb388a) Change-Id: Id8c7332de6d7b0e382b56e86afa83ff231d8cda3 --- .../groovy/org/onap/so/bpmn/common/scripts/CompleteMsoProcess.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/CompleteMsoProcess.groovy b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/CompleteMsoProcess.groovy index a86e1de772..40776e4925 100644 --- a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/CompleteMsoProcess.groovy +++ b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/CompleteMsoProcess.groovy @@ -51,7 +51,7 @@ public class CompleteMsoProcess extends AbstractServiceTaskProcessor { execution.setVariable("CMSO_mso-bpel-name",msoBpelName) if (utils.nodeExists(xml, "request-information")) { - throw new BpmnError("500", "FalloutHandler subflow does not support this request type.") + throw new BpmnError("500", "CompleteMsoProcess subflow does not support this request type.") } def request_id = "" @@ -60,7 +60,7 @@ public class CompleteMsoProcess extends AbstractServiceTaskProcessor { } } catch (BpmnError e) { - throw e; + exceptionUtil.buildAndThrowWorkflowException(execution, 500, e.getMessage()) } catch (Exception e) { logger.debug("Exception Occured During PreProcessRequest: " + e); exceptionUtil.buildAndThrowWorkflowException(execution, 2000, "Internal Error - Occured in preprocess") -- cgit 1.2.3-korg