From b86df1407899359f021069f56830a0146ee67307 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Tue, 31 Mar 2020 14:54:33 +0800 Subject: Fix serviceProfile serialize Issue-ID: SO-2368 Change-Id: Ia68bef5a1d7413fa2a6b88c79cbaa0501d8f9b57 Signed-off-by: Harry Huang (cherry picked from commit fb6f70e61803d3634b7decb847950b733a7adfdf) --- .../onap/so/bpmn/infrastructure/scripts/CreateSliceService.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bpmn/so-bpmn-infrastructure-common/src/main') 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 parameterObject = (Map) serviceObject.get("parameters") Map requestInputs = (Map) 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")) -- cgit 1.2.3-korg