Package org.drools.ruleunits.dsl
Class SyntheticRuleUnit
- java.lang.Object
-
- org.drools.ruleunits.dsl.SyntheticRuleUnit
-
- All Implemented Interfaces:
org.drools.ruleunits.api.RuleUnitData,RuleUnitDefinition
public class SyntheticRuleUnit extends Object implements RuleUnitDefinition
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineRules(RulesFactory rulesFactory)The method to be implemented to define the set of rules for thisRuleUnit.Map<String,DataSourceDefinition>getDataSourceDefinitions()<T> org.drools.ruleunits.api.DataStore<T>getDataStore(String name, Class<T> clazz)<T> org.drools.ruleunits.api.DataStream<T>getDataStream(String name, Class<T> clazz)<T> TgetGlobal(String name, Class<T> clazz)Map<String,Object>getGlobals()<T> org.drools.ruleunits.api.SingletonStore<T>getSingletonStore(String name, Class<T> clazz)
-
-
-
Method Detail
-
defineRules
public void defineRules(RulesFactory rulesFactory)
Description copied from interface:RuleUnitDefinitionThe method to be implemented to define the set of rules for thisRuleUnit.- Specified by:
defineRulesin interfaceRuleUnitDefinition
-
getDataSourceDefinitions
public Map<String,DataSourceDefinition> getDataSourceDefinitions()
-
getDataStore
public <T> org.drools.ruleunits.api.DataStore<T> getDataStore(String name, Class<T> clazz)
-
getDataStream
public <T> org.drools.ruleunits.api.DataStream<T> getDataStream(String name, Class<T> clazz)
-
getSingletonStore
public <T> org.drools.ruleunits.api.SingletonStore<T> getSingletonStore(String name, Class<T> clazz)
-
-