Fix type for timeout 07/41507/2
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 7 Apr 2018 10:31:15 +0000 (10:31 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Tue, 10 Apr 2018 04:41:01 +0000 (04:41 +0000)
Fix type for timeout. It should be integer.

Change-Id: Ic836a521152838029b966f250cdc5bb2646b9073
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 93f8659..c66f9ea 100644 (file)
@@ -203,10 +203,10 @@ public class DoCreateResources extends AbstractServiceTaskProcessor
                 String requestAction = resourceInput.getOperationType()
                 JSONObject resourceRecipe = cutils.getResourceRecipe(execution, resourceInput.getResourceModelInfo().getModelUuid(), requestAction)
                 String recipeUri = resourceRecipe.getString("orchestrationUri")
-                String recipeTimeOut = resourceRecipe.getString("recipeTimeout")
+                int recipeTimeOut = resourceRecipe.getInt("recipeTimeout")
                 String recipeParamXsd = resourceRecipe.get("paramXSD")
                 HttpResponse resp = BpmnRestClient.post(recipeUri, requestId, recipeTimeOut, requestAction, serviceInstanceId, serviceType, resourceInput.toString(), recipeParamXsd)
-                
+         utils.log("INFO", "======== end executeResourceRecipe Process ======== ", isDebugEnabled)
         }
     
      public void postConfigRequest(DelegateExecution execution){