From 47ef22e3f9c0261835f1b07a4768e87a3d0fe71b Mon Sep 17 00:00:00 2001 From: Rob Daugherty Date: Fri, 9 Nov 2018 09:31:55 -0500 Subject: arUrl variable is null on vCPE PUT to AAI Change-Id: Iee4641f098c519b7833a1f5038a2024b42a11198 Issue-ID: SO-1201 Signed-off-by: Rob Daugherty --- .../org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceBRG.groovy | 5 +++-- .../org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceTXC.groovy | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'bpmn/so-bpmn-infrastructure-common') diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceBRG.groovy b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceBRG.groovy index 1be4989490..723bfd54d7 100644 --- a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceBRG.groovy +++ b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceBRG.groovy @@ -277,8 +277,9 @@ public class DoCreateAllottedResourceBRG extends AbstractServiceTaskProcessor{ AaiUtil aaiUriUtil = new AaiUtil(this) AAIResourceUri siResourceLink= execution.getVariable("PSI_resourceLink") AllottedResourceUtils arUtils = new AllottedResourceUtils(this) - execution.setVariable("aaiARPath", arUtils.createARUrl(execution, siResourceLink, allottedResourceId)) - msoLogger.debug("GET AllottedResource AAI URL is:\n" + arUrl) + arUrl = arUtils.createARUrl(execution, siResourceLink, allottedResourceId) + execution.setVariable("aaiARPath", arUrl) + msoLogger.debug("PUT AllottedResource AAI URL is:\n" + arUrl) String namespace = aaiUriUtil.getNamespaceFromUri(execution, arUrl) diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceTXC.groovy b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceTXC.groovy index 48eb1c85f9..ef5660c081 100644 --- a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceTXC.groovy +++ b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/vcpe/scripts/DoCreateAllottedResourceTXC.groovy @@ -205,8 +205,9 @@ public class DoCreateAllottedResourceTXC extends AbstractServiceTaskProcessor{ AaiUtil aaiUriUtil = new AaiUtil(this) AAIResourceUri siResourceLink= execution.getVariable("PSI_resourceLink") AllottedResourceUtils arUtils = new AllottedResourceUtils(this) - execution.setVariable("aaiARPath", arUtils.createARUrl(execution, siResourceLink, allottedResourceId)) - msoLogger.debug("GET AllottedResource AAI URL is:\n" + arUrl) + arUrl = arUtils.createARUrl(execution, siResourceLink, allottedResourceId) + execution.setVariable("aaiARPath", arUrl) + msoLogger.debug("PUT AllottedResource AAI URL is:\n" + arUrl) String namespace = aaiUriUtil.getNamespaceFromUri(execution, arUrl) -- cgit 1.2.3-korg