Interface IRuleFactory

All Known Implementing Classes:
DefaultRuleFactory, LinkedRuleFactory

public interface IRuleFactory
Interface for factories that can provide custom implementations of business rules.
Since:
7.0
Author:
O. Kerpershoek
  • Method Details

    • getConstraintRule

      IConstraint getConstraintRule(IExternalRuleDS definition, IMetaModel model, IExpressionParser parser)
      This method is used to acquire a custom constraint rule for the definition.
      Parameters:
      definition - Data source containing the definition of the custom rule.
      model - The meta model of the application.
      parser - Expression parser that may be used to construct the custom constraint rule.
      Returns:
      Rule implementation, or null when no rule is available matching the definition.
      Throws:
      RuleEngineException - This exception may be thrown when the rule could not be initialized.
    • getInferenceRule

      IInferenceRule getInferenceRule(IExternalRuleDS definition, IMetaModel model, IExpressionParser parser)
      This method is used to acquire a custom inference rule implementation for the definition.
      Parameters:
      definition - Data source containing the definition of the custom rule.
      model - The meta model of the application.
      parser - Expression parser that may be used to construct the custom inference rule.
      Returns:
      Rule implementation, or null when no rule is available matching the definition.
      Throws:
      RuleEngineException - This exception may be thrown when the rule could not be initialized.
    • getDataRule

      IInferenceRule getDataRule(IDataRuleDefinition ruleDefinition, IMetaModel model, IProject project, IExpressionParser parser, IConnectionManager connectionManager)
      This method is used to acquire a data inference rule implementation.
      Parameters:
      ruleDefinition - the definition of the data rule.
      model - The meta model of the application.
      project - The project definitions of the application.
      parser - Expression parser that may be used to construct the data inference rule.
      connectionManager - The connection manager that may be used to construct the data inference rule.
      Returns:
      Rule implementation, or null when no rule is available matching the definition.
      Throws:
      InitializationException - This exception may be thrown when the rule could not be initialized.
      Since:
      8.3