|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.process.instance.ProcessRuntimeImpl
public class ProcessRuntimeImpl
| Constructor Summary | |
|---|---|
ProcessRuntimeImpl(org.drools.common.AbstractWorkingMemory workingMemory)
|
|
ProcessRuntimeImpl(org.drools.common.InternalKnowledgeRuntime kruntime)
|
|
| Method Summary | |
|---|---|
void |
abortProcessInstance(long processInstanceId)
Aborts the process instance with the given id. |
void |
addEventListener(ProcessEventListener listener)
Add a process event listener. |
void |
clearProcessInstances()
|
ProcessInstance |
createProcessInstance(String processId,
Map<String,Object> parameters)
Creates a new process instance (but does not yet start it). |
void |
dispose()
|
List<ProcessEventListener> |
getProcessEventListeners()
Returns all event listeners. |
org.drools.event.ProcessEventSupport |
getProcessEventSupport()
|
ProcessInstance |
getProcessInstance(long id)
Returns the process instance with the given id. |
ProcessInstanceManager |
getProcessInstanceManager()
|
Collection<ProcessInstance> |
getProcessInstances()
Returns a collection of currently active process instances. |
SignalManager |
getSignalManager()
|
TimerManager |
getTimerManager()
|
WorkItemManager |
getWorkItemManager()
Returns the WorkItemManager related to this session. |
void |
removeEventListener(ProcessEventListener listener)
Remove a process event listener. |
void |
removeProcessInstance(ProcessInstance processInstance)
|
void |
setProcessEventSupport(org.drools.event.ProcessEventSupport processEventSupport)
|
void |
signalEvent(String type,
Object event)
Signals the engine that an event has occurred. |
void |
signalEvent(String type,
Object event,
long processInstanceId)
Signals the process instance that an event has occurred. |
ProcessInstance |
startProcess(String processId)
Start a new process instance. |
ProcessInstance |
startProcess(String processId,
Map<String,Object> parameters)
Start a new process instance. |
ProcessInstance |
startProcessInstance(long processInstanceId)
Starts the given process instance (which was created by using createProcesInstance but not yet started). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessRuntimeImpl(org.drools.common.InternalKnowledgeRuntime kruntime)
public ProcessRuntimeImpl(org.drools.common.AbstractWorkingMemory workingMemory)
| Method Detail |
|---|
public ProcessInstance startProcess(String processId)
ProcessRuntime
startProcess in interface ProcessRuntimeprocessId - The id of the process that should be started
ProcessInstance that represents the instance of the process that was started
public ProcessInstance startProcess(String processId,
Map<String,Object> parameters)
ProcessRuntime
startProcess in interface ProcessRuntimeprocessId - the id of the process that should be startedparameters - the process variables that should be set when starting the process instance
ProcessInstance that represents the instance of the process that was started
public ProcessInstance createProcessInstance(String processId,
Map<String,Object> parameters)
ProcessRuntime
createProcessInstance in interface ProcessRuntimeprocessId - the id of the process that should be startedparameters - the process variables that should be set when creating the process instance
ProcessInstance that represents the instance of the process that was created (but not yet started)public ProcessInstance startProcessInstance(long processInstanceId)
ProcessRuntime
startProcessInstance in interface ProcessRuntimeprocessInstanceId - the id of the process instance that needs to be started
ProcessInstance that represents the instance of the process that was startedpublic ProcessInstanceManager getProcessInstanceManager()
public TimerManager getTimerManager()
public SignalManager getSignalManager()
public Collection<ProcessInstance> getProcessInstances()
ProcessRuntime
getProcessInstances in interface ProcessRuntimepublic ProcessInstance getProcessInstance(long id)
ProcessRuntimenull.
getProcessInstance in interface ProcessRuntimenull if it cannot be foundpublic void removeProcessInstance(ProcessInstance processInstance)
public org.drools.event.ProcessEventSupport getProcessEventSupport()
public void addEventListener(ProcessEventListener listener)
ProcessEventManager
addEventListener in interface ProcessEventManagerlistener - the listener to add.public void removeEventListener(ProcessEventListener listener)
ProcessEventManager
removeEventListener in interface ProcessEventManagerlistener - the listener to removepublic List<ProcessEventListener> getProcessEventListeners()
ProcessEventManager
getProcessEventListeners in interface ProcessEventManagerpublic void abortProcessInstance(long processInstanceId)
ProcessRuntimeIllegalArgumentException.
abortProcessInstance in interface ProcessRuntimepublic WorkItemManager getWorkItemManager()
ProcessRuntimeWorkItemManager related to this session. This can be used to
register new WorkItemHandlers or to complete (or abort) WorkItems.
getWorkItemManager in interface ProcessRuntimeWorkItemManager related to this session
public void signalEvent(String type,
Object event)
ProcessRuntime
signalEvent in interface ProcessRuntimetype - the type of eventevent - the data associated with this event
public void signalEvent(String type,
Object event,
long processInstanceId)
ProcessRuntime
signalEvent in interface ProcessRuntimetype - the type of eventevent - the data associated with this eventprocessInstanceId - the id of the process instance that should be signaledpublic void setProcessEventSupport(org.drools.event.ProcessEventSupport processEventSupport)
setProcessEventSupport in interface org.drools.runtime.process.InternalProcessRuntimepublic void dispose()
dispose in interface org.drools.runtime.process.InternalProcessRuntimepublic void clearProcessInstances()
clearProcessInstances in interface org.drools.runtime.process.InternalProcessRuntime
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||