Package org.drools.template.parser
Class DefaultTemplateRuleBase
- java.lang.Object
-
- org.drools.template.parser.DefaultTemplateRuleBase
-
- All Implemented Interfaces:
TemplateRuleBase
public class DefaultTemplateRuleBase extends Object implements TemplateRuleBase
Create a rule base for the set of rule templates in the TemplateContainer. These rules are used internally by the engine to generate the actual decision table rules based on which columns have been filled in. Basically, if a rule template requires columns A and B then the template rule base will generate a rule with columns A and B as the LHS and a RHS which triggers the rule to be generated. ie. rule "template1" when r : Row() column1 : Column(name == "column1") Cell(row == r, column == column1) column2 : Column(name == "column2") Cell(row == r, column == column2, value == "xyz") then generator.generate( "template1", r); end
-
-
Constructor Summary
Constructors Constructor Description DefaultTemplateRuleBase(TemplateContainer tc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.api.runtime.KieSession
newStatefulSession()
-
-
-
Constructor Detail
-
DefaultTemplateRuleBase
public DefaultTemplateRuleBase(TemplateContainer tc)
-
-
Method Detail
-
newStatefulSession
public org.kie.api.runtime.KieSession newStatefulSession()
- Specified by:
newStatefulSession
in interfaceTemplateRuleBase
-
-