Class ConfigRuleEngineDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDelegateDS
com.aquima.interactions.rule.ds.delegate.RuleEngineDelegateDS
com.aquima.interactions.portal.ds.xml.r12.parsing.config.ConfigRuleEngineDS
- All Implemented Interfaces:
IReportingDS
,IRuleEngineDS
Datasource implementation to wrap the project datasource and delegate some method calls to the
IApplicationConfiguration.
- Since:
- 8.0
- Author:
- Jon van Leuven
-
Field Summary
Fields inherited from interface com.aquima.interactions.rule.ds.IRuleEngineDS
CATEGORY
-
Constructor Summary
ConstructorsConstructorDescriptionConfigRuleEngineDS
(IRuleEngineDS ruleEngineDS, IApplicationConfiguration config, String moduleName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Given a rule that can source a target attribute, it uses source attributes.This method returns the version of the parser that should be used.void
iterateConstraints
(IConstraintVisitor visitor) The rule engine will invoke this method to allow the data layer to add constraints for attributes to the rule engine.void
iterateSources
(ISourceVisitor visitor) The rule engine will invoke this method to allow the data layer to add to add sources for attributes to the rule engine.Methods inherited from class com.aquima.interactions.rule.ds.delegate.RuleEngineDelegateDS
getExpressionEngineDS, iterateRuleGroups, iterateValidations
Methods inherited from class com.aquima.interactions.foundation.report.ReportingDelegateDS
addMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS
addMessage
-
Constructor Details
-
ConfigRuleEngineDS
public ConfigRuleEngineDS(IRuleEngineDS ruleEngineDS, IApplicationConfiguration config, String moduleName)
-
-
Method Details
-
allowTargetDowncast
public boolean allowTargetDowncast()Description copied from interface:IRuleEngineDS
Given a rule that can source a target attribute, it uses source attributes. In KS-4.2 one can define A rule that sources Item.price while using the subtype Product in the expression. If the allowTarget upcast function is true the second case: Sourcing with Item.prijs using Product.naam will auto upcast Item.prijs to Product.prijs. This makes the the rule valid and used when product.prijs is requested.- Item.prijs <= Item.naam
- Item.prijs <= Product.naam
- Product.prijs <= Item.naam
- Product.prijs <= Product.naam
- Specified by:
allowTargetDowncast
in interfaceIRuleEngineDS
- Overrides:
allowTargetDowncast
in classRuleEngineDelegateDS
- Returns:
- boolean indicating if down-casting of rules is allowed.
-
getParserVersion
Description copied from interface:IRuleEngineDS
This method returns the version of the parser that should be used. At the moment there are two parser versions available:- Version 4.x and lower, which will only accept expressions in the original syntax.
- Version 5.x or higher, which will accept most of the original syntax and several new expression constructs.
- Specified by:
getParserVersion
in interfaceIRuleEngineDS
- Overrides:
getParserVersion
in classRuleEngineDelegateDS
- Returns:
- The version of the parser that should be used.
-
iterateConstraints
Description copied from interface:IRuleEngineDS
The rule engine will invoke this method to allow the data layer to add constraints for attributes to the rule engine.- Specified by:
iterateConstraints
in interfaceIRuleEngineDS
- Overrides:
iterateConstraints
in classRuleEngineDelegateDS
- Parameters:
visitor
- The visitor that should be used to add the constraints to.
-
iterateSources
Description copied from interface:IRuleEngineDS
The rule engine will invoke this method to allow the data layer to add to add sources for attributes to the rule engine.- Specified by:
iterateSources
in interfaceIRuleEngineDS
- Overrides:
iterateSources
in classRuleEngineDelegateDS
- Parameters:
visitor
- The visitor that should be used to add the source to.
-