@@ -260,6 +260,7 @@ public static String getMethodAttributeValue(ExtensionContext context, Element e
260260 public static String resolveVariableValueReference (ExtensionContext context ,
261261 String variableValueReference ) throws FaultException {
262262 String variableValue = variableValueReference ;
263+ logger .debug ("Resolving variable value reference for: {}" , variableValueReference );
263264
264265 // Check if a concrete variable name ("varName") or a reference to the value of
265266 // a variable is specified ("$bpelVar[varName]")
@@ -268,6 +269,7 @@ public static String resolveVariableValueReference(ExtensionContext context,
268269 int endIndexOfVarReference = variableValue .indexOf ("]" );
269270
270271 String variableName = variableValue .substring (startIndexOfVarReference + VARIABLE_VALUE_REFERENCE .length (), endIndexOfVarReference );
272+ logger .debug ("Found variable name to resolve: {}" , variableName );
271273
272274 String prefix = variableValue .startsWith (VARIABLE_VALUE_REFERENCE ) ? "" : variableValue .substring (0 , startIndexOfVarReference );
273275 String suffix = variableValue .length () > endIndexOfVarReference + 1 ? variableValue .substring (endIndexOfVarReference + 1 ) : "" ;
@@ -277,10 +279,12 @@ public static String resolveVariableValueReference(ExtensionContext context,
277279 // We only support simple type variables, therefore the value of the variable is
278280 // directly provided within a <temporary-simple-type-wrapper/> element.
279281 if (variable != null && isSimpleType (variable .type )) {
282+ logger .debug ("Variable is of simple type and can be resolved!" );
280283 Node variableContent = context .readVariable (variableName );
281284
282285 if (variableContent .getTextContent () != null ) {
283- // Return the value of the variable plus the optionally specified prefix and suffix as result
286+ // Return the value of the variable plus the optionally specified prefix and suffix as result
287+ logger .debug ("Replacing variable with following value: {}" , variableContent .getTextContent ());
284288 variableValue = prefix + variableContent .getTextContent () + suffix ;
285289 }
286290 } else {
0 commit comments