Package org.drools.kiesession.session
Class StatefulKnowledgeSessionImpl
- java.lang.Object
-
- org.drools.core.impl.AbstractRuntime
-
- org.drools.kiesession.session.StatefulKnowledgeSessionImpl
-
- All Implemented Interfaces:
Externalizable,Serializable,org.drools.core.common.EventSupport,org.drools.core.common.InternalKnowledgeRuntime,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,org.kie.internal.event.rule.RuleEventManager,org.kie.internal.process.CorrelationAwareProcessRuntime,org.kie.internal.runtime.StatefulKnowledgeSession
public class StatefulKnowledgeSessionImpl extends org.drools.core.impl.AbstractRuntime implements org.kie.internal.runtime.StatefulKnowledgeSession, org.drools.core.WorkingMemoryEntryPoint, org.drools.core.common.InternalKnowledgeRuntime, org.kie.api.runtime.KieSession, org.kie.api.event.KieRuntimeEventManager, org.drools.core.common.InternalWorkingMemoryActions, org.drools.core.common.EventSupport, org.kie.internal.event.rule.RuleEventManager, org.kie.api.event.process.ProcessEventManager, org.kie.internal.process.CorrelationAwareProcessRuntime, Externalizable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatefulKnowledgeSessionImpl.DummyInternalProcessRuntimestatic classStatefulKnowledgeSessionImpl.GlobalsAdapter
-
Field Summary
Fields Modifier and Type Field Description protected org.drools.core.common.InternalAgendaagendaRule-firing agenda.protected org.drools.core.event.AgendaEventSupportagendaEventSupportbyte[]bytesprotected org.kie.api.runtime.Calendarscalendarsprotected org.drools.core.SessionConfigurationconfigstatic StringDEFAULT_RULE_UNITstatic StatefulKnowledgeSessionImpl.DummyInternalProcessRuntimeDUMMY_PROCESS_RUNTIMEstatic StringERRORMSGprotected org.drools.core.rule.accessor.GlobalResolverglobalResolverGlobal values which are associated with this memory.protected org.drools.core.rule.accessor.FactHandleFactoryhandleFactoryprotected Longidprotected org.drools.core.common.InternalFactHandleinitialFactHandleprotected InternalKnowledgeBasekBaseTheRuleBasewith which this memory is associated.protected List<org.kie.api.event.kiebase.KieBaseEventListener>kieBaseEventListenersprotected ReentrantLocklockprotected org.drools.core.event.RuleEventListenerSupportruleEventListenerSupportprotected org.drools.core.event.RuleRuntimeEventSupportruleRuntimeEventSupportThe eventSupport
-
Constructor Summary
Constructors Constructor Description StatefulKnowledgeSessionImpl()StatefulKnowledgeSessionImpl(long id, InternalKnowledgeBase kBase)StatefulKnowledgeSessionImpl(long id, InternalKnowledgeBase kBase, boolean initInitFactHandle, org.drools.core.SessionConfiguration config, org.kie.api.runtime.Environment environment)StatefulKnowledgeSessionImpl(long id, InternalKnowledgeBase kBase, org.drools.core.rule.accessor.FactHandleFactory handleFactory, long propagationContext, org.drools.core.SessionConfiguration config, org.drools.core.common.InternalAgenda agenda, org.kie.api.runtime.Environment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabortProcessInstance(String id)voidactivate()voidactivationFired()voidaddEventListener(org.kie.api.event.kiebase.KieBaseEventListener listener)voidaddEventListener(org.kie.api.event.process.ProcessEventListener listener)voidaddEventListener(org.kie.api.event.rule.AgendaEventListener listener)voidaddEventListener(org.kie.api.event.rule.RuleRuntimeEventListener listener)voidaddEventListener(org.kie.internal.event.rule.RuleEventListener listener)voidaddPropagation(org.drools.core.phreak.PropagationEntry propagationEntry, boolean register)voidcancelActivation(org.drools.core.rule.consequence.Activation activation, boolean declarativeAgenda)protected voidcheckAlive()voidclearActivationGroup(String group)voidclearAgenda()voidclearAgendaGroup(String group)voidclearNodeMemory(org.drools.core.common.MemoryFactory node)voidclearRuleFlowGroup(String group)voidcloseLiveQuery(org.drools.core.common.InternalFactHandle factHandle)org.kie.api.runtime.process.ProcessInstancecreateProcessInstance(String processId, Map<String,Object> parameters)org.kie.api.runtime.process.ProcessInstancecreateProcessInstance(String processId, org.kie.internal.process.CorrelationKey correlationKey, Map<String,Object> parameters)<T> TcreateRuntimeService(Class<T> cls)protected org.drools.core.time.TimerServicecreateTimerService()voiddeactivate()voiddelete(org.kie.api.runtime.rule.FactHandle handle)voiddelete(org.kie.api.runtime.rule.FactHandle factHandle, org.drools.core.definitions.rule.impl.RuleImpl rule, org.drools.core.reteoo.TerminalNode terminalNode)voiddelete(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)voiddelete(org.kie.api.runtime.rule.FactHandle handle, org.kie.api.runtime.rule.FactHandle.State fhState)voiddestroy()voiddispose()<T,K>
Tdon(org.drools.core.rule.consequence.Activation activation, K core, Class<T> trait, boolean b, org.drools.core.beliefsystem.Mode[] modes)<T,K>
Tdon(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)voidendBatchExecution()voidendOperation()This method must be called after finishing any work in the engine, like inserting a new fact or firing a new rule.<T> Texecute(org.kie.api.command.Command<T> command)intfireAllRules()intfireAllRules(int fireLimit)intfireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter)intfireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter, int fireLimit)voidfireUntilHalt()Keeps firing activations until a halt is called.voidfireUntilHalt(org.kie.api.runtime.rule.AgendaFilter agendaFilter)Keeps firing activations until a halt is called.voidflushPropagations()Iterator<? extends org.drools.core.phreak.PropagationEntry>getActionsIterator()org.drools.core.common.ActivationsManagergetActivationsManager()org.drools.core.common.InternalAgendagetAgenda()Collection<org.kie.api.event.rule.AgendaEventListener>getAgendaEventListeners()org.drools.core.event.AgendaEventSupportgetAgendaEventSupport()org.kie.api.runtime.CalendarsgetCalendars()Map<String,org.kie.api.runtime.Channel>getChannels()org.drools.core.rule.EntryPointIdgetEntryPoint()org.drools.core.WorkingMemoryEntryPointgetEntryPoint(String name)StringgetEntryPointId()org.drools.core.reteoo.EntryPointNodegetEntryPointNode()Collection<? extends org.kie.api.runtime.rule.EntryPoint>getEntryPoints()org.kie.api.runtime.EnvironmentgetEnvironment()longgetFactCount()org.drools.core.common.InternalFactHandlegetFactHandle(Object object)org.drools.core.rule.accessor.FactHandleFactorygetFactHandleFactory()<T extends org.kie.api.runtime.rule.FactHandle>
Collection<T>getFactHandles()<T extends org.kie.api.runtime.rule.FactHandle>
Collection<T>getFactHandles(org.kie.api.runtime.ObjectFilter filter)ObjectgetGlobal(String identifier)org.drools.core.rule.accessor.GlobalResolvergetGlobalResolver()org.kie.api.runtime.GlobalsgetGlobals()org.drools.core.rule.accessor.FactHandleFactorygetHandleFactory()intgetId()longgetIdentifier()longgetIdleTime()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.org.drools.core.common.InternalFactHandlegetInitialFactHandle()org.kie.api.KieBasegetKieBase()Collection<org.kie.api.event.kiebase.KieBaseEventListener>getKieBaseEventListeners()<T> TgetKieRuntime(Class<T> cls)InternalKnowledgeBasegetKnowledgeBase()org.drools.core.common.InternalKnowledgeRuntimegetKnowledgeRuntime()longgetLastIdleTimestamp()LockgetLock()longgetNextPropagationIdCounter()org.drools.core.common.NodeMemoriesgetNodeMemories()<T extends org.drools.core.common.Memory>
TgetNodeMemory(org.drools.core.common.MemoryFactory<T> node)Retrieve theJoinMemoryfor a particularJoinNode.ObjectgetObject(org.kie.api.runtime.rule.FactHandle handle)Returns the fact Object for the givenFactHandle.Collection<?>getObjects()Collection<?>getObjects(org.kie.api.runtime.ObjectFilter filter)org.drools.core.common.ObjectStoregetObjectStore()org.drools.core.common.ObjectTypeConfigurationRegistrygetObjectTypeConfigurationRegistry()Collection<org.kie.api.event.process.ProcessEventListener>getProcessEventListeners()org.kie.api.runtime.process.ProcessInstancegetProcessInstance(String processInstanceId)org.kie.api.runtime.process.ProcessInstancegetProcessInstance(String processInstanceId, boolean readOnly)org.kie.api.runtime.process.ProcessInstancegetProcessInstance(org.kie.internal.process.CorrelationKey correlationKey)Collection<org.kie.api.runtime.process.ProcessInstance>getProcessInstances()org.drools.core.runtime.process.InternalProcessRuntimegetProcessRuntime()org.drools.core.QueryResultsImplgetQueryResults(String queryName, Object... arguments)org.drools.core.QueryResultsImplgetQueryResultsFromRHS(String queryName, Object... arguments)(This shall NOT be exposed on public API)org.drools.core.common.ReteEvaluatorgetReteEvaluator()org.drools.core.event.RuleEventListenerSupportgetRuleEventSupport()Collection<org.kie.api.event.rule.RuleRuntimeEventListener>getRuleRuntimeEventListeners()org.drools.core.event.RuleRuntimeEventSupportgetRuleRuntimeEventSupport()org.kie.api.time.SessionClockgetSessionClock()org.drools.core.SessionConfigurationgetSessionConfiguration()org.drools.core.time.TimerServicegetTimerService()longgetTimeToNextJob()Returns the number of time units (usually ms) to the next scheduled joblonggetTotalFactCount()org.kie.api.runtime.process.WorkItemManagergetWorkItemManager()voidhalt()voidinit(org.drools.core.SessionConfiguration config, org.kie.api.runtime.Environment environment)org.drools.core.common.InternalFactHandleinitInitialFact(org.drools.core.marshalling.MarshallerReaderContext context)voidinitMBeans(String containerId, String kbaseName, String ksessionName)org.kie.api.runtime.rule.FactHandleinsert(Object object)org.kie.api.runtime.rule.FactHandleinsert(Object object, boolean dynamic)org.kie.api.runtime.rule.FactHandleinsert(Object object, boolean dynamic, org.drools.core.definitions.rule.impl.RuleImpl rule, org.drools.core.reteoo.TerminalNode terminalNode)org.kie.api.runtime.rule.FactHandleinsertAsync(Object object)org.drools.core.runtime.process.InternalProcessRuntimeinternalGetProcessRuntime()protected org.drools.core.QueryResultsImplinternalGetQueryResult(boolean calledFromRHS, String queryName, Object... arguments)booleanisAlive()booleanisSequential()Iterator<org.drools.core.common.InternalFactHandle>iterateFactHandles()This class is not thread safe, changes to the working memory during iteration may give unexpected resultsIterator<org.drools.core.common.InternalFactHandle>iterateFactHandles(org.kie.api.runtime.ObjectFilter filter)This class is not thread safe, changes to the working memory during iteration may give unexpected resultsIteratoriterateObjects()This class is not thread safe, changes to the working memory during iteration may give unexpected resultsIteratoriterateObjects(org.kie.api.runtime.ObjectFilter filter)This class is not thread safe, changes to the working memory during iteration may give unexpected resultsvoidnotifyWaitOnRest()org.kie.api.runtime.rule.LiveQueryopenLiveQuery(String query, Object[] arguments, org.kie.api.runtime.rule.ViewChangedEventListener listener)voidprepareToFireActivation()voidreadExternal(ObjectInput in)voidregisterChannel(String name, org.kie.api.runtime.Channel channel)voidremoveEventListener(org.kie.api.event.kiebase.KieBaseEventListener listener)voidremoveEventListener(org.kie.api.event.process.ProcessEventListener listener)voidremoveEventListener(org.kie.api.event.rule.AgendaEventListener listener)voidremoveEventListener(org.kie.api.event.rule.RuleRuntimeEventListener listener)voidremoveEventListener(org.kie.internal.event.rule.RuleEventListener listener)voidremoveGlobal(String identifier)voidreset()voidreset(long handleId, long handleCounter, long propagationCounter)voidretract(org.kie.api.runtime.rule.FactHandle handle)voidsetAgendaEventSupport(org.drools.core.event.AgendaEventSupport agendaEventSupport)voidsetEndOperationListener(org.drools.core.common.EndOperationListener listener)voidsetFocus(String focus)voidsetGlobal(String identifier, Object value)voidsetGlobalResolver(org.drools.core.rule.accessor.GlobalResolver globalResolver)voidsetHandleFactory(org.drools.core.rule.accessor.FactHandleFactory handleFactory)voidsetIdentifier(long id)voidsetInitialFactHandle(org.drools.core.common.InternalFactHandle initialFactHandle)voidsetRuleEventListenerSupport(org.drools.core.event.RuleEventListenerSupport ruleEventListenerSupport)voidsetRuleRuntimeEventSupport(org.drools.core.event.RuleRuntimeEventSupport ruleRuntimeEventSupport)StatefulKnowledgeSessionImplsetStateless(boolean stateless)<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)voidsignalEvent(String type, Object event)voidsignalEvent(String type, Object event, String processInstanceId)voidstartBatchExecution()voidstartOperation()This method must be called before starting any new work in the engine, like inserting a new fact or firing a new rule.org.kie.api.runtime.process.ProcessInstancestartProcess(String processId)org.kie.api.runtime.process.ProcessInstancestartProcess(String processId, Map<String,Object> parameters)org.kie.api.runtime.process.ProcessInstancestartProcess(String processId, Map<String,Object> parameters, org.kie.api.runtime.rule.AgendaFilter agendaFilter)org.kie.api.runtime.process.ProcessInstancestartProcess(String processId, org.kie.api.runtime.rule.AgendaFilter agendaFilter)org.kie.api.runtime.process.ProcessInstancestartProcess(String processId, org.kie.internal.process.CorrelationKey correlationKey, Map<String,Object> parameters)org.kie.api.runtime.process.ProcessInstancestartProcessFromNodeIds(String processId, Map<String,Object> params, String... nodeInstancesIds)org.kie.api.runtime.process.ProcessInstancestartProcessFromNodeIds(String processId, org.kie.internal.process.CorrelationKey key, Map<String,Object> params, String... nodeIds)org.kie.api.runtime.process.ProcessInstancestartProcessInstance(String processInstanceId)voidsubmit(org.kie.api.runtime.KieSession.AtomicAction action)StringtoString()booleantryDeactivate()voidunregisterChannel(String name)voidupdate(org.kie.api.runtime.rule.FactHandle factHandle)voidupdate(org.kie.api.runtime.rule.FactHandle handle, Object object)voidupdate(org.kie.api.runtime.rule.FactHandle handle, Object object, String... modifiedProperties)voidupdate(org.kie.api.runtime.rule.FactHandle factHandle, Object object, org.drools.core.util.bitmask.BitMask mask, Class<?> modifiedClass, org.drools.core.rule.consequence.Activation activation)modify is implemented as half way retract / assert due to the truth maintenance issues.voidupdateEntryPointsCache()voidupdateTraits(org.drools.core.common.InternalFactHandle h, org.drools.core.util.bitmask.BitMask mask, Class<?> modifiedClass, org.drools.core.rule.consequence.Activation activation)voidwriteExternal(ObjectOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.core.common.InternalWorkingMemory
getStoreForClass, isThreadSafe
-
-
-
-
Field Detail
-
ERRORMSG
public static final String ERRORMSG
- See Also:
- Constant Field Values
-
DEFAULT_RULE_UNIT
public static final String DEFAULT_RULE_UNIT
- See Also:
- Constant Field Values
-
bytes
public byte[] bytes
-
id
protected Long id
-
globalResolver
protected org.drools.core.rule.accessor.GlobalResolver globalResolver
Global values which are associated with this memory.
-
calendars
protected org.kie.api.runtime.Calendars calendars
-
ruleRuntimeEventSupport
protected org.drools.core.event.RuleRuntimeEventSupport ruleRuntimeEventSupport
The eventSupport
-
ruleEventListenerSupport
protected org.drools.core.event.RuleEventListenerSupport ruleEventListenerSupport
-
agendaEventSupport
protected org.drools.core.event.AgendaEventSupport agendaEventSupport
-
kieBaseEventListeners
protected List<org.kie.api.event.kiebase.KieBaseEventListener> kieBaseEventListeners
-
kBase
protected transient InternalKnowledgeBase kBase
TheRuleBasewith which this memory is associated.
-
handleFactory
protected org.drools.core.rule.accessor.FactHandleFactory handleFactory
-
agenda
protected org.drools.core.common.InternalAgenda agenda
Rule-firing agenda.
-
lock
protected ReentrantLock lock
-
initialFactHandle
protected org.drools.core.common.InternalFactHandle initialFactHandle
-
config
protected org.drools.core.SessionConfiguration config
-
DUMMY_PROCESS_RUNTIME
public static final StatefulKnowledgeSessionImpl.DummyInternalProcessRuntime DUMMY_PROCESS_RUNTIME
-
-
Constructor Detail
-
StatefulKnowledgeSessionImpl
public StatefulKnowledgeSessionImpl()
-
StatefulKnowledgeSessionImpl
public StatefulKnowledgeSessionImpl(long id, InternalKnowledgeBase kBase)
-
StatefulKnowledgeSessionImpl
public StatefulKnowledgeSessionImpl(long id, InternalKnowledgeBase kBase, boolean initInitFactHandle, org.drools.core.SessionConfiguration config, org.kie.api.runtime.Environment environment)
-
StatefulKnowledgeSessionImpl
public StatefulKnowledgeSessionImpl(long id, InternalKnowledgeBase kBase, org.drools.core.rule.accessor.FactHandleFactory handleFactory, long propagationContext, org.drools.core.SessionConfiguration config, org.drools.core.common.InternalAgenda agenda, org.kie.api.runtime.Environment environment)
-
-
Method Detail
-
setStateless
public StatefulKnowledgeSessionImpl setStateless(boolean stateless)
-
init
public void init(org.drools.core.SessionConfiguration config, org.kie.api.runtime.Environment environment)
-
getHandleFactory
public org.drools.core.rule.accessor.FactHandleFactory getHandleFactory()
- Specified by:
getHandleFactoryin interfaceorg.drools.core.WorkingMemoryEntryPoint
-
setHandleFactory
public void setHandleFactory(org.drools.core.rule.accessor.FactHandleFactory handleFactory)
-
getKieRuntime
public <T> T getKieRuntime(Class<T> cls)
- Specified by:
getKieRuntimein interfaceorg.kie.api.runtime.KieSession
-
createRuntimeService
public <T> T createRuntimeService(Class<T> cls)
-
getEntryPoint
public org.drools.core.WorkingMemoryEntryPoint getEntryPoint(String name)
- Specified by:
getEntryPointin interfaceorg.drools.core.common.ReteEvaluator- Specified by:
getEntryPointin interfaceorg.kie.api.runtime.rule.RuleRuntime
-
getEntryPoints
public Collection<? extends org.kie.api.runtime.rule.EntryPoint> getEntryPoints()
- Specified by:
getEntryPointsin interfaceorg.drools.core.common.InternalWorkingMemory- Specified by:
getEntryPointsin interfaceorg.drools.core.common.ReteEvaluator- Specified by:
getEntryPointsin interfaceorg.kie.api.runtime.rule.RuleRuntime
-
getRuleRuntimeEventListeners
public Collection<org.kie.api.event.rule.RuleRuntimeEventListener> getRuleRuntimeEventListeners()
- Specified by:
getRuleRuntimeEventListenersin interfaceorg.drools.core.common.EventSupport- Specified by:
getRuleRuntimeEventListenersin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager- Specified by:
getRuleRuntimeEventListenersin interfaceorg.drools.core.WorkingMemoryEventManager
-
getAgendaEventListeners
public Collection<org.kie.api.event.rule.AgendaEventListener> getAgendaEventListeners()
- Specified by:
getAgendaEventListenersin interfaceorg.drools.core.common.EventSupport- Specified by:
getAgendaEventListenersin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager- Specified by:
getAgendaEventListenersin interfaceorg.drools.core.WorkingMemoryEventManager
-
getProcessRuntime
public org.drools.core.runtime.process.InternalProcessRuntime getProcessRuntime()
- Specified by:
getProcessRuntimein interfaceorg.drools.core.common.InternalKnowledgeRuntime- Specified by:
getProcessRuntimein interfaceorg.drools.core.common.InternalWorkingMemory
-
internalGetProcessRuntime
public org.drools.core.runtime.process.InternalProcessRuntime internalGetProcessRuntime()
- Specified by:
internalGetProcessRuntimein interfaceorg.drools.core.common.InternalWorkingMemory
-
addEventListener
public void addEventListener(org.kie.api.event.process.ProcessEventListener listener)
- Specified by:
addEventListenerin interfaceorg.kie.api.event.process.ProcessEventManager
-
getProcessEventListeners
public Collection<org.kie.api.event.process.ProcessEventListener> getProcessEventListeners()
- Specified by:
getProcessEventListenersin interfaceorg.kie.api.event.process.ProcessEventManager
-
removeEventListener
public void removeEventListener(org.kie.api.event.process.ProcessEventListener listener)
- Specified by:
removeEventListenerin interfaceorg.kie.api.event.process.ProcessEventManager
-
getKieBase
public org.kie.api.KieBase getKieBase()
- Specified by:
getKieBasein interfaceorg.kie.api.runtime.KieRuntime
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.kie.api.runtime.KieSession- Specified by:
disposein interfaceorg.drools.core.common.ReteEvaluator- Specified by:
disposein interfaceorg.drools.core.WorkingMemoryEntryPoint
-
isAlive
public boolean isAlive()
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.kie.api.runtime.KieSession
-
update
public void update(org.kie.api.runtime.rule.FactHandle factHandle)
-
abortProcessInstance
public void abortProcessInstance(String id)
- Specified by:
abortProcessInstancein interfaceorg.kie.api.runtime.process.ProcessRuntime
-
signalEvent
public void signalEvent(String type, Object event)
- Specified by:
signalEventin interfaceorg.kie.api.runtime.process.ProcessRuntime
-
signalEvent
public void signalEvent(String type, Object event, String processInstanceId)
- Specified by:
signalEventin interfaceorg.kie.api.runtime.process.ProcessRuntime
-
getGlobals
public org.kie.api.runtime.Globals getGlobals()
- Specified by:
getGlobalsin interfaceorg.kie.api.runtime.KieRuntime
-
getFactHandles
public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
- Specified by:
getFactHandlesin interfaceorg.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:
getFactHandlesin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getObjects
public Collection<?> getObjects()
- Specified by:
getObjectsin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getObjects
public Collection<?> getObjects(org.kie.api.runtime.ObjectFilter filter)
- Specified by:
getObjectsin interfaceorg.kie.api.runtime.rule.EntryPoint
-
execute
public <T> T execute(org.kie.api.command.Command<T> command)
- Specified by:
executein interfaceorg.kie.api.runtime.CommandExecutor
-
initInitialFact
public org.drools.core.common.InternalFactHandle initInitialFact(org.drools.core.marshalling.MarshallerReaderContext context)
-
getEntryPointId
public String getEntryPointId()
- Specified by:
getEntryPointIdin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getQueryResultsFromRHS
public org.drools.core.QueryResultsImpl getQueryResultsFromRHS(String queryName, Object... arguments)
(This shall NOT be exposed on public API)
-
getQueryResults
public org.drools.core.QueryResultsImpl getQueryResults(String queryName, Object... arguments)
- Specified by:
getQueryResultsin interfaceorg.drools.core.common.ReteEvaluator- Specified by:
getQueryResultsin interfaceorg.kie.api.runtime.rule.RuleRuntime- Specified by:
getQueryResultsin interfaceorg.drools.core.WorkingMemory
-
internalGetQueryResult
protected org.drools.core.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:
openLiveQueryin interfaceorg.kie.api.runtime.rule.RuleRuntime
-
closeLiveQuery
public void closeLiveQuery(org.drools.core.common.InternalFactHandle factHandle)
- Specified by:
closeLiveQueryin interfaceorg.drools.core.common.InternalWorkingMemory
-
getEntryPoint
public org.drools.core.rule.EntryPointId getEntryPoint()
- Specified by:
getEntryPointin interfaceorg.drools.core.WorkingMemoryEntryPoint
-
getReteEvaluator
public org.drools.core.common.ReteEvaluator getReteEvaluator()
- Specified by:
getReteEvaluatorin interfaceorg.drools.core.WorkingMemoryEntryPoint
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
updateEntryPointsCache
public void updateEntryPointsCache()
- Specified by:
updateEntryPointsCachein interfaceorg.drools.core.common.InternalWorkingMemory
-
getSessionConfiguration
public org.drools.core.SessionConfiguration getSessionConfiguration()
- Specified by:
getSessionConfigurationin interfaceorg.kie.api.runtime.KieRuntime- Specified by:
getSessionConfigurationin interfaceorg.drools.core.common.ReteEvaluator
-
reset
public void reset()
- Specified by:
resetin interfaceorg.drools.core.WorkingMemoryEntryPoint
-
reset
public void reset(long handleId, long handleCounter, long propagationCounter)
-
setRuleRuntimeEventSupport
public void setRuleRuntimeEventSupport(org.drools.core.event.RuleRuntimeEventSupport ruleRuntimeEventSupport)
- Specified by:
setRuleRuntimeEventSupportin interfaceorg.drools.core.common.InternalWorkingMemory
-
setAgendaEventSupport
public void setAgendaEventSupport(org.drools.core.event.AgendaEventSupport agendaEventSupport)
- Specified by:
setAgendaEventSupportin interfaceorg.drools.core.common.InternalWorkingMemory
-
isSequential
public boolean isSequential()
- Specified by:
isSequentialin interfaceorg.drools.core.common.ReteEvaluator
-
addEventListener
public void addEventListener(org.kie.api.event.rule.RuleRuntimeEventListener listener)
- Specified by:
addEventListenerin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager- Specified by:
addEventListenerin interfaceorg.drools.core.WorkingMemoryEventManager
-
removeEventListener
public void removeEventListener(org.kie.api.event.rule.RuleRuntimeEventListener listener)
- Specified by:
removeEventListenerin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager- Specified by:
removeEventListenerin interfaceorg.drools.core.WorkingMemoryEventManager
-
addEventListener
public void addEventListener(org.kie.api.event.rule.AgendaEventListener listener)
- Specified by:
addEventListenerin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager- Specified by:
addEventListenerin interfaceorg.drools.core.WorkingMemoryEventManager
-
removeEventListener
public void removeEventListener(org.kie.api.event.rule.AgendaEventListener listener)
- Specified by:
removeEventListenerin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager- Specified by:
removeEventListenerin interfaceorg.drools.core.WorkingMemoryEventManager
-
addEventListener
public void addEventListener(org.kie.api.event.kiebase.KieBaseEventListener listener)
- Specified by:
addEventListenerin interfaceorg.kie.api.event.kiebase.KieBaseEventManager
-
getKieBaseEventListeners
public Collection<org.kie.api.event.kiebase.KieBaseEventListener> getKieBaseEventListeners()
- Specified by:
getKieBaseEventListenersin interfaceorg.kie.api.event.kiebase.KieBaseEventManager
-
removeEventListener
public void removeEventListener(org.kie.api.event.kiebase.KieBaseEventListener listener)
- Specified by:
removeEventListenerin interfaceorg.kie.api.event.kiebase.KieBaseEventManager
-
getRuleEventSupport
public org.drools.core.event.RuleEventListenerSupport getRuleEventSupport()
- Specified by:
getRuleEventSupportin interfaceorg.drools.core.common.EventSupport- Specified by:
getRuleEventSupportin interfaceorg.drools.core.common.ReteEvaluator
-
setRuleEventListenerSupport
public void setRuleEventListenerSupport(org.drools.core.event.RuleEventListenerSupport ruleEventListenerSupport)
-
addEventListener
public void addEventListener(org.kie.internal.event.rule.RuleEventListener listener)
- Specified by:
addEventListenerin interfaceorg.kie.internal.event.rule.RuleEventManager
-
removeEventListener
public void removeEventListener(org.kie.internal.event.rule.RuleEventListener listener)
- Specified by:
removeEventListenerin interfaceorg.kie.internal.event.rule.RuleEventManager
-
getFactHandleFactory
public org.drools.core.rule.accessor.FactHandleFactory getFactHandleFactory()
- Specified by:
getFactHandleFactoryin interfaceorg.drools.core.common.ReteEvaluator
-
setGlobal
public void setGlobal(String identifier, Object value)
- Specified by:
setGlobalin interfaceorg.kie.api.runtime.KieRuntime- Specified by:
setGlobalin interfaceorg.drools.core.common.ReteEvaluator- Specified by:
setGlobalin interfaceorg.drools.core.WorkingMemory
-
removeGlobal
public void removeGlobal(String identifier)
- Specified by:
removeGlobalin interfaceorg.drools.core.common.InternalWorkingMemory
-
setGlobalResolver
public void setGlobalResolver(org.drools.core.rule.accessor.GlobalResolver globalResolver)
- Specified by:
setGlobalResolverin interfaceorg.drools.core.WorkingMemory
-
getGlobalResolver
public org.drools.core.rule.accessor.GlobalResolver getGlobalResolver()
- Specified by:
getGlobalResolverin interfaceorg.drools.core.common.ReteEvaluator
-
getCalendars
public org.kie.api.runtime.Calendars getCalendars()
- Specified by:
getCalendarsin interfaceorg.kie.api.runtime.KieRuntime- Specified by:
getCalendarsin interfaceorg.drools.core.common.ReteEvaluator
-
getId
public int getId()
- Specified by:
getIdin interfaceorg.kie.api.runtime.KieSession
-
getIdentifier
public long getIdentifier()
- Specified by:
getIdentifierin interfaceorg.drools.core.common.InternalWorkingMemory- Specified by:
getIdentifierin interfaceorg.kie.api.runtime.KieSession
-
setIdentifier
public void setIdentifier(long id)
- Specified by:
setIdentifierin interfaceorg.drools.core.common.InternalKnowledgeRuntime- Specified by:
setIdentifierin interfaceorg.drools.core.common.InternalWorkingMemory
-
checkAlive
protected void checkAlive()
-
getGlobal
public Object getGlobal(String identifier)
- Specified by:
getGlobalin interfaceorg.kie.api.runtime.KieRuntime- Specified by:
getGlobalin interfaceorg.drools.core.common.ReteEvaluator
-
getEnvironment
public org.kie.api.runtime.Environment getEnvironment()
- Specified by:
getEnvironmentin interfaceorg.kie.api.runtime.KieRuntime- Specified by:
getEnvironmentin interfaceorg.drools.core.WorkingMemory
-
getAgenda
public org.drools.core.common.InternalAgenda getAgenda()
- Specified by:
getAgendain interfaceorg.drools.core.common.InternalWorkingMemory- Specified by:
getAgendain interfaceorg.kie.api.runtime.rule.RuleRuntime- Specified by:
getAgendain interfaceorg.drools.core.WorkingMemory
-
clearAgenda
public void clearAgenda()
- Specified by:
clearAgendain interfaceorg.drools.core.WorkingMemory
-
clearAgendaGroup
public void clearAgendaGroup(String group)
- Specified by:
clearAgendaGroupin interfaceorg.drools.core.WorkingMemory
-
clearActivationGroup
public void clearActivationGroup(String group)
- Specified by:
clearActivationGroupin interfaceorg.drools.core.WorkingMemory
-
clearRuleFlowGroup
public void clearRuleFlowGroup(String group)
- Specified by:
clearRuleFlowGroupin interfaceorg.drools.core.WorkingMemory
-
getActivationsManager
public org.drools.core.common.ActivationsManager getActivationsManager()
- Specified by:
getActivationsManagerin interfaceorg.drools.core.common.ReteEvaluator
-
getKnowledgeBase
public InternalKnowledgeBase getKnowledgeBase()
- Specified by:
getKnowledgeBasein interfaceorg.drools.core.common.ReteEvaluator- Specified by:
getKnowledgeBasein interfaceorg.drools.core.WorkingMemoryEntryPoint
-
halt
public void halt()
- Specified by:
haltin interfaceorg.kie.api.runtime.rule.RuleRuntime- Specified by:
haltin interfaceorg.drools.core.WorkingMemory
-
fireAllRules
public int fireAllRules()
- Specified by:
fireAllRulesin interfaceorg.drools.core.common.ReteEvaluator- Specified by:
fireAllRulesin interfaceorg.kie.api.runtime.rule.StatefulRuleSession- Specified by:
fireAllRulesin interfaceorg.drools.core.WorkingMemory
-
fireAllRules
public int fireAllRules(int fireLimit)
- Specified by:
fireAllRulesin interfaceorg.drools.core.common.ReteEvaluator- Specified by:
fireAllRulesin interfaceorg.kie.api.runtime.rule.StatefulRuleSession- Specified by:
fireAllRulesin interfaceorg.drools.core.WorkingMemory
-
fireAllRules
public int fireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter)
- Specified by:
fireAllRulesin interfaceorg.drools.core.common.ReteEvaluator- Specified by:
fireAllRulesin interfaceorg.kie.api.runtime.rule.StatefulRuleSession- Specified by:
fireAllRulesin interfaceorg.drools.core.WorkingMemory
-
fireAllRules
public int fireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter, int fireLimit)- Specified by:
fireAllRulesin interfaceorg.drools.core.common.ReteEvaluator- Specified by:
fireAllRulesin interfaceorg.kie.api.runtime.rule.StatefulRuleSession- Specified by:
fireAllRulesin interfaceorg.drools.core.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:
fireUntilHaltin interfaceorg.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:
fireUntilHaltin interfaceorg.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 givenFactHandle. It actually attempts to return the value from the handle, before retrieving it from objects map.- Specified by:
getObjectin interfaceorg.kie.api.runtime.rule.EntryPoint- Parameters:
handle- TheFactHandlereference for theObjectlookup- See Also:
WorkingMemory
-
getObjectStore
public org.drools.core.common.ObjectStore getObjectStore()
- Specified by:
getObjectStorein interfaceorg.drools.core.WorkingMemoryEntryPoint
-
getFactHandle
public org.drools.core.common.InternalFactHandle getFactHandle(Object object)
- Specified by:
getFactHandlein interfaceorg.kie.api.runtime.rule.EntryPoint- Specified by:
getFactHandlein interfaceorg.drools.core.common.ReteEvaluator- 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:
iterateObjectsin interfaceorg.drools.core.WorkingMemory
-
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:
iterateObjectsin interfaceorg.drools.core.WorkingMemory
-
iterateFactHandles
public Iterator<org.drools.core.common.InternalFactHandle> iterateFactHandles()
This class is not thread safe, changes to the working memory during iteration may give unexpected results- Specified by:
iterateFactHandlesin interfaceorg.drools.core.WorkingMemory
-
iterateFactHandles
public Iterator<org.drools.core.common.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:
iterateFactHandlesin interfaceorg.drools.core.WorkingMemory
-
setFocus
public void setFocus(String focus)
- Specified by:
setFocusin interfaceorg.drools.core.WorkingMemory
-
insertAsync
public org.kie.api.runtime.rule.FactHandle insertAsync(Object object)
- Specified by:
insertAsyncin interfaceorg.drools.core.common.InternalWorkingMemoryActions
-
insert
public org.kie.api.runtime.rule.FactHandle insert(Object object)
- Specified by:
insertin interfaceorg.kie.api.runtime.rule.EntryPoint- Specified by:
insertin interfaceorg.drools.core.common.ReteEvaluator- See Also:
WorkingMemory
-
insert
public org.kie.api.runtime.rule.FactHandle insert(Object object, boolean dynamic)
- Specified by:
insertin interfaceorg.drools.core.WorkingMemoryEntryPoint
-
submit
public void submit(org.kie.api.runtime.KieSession.AtomicAction action)
- Specified by:
submitin interfaceorg.kie.api.runtime.KieSession
-
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:
updateTraitsin interfaceorg.drools.core.common.InternalWorkingMemoryActions
-
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:
shedin interfaceorg.drools.core.common.InternalWorkingMemoryActions
-
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:
donin interfaceorg.drools.core.common.InternalWorkingMemoryActions
-
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:
donin interfaceorg.drools.core.common.InternalWorkingMemoryActions
-
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:
insertin interfaceorg.drools.core.common.InternalWorkingMemoryActions
-
retract
public void retract(org.kie.api.runtime.rule.FactHandle handle)
- Specified by:
retractin interfaceorg.kie.api.runtime.rule.EntryPoint
-
delete
public void delete(org.kie.api.runtime.rule.FactHandle handle)
- Specified by:
deletein interfaceorg.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:
deletein interfaceorg.kie.api.runtime.rule.EntryPoint
-
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)- Specified by:
deletein interfaceorg.drools.core.WorkingMemoryEntryPoint
-
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:
deletein interfaceorg.drools.core.WorkingMemoryEntryPoint
-
getEntryPointNode
public org.drools.core.reteoo.EntryPointNode getEntryPointNode()
- Specified by:
getEntryPointNodein interfaceorg.drools.core.WorkingMemoryEntryPoint
-
update
public void update(org.kie.api.runtime.rule.FactHandle handle, Object object)- Specified by:
updatein interfaceorg.kie.api.runtime.rule.EntryPoint
-
update
public void update(org.kie.api.runtime.rule.FactHandle handle, Object object, String... modifiedProperties)- Specified by:
updatein interfaceorg.kie.api.runtime.rule.EntryPoint
-
update
public void update(org.kie.api.runtime.rule.FactHandle factHandle, Object object, org.drools.core.util.bitmask.BitMask mask, Class<?> modifiedClass, org.drools.core.rule.consequence.Activation activation)modify is implemented as half way retract / assert due to the truth maintenance issues.- Specified by:
updatein interfaceorg.drools.core.common.InternalWorkingMemoryActions- Specified by:
updatein interfaceorg.drools.core.WorkingMemoryEntryPoint- See Also:
WorkingMemory
-
getNodeMemory
public <T extends org.drools.core.common.Memory> T getNodeMemory(org.drools.core.common.MemoryFactory<T> node)
Retrieve theJoinMemoryfor a particularJoinNode.- Specified by:
getNodeMemoryin interfaceorg.drools.core.common.ReteEvaluator- Parameters:
node- TheJoinNodekey.- Returns:
- The node's memory.
-
clearNodeMemory
public void clearNodeMemory(org.drools.core.common.MemoryFactory node)
- Specified by:
clearNodeMemoryin interfaceorg.drools.core.common.InternalWorkingMemory
-
getNodeMemories
public org.drools.core.common.NodeMemories getNodeMemories()
- Specified by:
getNodeMemoriesin interfaceorg.drools.core.common.InternalWorkingMemory
-
getRuleRuntimeEventSupport
public org.drools.core.event.RuleRuntimeEventSupport getRuleRuntimeEventSupport()
- Specified by:
getRuleRuntimeEventSupportin interfaceorg.drools.core.common.EventSupport- Specified by:
getRuleRuntimeEventSupportin interfaceorg.drools.core.common.ReteEvaluator
-
getAgendaEventSupport
public org.drools.core.event.AgendaEventSupport getAgendaEventSupport()
- Specified by:
getAgendaEventSupportin interfaceorg.drools.core.common.EventSupport
-
getNextPropagationIdCounter
public long getNextPropagationIdCounter()
- Specified by:
getNextPropagationIdCounterin interfaceorg.drools.core.common.ReteEvaluator
-
getLock
public Lock getLock()
- Specified by:
getLockin interfaceorg.drools.core.common.InternalWorkingMemory
-
startProcess
public org.kie.api.runtime.process.ProcessInstance startProcess(String processId)
- Specified by:
startProcessin interfaceorg.kie.api.runtime.process.ProcessRuntime- Specified by:
startProcessin interfaceorg.drools.core.WorkingMemory
-
startProcess
public org.kie.api.runtime.process.ProcessInstance startProcess(String processId, Map<String,Object> parameters)
- Specified by:
startProcessin interfaceorg.kie.api.runtime.process.ProcessRuntime- Specified by:
startProcessin interfaceorg.drools.core.WorkingMemory
-
startProcess
public org.kie.api.runtime.process.ProcessInstance startProcess(String processId, org.kie.api.runtime.rule.AgendaFilter agendaFilter)
- Specified by:
startProcessin interfaceorg.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:
startProcessin interfaceorg.kie.api.runtime.process.ProcessRuntime
-
createProcessInstance
public org.kie.api.runtime.process.ProcessInstance createProcessInstance(String processId, Map<String,Object> parameters)
- Specified by:
createProcessInstancein interfaceorg.kie.api.runtime.process.ProcessRuntime
-
startProcessInstance
public org.kie.api.runtime.process.ProcessInstance startProcessInstance(String processInstanceId)
- Specified by:
startProcessInstancein interfaceorg.kie.api.runtime.process.ProcessRuntime
-
getProcessInstances
public Collection<org.kie.api.runtime.process.ProcessInstance> getProcessInstances()
- Specified by:
getProcessInstancesin interfaceorg.kie.api.runtime.process.ProcessRuntime- Specified by:
getProcessInstancesin interfaceorg.drools.core.WorkingMemory
-
getProcessInstance
public org.kie.api.runtime.process.ProcessInstance getProcessInstance(String processInstanceId)
- Specified by:
getProcessInstancein interfaceorg.kie.api.runtime.process.ProcessRuntime- Specified by:
getProcessInstancein interfaceorg.drools.core.WorkingMemory
-
startProcess
public org.kie.api.runtime.process.ProcessInstance startProcess(String processId, org.kie.internal.process.CorrelationKey correlationKey, Map<String,Object> parameters)
- Specified by:
startProcessin interfaceorg.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:
createProcessInstancein interfaceorg.kie.internal.process.CorrelationAwareProcessRuntime
-
getProcessInstance
public org.kie.api.runtime.process.ProcessInstance getProcessInstance(org.kie.internal.process.CorrelationKey correlationKey)
- Specified by:
getProcessInstancein interfaceorg.kie.internal.process.CorrelationAwareProcessRuntime
-
getProcessInstance
public org.kie.api.runtime.process.ProcessInstance getProcessInstance(String processInstanceId, boolean readOnly)
- Specified by:
getProcessInstancein interfaceorg.kie.api.runtime.process.ProcessRuntime- Specified by:
getProcessInstancein interfaceorg.drools.core.WorkingMemory
-
getWorkItemManager
public org.kie.api.runtime.process.WorkItemManager getWorkItemManager()
- Specified by:
getWorkItemManagerin interfaceorg.kie.api.runtime.process.ProcessRuntime- Specified by:
getWorkItemManagerin interfaceorg.drools.core.WorkingMemory
-
getObjectTypeConfigurationRegistry
public org.drools.core.common.ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry()
- Specified by:
getObjectTypeConfigurationRegistryin interfaceorg.drools.core.WorkingMemoryEntryPoint
-
getInitialFactHandle
public org.drools.core.common.InternalFactHandle getInitialFactHandle()
- Specified by:
getInitialFactHandlein interfaceorg.drools.core.common.InternalWorkingMemory
-
setInitialFactHandle
public void setInitialFactHandle(org.drools.core.common.InternalFactHandle initialFactHandle)
-
getTimerService
public org.drools.core.time.TimerService getTimerService()
- Specified by:
getTimerServicein interfaceorg.drools.core.common.InternalKnowledgeRuntime- Specified by:
getTimerServicein interfaceorg.drools.core.common.ReteEvaluator
-
createTimerService
protected org.drools.core.time.TimerService createTimerService()
-
getSessionClock
public org.kie.api.time.SessionClock getSessionClock()
- Specified by:
getSessionClockin interfaceorg.kie.api.runtime.KieRuntime- Specified by:
getSessionClockin interfaceorg.drools.core.common.ReteEvaluator
-
startBatchExecution
public void startBatchExecution()
- Specified by:
startBatchExecutionin interfaceorg.drools.core.common.InternalWorkingMemory
-
endBatchExecution
public void endBatchExecution()
- Specified by:
endBatchExecutionin interfaceorg.drools.core.common.InternalWorkingMemory
-
getKnowledgeRuntime
public org.drools.core.common.InternalKnowledgeRuntime getKnowledgeRuntime()
- Specified by:
getKnowledgeRuntimein interfaceorg.drools.core.common.InternalWorkingMemory
-
registerChannel
public void registerChannel(String name, org.kie.api.runtime.Channel channel)
- Specified by:
registerChannelin interfaceorg.kie.api.runtime.KieRuntime
-
unregisterChannel
public void unregisterChannel(String name)
- Specified by:
unregisterChannelin interfaceorg.kie.api.runtime.KieRuntime
-
getChannels
public Map<String,org.kie.api.runtime.Channel> getChannels()
- Specified by:
getChannelsin interfaceorg.drools.core.common.InternalWorkingMemory- Specified by:
getChannelsin interfaceorg.kie.api.runtime.KieRuntime
-
getFactCount
public long getFactCount()
- Specified by:
getFactCountin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getTotalFactCount
public long getTotalFactCount()
- Specified by:
getTotalFactCountin interfaceorg.drools.core.common.InternalWorkingMemory
-
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:
startOperationin interfaceorg.drools.core.common.InternalKnowledgeRuntime- Specified by:
startOperationin interfaceorg.drools.core.common.InternalWorkingMemory- Specified by:
startOperationin interfaceorg.drools.core.common.ReteEvaluator
-
setEndOperationListener
public void setEndOperationListener(org.drools.core.common.EndOperationListener listener)
- Specified by:
setEndOperationListenerin interfaceorg.drools.core.common.InternalKnowledgeRuntime
-
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:
endOperationin interfaceorg.drools.core.common.InternalKnowledgeRuntime- Specified by:
endOperationin interfaceorg.drools.core.common.InternalWorkingMemory- Specified by:
endOperationin interfaceorg.drools.core.common.ReteEvaluator
-
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:
getIdleTimein interfaceorg.drools.core.common.InternalWorkingMemory
-
getLastIdleTimestamp
public long getLastIdleTimestamp()
- Specified by:
getLastIdleTimestampin interfaceorg.drools.core.common.InternalKnowledgeRuntime
-
prepareToFireActivation
public void prepareToFireActivation()
- Specified by:
prepareToFireActivationin interfaceorg.drools.core.common.InternalWorkingMemory
-
activationFired
public void activationFired()
- Specified by:
activationFiredin interfaceorg.drools.core.common.InternalWorkingMemory
-
getTimeToNextJob
public long getTimeToNextJob()
Returns the number of time units (usually ms) to the next scheduled job- Specified by:
getTimeToNextJobin interfaceorg.drools.core.common.InternalWorkingMemory- Returns:
- the number of time units until the next scheduled job or -1 if there is no job scheduled
-
addPropagation
public void addPropagation(org.drools.core.phreak.PropagationEntry propagationEntry, boolean register)- Specified by:
addPropagationin interfaceorg.drools.core.common.ReteEvaluator
-
flushPropagations
public void flushPropagations()
- Specified by:
flushPropagationsin interfaceorg.drools.core.common.InternalWorkingMemory
-
notifyWaitOnRest
public void notifyWaitOnRest()
- Specified by:
notifyWaitOnRestin interfaceorg.drools.core.common.InternalWorkingMemory
-
getActionsIterator
public Iterator<? extends org.drools.core.phreak.PropagationEntry> getActionsIterator()
- Specified by:
getActionsIteratorin interfaceorg.drools.core.common.InternalWorkingMemory
-
activate
public void activate()
- Specified by:
activatein interfaceorg.drools.core.common.InternalWorkingMemory
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceorg.drools.core.common.InternalWorkingMemory
-
tryDeactivate
public boolean tryDeactivate()
- Specified by:
tryDeactivatein interfaceorg.drools.core.common.InternalWorkingMemory
-
cancelActivation
public void cancelActivation(org.drools.core.rule.consequence.Activation activation, boolean declarativeAgenda)- Specified by:
cancelActivationin interfaceorg.drools.core.common.InternalWorkingMemory
-
startProcessFromNodeIds
public org.kie.api.runtime.process.ProcessInstance startProcessFromNodeIds(String processId, Map<String,Object> params, String... nodeInstancesIds)
- Specified by:
startProcessFromNodeIdsin interfaceorg.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:
startProcessFromNodeIdsin interfaceorg.kie.internal.process.CorrelationAwareProcessRuntime
-
-