From ae4462a157c19c543502d12ff7bf244abe11928b Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Tue, 17 Apr 2018 15:34:42 +0000 Subject: Fix vfc request parameters Fix vfc request parameters. Change-Id: I73b726dfebf85597b81090aef03a2da4c55477fe Issue-ID: SO-422 Signed-off-by: subhash kumar singh --- .../mso/bpmn/infrastructure/scripts/CreateVFCNSResource.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bpmn/MSOInfrastructureBPMN/src/main/groovy') diff --git a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/CreateVFCNSResource.groovy b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/CreateVFCNSResource.groovy index b29c4dc101..9456007dc8 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/CreateVFCNSResource.groovy +++ b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/CreateVFCNSResource.groovy @@ -70,13 +70,13 @@ public class CreateVFCNSResource extends AbstractServiceTaskProcessor { //deal with nsName and Description String resourceInput = execution.getVariable("resourceInput") + String resourceParameters = jsonUtil.getJsonValue(resourceInput, "resourceParameters") // get service name String resourceName = jsonUtil.getJsonValue(resourceInput, "resourceInstanceName") - String nsServiceName = resourceName.substring(resourceName.indexOf("_") + 1) - execution.setVariable("nsServiceName", nsServiceName) + execution.setVariable("nsServiceName", resourceName) String nsServiceDescription = execution.getVariable("nsServiceDescription") - utils.log("INFO", "nsServiceName:" + nsServiceName + " nsServiceDescription:" + nsServiceDescription, isDebugEnabled) + utils.log("INFO", "nsServiceName:" + resourceName + " nsServiceDescription:" + nsServiceDescription, isDebugEnabled) //deal with operation key String globalSubscriberId = jsonUtil.getJsonValue(resourceInput, "globalSubscriberId") utils.log("INFO", "globalSubscriberId:" + globalSubscriberId, isDebugEnabled) @@ -90,7 +90,7 @@ public class CreateVFCNSResource extends AbstractServiceTaskProcessor { String operationId = execution.getVariable("requestId") utils.log("INFO", "serviceType:" + serviceType, isDebugEnabled) - String nodeTemplateUUID = jsonUtil.getJsonValue(resourceInput, "resourceModelInfo.modelCustomizationUuid") + String nodeTemplateUUID = jsonUtil.getJsonValue(resourceParameters, "requestInputs.nsd0_providing_service_uuid") utils.log("INFO", "nodeTemplateUUID:" + nodeTemplateUUID, isDebugEnabled) /* * segmentInformation needed as a object of segment -- cgit 1.2.3-korg