|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.process.instance.impl.ProcessInstanceImpl
public abstract class ProcessInstanceImpl
Default implementation of a process instance.
Field Summary |
---|
Fields inherited from interface org.drools.runtime.process.ProcessInstance |
---|
STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED |
Constructor Summary | |
---|---|
ProcessInstanceImpl()
|
Method Summary | |
---|---|
void |
addContextInstance(String contextId,
ContextInstance contextInstance)
|
void |
disconnect()
|
Agenda |
getAgenda()
|
ContextContainer |
getContextContainer()
|
ContextInstance |
getContextInstance(Context context)
|
ContextInstance |
getContextInstance(String contextId)
|
ContextInstance |
getContextInstance(String contextId,
long id)
|
List<ContextInstance> |
getContextInstances(String contextId)
|
String[] |
getEventTypes()
Returns the event types this event listener is interested in. |
long |
getId()
The unique id of this process instance. |
org.drools.common.InternalKnowledgeRuntime |
getKnowledgeRuntime()
|
Map<String,Object> |
getMetaData()
|
String |
getOutcome()
|
Process |
getProcess()
|
String |
getProcessId()
The id of the process definition that is related to this process instance. |
String |
getProcessName()
The name of the process definition that is related to this process instance. |
int |
getState()
The state of the process instance. |
void |
internalSetState(int state)
|
protected abstract void |
internalStart()
|
void |
reconnect()
|
void |
removeContextInstance(String contextId,
ContextInstance contextInstance)
|
void |
setContextInstance(String contextId,
ContextInstance contextInstance)
|
void |
setId(long id)
|
void |
setKnowledgeRuntime(org.drools.common.InternalKnowledgeRuntime kruntime)
|
void |
setMetaData(String name,
Object data)
|
void |
setOutcome(String outcome)
|
void |
setProcess(Process process)
|
void |
setProcessId(String processId)
|
void |
setState(int state)
|
void |
setState(int state,
String outcome)
|
void |
signalEvent(String type,
Object event)
Signals that an event has occurred. |
void |
start()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProcessInstanceImpl()
Method Detail |
---|
public void setId(long id)
public long getId()
ProcessInstance
getId
in interface ProcessInstance
public void setProcess(Process process)
public Process getProcess()
getProcess
in interface ProcessInstance
public void setProcessId(String processId)
public String getProcessId()
ProcessInstance
getProcessId
in interface ProcessInstance
public String getProcessName()
ProcessInstance
getProcessName
in interface ProcessInstance
public void setState(int state)
public void setState(int state, String outcome)
public void internalSetState(int state)
public int getState()
ProcessInstance
getState
in interface ProcessInstance
public void setKnowledgeRuntime(org.drools.common.InternalKnowledgeRuntime kruntime)
public org.drools.common.InternalKnowledgeRuntime getKnowledgeRuntime()
public Agenda getAgenda()
public ContextContainer getContextContainer()
getContextContainer
in interface ContextInstanceContainer
public void setContextInstance(String contextId, ContextInstance contextInstance)
public ContextInstance getContextInstance(String contextId)
getContextInstance
in interface ContextableInstance
public List<ContextInstance> getContextInstances(String contextId)
getContextInstances
in interface ContextInstanceContainer
public void addContextInstance(String contextId, ContextInstance contextInstance)
addContextInstance
in interface ContextInstanceContainer
public void removeContextInstance(String contextId, ContextInstance contextInstance)
removeContextInstance
in interface ContextInstanceContainer
public ContextInstance getContextInstance(String contextId, long id)
getContextInstance
in interface ContextInstanceContainer
public ContextInstance getContextInstance(Context context)
getContextInstance
in interface ContextInstanceContainer
public void signalEvent(String type, Object event)
EventListener
signalEvent
in interface EventListener
type
- the type of eventevent
- the data associated with this eventpublic void start()
protected abstract void internalStart()
public void disconnect()
public void reconnect()
public String[] getEventTypes()
EventListener
null
if the event types are unknown.
getEventTypes
in interface EventListener
public String toString()
toString
in class Object
public Map<String,Object> getMetaData()
public void setMetaData(String name, Object data)
public void setOutcome(String outcome)
public String getOutcome()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |