update nst selection request 24/114424/2
authorzm330 <zhangminyj@chinamobile.com>
Fri, 30 Oct 2020 00:37:10 +0000 (08:37 +0800)
committerZhang Min <zhangminyj@chinamobile.com>
Mon, 2 Nov 2020 02:32:53 +0000 (02:32 +0000)
Issue-ID: SO-2963

Signed-off-by: zm330 <zhangminyj@chinamobile.com>
Change-Id: I440d3b1078ff16d3457f0e4c02be0fd2d7be497d

bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/DoHandleOofRequest.groovy
bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/OofUtils.groovy
bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoCreateSliceServiceOption.groovy

index 1964a18..b457bdc 100644 (file)
@@ -83,7 +83,7 @@ class DoHandleOofRequest extends AbstractServiceTaskProcessor {
                execution.setVariable("oofRequestPayload", requestJson)
        }
        
-       public void callOofAdapter(DelegateExecution execution) {
+       void callOofAdapter(DelegateExecution execution) {
                logger.debug("Start callOofAdapter")
                String requestId = execution.getVariable("msoRequestId")
                String oofAdapterEndpoint = UrnPropertiesReader.getVariable("mso.adapters.oof.endpoint", execution)
index 30cbeaf..ff31c46 100644 (file)
@@ -540,10 +540,8 @@ class OofUtils {
                         "    \"timeout\": 600,\n" +
                         "    \"callbackUrl\": \"${callbackUrl}\"\n" +
                         "    },\n")
-        response.append(" \"serviceProfile\": {\n" +
-                "   \"serviceProfileParameters\": ")
-        response.append(json);
-        response.append("\n }\n")
+        response.append(" \"serviceProfile\":")
+        response.append(json)
         response.append("\n}\n")
         return response.toString()
     }
index 1d5232f..cfdbe98 100644 (file)
@@ -371,6 +371,9 @@ class DoCreateSliceServiceOption extends AbstractServiceTaskProcessor{
                 execution.setVariable("needQuerySliceProfile", true)
             }
             else {
+                if(execution.getVariable("needQuerySliceProfile")){
+                    execution.setVariable("needQuerySliceProfile", false)
+                }
                 processNewNSI(solution, sliceTaskParams)
             }
         }