Generate the nsParameters 97/14197/1
authorc00149107 <chenchuanyu@huawei.com>
Thu, 21 Sep 2017 09:56:43 +0000 (17:56 +0800)
committerc00149107 <chenchuanyu@huawei.com>
Thu, 21 Sep 2017 09:56:43 +0000 (17:56 +0800)
Generate the nsParameters from the request body

Change-Id: I31cdcb3a576d031dc6606dd4fabf7c2401786ab2
Issue-ID:SO-57
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateVFCNetworkServiceInstance.groovy

index d5c6a88..4a7f474 100644 (file)
@@ -72,12 +72,24 @@ public class CreateGenericE2EServiceInstance extends AbstractServiceTaskProcesso
            utils.log("DEBUG", "serviceType:" + serviceType, isDebugEnabled)\r
            String nodeTemplateUUID = execution.getVariable("nodeTemplateUUID")\r
            utils.log("DEBUG", "globalSubscriberId:" + globalSubscriberId, isDebugEnabled)\r
-           String siRequest = execution.getVariable("nodeParamters")\r
+           /*\r
+            * segmentInformation needed as a object of segment\r
+            * {\r
+            *     "domain":"",\r
+            *     "nodeTemplateName":"",\r
+            *     "nodeType":"",\r
+            *     "nsParameters":{\r
+            *       //this is the nsParameters sent to VF-C\r
+            *     }\r
+            * }\r
+            */\r
+           String siRequest = execution.getVariable("segmentInformation")\r
            utils.log("DEBUG", "Input Request:" + siRequest, isDebugEnabled)\r
            String nsOperationKey = "{\"globalSubscriberId\":" + globalSubscriberId + ",\"serviceType:\""\r
                  + serviceType + ",\"serviceId\":" + serviceId + ",\"operationId\":" + operationId\r
                  +",\"nodeTemplateUUID\":" + nodeTemplateUUID + "}";\r
            execution.setVariable("nsOperationKey", nsOperationKey);\r
+           execution.setVariable("nsParameters", jsonUtil.getJsonValue(siRequest, "nsParameters"))\r
 \r
        } catch (BpmnError e) {\r
            throw e;\r