Package org.drools.commands.impl
Class CommandBasedStatefulKnowledgeSessionImpl
java.lang.Object
org.drools.core.impl.AbstractRuntime
org.drools.commands.impl.CommandBasedStatefulKnowledgeSessionImpl
- All Implemented Interfaces:
AutoCloseable,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.api.runtime.RuntimeSession,org.kie.internal.process.CorrelationAwareProcessRuntime,org.kie.internal.runtime.CommandBasedStatefulKnowledgeSession,org.kie.internal.runtime.StatefulKnowledgeSession
public class CommandBasedStatefulKnowledgeSessionImpl
extends AbstractRuntime
implements org.kie.internal.runtime.CommandBasedStatefulKnowledgeSession, org.kie.internal.process.CorrelationAwareProcessRuntime
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.kie.api.runtime.KieSession
org.kie.api.runtime.KieSession.AtomicAction -
Field Summary
Fields inherited from class org.drools.core.impl.AbstractRuntime
logger -
Constructor Summary
ConstructorsConstructorDescriptionCommandBasedStatefulKnowledgeSessionImpl(org.kie.api.runtime.ExecutableRunner runner) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddEventListener(org.kie.api.event.process.ProcessEventListener listener) voidaddEventListener(org.kie.api.event.rule.AgendaEventListener listener) voidaddEventListener(org.kie.api.event.rule.RuleRuntimeEventListener listener) 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) voiddelete(org.kie.api.runtime.rule.FactHandle handle) voiddelete(org.kie.api.runtime.rule.FactHandle handle, org.kie.api.runtime.rule.FactHandle.State fhState) voiddestroy()voiddispose()<T> Texecute(org.kie.api.command.Command<T> command) intintfireAllRules(int max) intfireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter) intfireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter, int max) voidvoidfireUntilHalt(org.kie.api.runtime.rule.AgendaFilter agendaFilter) org.kie.api.runtime.rule.AgendaCollection<org.kie.api.event.rule.AgendaEventListener>org.kie.api.runtime.Calendarsorg.kie.api.runtime.rule.EntryPointgetEntryPoint(String name) Collection<? extends org.kie.api.runtime.rule.EntryPoint>org.kie.api.runtime.Environmentlongorg.kie.api.runtime.rule.FactHandlegetFactHandle(Object object) <T extends org.kie.api.runtime.rule.FactHandle>
Collection<T><T extends org.kie.api.runtime.rule.FactHandle>
Collection<T>getFactHandles(org.kie.api.runtime.ObjectFilter filter) org.kie.api.runtime.GlobalsintgetId()Deprecated.longorg.kie.api.KieBase<T> TgetKieRuntime(Class<T> cls) org.kie.api.runtime.KieSessiongetObject(org.kie.api.runtime.rule.FactHandle factHandle) Collection<? extends Object>Collection<? extends Object>getObjects(org.kie.api.runtime.ObjectFilter filter) Collection<org.kie.api.event.process.ProcessEventListener>org.kie.api.runtime.process.ProcessInstanceorg.kie.api.runtime.process.ProcessInstancegetProcessInstance(String id, boolean readOnly) org.kie.api.runtime.process.ProcessInstancegetProcessInstance(org.kie.internal.process.CorrelationKey correlationKey) Collection<org.kie.api.runtime.process.ProcessInstance>org.kie.api.runtime.rule.QueryResultsgetQueryResults(String query, Object... arguments) Collection<org.kie.api.event.rule.RuleRuntimeEventListener>org.kie.api.runtime.ExecutableRunner<T extends org.kie.api.time.SessionClock>
Torg.kie.api.runtime.KieSessionConfigurationvoidhalt()org.kie.api.runtime.rule.FactHandleorg.kie.api.runtime.rule.LiveQueryopenLiveQuery(String query, Object[] arguments, org.kie.api.runtime.rule.ViewChangedEventListener listener) voidregisterChannel(String name, org.kie.api.runtime.Channel channel) voidremoveEventListener(org.kie.api.event.process.ProcessEventListener listener) voidremoveEventListener(org.kie.api.event.rule.AgendaEventListener listener) voidremoveEventListener(org.kie.api.event.rule.RuleRuntimeEventListener listener) voidretract(org.kie.api.runtime.rule.FactHandle handle) voidvoidsignalEvent(String type, Object event) voidsignalEvent(String type, Object event, String processInstanceId) 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.ProcessInstanceorg.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) voidunregisterChannel(String name) voidvoidMethods inherited from class org.drools.core.impl.AbstractRuntime
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.api.runtime.rule.EntryPoint
getInstancesOf, getSingleInstanceOfMethods inherited from interface org.kie.api.event.KieRuntimeEventManager
getLoggerMethods inherited from interface org.kie.api.runtime.KieSession
close
-
Constructor Details
-
CommandBasedStatefulKnowledgeSessionImpl
public CommandBasedStatefulKnowledgeSessionImpl(org.kie.api.runtime.ExecutableRunner runner)
-
-
Method Details
-
getId
Deprecated.Deprecated usegetIdentifier()instead- Specified by:
getIdin interfaceorg.kie.api.runtime.KieSession
-
getIdentifier
public long getIdentifier()- Specified by:
getIdentifierin interfaceorg.kie.api.runtime.KieSession
-
getProcessInstance
- Specified by:
getProcessInstancein interfaceorg.kie.api.runtime.process.ProcessRuntime
-
getProcessInstance
- Specified by:
getProcessInstancein interfaceorg.kie.api.runtime.process.ProcessRuntime
-
abortProcessInstance
- Specified by:
abortProcessInstancein interfaceorg.kie.api.runtime.process.ProcessRuntime
-
getRunner
public org.kie.api.runtime.ExecutableRunner getRunner()- Specified by:
getRunnerin interfaceorg.kie.internal.runtime.CommandBasedStatefulKnowledgeSession
-
getKieSession
public org.kie.api.runtime.KieSession getKieSession()- Specified by:
getKieSessionin interfaceorg.kie.internal.runtime.CommandBasedStatefulKnowledgeSession
-
getProcessInstances
- Specified by:
getProcessInstancesin interfaceorg.kie.api.runtime.process.ProcessRuntime
-
getWorkItemManager
- Specified by:
getWorkItemManagerin interfaceorg.kie.api.runtime.process.ProcessRuntime
-
signalEvent
- Specified by:
signalEventin interfaceorg.kie.api.runtime.process.ProcessRuntime
-
signalEvent
- Specified by:
signalEventin interfaceorg.kie.api.runtime.process.ProcessRuntime
-
startProcess
- Specified by:
startProcessin interfaceorg.kie.api.runtime.process.ProcessRuntime
-
startProcess
public org.kie.api.runtime.process.ProcessInstance startProcess(String processId, Map<String, Object> parameters) - Specified by:
startProcessin interfaceorg.kie.api.runtime.process.ProcessRuntime
-
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
- Specified by:
startProcessInstancein interfaceorg.kie.api.runtime.process.ProcessRuntime
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.kie.api.runtime.KieSession
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.kie.api.runtime.KieSession
-
fireAllRules
public int fireAllRules()- Specified by:
fireAllRulesin interfaceorg.kie.api.runtime.rule.StatefulRuleSession
-
fireAllRules
public int fireAllRules(int max) - Specified by:
fireAllRulesin interfaceorg.kie.api.runtime.rule.StatefulRuleSession
-
fireAllRules
public int fireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter) - Specified by:
fireAllRulesin interfaceorg.kie.api.runtime.rule.StatefulRuleSession
-
fireAllRules
public int fireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter, int max) - Specified by:
fireAllRulesin interfaceorg.kie.api.runtime.rule.StatefulRuleSession
-
fireUntilHalt
public void fireUntilHalt()- Specified by:
fireUntilHaltin interfaceorg.kie.api.runtime.rule.StatefulRuleSession
-
fireUntilHalt
public void fireUntilHalt(org.kie.api.runtime.rule.AgendaFilter agendaFilter) - Specified by:
fireUntilHaltin interfaceorg.kie.api.runtime.rule.StatefulRuleSession
-
getKieBase
public org.kie.api.KieBase getKieBase()- Specified by:
getKieBasein interfaceorg.kie.api.runtime.RuntimeSession
-
registerChannel
- Specified by:
registerChannelin interfaceorg.kie.api.runtime.RuntimeSession
-
unregisterChannel
- Specified by:
unregisterChannelin interfaceorg.kie.api.runtime.RuntimeSession
-
getChannels
- Specified by:
getChannelsin interfaceorg.kie.api.runtime.RuntimeSession
-
getAgenda
public org.kie.api.runtime.rule.Agenda getAgenda()- Specified by:
getAgendain interfaceorg.kie.api.runtime.rule.RuleRuntime
-
getFactHandle
- Specified by:
getFactHandlein interfaceorg.kie.api.runtime.rule.EntryPoint
-
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
- Specified by:
getObjectsin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getObjects
- Specified by:
getObjectsin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getSessionClock
public <T extends org.kie.api.time.SessionClock> T getSessionClock()- Specified by:
getSessionClockin interfaceorg.kie.api.runtime.KieRuntime
-
getEntryPoint
- Specified by:
getEntryPointin interfaceorg.kie.api.runtime.rule.RuleRuntime
-
getEntryPoints
- Specified by:
getEntryPointsin interfaceorg.kie.api.runtime.rule.RuleRuntime
-
halt
public void halt()- Specified by:
haltin interfaceorg.kie.api.runtime.rule.RuleRuntime
-
insert
- Specified by:
insertin interfaceorg.kie.api.runtime.rule.EntryPoint
-
submit
public void submit(org.kie.api.runtime.KieSession.AtomicAction action) - Specified by:
submitin interfaceorg.kie.api.runtime.KieSession
-
getKieRuntime
- Specified by:
getKieRuntimein interfaceorg.kie.api.runtime.KieSession
-
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
-
update
- 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
-
addEventListener
public void addEventListener(org.kie.api.event.rule.RuleRuntimeEventListener listener) - Specified by:
addEventListenerin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager
-
addEventListener
public void addEventListener(org.kie.api.event.rule.AgendaEventListener listener) - Specified by:
addEventListenerin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager
-
getAgendaEventListeners
- Specified by:
getAgendaEventListenersin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager
-
getRuleRuntimeEventListeners
- Specified by:
getRuleRuntimeEventListenersin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager
-
removeEventListener
public void removeEventListener(org.kie.api.event.rule.RuleRuntimeEventListener listener) - Specified by:
removeEventListenerin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager
-
removeEventListener
public void removeEventListener(org.kie.api.event.rule.AgendaEventListener listener) - Specified by:
removeEventListenerin interfaceorg.kie.api.event.rule.RuleRuntimeEventManager
-
addEventListener
public void addEventListener(org.kie.api.event.process.ProcessEventListener listener) - Specified by:
addEventListenerin interfaceorg.kie.api.event.process.ProcessEventManager
-
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
-
getGlobal
- Specified by:
getGlobalin interfaceorg.kie.api.runtime.KieRuntime
-
setGlobal
- Specified by:
setGlobalin interfaceorg.kie.api.runtime.RuntimeSession
-
getGlobals
public org.kie.api.runtime.Globals getGlobals()- Specified by:
getGlobalsin interfaceorg.kie.api.runtime.RuntimeSession
-
getCalendars
public org.kie.api.runtime.Calendars getCalendars()- Specified by:
getCalendarsin interfaceorg.kie.api.runtime.KieRuntime
-
getObject
- Specified by:
getObjectin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getEnvironment
public org.kie.api.runtime.Environment getEnvironment()- Specified by:
getEnvironmentin interfaceorg.kie.api.runtime.KieRuntime
-
execute
public <T> T execute(org.kie.api.command.Command<T> command) - Specified by:
executein interfaceorg.kie.api.runtime.CommandExecutor
-
getQueryResults
- Specified by:
getQueryResultsin interfaceorg.kie.api.runtime.rule.RuleRuntime
-
getEntryPointId
- Specified by:
getEntryPointIdin interfaceorg.kie.api.runtime.rule.EntryPoint
-
getFactCount
public long getFactCount()- Specified by:
getFactCountin interfaceorg.kie.api.runtime.rule.EntryPoint
-
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
-
getSessionConfiguration
public org.kie.api.runtime.KieSessionConfiguration getSessionConfiguration()- Specified by:
getSessionConfigurationin interfaceorg.kie.api.runtime.KieRuntime
-
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
-
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
-
startProcessFromNodeIds
public org.kie.api.runtime.process.ProcessInstance startProcessFromNodeIds(String processId, Map<String, Object> params, String... nodeIds) - Specified by:
startProcessFromNodeIdsin interfaceorg.kie.api.runtime.process.ProcessRuntime
-