Class DroolsModuleVersioningService

  • All Implemented Interfaces:
    ModuleVersioningService

    @Deprecated(since="21.05",
                forRemoval=true)
    public class DroolsModuleVersioningService
    extends java.lang.Object
    implements ModuleVersioningService
    Deprecated, for removal: This API element is subject to removal in a future version.
    (since="21.05", forRemoval=true, No longer used, the implementation has been moved to DefaultRuleModuleVersioningService. Please use that class instead.)
    Drools specific implementation of module versioning service
    • Field Detail

      • ENGINE_RULE_MODEL_NULL_MESSAGE

        public static final java.lang.String ENGINE_RULE_MODEL_NULL_MESSAGE
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DroolsModuleVersioningService

        public DroolsModuleVersioningService()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • getModuleVersion

        public java.util.Optional<java.lang.Long> getModuleVersion​(AbstractRuleEngineRuleModel ruleModel)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: ModuleVersioningService
        Returns the current version of the rule module
        Specified by:
        getModuleVersion in interface ModuleVersioningService
        Parameters:
        ruleModel - ruleModel - the AbstractRuleEngineRuleModel instance
        Returns:
        Long the module version if applicable, empty optional otherwise
      • getDeployedModuleVersionForRule

        public java.util.Optional<java.lang.Long> getDeployedModuleVersionForRule​(java.lang.String ruleCode,
                                                                                  java.lang.String moduleName)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: ModuleVersioningService
        get the currently deployed (in the rule engine) version of the AbstractRulesModuleModel
        Specified by:
        getDeployedModuleVersionForRule in interface ModuleVersioningService
        Parameters:
        ruleCode - the rule code of the rule associated to the module
        moduleName - the rules module name
        Returns:
        the version as Optional
      • getCurrentRulesVersion

        protected java.lang.Long getCurrentRulesVersion​(AbstractRulesModuleModel rulesModule)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setNewVersionIfApplicable

        protected void setNewVersionIfApplicable​(AbstractRulesModuleModel rulesModule,
                                                 java.lang.Long currentRulesVersion,
                                                 java.lang.Long newVersion)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getRuleEngineService

        protected RuleEngineService getRuleEngineService()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setRuleEngineService

        public void setRuleEngineService​(RuleEngineService ruleEngineService)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getModelService

        protected ModelService getModelService()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setModelService

        public void setModelService​(ModelService modelService)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getEngineRuleDao

        protected EngineRuleDao getEngineRuleDao()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setEngineRuleDao

        public void setEngineRuleDao​(EngineRuleDao engineRuleDao)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setModuleVersionResolver

        public void setModuleVersionResolver​(ModuleVersionResolver<DroolsKIEModuleModel> moduleVersionResolver)
        Deprecated, for removal: This API element is subject to removal in a future version.