Class StatefulKnowledgeSessionForRHS

  • All Implemented Interfaces:
    Externalizable, Serializable, org.drools.core.common.EventSupport, org.drools.core.common.InternalWorkingMemory, org.drools.core.common.InternalWorkingMemoryActions, org.drools.core.common.ReteEvaluator, org.drools.core.WorkingMemory, org.drools.core.WorkingMemoryEntryPoint, org.drools.core.WorkingMemoryEventManager, org.kie.api.event.kiebase.KieBaseEventManager, org.kie.api.event.KieRuntimeEventManager, org.kie.api.event.process.ProcessEventManager, org.kie.api.event.rule.RuleRuntimeEventManager, org.kie.api.runtime.CommandExecutor, org.kie.api.runtime.KieRuntime, org.kie.api.runtime.KieSession, org.kie.api.runtime.process.ProcessRuntime, org.kie.api.runtime.process.StatefulProcessSession, org.kie.api.runtime.rule.EntryPoint, org.kie.api.runtime.rule.RuleRuntime, org.kie.api.runtime.rule.StatefulRuleSession

    public class StatefulKnowledgeSessionForRHS
    extends Object
    implements org.kie.api.runtime.KieSession, org.drools.core.common.InternalWorkingMemoryActions, org.drools.core.common.EventSupport, org.kie.api.runtime.KieRuntime, Externalizable
    Wrapper of ReteEvaluator so to intercept call from RHS internal Drools execution and proxy or delegate method call as appropriate.
    See Also:
    Serialized Form
    • Constructor Detail

      • StatefulKnowledgeSessionForRHS

        public StatefulKnowledgeSessionForRHS()
        This should be used just by deserialization. Please avoid using this empty constructor in your code.
    • Method Detail

      • getQueryResults

        public org.kie.api.runtime.rule.QueryResults getQueryResults​(String queryName,
                                                                     Object... arguments)
        Specified by:
        getQueryResults in interface org.drools.core.common.ReteEvaluator
        Specified by:
        getQueryResults in interface org.kie.api.runtime.rule.RuleRuntime
        Specified by:
        getQueryResults in interface org.drools.core.WorkingMemory
      • getLogger

        public org.kie.api.logger.KieRuntimeLogger getLogger()
        Specified by:
        getLogger in interface org.kie.api.event.KieRuntimeEventManager
      • setLogger

        public void setLogger​(org.kie.api.logger.KieRuntimeLogger logger)
      • getKieRuntime

        public <T> T getKieRuntime​(Class<T> cls)
        Specified by:
        getKieRuntime in interface org.kie.api.runtime.KieSession
      • createRuntimeService

        public <T> T createRuntimeService​(Class<T> cls)
      • addEventListener

        public void addEventListener​(org.kie.api.event.process.ProcessEventListener listener)
        Specified by:
        addEventListener in interface org.kie.api.event.process.ProcessEventManager
      • getProcessEventListeners

        public Collection<org.kie.api.event.process.ProcessEventListener> getProcessEventListeners()
        Specified by:
        getProcessEventListeners in interface org.kie.api.event.process.ProcessEventManager
      • removeEventListener

        public void removeEventListener​(org.kie.api.event.process.ProcessEventListener listener)
        Specified by:
        removeEventListener in interface org.kie.api.event.process.ProcessEventManager
      • getKieBase

        public org.kie.api.KieBase getKieBase()
        Specified by:
        getKieBase in interface org.kie.api.runtime.KieRuntime
      • isAlive

        public boolean isAlive()
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.kie.api.runtime.KieSession
      • update

        public void update​(org.kie.api.runtime.rule.FactHandle factHandle)
      • abortProcessInstance

        public void abortProcessInstance​(String id)
        Specified by:
        abortProcessInstance in interface org.kie.api.runtime.process.ProcessRuntime
      • signalEvent

        public void signalEvent​(String type,
                                Object event)
        Specified by:
        signalEvent in interface org.kie.api.runtime.process.ProcessRuntime
      • signalEvent

        public void signalEvent​(String type,
                                Object event,
                                String processInstanceId)
        Specified by:
        signalEvent in interface org.kie.api.runtime.process.ProcessRuntime
      • getGlobals

        public org.kie.api.runtime.Globals getGlobals()
        Specified by:
        getGlobals in interface org.kie.api.runtime.KieRuntime
      • execute

        public <T> T execute​(org.kie.api.command.Command<T> command)
        Specified by:
        execute in interface org.kie.api.runtime.CommandExecutor
      • openLiveQuery

        public org.kie.api.runtime.rule.LiveQuery openLiveQuery​(String query,
                                                                Object[] arguments,
                                                                org.kie.api.runtime.rule.ViewChangedEventListener listener)
        Specified by:
        openLiveQuery in interface org.kie.api.runtime.rule.RuleRuntime
      • reset

        public void reset​(int handleId,
                          long handleCounter,
                          long propagationCounter)
      • addEventListener

        public void addEventListener​(org.kie.internal.event.rule.RuleEventListener listener)
      • removeEventListener

        public void removeEventListener​(org.kie.internal.event.rule.RuleEventListener listener)
      • getId

        public int getId()
        Specified by:
        getId in interface org.kie.api.runtime.KieSession
      • fireUntilHalt

        public void fireUntilHalt()
        Specified by:
        fireUntilHalt in interface org.kie.api.runtime.rule.StatefulRuleSession
      • fireUntilHalt

        public void fireUntilHalt​(org.kie.api.runtime.rule.AgendaFilter agendaFilter)
        Specified by:
        fireUntilHalt in interface org.kie.api.runtime.rule.StatefulRuleSession
      • getRuleRuntimeEventSupport

        public org.drools.core.event.RuleRuntimeEventSupport getRuleRuntimeEventSupport()
        Specified by:
        getRuleRuntimeEventSupport in interface org.drools.core.common.EventSupport
        Specified by:
        getRuleRuntimeEventSupport in interface org.drools.core.common.ReteEvaluator
      • getRuleEventSupport

        public org.drools.core.event.RuleEventListenerSupport getRuleEventSupport()
        Specified by:
        getRuleEventSupport in interface org.drools.core.common.EventSupport
        Specified by:
        getRuleEventSupport in interface org.drools.core.common.ReteEvaluator
      • getAgendaEventSupport

        public org.drools.core.event.AgendaEventSupport getAgendaEventSupport()
        Specified by:
        getAgendaEventSupport in interface org.drools.core.common.EventSupport
      • createProcessInstance

        public org.kie.api.runtime.process.ProcessInstance createProcessInstance​(String processId,
                                                                                 Map<String,​Object> parameters)
        Specified by:
        createProcessInstance in interface org.kie.api.runtime.process.ProcessRuntime
      • startProcessInstance

        public org.kie.api.runtime.process.ProcessInstance startProcessInstance​(String processInstanceId)
        Specified by:
        startProcessInstance in interface org.kie.api.runtime.process.ProcessRuntime
      • createProcessInstance

        public org.kie.api.runtime.process.ProcessInstance createProcessInstance​(String processId,
                                                                                 org.kie.internal.process.CorrelationKey correlationKey,
                                                                                 Map<String,​Object> parameters)
      • getProcessInstance

        public org.kie.api.runtime.process.ProcessInstance getProcessInstance​(org.kie.internal.process.CorrelationKey correlationKey)
      • getLastIdleTimestamp

        public long getLastIdleTimestamp()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • startProcess

        public org.kie.api.runtime.process.ProcessInstance startProcess​(String processId,
                                                                        org.kie.internal.process.CorrelationKey correlationKey,
                                                                        Map<String,​Object> parameters)
      • registerChannel

        public void registerChannel​(String name,
                                    org.kie.api.runtime.Channel channel)
        Specified by:
        registerChannel in interface org.kie.api.runtime.KieRuntime
      • unregisterChannel

        public void unregisterChannel​(String name)
        Specified by:
        unregisterChannel in interface org.kie.api.runtime.KieRuntime
      • setEndOperationListener

        public void setEndOperationListener​(org.drools.core.common.EndOperationListener listener)
      • addEventListener

        public void addEventListener​(org.kie.api.event.kiebase.KieBaseEventListener listener)
        Specified by:
        addEventListener in interface org.kie.api.event.kiebase.KieBaseEventManager
      • insert

        public org.kie.api.runtime.rule.FactHandle insert​(Object object)
        Specified by:
        insert in interface org.kie.api.runtime.rule.EntryPoint
        Specified by:
        insert in interface org.drools.core.common.ReteEvaluator
      • submit

        public void submit​(org.kie.api.runtime.KieSession.AtomicAction action)
        Specified by:
        submit in interface org.kie.api.runtime.KieSession
      • removeEventListener

        public void removeEventListener​(org.kie.api.event.kiebase.KieBaseEventListener listener)
        Specified by:
        removeEventListener in interface org.kie.api.event.kiebase.KieBaseEventManager
      • addEventListener

        public void addEventListener​(org.kie.api.event.rule.RuleRuntimeEventListener listener)
        Specified by:
        addEventListener in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        addEventListener in interface org.drools.core.WorkingMemoryEventManager
      • getKieBaseEventListeners

        public Collection<org.kie.api.event.kiebase.KieBaseEventListener> getKieBaseEventListeners()
        Specified by:
        getKieBaseEventListeners in interface org.kie.api.event.kiebase.KieBaseEventManager
      • insert

        public org.kie.api.runtime.rule.FactHandle insert​(Object object,
                                                          boolean dynamic)
        Specified by:
        insert in interface org.drools.core.WorkingMemoryEntryPoint
      • update

        public void update​(org.kie.api.runtime.rule.FactHandle handle,
                           Object object,
                           org.drools.core.util.bitmask.BitMask mask,
                           Class<?> modifiedClass,
                           org.drools.core.rule.consequence.Activation activation)
        Specified by:
        update in interface org.drools.core.common.InternalWorkingMemoryActions
        Specified by:
        update in interface org.drools.core.WorkingMemoryEntryPoint
      • removeEventListener

        public void removeEventListener​(org.kie.api.event.rule.RuleRuntimeEventListener listener)
        Specified by:
        removeEventListener in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        removeEventListener in interface org.drools.core.WorkingMemoryEventManager
      • delete

        public void delete​(org.kie.api.runtime.rule.FactHandle factHandle,
                           org.drools.core.definitions.rule.impl.RuleImpl rule,
                           org.drools.core.reteoo.TerminalNode terminalNode,
                           org.kie.api.runtime.rule.FactHandle.State fhState)
        Specified by:
        delete in interface org.drools.core.WorkingMemoryEntryPoint
      • delete

        public void delete​(org.kie.api.runtime.rule.FactHandle handle,
                           org.drools.core.definitions.rule.impl.RuleImpl rule,
                           org.drools.core.reteoo.TerminalNode terminalNode)
        Specified by:
        delete in interface org.drools.core.WorkingMemoryEntryPoint
      • insert

        public org.kie.api.runtime.rule.FactHandle insert​(Object object,
                                                          boolean dynamic,
                                                          org.drools.core.definitions.rule.impl.RuleImpl rule,
                                                          org.drools.core.reteoo.TerminalNode terminalNode)
        Specified by:
        insert in interface org.drools.core.common.InternalWorkingMemoryActions
      • insertAsync

        public org.kie.api.runtime.rule.FactHandle insertAsync​(Object object)
        Specified by:
        insertAsync in interface org.drools.core.common.InternalWorkingMemoryActions
      • getRuleRuntimeEventListeners

        public Collection<org.kie.api.event.rule.RuleRuntimeEventListener> getRuleRuntimeEventListeners()
        Specified by:
        getRuleRuntimeEventListeners in interface org.drools.core.common.EventSupport
        Specified by:
        getRuleRuntimeEventListeners in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        getRuleRuntimeEventListeners in interface org.drools.core.WorkingMemoryEventManager
      • addEventListener

        public void addEventListener​(org.kie.api.event.rule.AgendaEventListener listener)
        Specified by:
        addEventListener in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        addEventListener in interface org.drools.core.WorkingMemoryEventManager
      • getEntryPointId

        public String getEntryPointId()
        Specified by:
        getEntryPointId in interface org.kie.api.runtime.rule.EntryPoint
      • retract

        public void retract​(org.kie.api.runtime.rule.FactHandle handle)
        Specified by:
        retract in interface org.kie.api.runtime.rule.EntryPoint
      • getAgenda

        public org.drools.core.common.InternalAgenda getAgenda()
        Specified by:
        getAgenda in interface org.drools.core.common.InternalWorkingMemory
        Specified by:
        getAgenda in interface org.kie.api.runtime.rule.RuleRuntime
        Specified by:
        getAgenda in interface org.drools.core.WorkingMemory
      • getIdentifier

        public long getIdentifier()
        Specified by:
        getIdentifier in interface org.drools.core.common.InternalWorkingMemory
        Specified by:
        getIdentifier in interface org.kie.api.runtime.KieSession
      • setIdentifier

        public void setIdentifier​(long id)
        Specified by:
        setIdentifier in interface org.drools.core.common.InternalWorkingMemory
      • setRuleRuntimeEventSupport

        public void setRuleRuntimeEventSupport​(org.drools.core.event.RuleRuntimeEventSupport workingMemoryEventSupport)
        Specified by:
        setRuleRuntimeEventSupport in interface org.drools.core.common.InternalWorkingMemory
      • removeEventListener

        public void removeEventListener​(org.kie.api.event.rule.AgendaEventListener listener)
        Specified by:
        removeEventListener in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        removeEventListener in interface org.drools.core.WorkingMemoryEventManager
      • updateTraits

        public void updateTraits​(org.drools.core.common.InternalFactHandle h,
                                 org.drools.core.util.bitmask.BitMask mask,
                                 Class<?> modifiedClass,
                                 org.drools.core.rule.consequence.Activation activation)
        Specified by:
        updateTraits in interface org.drools.core.common.InternalWorkingMemoryActions
      • update

        public void update​(org.kie.api.runtime.rule.FactHandle handle,
                           Object object)
        Specified by:
        update in interface org.kie.api.runtime.rule.EntryPoint
      • update

        public void update​(org.kie.api.runtime.rule.FactHandle handle,
                           Object object,
                           String... modifiedProperties)
        Specified by:
        update in interface org.kie.api.runtime.rule.EntryPoint
      • setAgendaEventSupport

        public void setAgendaEventSupport​(org.drools.core.event.AgendaEventSupport agendaEventSupport)
        Specified by:
        setAgendaEventSupport in interface org.drools.core.common.InternalWorkingMemory
      • setGlobal

        public void setGlobal​(String identifier,
                              Object value)
        Specified by:
        setGlobal in interface org.kie.api.runtime.KieRuntime
        Specified by:
        setGlobal in interface org.drools.core.common.ReteEvaluator
        Specified by:
        setGlobal in interface org.drools.core.WorkingMemory
      • reset

        public void reset()
        Specified by:
        reset in interface org.drools.core.WorkingMemoryEntryPoint
      • shed

        public <T,​K,​X extends org.drools.core.factmodel.traits.TraitableBean> org.drools.core.factmodel.traits.Thing<K> shed​(org.drools.core.rule.consequence.Activation activation,
                                                                                                                                         org.drools.core.factmodel.traits.TraitableBean<K,​X> core,
                                                                                                                                         Class<T> trait)
        Specified by:
        shed in interface org.drools.core.common.InternalWorkingMemoryActions
      • getNodeMemory

        public <T extends org.drools.core.common.Memory> T getNodeMemory​(org.drools.core.common.MemoryFactory<T> node)
        Specified by:
        getNodeMemory in interface org.drools.core.common.ReteEvaluator
      • getHandleFactory

        public org.drools.core.rule.accessor.FactHandleFactory getHandleFactory()
        Specified by:
        getHandleFactory in interface org.drools.core.WorkingMemoryEntryPoint
      • getAgendaEventListeners

        public Collection<org.kie.api.event.rule.AgendaEventListener> getAgendaEventListeners()
        Specified by:
        getAgendaEventListeners in interface org.drools.core.common.EventSupport
        Specified by:
        getAgendaEventListeners in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        getAgendaEventListeners in interface org.drools.core.WorkingMemoryEventManager
      • clearNodeMemory

        public void clearNodeMemory​(org.drools.core.common.MemoryFactory node)
        Specified by:
        clearNodeMemory in interface org.drools.core.common.InternalWorkingMemory
      • don

        public <T,​K> T don​(org.drools.core.rule.consequence.Activation activation,
                                 K core,
                                 Collection<Class<? extends org.drools.core.factmodel.traits.Thing>> traits,
                                 boolean b,
                                 org.drools.core.beliefsystem.Mode[] modes)
        Specified by:
        don in interface org.drools.core.common.InternalWorkingMemoryActions
      • getNodeMemories

        public org.drools.core.common.NodeMemories getNodeMemories()
        Specified by:
        getNodeMemories in interface org.drools.core.common.InternalWorkingMemory
      • getNextPropagationIdCounter

        public long getNextPropagationIdCounter()
        Specified by:
        getNextPropagationIdCounter in interface org.drools.core.common.ReteEvaluator
      • getObjectStore

        public org.drools.core.common.ObjectStore getObjectStore()
        Specified by:
        getObjectStore in interface org.drools.core.WorkingMemoryEntryPoint
      • don

        public <T,​K> T don​(org.drools.core.rule.consequence.Activation activation,
                                 K core,
                                 Class<T> trait,
                                 boolean b,
                                 org.drools.core.beliefsystem.Mode[] modes)
        Specified by:
        don in interface org.drools.core.common.InternalWorkingMemoryActions
      • delete

        public void delete​(org.kie.api.runtime.rule.FactHandle handle)
        Specified by:
        delete in interface org.kie.api.runtime.rule.EntryPoint
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.kie.api.runtime.KieSession
        Specified by:
        dispose in interface org.drools.core.common.ReteEvaluator
        Specified by:
        dispose in interface org.drools.core.WorkingMemoryEntryPoint
      • getFactHandleFactory

        public org.drools.core.rule.accessor.FactHandleFactory getFactHandleFactory()
        Specified by:
        getFactHandleFactory in interface org.drools.core.common.ReteEvaluator
      • getGlobal

        public Object getGlobal​(String identifier)
        Specified by:
        getGlobal in interface org.kie.api.runtime.KieRuntime
        Specified by:
        getGlobal in interface org.drools.core.common.ReteEvaluator
      • getEntryPoint

        public org.drools.core.rule.EntryPointId getEntryPoint()
        Specified by:
        getEntryPoint in interface org.drools.core.WorkingMemoryEntryPoint
      • getReteEvaluator

        public org.drools.core.common.ReteEvaluator getReteEvaluator()
        Specified by:
        getReteEvaluator in interface org.drools.core.WorkingMemoryEntryPoint
      • getEntryPointNode

        public org.drools.core.reteoo.EntryPointNode getEntryPointNode()
        Specified by:
        getEntryPointNode in interface org.drools.core.WorkingMemoryEntryPoint
      • getEntryPoint

        public org.drools.core.WorkingMemoryEntryPoint getEntryPoint​(String name)
        Specified by:
        getEntryPoint in interface org.drools.core.common.ReteEvaluator
        Specified by:
        getEntryPoint in interface org.kie.api.runtime.rule.RuleRuntime
      • delete

        public void delete​(org.kie.api.runtime.rule.FactHandle handle,
                           org.kie.api.runtime.rule.FactHandle.State fhState)
        Specified by:
        delete in interface org.kie.api.runtime.rule.EntryPoint
      • getEnvironment

        public org.kie.api.runtime.Environment getEnvironment()
        Specified by:
        getEnvironment in interface org.kie.api.runtime.KieRuntime
        Specified by:
        getEnvironment in interface org.drools.core.WorkingMemory
      • setGlobalResolver

        public void setGlobalResolver​(org.drools.core.rule.accessor.GlobalResolver globalResolver)
        Specified by:
        setGlobalResolver in interface org.drools.core.WorkingMemory
      • getGlobalResolver

        public org.drools.core.rule.accessor.GlobalResolver getGlobalResolver()
        Specified by:
        getGlobalResolver in interface org.drools.core.common.ReteEvaluator
      • getActivationsManager

        public org.drools.core.common.ActivationsManager getActivationsManager()
        Specified by:
        getActivationsManager in interface org.drools.core.common.ReteEvaluator
      • getKnowledgeBase

        public InternalKnowledgeBase getKnowledgeBase()
        Specified by:
        getKnowledgeBase in interface org.drools.core.common.ReteEvaluator
        Specified by:
        getKnowledgeBase in interface org.drools.core.WorkingMemoryEntryPoint
      • getLock

        public Lock getLock()
        Specified by:
        getLock in interface org.drools.core.common.InternalWorkingMemory
      • isSequential

        public boolean isSequential()
        Specified by:
        isSequential in interface org.drools.core.common.ReteEvaluator
      • fireAllRules

        public int fireAllRules()
        Specified by:
        fireAllRules in interface org.drools.core.common.ReteEvaluator
        Specified by:
        fireAllRules in interface org.kie.api.runtime.rule.StatefulRuleSession
        Specified by:
        fireAllRules in interface org.drools.core.WorkingMemory
      • getObjectTypeConfigurationRegistry

        public org.drools.core.common.ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
        Specified by:
        getObjectTypeConfigurationRegistry in interface org.drools.core.WorkingMemoryEntryPoint
      • getInitialFactHandle

        public org.drools.core.common.InternalFactHandle getInitialFactHandle()
        Specified by:
        getInitialFactHandle in interface org.drools.core.common.InternalWorkingMemory
      • fireAllRules

        public int fireAllRules​(org.kie.api.runtime.rule.AgendaFilter agendaFilter)
        Specified by:
        fireAllRules in interface org.drools.core.common.ReteEvaluator
        Specified by:
        fireAllRules in interface org.kie.api.runtime.rule.StatefulRuleSession
        Specified by:
        fireAllRules in interface org.drools.core.WorkingMemory
      • getCalendars

        public org.kie.api.runtime.Calendars getCalendars()
        Specified by:
        getCalendars in interface org.kie.api.runtime.KieRuntime
        Specified by:
        getCalendars in interface org.drools.core.common.ReteEvaluator
      • getTimerService

        public org.drools.core.time.TimerService getTimerService()
        Specified by:
        getTimerService in interface org.drools.core.common.ReteEvaluator
      • fireAllRules

        public int fireAllRules​(int fireLimit)
        Specified by:
        fireAllRules in interface org.drools.core.common.ReteEvaluator
        Specified by:
        fireAllRules in interface org.kie.api.runtime.rule.StatefulRuleSession
        Specified by:
        fireAllRules in interface org.drools.core.WorkingMemory
      • getKnowledgeRuntime

        public org.drools.core.common.InternalKnowledgeRuntime getKnowledgeRuntime()
        Specified by:
        getKnowledgeRuntime in interface org.drools.core.common.InternalWorkingMemory
      • fireAllRules

        public int fireAllRules​(org.kie.api.runtime.rule.AgendaFilter agendaFilter,
                                int fireLimit)
        Specified by:
        fireAllRules in interface org.drools.core.common.ReteEvaluator
        Specified by:
        fireAllRules in interface org.kie.api.runtime.rule.StatefulRuleSession
        Specified by:
        fireAllRules in interface org.drools.core.WorkingMemory
      • getChannels

        public Map<String,​org.kie.api.runtime.Channel> getChannels()
        Specified by:
        getChannels in interface org.drools.core.common.InternalWorkingMemory
        Specified by:
        getChannels in interface org.kie.api.runtime.KieRuntime
      • getEntryPoints

        public Collection<? extends org.kie.api.runtime.rule.EntryPoint> getEntryPoints()
        Specified by:
        getEntryPoints in interface org.drools.core.common.InternalWorkingMemory
        Specified by:
        getEntryPoints in interface org.drools.core.common.ReteEvaluator
        Specified by:
        getEntryPoints in interface org.kie.api.runtime.rule.RuleRuntime
      • getObject

        public Object getObject​(org.kie.api.runtime.rule.FactHandle handle)
        Specified by:
        getObject in interface org.kie.api.runtime.rule.EntryPoint
      • getSessionConfiguration

        public org.drools.core.SessionConfiguration getSessionConfiguration()
        Specified by:
        getSessionConfiguration in interface org.kie.api.runtime.KieRuntime
        Specified by:
        getSessionConfiguration in interface org.drools.core.common.ReteEvaluator
      • getObjects

        public Collection<? extends Object> getObjects()
        Specified by:
        getObjects in interface org.kie.api.runtime.rule.EntryPoint
      • startBatchExecution

        public void startBatchExecution()
        Specified by:
        startBatchExecution in interface org.drools.core.common.InternalWorkingMemory
      • endBatchExecution

        public void endBatchExecution()
        Specified by:
        endBatchExecution in interface org.drools.core.common.InternalWorkingMemory
      • startOperation

        public void startOperation()
        Specified by:
        startOperation in interface org.drools.core.common.InternalWorkingMemory
        Specified by:
        startOperation in interface org.drools.core.common.ReteEvaluator
      • getFactHandle

        public org.drools.core.common.InternalFactHandle getFactHandle​(Object object)
        Specified by:
        getFactHandle in interface org.kie.api.runtime.rule.EntryPoint
        Specified by:
        getFactHandle in interface org.drools.core.common.ReteEvaluator
      • iterateObjects

        public Iterator<?> iterateObjects()
        Specified by:
        iterateObjects in interface org.drools.core.WorkingMemory
      • endOperation

        public void endOperation()
        Specified by:
        endOperation in interface org.drools.core.common.InternalWorkingMemory
        Specified by:
        endOperation in interface org.drools.core.common.ReteEvaluator
      • iterateObjects

        public Iterator<?> iterateObjects​(org.kie.api.runtime.ObjectFilter filter)
        Specified by:
        iterateObjects in interface org.drools.core.WorkingMemory
      • getObjects

        public Collection<? extends Object> getObjects​(org.kie.api.runtime.ObjectFilter filter)
        Specified by:
        getObjects in interface org.kie.api.runtime.rule.EntryPoint
      • getIdleTime

        public long getIdleTime()
        Specified by:
        getIdleTime in interface org.drools.core.common.InternalWorkingMemory
      • getFactHandles

        public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
        Specified by:
        getFactHandles in interface org.kie.api.runtime.rule.EntryPoint
      • getTimeToNextJob

        public long getTimeToNextJob()
        Specified by:
        getTimeToNextJob in interface org.drools.core.common.InternalWorkingMemory
      • iterateFactHandles

        public Iterator<org.drools.core.common.InternalFactHandle> iterateFactHandles()
        Specified by:
        iterateFactHandles in interface org.drools.core.WorkingMemory
      • getFactHandles

        public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles​(org.kie.api.runtime.ObjectFilter filter)
        Specified by:
        getFactHandles in interface org.kie.api.runtime.rule.EntryPoint
      • updateEntryPointsCache

        public void updateEntryPointsCache()
        Specified by:
        updateEntryPointsCache in interface org.drools.core.common.InternalWorkingMemory
      • prepareToFireActivation

        public void prepareToFireActivation()
        Specified by:
        prepareToFireActivation in interface org.drools.core.common.InternalWorkingMemory
      • iterateFactHandles

        public Iterator<org.drools.core.common.InternalFactHandle> iterateFactHandles​(org.kie.api.runtime.ObjectFilter filter)
        Specified by:
        iterateFactHandles in interface org.drools.core.WorkingMemory
      • getFactCount

        public long getFactCount()
        Specified by:
        getFactCount in interface org.kie.api.runtime.rule.EntryPoint
      • activationFired

        public void activationFired()
        Specified by:
        activationFired in interface org.drools.core.common.InternalWorkingMemory
      • getTotalFactCount

        public long getTotalFactCount()
        Specified by:
        getTotalFactCount in interface org.drools.core.common.InternalWorkingMemory
      • setFocus

        public void setFocus​(String focus)
        Specified by:
        setFocus in interface org.drools.core.WorkingMemory
      • getProcessRuntime

        public org.drools.core.runtime.process.InternalProcessRuntime getProcessRuntime()
        Specified by:
        getProcessRuntime in interface org.drools.core.common.InternalWorkingMemory
      • internalGetProcessRuntime

        public org.drools.core.runtime.process.InternalProcessRuntime internalGetProcessRuntime()
        Specified by:
        internalGetProcessRuntime in interface org.drools.core.common.InternalWorkingMemory
      • closeLiveQuery

        public void closeLiveQuery​(org.drools.core.common.InternalFactHandle factHandle)
        Specified by:
        closeLiveQuery in interface org.drools.core.common.InternalWorkingMemory
      • addPropagation

        public void addPropagation​(org.drools.core.phreak.PropagationEntry propagationEntry,
                                   boolean register)
        Specified by:
        addPropagation in interface org.drools.core.common.ReteEvaluator
      • flushPropagations

        public void flushPropagations()
        Specified by:
        flushPropagations in interface org.drools.core.common.InternalWorkingMemory
      • activate

        public void activate()
        Specified by:
        activate in interface org.drools.core.common.InternalWorkingMemory
      • deactivate

        public void deactivate()
        Specified by:
        deactivate in interface org.drools.core.common.InternalWorkingMemory
      • tryDeactivate

        public boolean tryDeactivate()
        Specified by:
        tryDeactivate in interface org.drools.core.common.InternalWorkingMemory
      • getActionsIterator

        public Iterator<? extends org.drools.core.phreak.PropagationEntry> getActionsIterator()
        Specified by:
        getActionsIterator in interface org.drools.core.common.InternalWorkingMemory
      • removeGlobal

        public void removeGlobal​(String identifier)
        Specified by:
        removeGlobal in interface org.drools.core.common.InternalWorkingMemory
      • notifyWaitOnRest

        public void notifyWaitOnRest()
        Specified by:
        notifyWaitOnRest in interface org.drools.core.common.InternalWorkingMemory
      • cancelActivation

        public void cancelActivation​(org.drools.core.rule.consequence.Activation activation,
                                     boolean declarativeAgenda)
        Specified by:
        cancelActivation in interface org.drools.core.common.InternalWorkingMemory
      • clearAgenda

        public void clearAgenda()
        Specified by:
        clearAgenda in interface org.drools.core.WorkingMemory
      • clearAgendaGroup

        public void clearAgendaGroup​(String group)
        Specified by:
        clearAgendaGroup in interface org.drools.core.WorkingMemory
      • clearActivationGroup

        public void clearActivationGroup​(String group)
        Specified by:
        clearActivationGroup in interface org.drools.core.WorkingMemory
      • clearRuleFlowGroup

        public void clearRuleFlowGroup​(String group)
        Specified by:
        clearRuleFlowGroup in interface org.drools.core.WorkingMemory
      • startProcess

        public org.kie.api.runtime.process.ProcessInstance startProcess​(String processId)
        Specified by:
        startProcess in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        startProcess in interface org.drools.core.WorkingMemory
      • startProcess

        public org.kie.api.runtime.process.ProcessInstance startProcess​(String processId,
                                                                        Map<String,​Object> parameters)
        Specified by:
        startProcess in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        startProcess in interface org.drools.core.WorkingMemory
      • startProcess

        public org.kie.api.runtime.process.ProcessInstance startProcess​(String processId,
                                                                        org.kie.api.runtime.rule.AgendaFilter agendaFilter)
        Specified by:
        startProcess in interface org.kie.api.runtime.process.ProcessRuntime
      • startProcess

        public org.kie.api.runtime.process.ProcessInstance startProcess​(String processId,
                                                                        Map<String,​Object> parameters,
                                                                        org.kie.api.runtime.rule.AgendaFilter agendaFilter)
        Specified by:
        startProcess in interface org.kie.api.runtime.process.ProcessRuntime
      • getProcessInstances

        public Collection<org.kie.api.runtime.process.ProcessInstance> getProcessInstances()
        Specified by:
        getProcessInstances in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        getProcessInstances in interface org.drools.core.WorkingMemory
      • getProcessInstance

        public org.kie.api.runtime.process.ProcessInstance getProcessInstance​(String id)
        Specified by:
        getProcessInstance in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        getProcessInstance in interface org.drools.core.WorkingMemory
      • getProcessInstance

        public org.kie.api.runtime.process.ProcessInstance getProcessInstance​(String id,
                                                                              boolean readOnly)
        Specified by:
        getProcessInstance in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        getProcessInstance in interface org.drools.core.WorkingMemory
      • getWorkItemManager

        public org.kie.api.runtime.process.WorkItemManager getWorkItemManager()
        Specified by:
        getWorkItemManager in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        getWorkItemManager in interface org.drools.core.WorkingMemory
      • halt

        public void halt()
        Specified by:
        halt in interface org.kie.api.runtime.rule.RuleRuntime
        Specified by:
        halt in interface org.drools.core.WorkingMemory
      • getSessionClock

        public org.kie.api.time.SessionClock getSessionClock()
        Specified by:
        getSessionClock in interface org.kie.api.runtime.KieRuntime
        Specified by:
        getSessionClock in interface org.drools.core.common.ReteEvaluator
      • startProcessFromNodeIds

        public org.kie.api.runtime.process.ProcessInstance startProcessFromNodeIds​(String processId,
                                                                                   Map<String,​Object> params,
                                                                                   String... nodeIds)
        Specified by:
        startProcessFromNodeIds in interface org.kie.api.runtime.process.ProcessRuntime