Set Variable 77/88177/1
authorSmokowski, Steve (ss835w) <ss835w@us.att.com>
Tue, 21 May 2019 15:18:44 +0000 (11:18 -0400)
committerSmokowski, Steve (ss835w) <ss835w@us.att.com>
Tue, 21 May 2019 15:18:44 +0000 (11:18 -0400)
Fix issue here variable is not set if SI is found.

Issue-ID: SO-1419

Change-Id: If9a75fc57e280c2aba5361096e4ebf01ab13056f
Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoDeleteServiceInstance.groovy

index 0c676b5..1acadbd 100644 (file)
@@ -290,7 +290,8 @@ public class DoDeleteServiceInstance extends AbstractServiceTaskProcessor {
                        AAIResourcesClient resourceClient = new AAIResourcesClient()
                        AAIResourceUri uri = AAIUriFactory.createResourceUri(AAIObjectType.SERVICE_INSTANCE, serviceInstanceId)
 
-                       if(resourceClient.exists(uri)){
+                       if(resourceClient.exists(uri)){                         
+                               execution.setVariable("GENGS_FoundIndicator", true)
                                execution.setVariable("GENGS_siResourceLink", uri.build().toString())
                                Map<String, String> keys = uri.getURIKeys()
                                String  globalSubscriberId = execution.getVariable("globalSubscriberId")