summaryrefslogtreecommitdiffstats
path: root/bpmn/so-bpmn-tasks/src/main/java/org
diff options
context:
space:
mode:
authorPlummer, Brittany <brittany.plummer@att.com>2020-01-29 17:12:04 -0500
committerBenjamin, Max (mb388a) <mb388a@att.com>2020-01-29 17:12:05 -0500
commite2dde44b2d8ace388b862d73bac654bfc9ca52af (patch)
tree1423d8d6dc50e7ae8a138675f838bc0cd31992ba /bpmn/so-bpmn-tasks/src/main/java/org
parent4b9193ca1a42a7781ef59a2d724200adcd6439ec (diff)
Updated to send back actual exception message
Updated to send back actual exception message Updated exception to include message Issue-ID: SO-2619 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Id4ac60dee682b6b6e18c6ccbabcc60a61c2a1db7
Diffstat (limited to 'bpmn/so-bpmn-tasks/src/main/java/org')
-rw-r--r--bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java
index 8911ebf15d..b9e430f6c0 100644
--- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java
+++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowAction.java
@@ -431,7 +431,7 @@ public class WorkflowAction {
execution.setVariable("isRollbackComplete", false);
} catch (Exception ex) {
- buildAndThrowException(execution, "Exception in execution list. ", ex);
+ buildAndThrowException(execution, "Exception while setting execution list. ", ex);
}
}
@@ -1562,8 +1562,8 @@ public class WorkflowAction {
protected void buildAndThrowException(DelegateExecution execution, String msg, Exception ex) {
logger.error(msg, ex);
- execution.setVariable(WORKFLOW_ACTION_ERROR_MESSAGE, msg);
- exceptionBuilder.buildAndThrowWorkflowException(execution, 7000, msg);
+ execution.setVariable(WORKFLOW_ACTION_ERROR_MESSAGE, msg + ex.getMessage());
+ exceptionBuilder.buildAndThrowWorkflowException(execution, 7000, msg + ex.getMessage());
}
protected void buildAndThrowException(DelegateExecution execution, String msg) {