Interface ModuleVersioningService

All Known Implementing Classes:
DefaultModuleVersioningService, DroolsModuleVersioningService

public interface ModuleVersioningService
Module versioning service
  • Method Details

    • getModuleVersion

      Optional<Long> getModuleVersion(AbstractRuleEngineRuleModel ruleModel)
      Returns the current version of the rule module
      Parameters:
      ruleModel - ruleModel - the AbstractRuleEngineRuleModel instance
      Returns:
      Long the module version if applicable, empty optional otherwise
    • assertRuleModuleVersion

      void assertRuleModuleVersion(AbstractRuleEngineRuleModel ruleModel, AbstractRulesModuleModel rulesModule)
      assert (and change if necessary) the version of the module of the rule
      Parameters:
      ruleModel - - rule model
      rulesModule - instance of AbstractRulesModuleModel to be assigned as a module for this rule
    • assertRuleModuleVersion

      void assertRuleModuleVersion(AbstractRulesModuleModel moduleModel, Set<AbstractRuleEngineRuleModel> rules)
      Given the module, assert it's version in accordance with the provided rules
      Parameters:
      moduleModel - - rules module instance
      rules - - set of rules to assert the module version with
    • getDeployedModuleVersionForRule

      Optional<Long> getDeployedModuleVersionForRule(String ruleCode, String moduleName)
      get the currently deployed (in the rule engine) version of the AbstractRulesModuleModel
      Parameters:
      ruleCode - the rule code of the rule associated to the module
      moduleName - the rules module name
      Returns:
      the version as Optional<Long>