}
}
public Object eval(String str,
Map vars) {
ParserConfiguration pconf = new ParserConfiguration();
pconf.addPackageImport("org.jbpm.task");
pconf.addPackageImport("org.jbpm.task.service");
pconf.addPackageImport("org.jbpm.task.query");
pconf.addPackageImport("java.util");
for(String entry : getInputs().keySet()){
pconf.addImport(entry, getInputs().get(entry));
}
ParserContext context = new ParserContext(pconf);
Serializable s = MVEL.compileExpression(str.trim(), context);
return MVEL.executeExpression(s, vars);
}