* on illegal rule session state.
*/
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 {