aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src/main
diff options
context:
space:
mode:
authorMax Benjamin <max.benjamin@att.com>2020-11-03 19:34:10 +0000
committerGerrit Code Review <gerrit@onap.org>2020-11-03 19:34:10 +0000
commit331650299b48d34c3c6bf11139319d64a489a1ad (patch)
treeb3aebf8b7ed9d8d1c6a18a46d3a353ca15ba3ba1 /bpmn/MSOCommonBPMN/src/main
parent83ff479029986df8326e3119d3ee31f77209c455 (diff)
parent9630dd840fac8977329d7ff2dacc96e6db31248d (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.java14
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");
+
+
+ }
+
}