Class BusinessRuleTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.rules.BusinessRuleTemplate
Template that can be used to initialize business rules.
- Since:
- 6.0
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionBusinessRuleTemplate
(com.aquima.interactions.foundation.report.InitializationReport report, String name, String conditionExpression, String actionAttribute, String actionExpression) Construct a business rule.BusinessRuleTemplate
(String name, String conditionExpression, String actionAttribute, String actionExpression) Construct a business rule with a new initialization report. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRuleGroup
(String name) This method may be used to specify the name of a rule group the rule should belong to.protected String
protected String
protected String
protected String
getName()
protected String[]
com.aquima.interactions.rule.ds.rule.IBusinessRuleDS
This method converts the template to a data source that can be used to initialize a business rule.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
BusinessRuleTemplate
public BusinessRuleTemplate(String name, String conditionExpression, String actionAttribute, String actionExpression) Construct a business rule with a new initialization report.- Parameters:
name
- The name for the business rule (required)conditionExpression
- The condition expression (required)actionAttribute
- The actionAttribute (required)actionExpression
- The action expression (required)
-
BusinessRuleTemplate
public BusinessRuleTemplate(com.aquima.interactions.foundation.report.InitializationReport report, String name, String conditionExpression, String actionAttribute, String actionExpression) Construct a business rule.- Parameters:
report
- the report to add errors and warnings during initialization.name
- The name for the business rule (required)conditionExpression
- The condition expression (required)actionAttribute
- The actionAttribute (required)actionExpression
- The action expression (required)
-
-
Method Details
-
getName
-
getConditionExpression
-
getActionAttribute
-
getActionExpression
-
addRuleGroup
This method may be used to specify the name of a rule group the rule should belong to.- Parameters:
name
- The name of the group that this rule should be part of.
-
getRuleGroupNames
-
toDataSource
public com.aquima.interactions.rule.ds.rule.IBusinessRuleDS toDataSource()This method converts the template to a data source that can be used to initialize a business rule.- Returns:
- a data source that can be used to initialize a decision table.
-