Interface ModuleVersioningService

    • Method Detail

      • getModuleVersion

        java.util.Optional<java.lang.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​(AbstractRulesModuleModel moduleModel,
                                     java.util.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

        java.util.Optional<java.lang.Long> getDeployedModuleVersionForRule​(java.lang.String ruleCode,
                                                                           java.lang.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