From 842b4536673c52790037da742a0369afe4e9a483 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Thu, 5 Apr 2018 14:25:53 +0000 Subject: Fix missing input parameter for subprocess Fix missing input parameter for subprocess. Change-Id: I56804ca3990b6ff2e6d89a2e06915c7110dfc04f Issue-ID: SO-422 Signed-off-by: subhash kumar singh --- .../openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp') diff --git a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy index a53540ac89..6b0990ba5d 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy +++ b/bpmn/MSOInfrastructureBPMN/src/main/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/DoCreateResources.groovy @@ -137,6 +137,7 @@ public class DoCreateResources extends AbstractServiceTaskProcessor def currentIndex = execution.getVariable("currentResourceIndex") List sequencedResourceList = execution.getVariable("sequencedResourceList") Resource currentResource = sequencedResourceList.get(currentIndex) + execution.setVariable("resourceType", currentResource.getModelInfo().getModelName()) utils.log("INFO", "Now we deal with resouce:" + currentResource.getModelInfo().getModelName(), isDebugEnabled) utils.log("INFO", "======== COMPLETED getCurrentResoure Process ======== ", isDebugEnabled) } @@ -161,6 +162,7 @@ public class DoCreateResources extends AbstractServiceTaskProcessor utils.log("INFO", "======== Start prepareResourceRecipeRequest Process ======== ", isDebugEnabled) ResourceInput resourceInput = new ResourceInput() String serviceInstanceName = execution.getVariable("serviceInstanceName") + String resourceType = execution.getVariable("resourceType") String resourceInstanceName = resourceType + "_" + serviceInstanceName resourceInput.setResourceInstanceName(resourceInstanceName) utils.log("INFO", "Prepare Resource Request resourceInstanceName:" + resourceInstanceName, isDebugEnabled) -- cgit 1.2.3-korg