Support Activate,Deactivate and Terminate feature for NSMF based TN slices
[so.git] / bpmn / so-bpmn-infrastructure-common / src / main / groovy / org / onap / so / bpmn / infrastructure / scripts / DoDeAllocateAccessNSSI.groovy
index 74a2d98..5b65e08 100644 (file)
@@ -128,10 +128,10 @@ class DoDeAllocateAccessNSSI extends AbstractServiceTaskProcessor {
 
                Map<String,ServiceInstance> relatedNssis = new HashMap<>()
                 relatedNssis = getRelatedInstancesByRole(execution, ROLE_NSSI, anNssiId)
+               execution.setVariable("relatedNssis", relatedNssis)
                 if(relatedNssis.size() == 1) {
                         execution.setVariable("IsRANNfAlonePresent", true)
                 }
-               execution.setVariable("relatedNssis", relatedNssis)
        }