org.droolsjbpm.services.impl.helpers
Class StatefulKnowledgeSessionDelegate
java.lang.Object
org.droolsjbpm.services.impl.helpers.StatefulKnowledgeSessionDelegate
- All Implemented Interfaces:
- org.kie.event.KieRuntimeEventManager, org.kie.event.process.ProcessEventManager, org.kie.event.rule.WorkingMemoryEventManager, org.kie.runtime.CommandExecutor, org.kie.runtime.KieRuntime, org.kie.runtime.KieSession, org.kie.runtime.process.ProcessRuntime, org.kie.runtime.process.StatefulProcessSession, org.kie.runtime.rule.Session, org.kie.runtime.rule.SessionEntryPoint, org.kie.runtime.rule.StatefulRuleSession
public class StatefulKnowledgeSessionDelegate
- extends Object
- implements org.kie.runtime.KieSession
|
Method Summary |
void |
abortProcessInstance(long l)
|
void |
addEventListener(org.kie.event.rule.AgendaEventListener al)
|
void |
addEventListener(org.kie.event.process.ProcessEventListener pl)
|
void |
addEventListener(org.kie.event.rule.WorkingMemoryEventListener wl)
|
org.kie.runtime.process.ProcessInstance |
createProcessInstance(String string,
Map<String,Object> map)
|
void |
delete(org.kie.runtime.rule.FactHandle fh)
|
void |
dispose()
|
|
execute(org.kie.command.Command<T> cmnd)
|
int |
fireAllRules()
|
int |
fireAllRules(org.kie.runtime.rule.AgendaFilter af)
|
int |
fireAllRules(org.kie.runtime.rule.AgendaFilter af,
int i)
|
int |
fireAllRules(int i)
|
void |
fireUntilHalt()
|
void |
fireUntilHalt(org.kie.runtime.rule.AgendaFilter af)
|
org.kie.runtime.rule.Agenda |
getAgenda()
|
Collection<org.kie.event.rule.AgendaEventListener> |
getAgendaEventListeners()
|
org.kie.runtime.Calendars |
getCalendars()
|
Map<String,org.kie.runtime.Channel> |
getChannels()
|
org.kie.runtime.rule.SessionEntryPoint |
getEntryPoint(String string)
|
String |
getEntryPointId()
|
Collection<? extends org.kie.runtime.rule.SessionEntryPoint> |
getEntryPoints()
|
org.kie.runtime.Environment |
getEnvironment()
|
long |
getFactCount()
|
org.kie.runtime.rule.FactHandle |
getFactHandle(Object o)
|
<T extends org.kie.runtime.rule.FactHandle>
Collection<T> |
|
getFactHandles()
|
<T extends org.kie.runtime.rule.FactHandle>
Collection<T> |
|
getFactHandles(org.kie.runtime.ObjectFilter of)
|
Object |
getGlobal(String string)
|
org.kie.runtime.Globals |
getGlobals()
|
int |
getId()
|
org.kie.KieBase |
getKieBase()
|
org.kie.runtime.KieSession |
getKsession()
|
Object |
getObject(org.kie.runtime.rule.FactHandle fh)
|
Collection<Object> |
getObjects()
|
Collection<Object> |
getObjects(org.kie.runtime.ObjectFilter of)
|
Collection<org.kie.event.process.ProcessEventListener> |
getProcessEventListeners()
|
org.kie.runtime.process.ProcessInstance |
getProcessInstance(long l)
|
org.kie.runtime.process.ProcessInstance |
getProcessInstance(long l,
boolean b)
|
Collection<org.kie.runtime.process.ProcessInstance> |
getProcessInstances()
|
org.kie.runtime.rule.QueryResults |
getQueryResults(String string,
Object... os)
|
<T extends org.kie.time.SessionClock>
T |
|
getSessionClock()
|
org.kie.runtime.KieSessionConfiguration |
getSessionConfiguration()
|
Collection<org.kie.event.rule.WorkingMemoryEventListener> |
getWorkingMemoryEventListeners()
|
org.kie.runtime.process.WorkItemManager |
getWorkItemManager()
|
void |
halt()
|
org.kie.runtime.rule.FactHandle |
insert(Object o)
|
org.kie.runtime.rule.LiveQuery |
openLiveQuery(String string,
Object[] os,
org.kie.runtime.rule.ViewChangedEventListener vl)
|
void |
registerChannel(String string,
org.kie.runtime.Channel chnl)
|
void |
removeEventListener(org.kie.event.rule.AgendaEventListener al)
|
void |
removeEventListener(org.kie.event.process.ProcessEventListener pl)
|
void |
removeEventListener(org.kie.event.rule.WorkingMemoryEventListener wl)
|
void |
retract(org.kie.runtime.rule.FactHandle fh)
|
void |
setGlobal(String string,
Object o)
|
void |
setKsession(org.kie.runtime.StatefulKnowledgeSession ksession)
|
void |
signalEvent(String string,
Object o)
|
void |
signalEvent(String string,
Object o,
long l)
|
org.kie.runtime.process.ProcessInstance |
startProcess(String string)
|
org.kie.runtime.process.ProcessInstance |
startProcess(String string,
Map<String,Object> map)
|
org.kie.runtime.process.ProcessInstance |
startProcessInstance(long l)
|
void |
unregisterChannel(String string)
|
void |
update(org.kie.runtime.rule.FactHandle fh,
Object o)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatefulKnowledgeSessionDelegate
public StatefulKnowledgeSessionDelegate(String name,
org.kie.runtime.KieSession ksession,
SessionManager sessionManager)
getKsession
public org.kie.runtime.KieSession getKsession()
setKsession
public void setKsession(org.kie.runtime.StatefulKnowledgeSession ksession)
getId
public int getId()
- Specified by:
getId in interface org.kie.runtime.KieSession
dispose
public void dispose()
- Specified by:
dispose in interface org.kie.runtime.KieSession
getSessionClock
public <T extends org.kie.time.SessionClock> T getSessionClock()
- Specified by:
getSessionClock in interface org.kie.runtime.KieRuntime
setGlobal
public void setGlobal(String string,
Object o)
- Specified by:
setGlobal in interface org.kie.runtime.KieRuntime
getGlobal
public Object getGlobal(String string)
- Specified by:
getGlobal in interface org.kie.runtime.KieRuntime
getGlobals
public org.kie.runtime.Globals getGlobals()
- Specified by:
getGlobals in interface org.kie.runtime.KieRuntime
getCalendars
public org.kie.runtime.Calendars getCalendars()
- Specified by:
getCalendars in interface org.kie.runtime.KieRuntime
getEnvironment
public org.kie.runtime.Environment getEnvironment()
- Specified by:
getEnvironment in interface org.kie.runtime.KieRuntime
getKieBase
public org.kie.KieBase getKieBase()
- Specified by:
getKieBase in interface org.kie.runtime.KieRuntime
registerChannel
public void registerChannel(String string,
org.kie.runtime.Channel chnl)
- Specified by:
registerChannel in interface org.kie.runtime.KieRuntime
unregisterChannel
public void unregisterChannel(String string)
- Specified by:
unregisterChannel in interface org.kie.runtime.KieRuntime
getChannels
public Map<String,org.kie.runtime.Channel> getChannels()
- Specified by:
getChannels in interface org.kie.runtime.KieRuntime
getSessionConfiguration
public org.kie.runtime.KieSessionConfiguration getSessionConfiguration()
- Specified by:
getSessionConfiguration in interface org.kie.runtime.KieRuntime
halt
public void halt()
- Specified by:
halt in interface org.kie.runtime.rule.Session
getAgenda
public org.kie.runtime.rule.Agenda getAgenda()
- Specified by:
getAgenda in interface org.kie.runtime.rule.Session
getEntryPoint
public org.kie.runtime.rule.SessionEntryPoint getEntryPoint(String string)
- Specified by:
getEntryPoint in interface org.kie.runtime.rule.Session
getEntryPoints
public Collection<? extends org.kie.runtime.rule.SessionEntryPoint> getEntryPoints()
- Specified by:
getEntryPoints in interface org.kie.runtime.rule.Session
getQueryResults
public org.kie.runtime.rule.QueryResults getQueryResults(String string,
Object... os)
- Specified by:
getQueryResults in interface org.kie.runtime.rule.Session
openLiveQuery
public org.kie.runtime.rule.LiveQuery openLiveQuery(String string,
Object[] os,
org.kie.runtime.rule.ViewChangedEventListener vl)
- Specified by:
openLiveQuery in interface org.kie.runtime.rule.Session
addEventListener
public void addEventListener(org.kie.event.process.ProcessEventListener pl)
- Specified by:
addEventListener in interface org.kie.event.process.ProcessEventManager
removeEventListener
public void removeEventListener(org.kie.event.process.ProcessEventListener pl)
- Specified by:
removeEventListener in interface org.kie.event.process.ProcessEventManager
getProcessEventListeners
public Collection<org.kie.event.process.ProcessEventListener> getProcessEventListeners()
- Specified by:
getProcessEventListeners in interface org.kie.event.process.ProcessEventManager
addEventListener
public void addEventListener(org.kie.event.rule.WorkingMemoryEventListener wl)
- Specified by:
addEventListener in interface org.kie.event.rule.WorkingMemoryEventManager
removeEventListener
public void removeEventListener(org.kie.event.rule.WorkingMemoryEventListener wl)
- Specified by:
removeEventListener in interface org.kie.event.rule.WorkingMemoryEventManager
getWorkingMemoryEventListeners
public Collection<org.kie.event.rule.WorkingMemoryEventListener> getWorkingMemoryEventListeners()
- Specified by:
getWorkingMemoryEventListeners in interface org.kie.event.rule.WorkingMemoryEventManager
addEventListener
public void addEventListener(org.kie.event.rule.AgendaEventListener al)
- Specified by:
addEventListener in interface org.kie.event.rule.WorkingMemoryEventManager
removeEventListener
public void removeEventListener(org.kie.event.rule.AgendaEventListener al)
- Specified by:
removeEventListener in interface org.kie.event.rule.WorkingMemoryEventManager
getAgendaEventListeners
public Collection<org.kie.event.rule.AgendaEventListener> getAgendaEventListeners()
- Specified by:
getAgendaEventListeners in interface org.kie.event.rule.WorkingMemoryEventManager
execute
public <T> T execute(org.kie.command.Command<T> cmnd)
- Specified by:
execute in interface org.kie.runtime.CommandExecutor
startProcess
public org.kie.runtime.process.ProcessInstance startProcess(String string)
- Specified by:
startProcess in interface org.kie.runtime.process.ProcessRuntime
startProcess
public org.kie.runtime.process.ProcessInstance startProcess(String string,
Map<String,Object> map)
- Specified by:
startProcess in interface org.kie.runtime.process.ProcessRuntime
createProcessInstance
public org.kie.runtime.process.ProcessInstance createProcessInstance(String string,
Map<String,Object> map)
- Specified by:
createProcessInstance in interface org.kie.runtime.process.ProcessRuntime
startProcessInstance
public org.kie.runtime.process.ProcessInstance startProcessInstance(long l)
- Specified by:
startProcessInstance in interface org.kie.runtime.process.ProcessRuntime
signalEvent
public void signalEvent(String string,
Object o)
- Specified by:
signalEvent in interface org.kie.runtime.process.ProcessRuntime
signalEvent
public void signalEvent(String string,
Object o,
long l)
- Specified by:
signalEvent in interface org.kie.runtime.process.ProcessRuntime
getProcessInstances
public Collection<org.kie.runtime.process.ProcessInstance> getProcessInstances()
- Specified by:
getProcessInstances in interface org.kie.runtime.process.ProcessRuntime
getProcessInstance
public org.kie.runtime.process.ProcessInstance getProcessInstance(long l)
- Specified by:
getProcessInstance in interface org.kie.runtime.process.ProcessRuntime
getProcessInstance
public org.kie.runtime.process.ProcessInstance getProcessInstance(long l,
boolean b)
- Specified by:
getProcessInstance in interface org.kie.runtime.process.ProcessRuntime
abortProcessInstance
public void abortProcessInstance(long l)
- Specified by:
abortProcessInstance in interface org.kie.runtime.process.ProcessRuntime
getWorkItemManager
public org.kie.runtime.process.WorkItemManager getWorkItemManager()
- Specified by:
getWorkItemManager in interface org.kie.runtime.process.ProcessRuntime
getEntryPointId
public String getEntryPointId()
- Specified by:
getEntryPointId in interface org.kie.runtime.rule.SessionEntryPoint
insert
public org.kie.runtime.rule.FactHandle insert(Object o)
- Specified by:
insert in interface org.kie.runtime.rule.SessionEntryPoint
retract
public void retract(org.kie.runtime.rule.FactHandle fh)
- Specified by:
retract in interface org.kie.runtime.rule.SessionEntryPoint
delete
public void delete(org.kie.runtime.rule.FactHandle fh)
- Specified by:
delete in interface org.kie.runtime.rule.SessionEntryPoint
update
public void update(org.kie.runtime.rule.FactHandle fh,
Object o)
- Specified by:
update in interface org.kie.runtime.rule.SessionEntryPoint
getFactHandle
public org.kie.runtime.rule.FactHandle getFactHandle(Object o)
- Specified by:
getFactHandle in interface org.kie.runtime.rule.SessionEntryPoint
getObject
public Object getObject(org.kie.runtime.rule.FactHandle fh)
- Specified by:
getObject in interface org.kie.runtime.rule.SessionEntryPoint
getObjects
public Collection<Object> getObjects()
- Specified by:
getObjects in interface org.kie.runtime.rule.SessionEntryPoint
getObjects
public Collection<Object> getObjects(org.kie.runtime.ObjectFilter of)
- Specified by:
getObjects in interface org.kie.runtime.rule.SessionEntryPoint
getFactHandles
public <T extends org.kie.runtime.rule.FactHandle> Collection<T> getFactHandles()
- Specified by:
getFactHandles in interface org.kie.runtime.rule.SessionEntryPoint
getFactHandles
public <T extends org.kie.runtime.rule.FactHandle> Collection<T> getFactHandles(org.kie.runtime.ObjectFilter of)
- Specified by:
getFactHandles in interface org.kie.runtime.rule.SessionEntryPoint
getFactCount
public long getFactCount()
- Specified by:
getFactCount in interface org.kie.runtime.rule.SessionEntryPoint
fireAllRules
public int fireAllRules()
- Specified by:
fireAllRules in interface org.kie.runtime.rule.StatefulRuleSession
fireAllRules
public int fireAllRules(int i)
- Specified by:
fireAllRules in interface org.kie.runtime.rule.StatefulRuleSession
fireAllRules
public int fireAllRules(org.kie.runtime.rule.AgendaFilter af)
- Specified by:
fireAllRules in interface org.kie.runtime.rule.StatefulRuleSession
fireAllRules
public int fireAllRules(org.kie.runtime.rule.AgendaFilter af,
int i)
- Specified by:
fireAllRules in interface org.kie.runtime.rule.StatefulRuleSession
fireUntilHalt
public void fireUntilHalt()
- Specified by:
fireUntilHalt in interface org.kie.runtime.rule.StatefulRuleSession
fireUntilHalt
public void fireUntilHalt(org.kie.runtime.rule.AgendaFilter af)
- Specified by:
fireUntilHalt in interface org.kie.runtime.rule.StatefulRuleSession
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.