{
return value;
}
else if (value instanceof ErrorValue)
{
final ErrorValue errorValue = (ErrorValue) value;
if (result != null)
{
result.addError(entry.getName(),
new ValidationMessage(Messages.getInstance().formatMessage
("FormulaParameterEvaluator.PostProcessingFormulaFailed",
errorValue.getErrorMessage(Locale.getDefault()))));
}
// if the value is a hard error, we return <null> instead of the default value.
// This way, a mandatory parameter will not continue in case of eval-errors.
return null;
}