get service type and customer id from uri keys
[so.git] / bpmn / so-bpmn-infrastructure-common / src / main / groovy / org / onap / so / bpmn / infrastructure / scripts / DoCreateNetworkInstance.groovy
index a376e58..731d9c2 100644 (file)
@@ -330,6 +330,10 @@ public class DoCreateNetworkInstance extends AbstractServiceTaskProcessor {
 
                        if(!resourceClient.exists(uri)){
                                exceptionUtil.buildAndThrowWorkflowException(execution, 2500, "Service instance was not found in aai")
+                       }else{
+                               Map<String, String> keys = uri.getURIKeys()
+                               execution.setVariable("serviceType", keys.get("service-type"))
+                               execution.setVariable("subscriberName", keys.get("global-customer-id"))
                        }
 
                }catch(BpmnError e) {