439440441442443444445
public void removeEventListener(AgendaEventListener listener) { commandService.execute( new RemoveEventListenerCommand( listener ) ); } public void addEventListener(ProcessEventListener listener) { commandService.execute( new AddEventListenerCommand( listener ) ); }
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)); }
409410411412413414415
commandService.execute( new UpdateCommand( handle, object ) ); } public void addEventListener(WorkingMemoryEventListener listener) { commandService.execute( new AddEventListenerCommand( listener ) ); }
413414415416417418419
public void addEventListener(WorkingMemoryEventListener listener) { commandService.execute( new AddEventListenerCommand( listener ) ); } public void addEventListener(AgendaEventListener listener) { commandService.execute( new AddEventListenerCommand( listener ) ); }
118119120121122123124
256257258259260261262
WorkingMemoryEventListenerWrapper wrapper = new StatefulKnowledgeSessionImpl.WorkingMemoryEventListenerWrapper( listener ); this.mappedWorkingMemoryListeners.put( listener, wrapper ); commandService.execute( new AddEventListenerCommand( wrapper ) ); }
265266267268269270271
AgendaEventListenerWrapper wrapper = new StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper( listener ); this.mappedAgendaListeners.put( listener, wrapper ); commandService.execute( new AddEventListenerCommand( wrapper ) ); }
310311312313314315316
ProcessEventListenerWrapper wrapper = new StatefulKnowledgeSessionImpl.ProcessEventListenerWrapper( listener ); this.mappedProcessListeners.put( listener, wrapper ); commandService.execute( new AddEventListenerCommand( wrapper ) ); }
315316317318319320321
324325326327328329330