org.jbpm.process.instance
Class ProcessRuntimeImpl

java.lang.Object
  extended by org.jbpm.process.instance.ProcessRuntimeImpl
All Implemented Interfaces:
ProcessEventManager, InternalProcessRuntime, ProcessRuntime

public class ProcessRuntimeImpl
extends Object
implements InternalProcessRuntime


Constructor Summary
ProcessRuntimeImpl(org.drools.common.AbstractWorkingMemory workingMemory)
           
ProcessRuntimeImpl(org.drools.common.InternalKnowledgeRuntime kruntime)
           
 
Method Summary
 void abortProcessInstance(long processInstanceId)
           
 void addEventListener(ProcessEventListener listener)
           
 void clearProcessInstances()
           
 ProcessInstance createProcessInstance(String processId, Map<String,Object> parameters)
           
 void dispose()
           
 List<ProcessEventListener> getProcessEventListeners()
           
 ProcessEventSupport getProcessEventSupport()
           
 ProcessInstance getProcessInstance(long id)
           
 ProcessInstanceManager getProcessInstanceManager()
           
 Collection<ProcessInstance> getProcessInstances()
           
 SignalManager getSignalManager()
           
 TimerManager getTimerManager()
           
 WorkItemManager getWorkItemManager()
           
 void removeEventListener(ProcessEventListener listener)
           
 void removeProcessInstance(ProcessInstance processInstance)
           
 void setProcessEventSupport(ProcessEventSupport processEventSupport)
           
 void signalEvent(String type, Object event)
           
 void signalEvent(String type, Object event, long processInstanceId)
           
 ProcessInstance startProcess(String processId)
           
 ProcessInstance startProcess(String processId, Map<String,Object> parameters)
           
 ProcessInstance startProcessInstance(long processInstanceId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessRuntimeImpl

public ProcessRuntimeImpl(org.drools.common.InternalKnowledgeRuntime kruntime)

ProcessRuntimeImpl

public ProcessRuntimeImpl(org.drools.common.AbstractWorkingMemory workingMemory)
Method Detail

startProcess

public ProcessInstance startProcess(String processId)
Specified by:
startProcess in interface ProcessRuntime

startProcess

public ProcessInstance startProcess(String processId,
                                    Map<String,Object> parameters)
Specified by:
startProcess in interface ProcessRuntime

createProcessInstance

public ProcessInstance createProcessInstance(String processId,
                                             Map<String,Object> parameters)
Specified by:
createProcessInstance in interface ProcessRuntime

startProcessInstance

public ProcessInstance startProcessInstance(long processInstanceId)
Specified by:
startProcessInstance in interface ProcessRuntime

getProcessInstanceManager

public ProcessInstanceManager getProcessInstanceManager()

getTimerManager

public TimerManager getTimerManager()

getSignalManager

public SignalManager getSignalManager()

getProcessInstances

public Collection<ProcessInstance> getProcessInstances()
Specified by:
getProcessInstances in interface ProcessRuntime

getProcessInstance

public ProcessInstance getProcessInstance(long id)
Specified by:
getProcessInstance in interface ProcessRuntime

removeProcessInstance

public void removeProcessInstance(ProcessInstance processInstance)

getProcessEventSupport

public ProcessEventSupport getProcessEventSupport()

addEventListener

public void addEventListener(ProcessEventListener listener)
Specified by:
addEventListener in interface ProcessEventManager

removeEventListener

public void removeEventListener(ProcessEventListener listener)
Specified by:
removeEventListener in interface ProcessEventManager

getProcessEventListeners

public List<ProcessEventListener> getProcessEventListeners()
Specified by:
getProcessEventListeners in interface ProcessEventManager

abortProcessInstance

public void abortProcessInstance(long processInstanceId)
Specified by:
abortProcessInstance in interface ProcessRuntime

getWorkItemManager

public WorkItemManager getWorkItemManager()
Specified by:
getWorkItemManager in interface ProcessRuntime

signalEvent

public void signalEvent(String type,
                        Object event)
Specified by:
signalEvent in interface ProcessRuntime

signalEvent

public void signalEvent(String type,
                        Object event,
                        long processInstanceId)
Specified by:
signalEvent in interface ProcessRuntime

setProcessEventSupport

public void setProcessEventSupport(ProcessEventSupport processEventSupport)
Specified by:
setProcessEventSupport in interface InternalProcessRuntime

dispose

public void dispose()
Specified by:
dispose in interface InternalProcessRuntime

clearProcessInstances

public void clearProcessInstances()
Specified by:
clearProcessInstances in interface InternalProcessRuntime


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.