context,
rule1 );
/* Assert the logical "logical" fact */
String logicalString1 = new String ( "logical" );
FactHandle logicalHandle1 = workingMemory.assertObject( logicalString1,
false,
true,
rule1,
activation1 );
/* create the second activation to justify the "logical" fact */
final Rule rule2 = new Rule( "test-rule2" );
rule2.setConsequence( consequence );
FactHandleImpl handle2 = new FactHandleImpl( 2 );
ReteTuple tuple2 = new ReteTuple( 0,
handle2,
workingMemory );
Activation activation2 = new AgendaItem( tuple2,
context,
rule2 );
/* Assert the logical "logical" fact */
String logicalString2 = new String ( "logical" );
FactHandle logicalHandle2 = workingMemory.assertObject( logicalString2,
false,
true,
rule2,
activation2 );