Merge "Generate the nsParameters"
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 d5c6a88..4a7f474 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 @@
            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;