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, update
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getCalendars, getChannels, getEnvironment, getGlobal, getGlobals, getKnowledgeBase, getSessionClock, getSessionConfiguration, registerChannel, registerExitPoint, setGlobal, unregisterChannel, unregisterExitPoint
getAgenda, getQueryResults, getWorkingMemoryEntryPoint, getWorkingMemoryEntryPoints, halt, openLiveQuery
getEntryPointId, getFactCount, getFactHandle, getFactHandles, getFactHandles, getObject, getObjects, getObjects, insert, retract, update
abortProcessInstance, createProcessInstance, getProcessInstance, getProcessInstance, getProcessInstances, getWorkItemManager, signalEvent, signalEvent, startProcess, startProcess, startProcessInstance
addEventListener, addEventListener, getAgendaEventListeners, getWorkingMemoryEventListeners, removeEventListener, removeEventListener
addEventListener, getProcessEventListeners, removeEventListener
public StatefulKnowledgeSessionAdapter(org.kie.internal.runtime.StatefulKnowledgeSession delegate)
public int getId()
getId
in interface StatefulKnowledgeSession
public void dispose()
StatefulKnowledgeSession
dispose
in interface StatefulKnowledgeSession
public <T> T execute(Command<T> command)
CommandExecutor
execute
in interface CommandExecutor
public int fireAllRules()
StatefulRuleSession
fireAllRules
in interface StatefulRuleSession
public int fireAllRules(int max)
StatefulRuleSession
fireAllRules()
again.fireAllRules
in interface StatefulRuleSession
max
- the maximum number of rules that should be firedpublic int fireAllRules(AgendaFilter agendaFilter)
StatefulRuleSession
fireAllRules
in interface StatefulRuleSession
agendaFilter
- filters the activations that may firepublic int fireAllRules(AgendaFilter agendaFilter, int max)
StatefulRuleSession
fireAllRules
in interface StatefulRuleSession
agendaFilter
- filters the activations that may firemax
- the maximum number of rules that should be firedpublic void fireUntilHalt()
StatefulRuleSession
fireUntilHalt
in interface StatefulRuleSession
public void fireUntilHalt(AgendaFilter agendaFilter)
StatefulRuleSession
fireUntilHalt
in interface StatefulRuleSession
agendaFilter
- filters the activations that may firepublic static List<StatefulKnowledgeSession> adaptStatefulKnowledgeSession(Collection<org.kie.internal.runtime.StatefulKnowledgeSession> sessions)
public int hashCode()
hashCode
in class KnowledgeRuntimeAdapter
public boolean equals(Object obj)
equals
in class KnowledgeRuntimeAdapter
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.