Class DataRuleDefinition
java.lang.Object
com.aquima.interactions.rule.impl.datarule.DataRuleDefinition
- All Implemented Interfaces:
IDataRuleDefinition
This class holds the definition of a single data rule. This definition is used by inference rules.
- Since:
- 8.3
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionDataRuleDefinition
(IDataRuleDS datasource, IExpressionParser parser, IMetaModel metamodel) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
This method returns the conditions for this data rule.This method returns the connection name if the datarule has one.This method returns an optimized object containing all the justifications of the rule.getName()
This method returns the unique name for the data rule.String[]
This method returns an array containing the names of the rule groups this rule belongs to.This method returns the targets for this data rule.This method returns the type of data rule.
-
Constructor Details
-
DataRuleDefinition
public DataRuleDefinition(IDataRuleDS datasource, IExpressionParser parser, IMetaModel metamodel) throws InitializationException - Throws:
InitializationException
-
-
Method Details
-
addCondition
- Throws:
InitializationException
-
addTarget
- Throws:
InitializationException
-
getConnectionName
Description copied from interface:IDataRuleDefinition
This method returns the connection name if the datarule has one.- Specified by:
getConnectionName
in interfaceIDataRuleDefinition
- Returns:
- The name of the connection this datarule uses, may be null.
-
getTypeName
Description copied from interface:IDataRuleDefinition
This method returns the type of data rule.- Specified by:
getTypeName
in interfaceIDataRuleDefinition
- Returns:
- The datarule type, never null.
-
getConditions
Description copied from interface:IDataRuleDefinition
This method returns the conditions for this data rule.- Specified by:
getConditions
in interfaceIDataRuleDefinition
- Returns:
- The condition definitions, never null, but may be an empty array.
-
getName
Description copied from interface:IDataRuleDefinition
This method returns the unique name for the data rule.- Specified by:
getName
in interfaceIDataRuleDefinition
- Returns:
- the unique name for the data rule.
-
getRuleGroupNames
Description copied from interface:IDataRuleDefinition
This method returns an array containing the names of the rule groups this rule belongs to. If the rule does not belong to a specific rule group, the returned value may either be null or an empty array. Rules that belong to a rule group will only be evaluated when one (or more) of the rule groups are active. Rule groups are sometimes referred to as rule clusters.- Specified by:
getRuleGroupNames
in interfaceIDataRuleDefinition
- Returns:
- an array containing the names of the rule groups this rule belongs to.
-
getTargets
Description copied from interface:IDataRuleDefinition
This method returns the targets for this data rule.- Specified by:
getTargets
in interfaceIDataRuleDefinition
- Returns:
- The target definitions, never null, but may be an empty array.
-
getJustificationInfo
Description copied from interface:IDataRuleDefinition
This method returns an optimized object containing all the justifications of the rule.- Specified by:
getJustificationInfo
in interfaceIDataRuleDefinition
- Returns:
- an optimized object containing all the justifications of the rule.
-