return conditionEvaluator.evaluate(object, workingMemory, leftTuple);
}
private void createMvelConditionEvaluator(InternalWorkingMemory workingMemory) {
if (compilationUnit != null) {
MVELDialectRuntimeData data = getMVELDialectRuntimeData(workingMemory);
ExecutableStatement statement = (ExecutableStatement)compilationUnit.getCompiledExpression(data);
ParserConfiguration configuration = statement instanceof CompiledExpression ?
((CompiledExpression)statement).getParserConfiguration() :
data.getParserConfiguration();
conditionEvaluator = new MvelConditionEvaluator(compilationUnit, configuration, statement, declarations);
} else {
conditionEvaluator = new MvelConditionEvaluator(getParserConfiguration(workingMemory), expression, declarations);
}
}