null,
context,
"drools",
KnowledgeHelper.class );
MVELDataProvider dataProvider = new MVELDataProvider( unit,
context.getDialect().getId() );
from = new From( dataProvider );
MVELDialectRuntimeData data = (MVELDialectRuntimeData) context.getPkg().getDialectRuntimeRegistry().getDialectData( dialect.getId() );
data.addCompileable( from,
dataProvider );
dataProvider.compile( context.getPackageBuilder().getRootClassLoader() );
} catch ( final Exception e ) {
context.getErrors().add( new DescrBuildError( context.getParentDescr(),
fromDescr,
null,
"Unable to build expression for 'from' : " + e.getMessage() + " '" + expr.getText() + "'" ) );