From 9630dd840fac8977329d7ff2dacc96e6db31248d Mon Sep 17 00:00:00 2001 From: "Boslet, Cory" Date: Tue, 3 Nov 2020 12:01:12 -0500 Subject: 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) Change-Id: Ia578a4e629ac816c79338fbfff7717ad348e9bc4 --- .../onap/so/client/exception/ExceptionBuilder.java | 14 ++ .../subprocess/BuildingBlock/CreateVfModuleBB.bpmn | 149 +++++++++++---------- .../subprocess/BuildingBlock/DeleteVfModuleBB.bpmn | 69 +++++----- 3 files changed, 126 insertions(+), 106 deletions(-) (limited to 'bpmn') 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"); + + + } + } diff --git a/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/CreateVfModuleBB.bpmn b/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/CreateVfModuleBB.bpmn index 7638f34a59..9e2c0db6ea 100644 --- a/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/CreateVfModuleBB.bpmn +++ b/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/CreateVfModuleBB.bpmn @@ -1,5 +1,5 @@ - + SequenceFlow_1xr6chl @@ -43,17 +43,6 @@ SequenceFlow_15do1tu SequenceFlow_0rds4rj - - - SequenceFlow_0gcots6 - - - - SequenceFlow_0gcots6 - - - - @@ -61,7 +50,7 @@ SequenceFlow_0xqhep5 - + SequenceFlow_0xqhep5 SequenceFlow_1yo6mvv @@ -97,14 +86,30 @@ SequenceFlow_1mg8eym - + ${execution.getVariable("isHelm")} + + + Flow_03q6ty9 + + + Flow_1sqy91r + + + + Flow_1sqy91r + Flow_03q6ty9 + + + + + @@ -117,8 +122,8 @@ - - + + @@ -133,8 +138,8 @@ - - + + @@ -151,40 +156,18 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + @@ -193,8 +176,8 @@ - - + + @@ -203,8 +186,8 @@ - - + + @@ -213,8 +196,8 @@ - - + + @@ -223,8 +206,8 @@ - - + + @@ -233,8 +216,8 @@ - - + + @@ -243,10 +226,10 @@ - - - - + + + + @@ -261,48 +244,68 @@ - - + + - - + + - - + + - - + + - - + + - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/DeleteVfModuleBB.bpmn b/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/DeleteVfModuleBB.bpmn index 9a33a3e4bf..fba1139117 100644 --- a/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/DeleteVfModuleBB.bpmn +++ b/bpmn/so-bpmn-building-blocks/src/main/resources/subprocess/BuildingBlock/DeleteVfModuleBB.bpmn @@ -31,17 +31,6 @@ SequenceFlow_08tvhtf Flow_0hlvlw2 - - - SequenceFlow_0h607z0 - - - - SequenceFlow_0h607z0 - - - - SequenceFlow_0yuz21z SequenceFlow_01vfwtp @@ -89,9 +78,25 @@ + + + Flow_0yqo5xu + + + Flow_0qyhv7c + + + + Flow_0qyhv7c + Flow_0yqo5xu + + + + + @@ -122,28 +127,6 @@ - - - - - - - - - - - - - - - - - - - - - - @@ -239,6 +222,26 @@ + + + + + + + + + + + + + + + + + + + + -- cgit 1.2.3-korg