Fix url for the resource bpmn invocation 47/42247/2
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Wed, 11 Apr 2018 11:12:03 +0000 (11:12 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Wed, 11 Apr 2018 13:05:03 +0000 (13:05 +0000)
Fix url for the resource bpmn invocation

Change-Id: I70234406e6d30cf6ef7a408384b520db8506d11d
Issue-ID: SO-422
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy

index ff9a825..8eea0f5 100644 (file)
@@ -201,10 +201,10 @@ public class DoCreateResources extends AbstractServiceTaskProcessor
                 ResourceInput resourceInput = execution.getVariable("resourceInput")
                 String requestAction = resourceInput.getOperationType()
                 JSONObject resourceRecipe = cutils.getResourceRecipe(execution, resourceInput.getResourceModelInfo().getModelUuid(), requestAction)
-                String recipeUri = resourceRecipe.getString("orchestrationUri")
+         String recipeURL = BPMNProperties.getProperty("bpelURL", "http://mso:8080") + resourceRecipe.getString("orchestrationUri")
                 int recipeTimeOut = resourceRecipe.getInt("recipeTimeout")
                 String recipeParamXsd = resourceRecipe.get("paramXSD")
-                HttpResponse resp = BpmnRestClient.post(recipeUri, requestId, recipeTimeOut, requestAction, serviceInstanceId, serviceType, resourceInput.toString(), recipeParamXsd)
+                HttpResponse resp = BpmnRestClient.post(recipeURL, requestId, recipeTimeOut, requestAction, serviceInstanceId, serviceType, resourceInput.toString(), recipeParamXsd)
          utils.log("INFO", "======== end executeResourceRecipe Process ======== ", isDebugEnabled)
         }