aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src/main/java
diff options
context:
space:
mode:
authorChuanyu Chen <chenchuanyu@huawei.com>2018-04-21 02:47:13 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-21 02:47:13 +0000
commit10391eb68e193f55f361537ecce12d9476f5a896 (patch)
tree4feaaebdfa6413e985bb1a5f5bbbbfff2829fedc /bpmn/MSOCommonBPMN/src/main/java
parent57ed304820f55f47294a5c9a661c2f2387faab29 (diff)
parent1cf0d4884b9d352488d5d241ffa8fe7b48f851e7 (diff)
Merge "Fix input for SDNC resource creaation"
Diffstat (limited to 'bpmn/MSOCommonBPMN/src/main/java')
-rw-r--r--bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/resource/ResourceRequestBuilder.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/resource/ResourceRequestBuilder.java b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/resource/ResourceRequestBuilder.java
index 636b8b5fc6..d32a06d89b 100644
--- a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/resource/ResourceRequestBuilder.java
+++ b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/resource/ResourceRequestBuilder.java
@@ -22,6 +22,7 @@ package org.openecomp.mso.bpmn.common.resource;
import java.io.File;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
@@ -122,7 +123,7 @@ public class ResourceRequestBuilder {
throws SdcToscaParserException {
Map<String, Object> resouceRequest = new HashMap<>();
-
+ List<Map<String, Object>> param = new ArrayList<>();
String csarpath = null;
try {
csarpath = getCsarFromUuid(serviceUuid);
@@ -146,9 +147,13 @@ public class ResourceRequestBuilder {
Property property = resourceProperties.get(key);
Object value = getValue(property.getValue(), serviceInputs, serInput);
- resouceRequest.put(key, value);
+ HashMap<String, Object> parameter = new HashMap<>();
+ parameter.put("name", key);
+ parameter.put("value", value);
+ param.add(parameter);
}
}
+ resouceRequest.put("param", param);
return resouceRequest;
}