The org.drools.io.RuleSetReader is used to read rule definitions using the rule language provided by the I/O subsystem. The most straight-forward usage is also the simplest. By default, all conformant semantic modules are used when reading a set of rule definitions.
RuleSetReader reader = new RuleSetReader(); RuleSet ruleSet = reader.read( in );
The read(...)
method is overloaded to provide forms that
can take a InputStream
, InputSource
, Reader
,
URL
, or a String
containing a URL.
The org.drools.io.RuleBaseBuilder provides convenience methods for reading a RuleSet and converting it to an active RuleBase in a single method call.
For more complex construction of a RuleBase
, a combination of
RuleSetReader
and the core RuleBaseBuilder.