From 6f0d9612a6a11378bd4ab2b3e8ad185691699670 Mon Sep 17 00:00:00 2001 From: "Boslet, Cory" Date: Fri, 2 Oct 2020 22:28:16 -0400 Subject: Only continue to wait on error when final Only continue to wait on error when final indicator is N Issue-ID: SO-3285 Signed-off-by: Benjamin, Max (mb388a) Change-Id: I2914762a6f2776dcb39ab68422b237ffc7eda0f0 --- .../groovy/org/onap/so/bpmn/common/scripts/SDNCAdapterRestV1.groovy | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bpmn') diff --git a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SDNCAdapterRestV1.groovy b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SDNCAdapterRestV1.groovy index 669441c320..6377d77d19 100644 --- a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SDNCAdapterRestV1.groovy +++ b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SDNCAdapterRestV1.groovy @@ -304,6 +304,10 @@ class SDNCAdapterRestV1 extends AbstractServiceTaskProcessor { Boolean failOnCallbackError = execution.getVariable("failOnCallbackError") if(failOnCallbackError) { sdncAdapterBuildWorkflowException(execution, callback) + }else { + if(ackFinalIndicator.equals('Y')) { + sdncAdapterBuildWorkflowException(execution, callback) + } } } -- cgit 1.2.3-korg