| java.lang.Object org.drools.jsr94.rules.AbstractRuleSessionImpl org.drools.jsr94.rules.StatelessRuleSessionImpl
StatelessRuleSessionImpl | public class StatelessRuleSessionImpl extends AbstractRuleSessionImpl implements StatelessRuleSession(Code) | | The Drools implementation of the StatelessRuleSession
interface which is a representation of a stateless rules engine session. A
stateless rules engine session exposes a stateless rule execution API to an
underlying rules engine.
See Also: StatelessRuleSession author: thomas diesler |
StatelessRuleSessionImpl | StatelessRuleSessionImpl(String bindUri, Map properties, RuleExecutionSetRepository repository) throws RuleExecutionSetNotFoundException(Code) | | Gets the RuleExecutionSet for this URI and associates it
with a RuleBase.
Parameters: bindUri - the URI the RuleExecutionSet has been bound to Parameters: properties - additional properties used to create theRuleSession implementation. throws: RuleExecutionSetNotFoundException - if there is no rule set under the given URI |
checkRuleSessionValidity | protected void checkRuleSessionValidity() throws InvalidRuleSessionException(Code) | | Ensures this RuleSession is not
in an illegal rule session state.
throws: InvalidRuleSessionException - on illegal rule session state. |
executeRules | public List executeRules(List objects) throws InvalidRuleSessionException(Code) | | Executes the rules in the bound rule execution set using the supplied
list of objects. A List is returned containing the objects
created by (or passed into the rule session) the executed rules that pass
the filter test of the default RuleExecutionSet
ObjectFilter
(if present). The returned list may not neccessarily include all
objects passed, and may include Object s created by
side-effects. The execution of a RuleExecutionSet can add,
remove and update objects. Therefore the returned object list is
dependent on the rules that are part of the executed
RuleExecutionSet as well as Drools specific rule engine
behavior.
Parameters: objects - the objects used to execute rules. a List containing the objects as a result ofexecuting the rules. throws: InvalidRuleSessionException - on illegal rule session state. |
executeRules | public List executeRules(List objects, ObjectFilter filter) throws InvalidRuleSessionException(Code) | | Executes the rules in the bound rule execution set using the supplied
list of objects. A List is returned containing the objects
created by (or passed into the rule engine) the executed rules and
filtered with the supplied object filter. The returned list may not
neccessarily include all objects passed, and may include
Object s created by side-effects. The execution of a
RuleExecutionSet can add, remove and update objects.
Therefore the returned object list is dependent on the rules that are
part of the executed RuleExecutionSet as well as Drools
specific rule engine behavior.
Parameters: objects - the objects used to execute rules. Parameters: filter - the object filter. a List containing the objects as a result ofexecuting rules, after passing through the supplied objectfilter. throws: InvalidRuleSessionException - on illegal rule session state. |
getType | public int getType() throws InvalidRuleSessionException(Code) | | |
newStatelessSession | protected StatelessSession newStatelessSession()(Code) | | Initialize this RuleSession
with a new WorkingMemory .
|
|
|