Class ReportingBusinessRuleDS
java.lang.Object
com.aquima.interactions.foundation.report.ReportingDS
com.aquima.interactions.rule.report.ReportingBusinessRuleDS
- All Implemented Interfaces:
IReportingDS
,IRuleDS
,IBusinessRuleDS
IBusinessRuleDS wrapper that adds error reporting.
- Since:
- 9.1
- Author:
- r.fleuren
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ReportingBusinessRuleDS
(IInitializationReport report, IBusinessRuleDS datasource) -
Method Summary
Modifier and TypeMethodDescriptionThis method should return the full name of the attribute for which the rule can provide a value.This method should return the expression that should be evaluated to determine the value for the attribute.This method returns the expression that should be evaluated to determine if the rule should fire.getName()
This method returns the name of the business rule.String[]
This method returns an array containing the names of the rule groups the rule belongs to.void
This method should iterate all the justification texts that are available for this rule, and add them to the supplied visitor.Methods inherited from class com.aquima.interactions.foundation.report.ReportingDS
addError, addMessage, getCategory, getReport
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
-
ReportingBusinessRuleDS
-
-
Method Details
-
getRuleGroupNames
Description copied from interface:IRuleDS
This method returns an array containing the names of the rule groups the 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 interfaceIRuleDS
- Returns:
- an array containing the names of the rule groups the rule belongs to.
-
getName
Description copied from interface:IBusinessRuleDS
This method returns the name of the business rule.- Specified by:
getName
in interfaceIBusinessRuleDS
- Returns:
- the name of the business rule.
-
getConditionExpression
Description copied from interface:IBusinessRuleDS
This method returns the expression that should be evaluated to determine if the rule should fire.- Specified by:
getConditionExpression
in interfaceIBusinessRuleDS
- Returns:
- the expression that should be evaluated to determine if the rule should fire.
-
getActionAttribute
Description copied from interface:IBusinessRuleDS
This method should return the full name of the attribute for which the rule can provide a value.- Specified by:
getActionAttribute
in interfaceIBusinessRuleDS
- Returns:
- the full name of the attribute for which the rule can provide a value.
-
getActionExpression
Description copied from interface:IBusinessRuleDS
This method should return the expression that should be evaluated to determine the value for the attribute.- Specified by:
getActionExpression
in interfaceIBusinessRuleDS
- Returns:
- the expression that should be evaluated to determine the value for the attribute.
-
iterateJustifications
Description copied from interface:IBusinessRuleDS
This method should iterate all the justification texts that are available for this rule, and add them to the supplied visitor.- Specified by:
iterateJustifications
in interfaceIBusinessRuleDS
- Parameters:
visitor
- The visitor to which the justifications of this rule should be added.
-