public void invoke(Activation activation)
{
/* on first invoke add another one to the agenda */
if ( data.size() < 3 )
{
PropagationContext context2 = new PropagationContextImpl( 0,
rule,
activation );
ReteTuple tuple2 = new ReteTuple( 0,
new FactHandleImpl( 2 ),
workingMemory );
agenda.addToAgenda( tuple2,
context2,
rule );
}
data.add( "tested" );
}
} );
PropagationContext context1 = new PropagationContextImpl( PropagationContext.ASSERTION,
null,
null );
ReteTuple tuple1 = new ReteTuple( 0,
new FactHandleImpl( 1 ),