org.drools.template.parser
Class DefaultTemplateRuleBase

java.lang.Object
  extended by 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
DefaultTemplateRuleBase(TemplateContainer tc)
           
 
Method Summary
 StatefulSession newStatefulSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTemplateRuleBase

public DefaultTemplateRuleBase(TemplateContainer tc)
Method Detail

newStatefulSession

public StatefulSession newStatefulSession()
Specified by:
newStatefulSession in interface TemplateRuleBase


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.