public BatchExecutionResults execute(Command command) {
ReteooWorkingMemory session = ( ReteooWorkingMemory ) newWorkingMemory();
try {
session.startBatchExecution();
((org.drools.process.command.Command)command).execute( session );
session.fireAllRules( this.agendaFilter );
BatchExecutionResults result = session.getBatchExecutionResult();
return result;
} finally {
session.endBatchExecution();
}