aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src/main/groovy/org
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2020-04-13 14:13:13 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2020-04-13 14:13:13 +0800
commitf834c65d0df4fe0bc8baaccaef3f49f6af41b074 (patch)
treeba739f5dd18d0c493bc31032b1a9df47bc858672 /bpmn/MSOCommonBPMN/src/main/groovy/org
parent3d0979cfa4cf4cdde3f5b29f00757875b3271067 (diff)
Modify NST selection request body
Issue-ID: SO-2368 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> Change-Id: Ie081120278456c24bac6b17cea9d7271370c7059
Diffstat (limited to 'bpmn/MSOCommonBPMN/src/main/groovy/org')
-rw-r--r--bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/OofUtils.groovy10
1 files changed, 7 insertions, 3 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/OofUtils.groovy b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/OofUtils.groovy
index 809472372c..40d76af0ba 100644
--- a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/OofUtils.groovy
+++ b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/OofUtils.groovy
@@ -534,6 +534,7 @@ class OofUtils {
public String buildSelectNSTRequest(String requestId, Map<String, Object> profileInfo) {
def transactionId = requestId
logger.debug( "transactionId is: " + transactionId)
+ String callbackUrl = "http://0.0.0.0:9000/callback/"
ObjectMapper objectMapper = new ObjectMapper()
String json = objectMapper.writeValueAsString(profileInfo)
StringBuilder response = new StringBuilder()
@@ -543,11 +544,14 @@ class OofUtils {
" \"transactionId\": \"${transactionId}\",\n" +
" \"requestId\": \"${requestId}\",\n" +
" \"sourceId\": \"so\",\n" +
- " \"timeout\": 600\n" +
+ " \"timeout\": 600,\n" +
+ " \"callbackUrl\": \"${callbackUrl}\"\n" +
" },\n")
- response.append(" \"serviceInfo\": \n")
+ response.append(" \"serviceProfile\": {\n" +
+ " \"serviceProfileParameters\": \n")
response.append(json);
- response.append("\n }\n")
+ response.append("\n }\n")
+ response.append("\n}\n")
return response.toString()
}
}