Class ConditionTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.rules.ConditionTemplate
Template that can be used to initialize a condition.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ConditionTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, int sequenceNr, String alternative, String expression) -
Method Summary
Modifier and TypeMethodDescriptionThis method may be used to add an action to the condition.addCondition
(String expression, String alternative) This method may be used to add a sub condition.protected List
<ActionTemplate> protected String
protected List
<ConditionTemplate> protected String
protected int
com.aquima.interactions.rule.ds.table.IConditionDS
This method converts the template to a data source that can be used to initialize a condition.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ConditionTemplate
-
-
Method Details
-
getSequenceNr
protected int getSequenceNr() -
getAlternative
-
getExpression
-
getConditions
-
addCondition
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
-
addAction
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
-
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.
-