context,
"drools",
KnowledgeHelper.class,
false );
MVELPredicateExpression expr = new MVELPredicateExpression( unit,
context.getDialect().getId() );
predicate.setPredicateExpression( expr );
MVELDialectRuntimeData data = (MVELDialectRuntimeData) context.getPkg().getDialectRuntimeRegistry().getDialectData( "mvel" );
data.addCompileable( predicate,
expr );
expr.compile( data );
} catch ( final Exception e ) {
copyErrorLocation(e, predicateDescr);
context.addError( new DescrBuildError( context.getParentDescr(),
predicateDescr,
e,