ExecutableScript executableScript = parseCamundaScript(parameterElement);
if (executableScript != null) {
return new ScriptValueProvider(executableScript);
}
else {
return new NullValueProvider();
}
}
String textContent = parameterElement.getText().trim();
if(!textContent.isEmpty()) {
if(StringUtil.isExpression(textContent)) {
// EL
return new ElValueProvider(expressionManager.createExpression(textContent));
} else {
// CONSTANT (String)
return new ConstantValueProvider(textContent);
}
} else {
// NULL value
return new NullValueProvider();
}
}