diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2017-09-21 12:06:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-21 12:06:20 +0000 |
commit | 4d8773a237d3c0b94b8aac3250946b7fff77fd62 (patch) | |
tree | 69e5464b4e53ba39634d8d6b6fb78a70eb21de5b /bpmn/MSOInfrastructureBPMN | |
parent | 0dd633787da1a13862973d80914e793bcbfb3e80 (diff) | |
parent | adc83d0c6352d055cddabf850b1380413a0bfc5f (diff) |
Merge "Generate the nsParameters"
Diffstat (limited to 'bpmn/MSOInfrastructureBPMN')
-rw-r--r-- | bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateVFCNetworkServiceInstance.groovy | 14 |
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;
|