public Collection< FactHandle > execute(ReteooWorkingMemory session) {
ReteooStatefulSession reteooStatefulSession = (ReteooStatefulSession) session;
if ( filter != null ) {
return new ObjectStoreWrapper( reteooStatefulSession.getObjectStore(),
null,
ObjectStoreWrapper.FACT_HANDLE );
} else {
return new ObjectStoreWrapper( reteooStatefulSession.getObjectStore(),
filter,
ObjectStoreWrapper.FACT_HANDLE );
}
}