diff options
author | 2020-11-03 12:01:12 -0500 | |
---|---|---|
committer | 2020-11-03 12:01:13 -0500 | |
commit | 9630dd840fac8977329d7ff2dacc96e6db31248d (patch) | |
tree | b02fe060a5e516ad4c26c6488e6e71c8ddf045ba /bpmn/MSOCommonBPMN/src/main/java/org/onap | |
parent | 5f49f69b09a9ec8d83d6cc38ee672b355de20013 (diff) |
Added to handle inventory failure errors in bpmn.
Added to handle inventory failure errors in bpmn.
Issue-ID: SO-3358
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: Ia578a4e629ac816c79338fbfff7717ad348e9bc4
Diffstat (limited to 'bpmn/MSOCommonBPMN/src/main/java/org/onap')
-rw-r--r-- | bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/ExceptionBuilder.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/ExceptionBuilder.java b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/ExceptionBuilder.java index 43db27917e..f40948fc49 100644 --- a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/ExceptionBuilder.java +++ b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/exception/ExceptionBuilder.java @@ -376,4 +376,18 @@ public class ExceptionBuilder { } + public void processInventoryException(DelegateExecution execution) { + String errorMessage = ""; + logger.debug("Processing Inventory Exception"); + try { + errorMessage = (String) execution.getVariable("inventoryErrorMessage"); + } catch (Exception e) { + logger.debug("Error while Processing Inventory Exception", e); + } + buildWorkflowException(execution, 500, errorMessage, Components.OPENSTACK); + throw new BpmnError("MSOWorkflowException"); + + + } + } |