414415416417418419420
commandService.execute( new UpdateCommand( handle, object ) ); } public void addEventListener(WorkingMemoryEventListener listener) { commandService.execute( new AddEventListenerCommand( listener ) ); }
418419420421422423424
public void addEventListener(WorkingMemoryEventListener listener) { commandService.execute( new AddEventListenerCommand( listener ) ); } public void addEventListener(AgendaEventListener listener) { commandService.execute( new AddEventListenerCommand( listener ) ); }
438439440441442443444
public void removeEventListener(AgendaEventListener listener) { commandService.execute( new RemoveEventListenerCommand( listener ) ); } public void addEventListener(ProcessEventListener listener) { commandService.execute( new AddEventListenerCommand( listener ) ); }
415416417418419420421
419420421422423424425
439440441442443444445
116117118119120121122
} if (lastFireAllRulesIndex < 0) { throw new IllegalArgumentException( "Cannot assertRuleFired, because in this step, fireAllRules() hasn't been called yet."); } commands.add(lastFireAllRulesIndex, new AddEventListenerCommand(firedRuleCounter)); }