Class DataRuleTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.rules.DataRuleTemplate

public final class DataRuleTemplate extends AbstractReportingTemplate
This class can be used to initialize a data rule.
Since:
8.3
Author:
Jon van Leuven
  • 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

      public void addTarget(String sourceFieldName, String targetAttributeName)
      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

      protected String getName()
    • getConnectionName

      protected String getConnectionName()
    • setConnectionName

      public void setConnectionName(String connectionName)
      This method sets the connection name of this datarule
      Parameters:
      connectionName - The connection name.
    • getTargets

      protected Iterator<com.aquima.interactions.foundation.utility.Pair<String>> getTargets()
    • getConditions

      protected Iterator<DataRuleConditionTemplate> getConditions()
    • getTypeName

      protected String getTypeName()
    • setTypeName

      public void setTypeName(String typeName)
      This method sets the type name of this datarule.
      Parameters:
      typeName - The type name.