public List executeRules(final List objects,
final ObjectFilter filter) throws InvalidRuleSessionException {
StatelessSession session = newStatelessSession();
StatelessSessionResult results = session.executeWithResults( objects );
return IteratorToList.convert( results.iterateObjects( new ObjectFilterAdapter( filter ) ) );
}
public int getType() throws InvalidRuleSessionException {
return RuleRuntime.STATELESS_SESSION_TYPE;
}