|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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()
|
void |
clearProcessInstancesState()
|
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 ProcessRuntime
processId
- The id of the process that should be started
ProcessInstance
that represents the instance of the process that was startedpublic ProcessInstance startProcess(String processId, Map<String,Object> parameters)
ProcessRuntime
startProcess
in interface ProcessRuntime
processId
- 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 startedpublic ProcessInstance createProcessInstance(String processId, Map<String,Object> parameters)
ProcessRuntime
createProcessInstance
in interface ProcessRuntime
processId
- 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 ProcessRuntime
processInstanceId
- 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 ProcessRuntime
public ProcessInstance getProcessInstance(long id)
ProcessRuntime
null
.
getProcessInstance
in interface ProcessRuntime
null
if it cannot be foundpublic void removeProcessInstance(ProcessInstance processInstance)
public org.drools.event.ProcessEventSupport getProcessEventSupport()
public void addEventListener(ProcessEventListener listener)
ProcessEventManager
addEventListener
in interface ProcessEventManager
listener
- the listener to add.public void removeEventListener(ProcessEventListener listener)
ProcessEventManager
removeEventListener
in interface ProcessEventManager
listener
- the listener to removepublic List<ProcessEventListener> getProcessEventListeners()
ProcessEventManager
getProcessEventListeners
in interface ProcessEventManager
public void abortProcessInstance(long processInstanceId)
ProcessRuntime
IllegalArgumentException
.
abortProcessInstance
in interface ProcessRuntime
public WorkItemManager getWorkItemManager()
ProcessRuntime
WorkItemManager
related to this session. This can be used to
register new WorkItemHandler
s or to complete (or abort) WorkItem
s.
getWorkItemManager
in interface ProcessRuntime
WorkItemManager
related to this sessionpublic void signalEvent(String type, Object event)
ProcessRuntime
signalEvent
in interface ProcessRuntime
type
- the type of eventevent
- the data associated with this eventpublic void signalEvent(String type, Object event, long processInstanceId)
ProcessRuntime
signalEvent
in interface ProcessRuntime
type
- 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.InternalProcessRuntime
public void dispose()
dispose
in interface org.drools.runtime.process.InternalProcessRuntime
public void clearProcessInstances()
clearProcessInstances
in interface org.drools.runtime.process.InternalProcessRuntime
public void clearProcessInstancesState()
clearProcessInstancesState
in interface org.drools.runtime.process.InternalProcessRuntime
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |