99199299399499599699799899910001001
context2, workingMemory ); node3.assertLeftTuple( tuple, context3, workingMemory ); agenda.unstageActivations(); // activation-group-0 should be populated again assertEquals( 2, activationGroup0.size() );
11471148114911501151115211531154115511561157
null, true ); node2.assertLeftTuple( tuple3, context0, workingMemory ); agenda.unstageActivations(); // RuleFlowGroups should be populated, but the agenda shouldn't be assertEquals( 2, ruleFlowGroup0.size() ); assertEquals( 1,
13171318131913201321132213231324132513261327
null, true ); node0.assertLeftTuple( tuple0, context0, workingMemory ); agenda.unstageActivations(); // RuleFlowGroup should be populated, but the agenda shouldn't be assertEquals( 1, ruleFlowGroup0.size() ); assertEquals( 0,
14571458145914601461146214631464146514661467
workingMemory ); node1.assertLeftTuple( tuple1, context0, workingMemory ); agenda.unstageActivations(); // RuleFlowGroup should be populated, but the agenda shouldn't be assertEquals( 2, ruleFlowGroup0.size() ); assertEquals( 0,
15531554155515561557155815591560156115621563
null, true ); node0.assertLeftTuple( tuple1, context0, workingMemory ); agenda.unstageActivations(); // RuleFlowGroup should be populated, but the agenda shouldn't be assertEquals( 2, ruleFlowGroup0.size() ); assertEquals( 0,
16971698169917001701170217031704170517061707
null, true ); node0.assertLeftTuple( tuple1, context0, workingMemory ); agenda.unstageActivations(); agenda.activateRuleFlowGroup( "rule-flow-group-0" ); assertEquals( 1, ruleFlowGroup0.size() ); assertEquals( 1, agenda.agendaSize() );
170171172173174175176177178179180
node2.assertLeftTuple( tuple, context1, workingMemory ); agenda.unstageActivations(); // make sure we have an activation in the current focus assertEquals( 1, agenda.getFocus().size() );
265266267268269270271272273274275
rule.setNoLoop( false ); node.assertLeftTuple( tuple, context, workingMemory ); agenda.unstageActivations(); // check there is an item to fire assertEquals( 1, agenda.getFocus().size() ); agenda.fireNextItem( filterTrue );
299300301302303304305306307308309
rule.setNoLoop( false ); node.assertLeftTuple( tuple, context, workingMemory ); agenda.unstageActivations(); // check we have an item to fire assertEquals( 1, agenda.getFocus().size() ); agenda.fireNextItem( filterFalse );
432433434435436437438439440441442
node0.assertLeftTuple( tuple, context0, workingMemory ); agenda.unstageActivations(); // check focus is main final AgendaGroup main = agenda.getAgendaGroup( AgendaGroup.MAIN ); assertEquals( agenda.getFocus(), main );