}
public void updateSink(final ObjectSink sink,
final PropagationContext context,
final InternalWorkingMemory workingMemory) {
FactHashTable memory = null;
if ( !hasMemory() ) {
// get the objects from the parent
this.objectSource.updateSink( sink,
context,
workingMemory );
} else {
// if already has memory, just iterate and propagate
memory = (FactHashTable) workingMemory.getNodeMemory( this );
final Iterator it = memory.iterator();
for ( FactEntry entry = (FactEntry) it.next(); entry != null; entry = (FactEntry) it.next() ) {
sink.assertObject( entry.getFactHandle(),
context,
workingMemory );
}