Class OnTenantStartupProcessor


  • public class OnTenantStartupProcessor
    extends java.lang.Object
    The OnTenantStartupProcessor is responsible for handling tenant activation of rules modules after the current tenant has been (re)started. It is possible to disable this mechanism for specific tenants by providing a set of tenant ids to be excluded (see getExcludedTenants().
    • Constructor Detail

      • OnTenantStartupProcessor

        public OnTenantStartupProcessor()
    • Method Detail

      • processOnTenantStartup

        protected void processOnTenantStartup()
        The method is called on Tenant startup.
      • activateRulesModules

        protected boolean activateRulesModules()
      • refreshCurrentSessionWithRetry

        protected void refreshCurrentSessionWithRetry​(java.util.function.Supplier<java.lang.Void> failingMethodSupplier)
      • init

        @PostConstruct
        protected void init()
      • isSystemInitialized

        protected boolean isSystemInitialized()
      • ignoreTenant

        protected boolean ignoreTenant()
        checks if the current tenantID is part of the ignored tenants as configured via getExcludedTenants().
        Returns:
        true if the tenant should be ignored, otherwise false
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)
      • getExcludedTenants

        protected java.util.Set<java.lang.String> getExcludedTenants()
        returns a set of tenant IDs for which rules modules will not be activated.
      • setExcludedTenants

        public void setExcludedTenants​(java.util.Set<java.lang.String> excludedTenants)
      • setRulesModuleDao

        public void setRulesModuleDao​(RulesModuleDao rulesModuleDao)
      • setRuleEngineBootstrap

        public void setRuleEngineBootstrap​(RuleEngineBootstrap ruleEngineBootstrap)
      • setRuleEngineService

        public void setRuleEngineService​(RuleEngineService ruleEngineService)
      • getRuleEngineInitRetryTemplate

        protected org.springframework.retry.support.RetryTemplate getRuleEngineInitRetryTemplate()
      • setRuleEngineInitRetryTemplate

        public void setRuleEngineInitRetryTemplate​(org.springframework.retry.support.RetryTemplate ruleEngineInitRetryTemplate)