|
jBPM distribution 6.0.0.CR4 | |||||||||
| 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
| Nested Class Summary | |
|---|---|
static class |
ProcessRuntimeImpl.RegisterStartTimerAction
|
| Constructor Summary | |
|---|---|
ProcessRuntimeImpl(org.drools.core.common.AbstractWorkingMemory workingMemory)
|
|
ProcessRuntimeImpl(org.drools.core.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,
org.kie.internal.process.CorrelationKey correlationKey,
Map<String,Object> parameters)
|
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.core.event.ProcessEventSupport |
getProcessEventSupport()
|
ProcessInstance |
getProcessInstance(org.kie.internal.process.CorrelationKey correlationKey)
|
ProcessInstance |
getProcessInstance(long id)
Returns the process instance with the given id. |
ProcessInstance |
getProcessInstance(long id,
boolean readOnly)
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.core.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,
org.kie.internal.process.CorrelationKey correlationKey,
Map<String,Object> parameters)
|
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.core.common.InternalKnowledgeRuntime kruntime)
public ProcessRuntimeImpl(org.drools.core.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 started
public ProcessInstance startProcess(String processId,
org.kie.internal.process.CorrelationKey correlationKey,
Map<String,Object> parameters)
startProcess in interface org.kie.internal.process.CorrelationAwareProcessRuntime
public ProcessInstance createProcessInstance(String processId,
org.kie.internal.process.CorrelationKey correlationKey,
Map<String,Object> parameters)
createProcessInstance in interface org.kie.internal.process.CorrelationAwareProcessRuntimepublic ProcessInstance getProcessInstance(org.kie.internal.process.CorrelationKey correlationKey)
getProcessInstance in interface org.kie.internal.process.CorrelationAwareProcessRuntimepublic 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 ProcessRuntimeid - the id of the process instance
null if it cannot be found
public ProcessInstance getProcessInstance(long id,
boolean readOnly)
ProcessRuntimenull.
getProcessInstance in interface ProcessRuntimeid - the id of the process instancereadOnly - if this is true and when using persistence, this process instance
will not be tracked and updated by the engine
null if it cannot be foundpublic void removeProcessInstance(ProcessInstance processInstance)
public org.drools.core.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 ProcessRuntimeprocessInstanceId - the id of the process instancepublic 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.core.event.ProcessEventSupport processEventSupport)
setProcessEventSupport in interface org.drools.core.runtime.process.InternalProcessRuntimepublic void dispose()
dispose in interface org.drools.core.runtime.process.InternalProcessRuntimepublic void clearProcessInstances()
clearProcessInstances in interface org.drools.core.runtime.process.InternalProcessRuntimepublic void clearProcessInstancesState()
clearProcessInstancesState in interface org.drools.core.runtime.process.InternalProcessRuntime
|
jBPM distribution 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||