diff options
author | Max Benjamin <max.benjamin@att.com> | 2020-11-03 19:34:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-11-03 19:34:10 +0000 |
commit | 331650299b48d34c3c6bf11139319d64a489a1ad (patch) | |
tree | b3aebf8b7ed9d8d1c6a18a46d3a353ca15ba3ba1 /bpmn/MSOCommonBPMN/src/main | |
parent | 83ff479029986df8326e3119d3ee31f77209c455 (diff) | |
parent | 9630dd840fac8977329d7ff2dacc96e6db31248d (diff) |
Merge "Added to handle inventory failure errors in bpmn."
Diffstat (limited to 'bpmn/MSOCommonBPMN/src/main')
-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"); + + + } + } |