arUrl variable is null on vCPE PUT to AAI

Change-Id: Iee4641f098c519b7833a1f5038a2024b42a11198
Issue-ID: SO-1201
Signed-off-by: Rob Daugherty <rd472p@att.com>
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 1be4989..723bfd5 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 @@
 			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 48eb1c8..ef5660c 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 @@
 			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)