diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2020-03-31 14:54:33 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2020-04-01 14:15:06 +0800 |
commit | fb6f70e61803d3634b7decb847950b733a7adfdf (patch) | |
tree | aeb63ee623daacd2a9283050ae194290fa1ba8d2 | |
parent | 79d1e0244ce1f01f76640491dd6fca23420212cd (diff) |
Fix serviceProfile serialize
Issue-ID: SO-2368
Change-Id: Ia68bef5a1d7413fa2a6b88c79cbaa0501d8f9b57
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
-rw-r--r-- | bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/CreateSliceService.groovy | 7 |
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 1efc1c11aa..12aa0434ea 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")) |