FactHandleImpl handle1 = new FactHandleImpl( 1 );
ReteTuple tuple1 = new ReteTuple( 0,
handle1,
workingMemory );
final PropagationContext context1 = new PropagationContextImpl( PropagationContext.ASSERTION,
null,
null );
/* get the activation onto the agenda*/
agenda.addToAgenda( tuple1,
context1,
rule1 );
/* Create the second justifer */
final Rule rule2 = new Rule( "test-rule2" );
rule2.setConsequence( consequence );
FactHandleImpl handle2 = new FactHandleImpl( 2 );
ReteTuple tuple2 = new ReteTuple( 0,
handle2,
workingMemory );
final PropagationContext context2 = new PropagationContextImpl( PropagationContext.ASSERTION,
null,
null );
/* get the activations onto the agenda */
agenda.addToAgenda( tuple2,