Class DataRuleTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.rules.DataRuleTemplate
This class can be used to initialize a data rule.
- Since:
- 8.3
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DataRuleTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCondition
(String fieldName, com.aquima.interactions.foundation.connectivity.Operator operator, String expression) This method adds a condition to the datarule.void
This method adds a target to the datarule.protected Iterator
<DataRuleConditionTemplate> protected String
protected String
getName()
protected String
void
setConnectionName
(String connectionName) This method sets the connection name of this datarulevoid
setTypeName
(String typeName) This method sets the type name of this datarule.com.aquima.interactions.rule.ds.datarule.IDataRuleDS
This method converts the template to a data source that can be used to initialize a data rule.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
DataRuleTemplate
protected DataRuleTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String name)
-
-
Method Details
-
toDataSource
public com.aquima.interactions.rule.ds.datarule.IDataRuleDS toDataSource()This method converts the template to a data source that can be used to initialize a data rule.- Returns:
- a data source that can be used to initialize a data rule for a data rule.
-
addCondition
public void addCondition(String fieldName, com.aquima.interactions.foundation.connectivity.Operator operator, String expression) This method adds a condition to the datarule.- Parameters:
fieldName
- The field name of the condition, may not be null.operator
- The operator of the condition, may not be null.expression
- The expression of the condition, may not be null.
-
addTarget
This method adds a target to the datarule.- Parameters:
sourceFieldName
- The source field name of the target, may not be null.targetAttributeName
- The fulle name of the target attribute.
-
getName
-
getConnectionName
-
setConnectionName
This method sets the connection name of this datarule- Parameters:
connectionName
- The connection name.
-
getTargets
-
getConditions
-
getTypeName
-
setTypeName
This method sets the type name of this datarule.- Parameters:
typeName
- The type name.
-