@@ -260,6 +260,7 @@ public static String getMethodAttributeValue(ExtensionContext context, Element e
260
260
public static String resolveVariableValueReference (ExtensionContext context ,
261
261
String variableValueReference ) throws FaultException {
262
262
String variableValue = variableValueReference ;
263
+ logger .debug ("Resolving variable value reference for: {}" , variableValueReference );
263
264
264
265
// Check if a concrete variable name ("varName") or a reference to the value of
265
266
// a variable is specified ("$bpelVar[varName]")
@@ -268,6 +269,7 @@ public static String resolveVariableValueReference(ExtensionContext context,
268
269
int endIndexOfVarReference = variableValue .indexOf ("]" );
269
270
270
271
String variableName = variableValue .substring (startIndexOfVarReference + VARIABLE_VALUE_REFERENCE .length (), endIndexOfVarReference );
272
+ logger .debug ("Found variable name to resolve: {}" , variableName );
271
273
272
274
String prefix = variableValue .startsWith (VARIABLE_VALUE_REFERENCE ) ? "" : variableValue .substring (0 , startIndexOfVarReference );
273
275
String suffix = variableValue .length () > endIndexOfVarReference + 1 ? variableValue .substring (endIndexOfVarReference + 1 ) : "" ;
@@ -277,10 +279,12 @@ public static String resolveVariableValueReference(ExtensionContext context,
277
279
// We only support simple type variables, therefore the value of the variable is
278
280
// directly provided within a <temporary-simple-type-wrapper/> element.
279
281
if (variable != null && isSimpleType (variable .type )) {
282
+ logger .debug ("Variable is of simple type and can be resolved!" );
280
283
Node variableContent = context .readVariable (variableName );
281
284
282
285
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 ());
284
288
variableValue = prefix + variableContent .getTextContent () + suffix ;
285
289
}
286
290
} else {
0 commit comments