MVELDialectRuntimeData data = (MVELDialectRuntimeData) pkg
.getDialectRuntimeRegistry().getDialectData(this.id);
factory.setNextFactory(data.getFunctionFactory());
}
CompiledExpression compexpr = (CompiledExpression) this.expr;
// Receive breakpoints from debugger
MVELDebugHandler.prepare();
pkg = knowledgeHelper.getWorkingMemory().getRuleBase().getPackage(
knowledgeHelper.getRule().getPackage());
ClassLoader tempClassLoader = Thread.currentThread()
.getContextClassLoader();
Thread.currentThread().setContextClassLoader(
((InternalRuleBase) workingMemory.getRuleBase())
.getRootClassLoader());
if (MVELDebugHandler.isDebugMode()) {
if (MVELDebugHandler.verbose) {
System.out.println("Executing expression " + compexpr.getSourceName());
System.out.println(DebugTools.decompile(compexpr));
}
MVEL.executeDebugger(compexpr, null, factory);
} else {
MVEL.executeExpression(compexpr, null, factory);