Class StatefulKnowledgeSessionImpl

    • Method Detail

      • init

        public void init​(SessionConfiguration config,
                         org.kie.api.runtime.Environment environment)
      • createTimerService

        protected TimerService createTimerService()
      • initMBeans

        public void initMBeans​(String containerId,
                               String kbaseName,
                               String ksessionName)
      • setHandleFactory

        public void setHandleFactory​(FactHandleFactory handleFactory)
      • 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)
      • getEntryPoints

        public Collection<? extends org.kie.api.runtime.rule.EntryPoint> getEntryPoints()
        Specified by:
        getEntryPoints in interface InternalWorkingMemory
        Specified by:
        getEntryPoints in interface org.kie.api.runtime.rule.RuleRuntime
      • 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
        Specified by:
        getKieBase in interface org.kie.internal.runtime.StatefulKnowledgeSession
      • dispose

        public void dispose()
        Description copied from interface: WorkingMemoryEntryPoint
        Internal method called by the engine when the session is being disposed, so that the entry point can proceed with the necessary clean ups.
        Specified by:
        dispose in interface org.kie.api.runtime.KieSession
        Specified by:
        dispose in interface WorkingMemoryEntryPoint
      • 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​(long 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,
                                long 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
      • getFactHandles

        public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
        Specified by:
        getFactHandles in interface org.kie.api.runtime.rule.EntryPoint
      • 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
      • getObjects

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

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

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

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

        public QueryResultsImpl getQueryResultsFromRHS​(String queryName,
                                                       Object... arguments)
        (This shall NOT be exposed on public API)
      • getQueryResults

        public QueryResultsImpl getQueryResults​(String queryName,
                                                Object... arguments)
        Description copied from interface: WorkingMemory
        Retrieve the QueryResults of the specified query and arguments
        Specified by:
        getQueryResults in interface org.kie.api.runtime.rule.RuleRuntime
        Specified by:
        getQueryResults in interface WorkingMemory
        Parameters:
        queryName - The name of the query.
        arguments - The arguments used for the query
        Returns:
        The QueryResults of the specified query. If no results match the query it is empty.
      • internalGetQueryResult

        protected QueryResultsImpl internalGetQueryResult​(boolean calledFromRHS,
                                                          String queryName,
                                                          Object... arguments)
      • 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
      • initDefaultEntryPoint

        protected void initDefaultEntryPoint()
      • reset

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

        public void addEventListener​(org.kie.api.event.rule.RuleRuntimeEventListener listener)
        Description copied from interface: WorkingMemoryEventManager
        Add an event listener.
        Specified by:
        addEventListener in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        addEventListener in interface WorkingMemoryEventManager
        Parameters:
        listener - The listener to add.
      • removeEventListener

        public void removeEventListener​(org.kie.api.event.rule.RuleRuntimeEventListener listener)
        Description copied from interface: WorkingMemoryEventManager
        Remove an event listener.
        Specified by:
        removeEventListener in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        removeEventListener in interface WorkingMemoryEventManager
        Parameters:
        listener - The listener to remove.
      • addEventListener

        public void addEventListener​(org.kie.api.event.rule.AgendaEventListener listener)
        Description copied from interface: WorkingMemoryEventManager
        Add an event listener.
        Specified by:
        addEventListener in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        addEventListener in interface WorkingMemoryEventManager
        Parameters:
        listener - The listener to add.
      • removeEventListener

        public void removeEventListener​(org.kie.api.event.rule.AgendaEventListener listener)
        Description copied from interface: WorkingMemoryEventManager
        Remove an event listener.
        Specified by:
        removeEventListener in interface org.kie.api.event.rule.RuleRuntimeEventManager
        Specified by:
        removeEventListener in interface WorkingMemoryEventManager
        Parameters:
        listener - The listener to remove.
      • addEventListener

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

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

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

        public void setRuleEventListenerSupport​(RuleEventListenerSupport ruleEventListenerSupport)
      • addEventListener

        public void addEventListener​(org.kie.internal.event.rule.RuleEventListener listener)
        Specified by:
        addEventListener in interface org.kie.internal.event.rule.RuleEventManager
      • removeEventListener

        public void removeEventListener​(org.kie.internal.event.rule.RuleEventListener listener)
        Specified by:
        removeEventListener in interface org.kie.internal.event.rule.RuleEventManager
      • setGlobal

        public void setGlobal​(String identifier,
                              Object value)
        Description copied from interface: WorkingMemory
        Set a specific instance as a global in this working memory. Null values will return doing nothing. The global identifier and its type must be declared in the drl.
        Specified by:
        setGlobal in interface org.kie.api.runtime.KieRuntime
        Specified by:
        setGlobal in interface WorkingMemory
        Parameters:
        identifier - the identifier under which to populate the data
        value - the global value, cannot be null
      • setGlobalResolver

        public void setGlobalResolver​(GlobalResolver globalResolver)
        Description copied from interface: WorkingMemory
        Sets the GlobalResolver instance to be used when resolving globals, replaces the current GlobalResolver. Typcicaly a delegating GlobalResolver is created that first gets a reference to the current GlobalResolver, for delegating
        Specified by:
        setGlobalResolver in interface WorkingMemory
      • getCalendars

        public org.kie.api.runtime.Calendars getCalendars()
        Specified by:
        getCalendars in interface InternalWorkingMemory
        Specified by:
        getCalendars in interface org.kie.api.runtime.KieRuntime
      • getId

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

        public long getIdentifier()
        Specified by:
        getIdentifier in interface InternalWorkingMemory
        Specified by:
        getIdentifier in interface org.kie.api.runtime.KieSession
      • checkAlive

        protected void checkAlive()
      • getGlobal

        public Object getGlobal​(String identifier)
        Description copied from interface: WorkingMemory
        Retrieve a specific instance of global data by identifier
        Specified by:
        getGlobal in interface org.kie.api.runtime.KieRuntime
        Specified by:
        getGlobal in interface WorkingMemory
        Returns:
        application data or null if nothing is set under this identifier
      • getEnvironment

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

        public InternalAgenda getAgenda()
        Description copied from interface: WorkingMemory
        Returns the Agenda for this WorkingMemory. While the WorkingMemory interface is considered public, the Agenda interface is more subject to change.
        Specified by:
        getAgenda in interface InternalWorkingMemory
        Specified by:
        getAgenda in interface org.kie.api.runtime.rule.RuleRuntime
        Specified by:
        getAgenda in interface WorkingMemory
        Returns:
        the Agenda
      • clearAgenda

        public void clearAgenda()
        Description copied from interface: WorkingMemory
        Clear the Agenda. Iterates over each AgendaGroup cancalling all Activations.
        Specified by:
        clearAgenda in interface WorkingMemory
      • halt

        public void halt()
        Description copied from interface: WorkingMemory
        Stops rule firing after the current rule finishes executing
        Specified by:
        halt in interface org.kie.api.runtime.rule.RuleRuntime
        Specified by:
        halt in interface WorkingMemory
      • fireAllRules

        public int fireAllRules()
        Description copied from interface: WorkingMemory
        Fire all items on the agenda until empty.
        Specified by:
        fireAllRules in interface org.kie.api.runtime.rule.StatefulRuleSession
        Specified by:
        fireAllRules in interface WorkingMemory
      • fireAllRules

        public int fireAllRules​(int fireLimit)
        Description copied from interface: WorkingMemory
        Fire all items on the agenda until empty or at most 'fireLimit' rules have fired
        Specified by:
        fireAllRules in interface org.kie.api.runtime.rule.StatefulRuleSession
        Specified by:
        fireAllRules in interface WorkingMemory
      • fireAllRules

        public int fireAllRules​(org.kie.api.runtime.rule.AgendaFilter agendaFilter)
        Description copied from interface: WorkingMemory
        Fire all items on the agenda until empty, using the given AgendaFiler
        Specified by:
        fireAllRules in interface org.kie.api.runtime.rule.StatefulRuleSession
        Specified by:
        fireAllRules in interface WorkingMemory
      • fireAllRules

        public int fireAllRules​(org.kie.api.runtime.rule.AgendaFilter agendaFilter,
                                int fireLimit)
        Description copied from interface: WorkingMemory
        Fire all items on the agenda using the given AgendaFiler until empty or at most 'fireLimit' rules have fired
        Specified by:
        fireAllRules in interface org.kie.api.runtime.rule.StatefulRuleSession
        Specified by:
        fireAllRules in interface WorkingMemory
      • fireUntilHalt

        public void fireUntilHalt()
        Keeps firing activations until a halt is called. If in a given moment, there is no activation to fire, it will wait for an activation to be added to an active agenda group or rule flow group.
        Specified by:
        fireUntilHalt in interface org.kie.api.runtime.rule.StatefulRuleSession
        Throws:
        IllegalStateException - if this method is called when running in sequential mode
      • fireUntilHalt

        public void fireUntilHalt​(org.kie.api.runtime.rule.AgendaFilter agendaFilter)
        Keeps firing activations until a halt is called. If in a given moment, there is no activation to fire, it will wait for an activation to be added to an active agenda group or rule flow group.
        Specified by:
        fireUntilHalt in interface org.kie.api.runtime.rule.StatefulRuleSession
        Parameters:
        agendaFilter - filters the activations that may fire
        Throws:
        IllegalStateException - if this method is called when running in sequential mode
      • getObject

        public Object getObject​(org.kie.api.runtime.rule.FactHandle handle)
        Returns the fact Object for the given FactHandle. It actually attempts to return the value from the handle, before retrieving it from objects map.
        Specified by:
        getObject in interface org.kie.api.runtime.rule.EntryPoint
        Specified by:
        getObject in interface WorkingMemory
        Parameters:
        handle - The FactHandle reference for the Object lookup
        Returns:
        The associated object.
        See Also:
        WorkingMemory
      • getFactHandle

        public org.kie.api.runtime.rule.FactHandle getFactHandle​(Object object)
        Description copied from interface: WorkingMemory
        Retrieve the FactHandle associated with an Object.
        Specified by:
        getFactHandle in interface org.kie.api.runtime.rule.EntryPoint
        Specified by:
        getFactHandle in interface WorkingMemory
        Parameters:
        object - The object.
        Returns:
        The associated fact handle.
        See Also:
        WorkingMemory
      • iterateObjects

        public Iterator iterateObjects()
        This class is not thread safe, changes to the working memory during iteration may give unexpected results
        Specified by:
        iterateObjects in interface WorkingMemory
        Returns:
        the Iterator
      • iterateObjects

        public Iterator iterateObjects​(org.kie.api.runtime.ObjectFilter filter)
        This class is not thread safe, changes to the working memory during iteration may give unexpected results
        Specified by:
        iterateObjects in interface WorkingMemory
        Returns:
        the Iterator
      • iterateFactHandles

        public Iterator<InternalFactHandle> iterateFactHandles​(org.kie.api.runtime.ObjectFilter filter)
        This class is not thread safe, changes to the working memory during iteration may give unexpected results
        Specified by:
        iterateFactHandles in interface WorkingMemory
        Returns:
        the Iterator
      • insert

        public org.kie.api.runtime.rule.FactHandle insert​(Object object)
        Specified by:
        insert in interface org.kie.api.runtime.rule.EntryPoint
        See Also:
        WorkingMemory
      • insert

        public org.kie.api.runtime.rule.FactHandle insert​(Object object,
                                                          boolean dynamic)
        Description copied from interface: WorkingMemoryEntryPoint
        Insert a fact registering JavaBean PropertyChangeListeners on the Object to automatically trigger update calls if dynamic is true.
        Specified by:
        insert in interface WorkingMemoryEntryPoint
        Parameters:
        object - The fact object.
        dynamic - true if Drools should add JavaBean PropertyChangeListeners to the object.
        Returns:
        The new fact-handle associated with the object.
      • submit

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

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

        public void delete​(org.kie.api.runtime.rule.FactHandle handle)
        Specified by:
        delete in interface org.kie.api.runtime.rule.EntryPoint
      • 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
      • 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
      • getNodeMemory

        public <T extends Memory> T getNodeMemory​(MemoryFactory<T> node)
        Retrieve the JoinMemory for a particular JoinNode.
        Specified by:
        getNodeMemory in interface InternalWorkingMemory
        Parameters:
        node - The JoinNode key.
        Returns:
        The node's memory.
      • getPropagationIdCounter

        public long getPropagationIdCounter()
      • startProcess

        public org.kie.api.runtime.process.ProcessInstance startProcess​(String processId)
        Description copied from interface: WorkingMemory
        Starts a new process instance for the process with the given id.
        Specified by:
        startProcess in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        startProcess in interface WorkingMemory
      • startProcess

        public org.kie.api.runtime.process.ProcessInstance startProcess​(String processId,
                                                                        Map<String,​Object> parameters)
        Description copied from interface: WorkingMemory
        Starts a new process instance for the process with the given id.
        Specified by:
        startProcess in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        startProcess in interface 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
      • 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​(long processInstanceId)
        Specified by:
        startProcessInstance in interface org.kie.api.runtime.process.ProcessRuntime
      • getProcessInstances

        public Collection<org.kie.api.runtime.process.ProcessInstance> getProcessInstances()
        Description copied from interface: WorkingMemory
        Returns the list of process instances of this working memory. This list is unmodifiable.
        Specified by:
        getProcessInstances in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        getProcessInstances in interface WorkingMemory
        Returns:
        the list of process instances
      • getProcessInstance

        public org.kie.api.runtime.process.ProcessInstance getProcessInstance​(Object processInstanceId)
      • getProcessInstance

        public org.kie.api.runtime.process.ProcessInstance getProcessInstance​(long processInstanceId)
        Description copied from interface: WorkingMemory
        Returns the process instance with the given id.
        Specified by:
        getProcessInstance in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        getProcessInstance in interface WorkingMemory
        Returns:
        the process instance with the given id
      • startProcess

        public org.kie.api.runtime.process.ProcessInstance startProcess​(String processId,
                                                                        org.kie.internal.process.CorrelationKey correlationKey,
                                                                        Map<String,​Object> parameters)
        Specified by:
        startProcess in interface org.kie.internal.process.CorrelationAwareProcessRuntime
      • createProcessInstance

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

        public org.kie.api.runtime.process.ProcessInstance getProcessInstance​(org.kie.internal.process.CorrelationKey correlationKey)
        Specified by:
        getProcessInstance in interface org.kie.internal.process.CorrelationAwareProcessRuntime
      • getProcessInstance

        public org.kie.api.runtime.process.ProcessInstance getProcessInstance​(long processInstanceId,
                                                                              boolean readOnly)
        Specified by:
        getProcessInstance in interface org.kie.api.runtime.process.ProcessRuntime
        Specified by:
        getProcessInstance in interface 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 WorkingMemory
      • setInitialFactHandle

        public void setInitialFactHandle​(InternalFactHandle initialFactHandle)
      • getSessionClock

        public org.kie.api.time.SessionClock getSessionClock()
        Description copied from interface: WorkingMemory
        Returns the session clock instance associated with this session
        Specified by:
        getSessionClock in interface org.kie.api.runtime.KieRuntime
        Specified by:
        getSessionClock in interface WorkingMemory
        Returns:
      • 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
      • getChannels

        public Map<String,​org.kie.api.runtime.Channel> getChannels()
        Description copied from interface: InternalWorkingMemory
        Returns a map of channel Id->Channel of all channels in this working memory
        Specified by:
        getChannels in interface InternalWorkingMemory
        Specified by:
        getChannels in interface org.kie.api.runtime.KieRuntime
        Returns:
      • getFactCount

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

        public long getTotalFactCount()
        Description copied from interface: InternalWorkingMemory
        Returns the total number of facts in the working memory, i.e., counting all facts from all entry points. This is an approximate value and may not be accurate due to the concurrent nature of the entry points.
        Specified by:
        getTotalFactCount in interface InternalWorkingMemory
        Returns:
      • startOperation

        public void startOperation()
        This method must be called before starting any new work in the engine, like inserting a new fact or firing a new rule. It will reset the engine idle time counter. This method must be extremely light to avoid contentions when called by multiple threads/entry-points
        Specified by:
        startOperation in interface InternalKnowledgeRuntime
        Specified by:
        startOperation in interface InternalWorkingMemory
      • endOperation

        public void endOperation()
        This method must be called after finishing any work in the engine, like inserting a new fact or firing a new rule. It will reset the engine idle time counter. This method must be extremely light to avoid contentions when called by multiple threads/entry-points
        Specified by:
        endOperation in interface InternalKnowledgeRuntime
        Specified by:
        endOperation in interface InternalWorkingMemory
      • getIdleTime

        public long getIdleTime()
        Returns the number of time units (usually ms) that the engine is idle according to the session clock or -1 if it is not idle. This method is not synchronised and might return an approximate value.
        Specified by:
        getIdleTime in interface InternalWorkingMemory
        Returns:
      • prepareToFireActivation

        public void prepareToFireActivation()
        Description copied from interface: InternalWorkingMemory
        This method is called by the agenda before firing a new activation to ensure the working memory is in a safe state to fire the activation.
        Specified by:
        prepareToFireActivation in interface InternalWorkingMemory
      • activationFired

        public void activationFired()
        Description copied from interface: InternalWorkingMemory
        This method is called by the agenda right after an activation was fired to allow the working memory to resume any activities blocked during activation firing.
        Specified by:
        activationFired in interface InternalWorkingMemory
      • getTimeToNextJob

        public long getTimeToNextJob()
        Returns the number of time units (usually ms) to the next scheduled job
        Specified by:
        getTimeToNextJob in interface InternalWorkingMemory
        Returns:
        the number of time units until the next scheduled job or -1 if there is no job scheduled
      • iterateObjectsToList

        public List iterateObjectsToList()
      • iterateNonDefaultEntryPointObjectsToList

        public List iterateNonDefaultEntryPointObjectsToList()
      • getActivationParameters

        public Map.Entry[] getActivationParameters​(long activationId)
      • getActivationParameters

        public Map getActivationParameters​(Activation activation)
      • startProcessFromNodeIds

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

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