summaryrefslogtreecommitdiffstats
path: root/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap
diff options
context:
space:
mode:
authorChuanyu Chen <chenchuanyu@huawei.com>2020-05-08 06:09:46 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-08 06:09:46 +0000
commit14c80fee36e4e054d87d2b19004f19ac24d0f6c4 (patch)
tree22b9d853baaedde56562641215b10e48d2d9cb21 /bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap
parent5e67cc099f6bcade2f12bf9220bdf3682f2d06c1 (diff)
parentb86df1407899359f021069f56830a0146ee67307 (diff)
Merge "Fix serviceProfile serialize"
Diffstat (limited to 'bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap')
-rw-r--r--bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateSliceService.groovy7
1 files changed, 6 insertions, 1 deletions
diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateSliceService.groovy b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateSliceService.groovy
index b3f030d480..2da5878e36 100644
--- a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateSliceService.groovy
+++ b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateSliceService.groovy
@@ -155,9 +155,14 @@ public class CreateSliceService extends AbstractServiceTaskProcessor {
Map<String, Object> parameterObject = (Map<String, Object>) serviceObject.get("parameters")
Map<String, Object> requestInputs = (Map<String, Object>) parameterObject.get("requestInputs")
+ def serviceProfile = [:]
+ for(entry in requestInputs) {
+ serviceProfile[entry.key] = entry.value
+ }
+
execution.setVariable("serviceInputParams", inputMap)
execution.setVariable("uuiRequest", uuiRequest)
- execution.setVariable("serviceProfile", requestInputs)
+ execution.setVariable("serviceProfile", serviceProfile)
//TODO
//execution.setVariable("serviceInputParams", jsonUtil.getJsonValue(siRequest, "requestDetails.requestParameters.userParams"))