Only continue to wait on error when final 03/113503/1
authorBoslet, Cory <cory.boslet@att.com>
Sat, 3 Oct 2020 02:28:16 +0000 (22:28 -0400)
committerBenjamin, Max (mb388a) <mb388a@att.com>
Sat, 3 Oct 2020 02:28:16 +0000 (22:28 -0400)
Only continue to wait on error when final indicator is N

Issue-ID: SO-3285
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I2914762a6f2776dcb39ab68422b237ffc7eda0f0

bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/SDNCAdapterRestV1.groovy

index 669441c..6377d77 100644 (file)
@@ -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)
+                    }
                 }
             }