summaryrefslogtreecommitdiffstats
path: root/bpmn/MSOInfrastructureBPMN/src/main/groovy/org
diff options
context:
space:
mode:
authorc00149107 <chenchuanyu@huawei.com>2017-09-21 17:56:43 +0800
committerc00149107 <chenchuanyu@huawei.com>2017-09-21 17:56:43 +0800
commitadc83d0c6352d055cddabf850b1380413a0bfc5f (patch)
tree7bf634483136b8acbbf9ec84fc62978a36d7dc7d /bpmn/MSOInfrastructureBPMN/src/main/groovy/org
parent5f44ddccb4ffcd5e7899e63994e1049e842b6fee (diff)
Generate the nsParameters
Generate the nsParameters from the request body Change-Id: I31cdcb3a576d031dc6606dd4fabf7c2401786ab2 Issue-ID:SO-57 Signed-off-by: c00149107 <chenchuanyu@huawei.com>
Diffstat (limited to 'bpmn/MSOInfrastructureBPMN/src/main/groovy/org')
-rw-r--r--bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateVFCNetworkServiceInstance.groovy14
1 files changed, 13 insertions, 1 deletions
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;