Class BusinessRuleTemplate

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

public class BusinessRuleTemplate extends AbstractReportingTemplate
Template that can be used to initialize business rules.
Since:
6.0
Author:
Jon van Leuven
  • 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

      protected String getName()
    • getConditionExpression

      protected String getConditionExpression()
    • getActionAttribute

      protected String getActionAttribute()
    • getActionExpression

      protected String getActionExpression()
    • addRuleGroup

      public void addRuleGroup(String name)
      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

      protected String[] 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.