fixed case of execution variables 33/63833/1
authorBenjamin, Max (mb388a) <mb388a@us.att.com>
Thu, 30 Aug 2018 14:13:47 +0000 (10:13 -0400)
committerBenjamin, Max (mb388a) <mb388a@us.att.com>
Thu, 30 Aug 2018 14:14:12 +0000 (10:14 -0400)
Retrieve correct variables and improve error logging

Change-Id: Ia1275e49194657d251779f8862637186d131516b
Issue-ID: SO-940
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoCreateVnf.groovy

index 808bbc1..df4698d 100644 (file)
@@ -311,8 +311,8 @@ class DoCreateVnf extends AbstractServiceTaskProcessor {
                        //Get Service Instance Info
                        String serviceInstanceId = getVariableEnforced(execution, "DoCVNF_serviceInstanceId")
 
-                       String globalCustId = execution.getVariable("global-customer-id")
-                       String serviceType = execution.getVariable("service-type")
+                       String globalCustId = execution.getVariable("globalCustomerId")
+                       String serviceType = execution.getVariable("serviceType")
 
                        Map<String, String> payload = new LinkedHashMap<>();
                        payload.put("vnf-id", vnfId);
@@ -337,7 +337,7 @@ class DoCreateVnf extends AbstractServiceTaskProcessor {
                        resourceClient.connect(uri, siUri)
 
                }catch(Exception ex) {
-                       msoLogger.debug("Error Occured in DoCreateVnf CreateGenericVnf Process " + ex.getMessage())
+                       msoLogger.debug("Error Occured in DoCreateVnf CreateGenericVnf Process ", ex)
                        exceptionUtil.buildAndThrowWorkflowException(execution, 2500, "Internal Error - Occured in DoCreateVnf CreateGenericVnf Process")
                }
                msoLogger.trace("COMPLETED DoCreateVnf CreateGenericVnf Process")