Rule Execution Server API

com.ibm.rules.engine.ruledef.runtime
Interface RuleEngineOutput

All Superinterfaces:
EngineOutput, EngineWithWorkingMemoryOutput

public interface RuleEngineOutput
extends EngineWithWorkingMemoryOutput

A RuleEngineOutput instance is produced when a RuleEngine is executed.


Method Summary
 int getExecutedRuleInstanceCount()
          Returns the number of rule instances executed.
 RuleInstance getLastRuleInstance()
          Returns the last Rule instance that was executed.
 boolean isAgendaEmpty()
          Tests if the Agenda is empty.
 
Methods inherited from interface com.ibm.rules.engine.runtime.EngineWithWorkingMemoryOutput
getWorkingMemory
 
Methods inherited from interface com.ibm.rules.engine.runtime.EngineOutput
getData, getParameter, getParameters, getStopMessage, isStopped
 

Method Detail

getExecutedRuleInstanceCount

int getExecutedRuleInstanceCount()
Returns the number of rule instances executed.

Returns:
The number of executed rule instances.

isAgendaEmpty

boolean isAgendaEmpty()
Tests if the Agenda is empty.

Throws:
IllegalStateException - if the engine does not support the Agenda.
Returns:
If the Agenda was empty when the RuleEngine finished executing, true is returned.

getLastRuleInstance

RuleInstance getLastRuleInstance()
Returns the last Rule instance that was executed.

Throws:
IllegalStateException - if the engine does not support the Agenda.
Returns:
The last Rule instance that was executed. If no Rule was executed, null is returned.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013