diff options
author | Steve Smokowski <ss835w@att.com> | 2019-07-01 17:41:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-01 17:41:52 +0000 |
commit | 15ecb55f2f045e2e185a94b4d4985d2563af8b40 (patch) | |
tree | ec07b7a97fc51dc417bb311c42f087711ba2063e /bpmn/so-bpmn-tasks/src/main/java | |
parent | 0d562688867a1b2e7a34ee6416cd54f7a9f6b89e (diff) | |
parent | 5c174ddc476187b358da608c3d2ad85d512a67f7 (diff) |
Merge "do not overwrite status message with rollback"
Diffstat (limited to 'bpmn/so-bpmn-tasks/src/main/java')
-rw-r--r-- | bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBFailure.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBFailure.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBFailure.java index 4d2f9fd98c..67dc9fec26 100644 --- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBFailure.java +++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/bpmn/infrastructure/workflow/tasks/WorkflowActionBBFailure.java @@ -53,7 +53,12 @@ public class WorkflowActionBBFailure { } else { errorMsg = "Failed to determine error message"; } - request.setStatusMessage(errorMsg); + Boolean isRollback = (Boolean) execution.getVariable("isRollback"); + if (!Boolean.TRUE.equals(isRollback)) { + request.setStatusMessage(errorMsg); + } else { + request.setRollbackStatusMessage(errorMsg); + } request.setProgress(Long.valueOf(100)); request.setLastModifiedBy("CamundaBPMN"); request.setEndTime(new Timestamp(System.currentTimeMillis())); |