Fix missing var name for request input 67/42267/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Wed, 11 Apr 2018 13:02:15 +0000 (13:02 +0000)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Wed, 11 Apr 2018 13:05:03 +0000 (13:05 +0000)
Fix missing var name for request input

Change-Id: I6bd1f6ce4e7f134a23b0b6eb217fd9d0fae8c466
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/CreateSDNCNetworkResource.groovy

index a0df8e2..a4f9525 100644 (file)
@@ -69,10 +69,10 @@ public class CreateSDNCNetworkResource extends AbstractServiceTaskProcessor {
             utils.log("INFO","The requestAction is: " + requestAction,  isDebugEnabled)\r
             String recipeParamsFromRequest = execution.getVariable("recipeParams")\r
             utils.log("INFO","The recipeParams is: " + recipeParamsFromRequest,  isDebugEnabled)\r
-            String resourceInput = execution.getVariable("requestInput")\r
+            String resourceInput = execution.getVariable("resourceInput")\r
             utils.log("INFO","The resourceInput is: " + resourceInput,  isDebugEnabled)\r
             //Get ResourceInput Object\r
-            ResourceInput resourceInputObj = ResourceRequestBuilder.getJsonObject(resourceInput, resourceInputObj)\r
+            ResourceInput resourceInputObj = ResourceRequestBuilder.getJsonObject(resourceInput, ResourceInput.class)\r
             execution.setVariable(Prefix + "resourceInput", resourceInputObj)\r
             \r
             //Deal with recipeParams\r