Rule Execution Server API

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

All Superinterfaces:
EngineDefinition, EngineServices

public interface RuleEngineDefinition
extends EngineDefinition

Use RuleEngineDefinition to create RuleEngine instances and access Rule definitions.


Method Summary
 RuleEngine createEngine()
          Creates a new RuleEngine instance.
 RuleEngine createEngine(EngineService... services)
          Creates a new RuleEngine instance.
 Rule getRule(String ruleName)
          Returns a specific rule.
 List<Rule> getRules()
          Returns the rules attached to the RuleEngine.
 
Methods inherited from interface com.ibm.rules.engine.runtime.EngineDefinition
getSignature
 
Methods inherited from interface com.ibm.rules.engine.service.EngineServices
getNumberOfServices, getService, getServiceByName, getServiceClasses
 

Method Detail

createEngine

RuleEngine createEngine()
Creates a new RuleEngine instance.

Specified by:
createEngine in interface EngineDefinition
Returns:
A new RuleEngine instance.

createEngine

RuleEngine createEngine(EngineService... services)
Creates a new RuleEngine instance.

Specified by:
createEngine in interface EngineDefinition
Parameters:
services - EngineServices to be used by the new Engine. This overrides the default EngineServices in the Engine definition.
Returns:
A new RuleEngine instance.

getRules

List<Rule> getRules()
Returns the rules attached to the RuleEngine.

Returns:
The rules attached to the RuleEngine. If no rules are attached, an empty collection is returned.

getRule

Rule getRule(String ruleName)
Returns a specific rule.

Parameters:
ruleName - The fully qualified name of the rule to be returned.
Returns:
The rule matching ruleName. If there is no rule matching ruleName, null is returned.
See Also:
Rule.getName()

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013