public class StatefulKnowledgeSessionAdapter extends KnowledgeRuntimeAdapter implements StatefulKnowledgeSession
delegate| Constructor and Description |
|---|
StatefulKnowledgeSessionAdapter(org.kie.internal.runtime.StatefulKnowledgeSession delegate) |
| Modifier and Type | Method and Description |
|---|---|
static List<StatefulKnowledgeSession> |
adaptStatefulKnowledgeSession(Collection<org.kie.internal.runtime.StatefulKnowledgeSession> sessions) |
void |
dispose()
Releases all the current session resources, setting up the session for garbage collection.
|
boolean |
equals(Object obj) |
<T> T |
execute(Command<T> command)
Execute the command and return a ExecutionResults for the results of the Command.
|
int |
fireAllRules()
Fire all Activations on the Agenda.
|
int |
fireAllRules(AgendaFilter agendaFilter)
Fire all Activations on the Agenda
|
int |
fireAllRules(AgendaFilter agendaFilter,
int max)
Fire all Activations on the Agenda
|
int |
fireAllRules(int max)
Fire Activations on the Agenda up to the given maximum number of activations, before returning
the control to the application.
|
void |
fireUntilHalt()
Keeps firing activations until a halt is called.
|
void |
fireUntilHalt(AgendaFilter agendaFilter)
Keeps firing activations until a halt is called.
|
int |
getId() |
int |
hashCode() |
abortProcessInstance, addEventListener, addEventListener, addEventListener, createProcessInstance, getAgenda, getAgendaEventListeners, getCalendars, getChannels, getEntryPointId, getEnvironment, getFactCount, getFactHandle, getFactHandles, getFactHandles, getGlobal, getGlobals, getKnowledgeBase, getObject, getObjects, getObjects, getProcessEventListeners, getProcessInstance, getProcessInstance, getProcessInstances, getQueryResults, getSessionClock, getSessionConfiguration, getWorkingMemoryEntryPoint, getWorkingMemoryEntryPoints, getWorkingMemoryEventListeners, getWorkItemManager, halt, insert, openLiveQuery, registerChannel, registerExitPoint, removeEventListener, removeEventListener, removeEventListener, retract, setGlobal, signalEvent, signalEvent, startProcess, startProcess, startProcessInstance, unregisterChannel, unregisterExitPoint, updateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetCalendars, getChannels, getEnvironment, getGlobal, getGlobals, getKnowledgeBase, getSessionClock, getSessionConfiguration, registerChannel, registerExitPoint, setGlobal, unregisterChannel, unregisterExitPointgetAgenda, getQueryResults, getWorkingMemoryEntryPoint, getWorkingMemoryEntryPoints, halt, openLiveQuerygetEntryPointId, getFactCount, getFactHandle, getFactHandles, getFactHandles, getObject, getObjects, getObjects, insert, retract, updateabortProcessInstance, createProcessInstance, getProcessInstance, getProcessInstance, getProcessInstances, getWorkItemManager, signalEvent, signalEvent, startProcess, startProcess, startProcessInstanceaddEventListener, addEventListener, getAgendaEventListeners, getWorkingMemoryEventListeners, removeEventListener, removeEventListeneraddEventListener, getProcessEventListeners, removeEventListenerpublic StatefulKnowledgeSessionAdapter(org.kie.internal.runtime.StatefulKnowledgeSession delegate)
public int getId()
getId in interface StatefulKnowledgeSessionpublic void dispose()
StatefulKnowledgeSessiondispose in interface StatefulKnowledgeSessionpublic <T> T execute(Command<T> command)
CommandExecutorexecute in interface CommandExecutorpublic int fireAllRules()
StatefulRuleSessionfireAllRules in interface StatefulRuleSessionpublic int fireAllRules(int max)
StatefulRuleSessionfireAllRules() again.fireAllRules in interface StatefulRuleSessionmax - the maximum number of rules that should be firedpublic int fireAllRules(AgendaFilter agendaFilter)
StatefulRuleSessionfireAllRules in interface StatefulRuleSessionagendaFilter - filters the activations that may firepublic int fireAllRules(AgendaFilter agendaFilter, int max)
StatefulRuleSessionfireAllRules in interface StatefulRuleSessionagendaFilter - filters the activations that may firemax - the maximum number of rules that should be firedpublic void fireUntilHalt()
StatefulRuleSessionfireUntilHalt in interface StatefulRuleSessionpublic void fireUntilHalt(AgendaFilter agendaFilter)
StatefulRuleSessionfireUntilHalt in interface StatefulRuleSessionagendaFilter - filters the activations that may firepublic static List<StatefulKnowledgeSession> adaptStatefulKnowledgeSession(Collection<org.kie.internal.runtime.StatefulKnowledgeSession> sessions)
public int hashCode()
hashCode in class KnowledgeRuntimeAdapterpublic boolean equals(Object obj)
equals in class KnowledgeRuntimeAdapterCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.