public Object evaluate(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
{
if (this.getChildNodes().length == 0)
{
return new CronParameter(cronOperator, null);
}
Object value = evaluator.evaluate(eventsPerStream, isNewData, exprEvaluatorContext);
if (value == null)
{
log.warn("Null value returned for cron parameter");
return new CronParameter(cronOperator, null);
}
else
{
int intValue = ((Number) value).intValue();
return new CronParameter(cronOperator, intValue);
}
}