From adc83d0c6352d055cddabf850b1380413a0bfc5f Mon Sep 17 00:00:00 2001 From: c00149107 Date: Thu, 21 Sep 2017 17:56:43 +0800 Subject: Generate the nsParameters Generate the nsParameters from the request body Change-Id: I31cdcb3a576d031dc6606dd4fabf7c2401786ab2 Issue-ID:SO-57 Signed-off-by: c00149107 --- .../scripts/DoCreateVFCNetworkServiceInstance.groovy | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'bpmn/MSOInfrastructureBPMN/src/main/groovy/org') 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 d5c6a88c4c..4a7f4745bc 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 @@ -72,12 +72,24 @@ public class CreateGenericE2EServiceInstance extends AbstractServiceTaskProcesso utils.log("DEBUG", "serviceType:" + serviceType, isDebugEnabled) String nodeTemplateUUID = execution.getVariable("nodeTemplateUUID") utils.log("DEBUG", "globalSubscriberId:" + globalSubscriberId, isDebugEnabled) - String siRequest = execution.getVariable("nodeParamters") + /* + * segmentInformation needed as a object of segment + * { + * "domain":"", + * "nodeTemplateName":"", + * "nodeType":"", + * "nsParameters":{ + * //this is the nsParameters sent to VF-C + * } + * } + */ + String siRequest = execution.getVariable("segmentInformation") utils.log("DEBUG", "Input Request:" + siRequest, isDebugEnabled) String nsOperationKey = "{\"globalSubscriberId\":" + globalSubscriberId + ",\"serviceType:\"" + serviceType + ",\"serviceId\":" + serviceId + ",\"operationId\":" + operationId +",\"nodeTemplateUUID\":" + nodeTemplateUUID + "}"; execution.setVariable("nsOperationKey", nsOperationKey); + execution.setVariable("nsParameters", jsonUtil.getJsonValue(siRequest, "nsParameters")) } catch (BpmnError e) { throw e; -- cgit 1.2.3-korg