Interface RuleCompilationContext

All Superinterfaces:
TaskContext
All Known Implementing Classes:
DefaultRuleCompilationContext

public interface RuleCompilationContext extends TaskContext
The interface for the rule compilation context
  • Method Details

    • getRuleCompilerService

      RuleCompilerService getRuleCompilerService()
      get the instance of RuleCompilerService
      Returns:
      instance of RuleCompilerService
    • resetRuleEngineRuleVersion

      AtomicLong resetRuleEngineRuleVersion(String moduleName)
      Resets the compilation context version to the value associated with rules module
      Parameters:
      moduleName - the module name for the series of rules to compile
      Returns:
      the instance of AtomicLong keeping the module rules version
    • getNextRuleEngineRuleVersion

      Long getNextRuleEngineRuleVersion(String moduleName)
      get the next available rule version for the module
      Parameters:
      moduleName - the module name for the series of rules to compile
      Returns:
      a version number
    • cleanup

      void cleanup(String moduleName)
      Clean up the context (usually called before the object destroy)
      Parameters:
      moduleName - the rules module name to be monitored by listeners
    • registerCompilationListeners

      void registerCompilationListeners(String moduleName)
      register aplication listeners related to rule compilation process
      Parameters:
      moduleName - the rules module name to be monitored by listeners
    • getSuspendResumeTaskManager

      SuspendResumeTaskManager getSuspendResumeTaskManager()
      get the suspend/resume task manager
      Returns:
      instance of SuspendResumeTaskManager