org.jbpm.workflow.instance.impl
Class WorkflowProcessInstanceImpl
java.lang.Object
org.jbpm.process.instance.impl.ProcessInstanceImpl
org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl
- All Implemented Interfaces:
- Serializable, ContextableInstance, ContextInstanceContainer, org.kie.api.runtime.process.EventListener, org.kie.api.runtime.process.NodeInstanceContainer, org.kie.api.runtime.process.ProcessInstance, org.kie.api.runtime.process.WorkflowProcessInstance
- Direct Known Subclasses:
- RuleFlowProcessInstance
public abstract class WorkflowProcessInstanceImpl
- extends ProcessInstanceImpl
- implements WorkflowProcessInstance, NodeInstanceContainer
Default implementation of a RuleFlow process instance.
- See Also:
- Serialized Form
| Fields inherited from interface org.kie.api.runtime.process.ProcessInstance |
STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED |
|
Method Summary |
void |
addCompletedNodeId(String uniqueId)
|
void |
addEventListener(String type,
org.kie.api.runtime.process.EventListener listener,
boolean external)
|
void |
addNodeInstance(NodeInstance nodeInstance)
|
void |
disconnect()
|
List<String> |
getActiveNodeIds()
|
List<String> |
getCompletedNodeIds()
|
int |
getCurrentLevel()
|
String[] |
getEventTypes()
|
NodeInstance |
getFirstNodeInstance(long nodeId)
|
Map<String,Integer> |
getIterationLevels()
|
int |
getLevelForNode(String uniqueID)
|
org.kie.api.definition.process.NodeContainer |
getNodeContainer()
|
NodeInstance |
getNodeInstance(long nodeInstanceId)
|
NodeInstance |
getNodeInstance(org.kie.api.definition.process.Node node)
|
long |
getNodeInstanceCounter()
|
Collection<org.kie.api.runtime.process.NodeInstance> |
getNodeInstances()
|
Collection<NodeInstance> |
getNodeInstances(boolean recursive)
|
List<NodeInstance> |
getNodeInstances(long nodeId)
|
Object |
getVariable(String name)
|
Map<String,Object> |
getVariables()
|
org.kie.api.definition.process.WorkflowProcess |
getWorkflowProcess()
|
void |
internalSetNodeInstanceCounter(long nodeInstanceCounter)
|
void |
nodeInstanceCompleted(NodeInstance nodeInstance,
String outType)
|
void |
reconnect()
|
void |
removeEventListener(String type,
org.kie.api.runtime.process.EventListener listener,
boolean external)
|
void |
removeNodeInstance(NodeInstance nodeInstance)
|
void |
setCurrentLevel(int currentLevel)
|
void |
setState(int state)
|
void |
setState(int state,
String outcome)
|
void |
setVariable(String name,
Object value)
|
void |
signalEvent(String type,
Object event)
|
void |
start()
|
void |
start(String trigger)
|
String |
toString()
|
| Methods inherited from class org.jbpm.process.instance.impl.ProcessInstanceImpl |
addContextInstance, getAgenda, getContextContainer, getContextInstance, getContextInstance, getContextInstance, getContextInstances, getId, getKnowledgeRuntime, getMetaData, getOutcome, getParentProcessInstanceId, getProcess, getProcessId, getProcessName, getProcessXml, getState, internalSetState, internalStart, removeContextInstance, setContextInstance, setId, setKnowledgeRuntime, setMetaData, setOutcome, setParentProcessInstanceId, setProcess, setProcessId, setProcessXml, updateProcess |
| Methods inherited from interface org.kie.api.runtime.process.ProcessInstance |
getId, getProcessId, getProcessName, getState |
WorkflowProcessInstanceImpl
public WorkflowProcessInstanceImpl()
getNodeContainer
public org.kie.api.definition.process.NodeContainer getNodeContainer()
addNodeInstance
public void addNodeInstance(NodeInstance nodeInstance)
getLevelForNode
public int getLevelForNode(String uniqueID)
removeNodeInstance
public void removeNodeInstance(NodeInstance nodeInstance)
getNodeInstances
public Collection<org.kie.api.runtime.process.NodeInstance> getNodeInstances()
- Specified by:
getNodeInstances in interface org.kie.api.runtime.process.NodeInstanceContainer
getNodeInstances
public Collection<NodeInstance> getNodeInstances(boolean recursive)
getNodeInstance
public NodeInstance getNodeInstance(long nodeInstanceId)
- Specified by:
getNodeInstance in interface org.kie.api.runtime.process.NodeInstanceContainer
getActiveNodeIds
public List<String> getActiveNodeIds()
getFirstNodeInstance
public NodeInstance getFirstNodeInstance(long nodeId)
getNodeInstances
public List<NodeInstance> getNodeInstances(long nodeId)
getNodeInstance
public NodeInstance getNodeInstance(org.kie.api.definition.process.Node node)
getNodeInstanceCounter
public long getNodeInstanceCounter()
internalSetNodeInstanceCounter
public void internalSetNodeInstanceCounter(long nodeInstanceCounter)
getWorkflowProcess
public org.kie.api.definition.process.WorkflowProcess getWorkflowProcess()
getVariable
public Object getVariable(String name)
- Specified by:
getVariable in interface org.kie.api.runtime.process.WorkflowProcessInstance
getVariables
public Map<String,Object> getVariables()
setVariable
public void setVariable(String name,
Object value)
- Specified by:
setVariable in interface org.kie.api.runtime.process.WorkflowProcessInstance
setState
public void setState(int state,
String outcome)
- Overrides:
setState in class ProcessInstanceImpl
setState
public void setState(int state)
- Overrides:
setState in class ProcessInstanceImpl
disconnect
public void disconnect()
- Overrides:
disconnect in class ProcessInstanceImpl
reconnect
public void reconnect()
- Overrides:
reconnect in class ProcessInstanceImpl
toString
public String toString()
- Overrides:
toString in class ProcessInstanceImpl
start
public void start()
- Overrides:
start in class ProcessInstanceImpl
start
public void start(String trigger)
- Overrides:
start in class ProcessInstanceImpl
signalEvent
public void signalEvent(String type,
Object event)
- Specified by:
signalEvent in interface org.kie.api.runtime.process.EventListener- Overrides:
signalEvent in class ProcessInstanceImpl
addEventListener
public void addEventListener(String type,
org.kie.api.runtime.process.EventListener listener,
boolean external)
removeEventListener
public void removeEventListener(String type,
org.kie.api.runtime.process.EventListener listener,
boolean external)
getEventTypes
public String[] getEventTypes()
- Specified by:
getEventTypes in interface org.kie.api.runtime.process.EventListener- Overrides:
getEventTypes in class ProcessInstanceImpl
nodeInstanceCompleted
public void nodeInstanceCompleted(NodeInstance nodeInstance,
String outType)
addCompletedNodeId
public void addCompletedNodeId(String uniqueId)
getCompletedNodeIds
public List<String> getCompletedNodeIds()
getCurrentLevel
public int getCurrentLevel()
setCurrentLevel
public void setCurrentLevel(int currentLevel)
getIterationLevels
public Map<String,Integer> getIterationLevels()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.