Class ConditionTemplate

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

public class ConditionTemplate extends AbstractReportingTemplate
Template that can be used to initialize a condition.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • ConditionTemplate

      protected ConditionTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, int sequenceNr, String alternative, String expression)
  • Method Details

    • getSequenceNr

      protected int getSequenceNr()
    • getAlternative

      protected String getAlternative()
    • getExpression

      protected String getExpression()
    • getConditions

      protected List<ConditionTemplate> getConditions()
    • addCondition

      public ConditionTemplate addCondition(String expression, String alternative)
      This method may be used to add a sub condition.
      Parameters:
      expression - The condition expression (RHS).
      alternative - The value (expression) against which the condition result should be checked (LHS).
      Returns:
      Condition template that represents the condition that was added.
    • getActions

      protected List<ActionTemplate> getActions()
    • addAction

      public ActionTemplate addAction(String attribute, String strValue)
      This method may be used to add an action to the condition.
      Parameters:
      attribute - The attribute for which the action is defined.
      strValue - The value expression for the action.
      Returns:
      Action template representing the added action.
    • addAction

      public ActionTemplate addAction(String attribute, String... values)
    • toDataSource

      public com.aquima.interactions.rule.ds.table.IConditionDS toDataSource()
      This method converts the template to a data source that can be used to initialize a condition.
      Returns:
      a data source that can be used to initialize a condition.