null,
variables,
context,
"context",
org.drools.runtime.process.ProcessContext.class);
MVELAction expr = new MVELAction( unit, context.getDialect().getId() );
action.setMetaData("Action", expr );
MVELDialectRuntimeData data = (MVELDialectRuntimeData) context.getPkg().getDialectRuntimeRegistry().getDialectData( dialect.getId() );
data.addCompileable( action,
expr );
expr.compile( data );
} catch ( final Exception e ) {
context.getErrors().add( new DescrBuildError( context.getParentDescr(),
actionDescr,
null,
"Unable to build expression for action '" + actionDescr.getText() + "' :" + e ) );