summaryrefslogtreecommitdiffstats
path: root/bpmn/so-bpmn-tasks/src/main/java/org
diff options
context:
space:
mode:
authorSteve Smokowski <ss835w@att.com>2020-01-30 13:48:14 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-30 13:48:14 +0000
commit6ee552c89912b1dba08bf725b948ffef3d6ab56b (patch)
treec9fcd15bfdd23c554269c47c1490b87e9653c697 /bpmn/so-bpmn-tasks/src/main/java/org
parent45ed5d0171736bebe16d57adcb6f890156cd5cf7 (diff)
parente2dde44b2d8ace388b862d73bac654bfc9ca52af (diff)
Merge "Updated to send back actual exception message"
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 ffcda2b135..80c6f0b969 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) {