From 4887944fca29960af6876205056affebc5a5b978 Mon Sep 17 00:00:00 2001 From: c00149107 Date: Mon, 6 Nov 2017 16:41:52 +0800 Subject: Add Relationship between e2eservice and ns Add Relationship between e2eservice and ns Change-Id: Ib79fe952560789b2a1113e93eea1179b6c5088e7 Issue-ID:SO-307 Signed-off-by: c00149107 --- .../infrastructure/scripts/DoCreateVFCNetworkServiceInstance.groovy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bpmn/MSOInfrastructureBPMN') diff --git a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateVFCNetworkServiceInstance.groovy b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateVFCNetworkServiceInstance.groovy index 41d7edbebc..06cf8c3cd1 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateVFCNetworkServiceInstance.groovy +++ b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateVFCNetworkServiceInstance.groovy @@ -208,15 +208,14 @@ public class DoCreateVFCNetworkServiceInstance extends AbstractServiceTaskProces public void addNSRelationship(Execution execution) { def isDebugEnabled=execution.getVariable("isDebugLogEnabled") utils.log("INFO"," ***** addNSRelationship *****", isDebugEnabled) - String operationStatus = execution.getVariable("operationStatus") - if(operationStatus != "finished"){ + String nsInstanceId = execution.getVariable("nsInstanceId") + if(nsInstanceId == null || nsInstanceId == ""){ utils.log("INFO"," create NS failed, so do not need to add relationship", isDebugEnabled) return } String globalSubscriberId = execution.getVariable("globalSubscriberId") String serviceType = execution.getVariable("serviceType") String serviceId = execution.getVariable("serviceId") - String nsInstanceId = execution.getVariable("nsInstanceId") String addRelationPayload = """ service-instance /aai/v11/business/customers/customer/${globalSubscriberId}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${nsInstanceId} -- cgit 1.2.3-korg