context,
"drools",
KnowledgeHelper.class,
false );
MVELConsequence expr = new MVELConsequence( unit,
dialect.getId(),
consequenceName );
if ( RuleImpl.DEFAULT_CONSEQUENCE_NAME.equals( consequenceName ) ) {
context.getRule().setConsequence( expr );
} else {
context.getRule().addNamedConsequence(consequenceName, expr);
}
MVELDialectRuntimeData data = (MVELDialectRuntimeData) context.getPkg().getDialectRuntimeRegistry().getDialectData( "mvel" );
data.addCompileable( context.getRule(),
expr );
expr.compile( data );
} catch ( final Exception e ) {
copyErrorLocation(e, context.getRuleDescr());
context.addError(new DescrBuildError(context.getParentDescr(),
context.getRuleDescr(),
null,