public void evaluate(final KnowledgeHelper knowledgeHelper,
final WorkingMemory workingMemory) {
/* on first invoke add another one to the agenda */
if ( data.size() < 3 ) {
final PropagationContext context2 = new PropagationContextImpl( 0,
0,
rule,
( LeftTuple ) knowledgeHelper.getTuple(),
null );
final LeftTuple tuple2 = new LeftTuple( new DefaultFactHandle( 2,
"cheese" ), null,
true );
node.assertLeftTuple( tuple2,
context2,
(ReteooWorkingMemory) workingMemory );
}
data.add( "tested" );
}
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
}
public void writeExternal(ObjectOutput out) throws IOException {
}
} );
final PropagationContext context1 = new PropagationContextImpl( 0,
PropagationContext.ASSERTION,
null,
null,
null );