Package org.drools.ruleunits.dsl
Class RulesFactory
- java.lang.Object
-
- org.drools.ruleunits.dsl.RulesFactory
-
public class RulesFactory extends java.lang.ObjectThe starting point to create and define rules through the rule unit Java DSL.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRulesFactory.UnitGlobals
-
Constructor Summary
Constructors Constructor Description RulesFactory(RuleUnitDefinition unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleFactoryrule()Creates a new rule and automatically adds it to the ones belonging to theRuleUnitDefinition.RuleFactoryrule(java.lang.String name)Creates a new rule with the given name and automatically adds it to the ones belonging to theRuleUnitDefinition.
-
-
-
Constructor Detail
-
RulesFactory
public RulesFactory(RuleUnitDefinition unit)
-
-
Method Detail
-
rule
public RuleFactory rule()
Creates a new rule and automatically adds it to the ones belonging to theRuleUnitDefinition.
-
rule
public RuleFactory rule(java.lang.String name)
Creates a new rule with the given name and automatically adds it to the ones belonging to theRuleUnitDefinition.
-
-