public abstract class WorkflowProcessInstanceImpl extends ProcessInstanceImpl implements WorkflowProcessInstance, NodeInstanceContainer
Constructor and Description |
---|
WorkflowProcessInstanceImpl() |
Modifier and Type | Method and Description |
---|---|
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) |
boolean |
isPersisted() |
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 |
setPersisted(boolean persisted) |
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() |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getKnowledgeRuntime, getOutcome, getParentProcessInstanceId, getProcess, setId, setKnowledgeRuntime, setParentProcessInstanceId, setProcess
addContextInstance, getContextContainer, getContextInstance, getContextInstance, getContextInstances, removeContextInstance
getContextInstance
getId, getProcessId, getProcessName, getState
getState
public org.kie.api.definition.process.NodeContainer getNodeContainer()
public void addNodeInstance(NodeInstance nodeInstance)
public int getLevelForNode(String uniqueID)
public void removeNodeInstance(NodeInstance nodeInstance)
public Collection<org.kie.api.runtime.process.NodeInstance> getNodeInstances()
getNodeInstances
in interface org.kie.api.runtime.process.NodeInstanceContainer
public Collection<NodeInstance> getNodeInstances(boolean recursive)
public NodeInstance getNodeInstance(long nodeInstanceId)
getNodeInstance
in interface org.kie.api.runtime.process.NodeInstanceContainer
public NodeInstance getFirstNodeInstance(long nodeId)
public List<NodeInstance> getNodeInstances(long nodeId)
public NodeInstance getNodeInstance(org.kie.api.definition.process.Node node)
public long getNodeInstanceCounter()
public void internalSetNodeInstanceCounter(long nodeInstanceCounter)
public org.kie.api.definition.process.WorkflowProcess getWorkflowProcess()
public Object getVariable(String name)
getVariable
in interface org.kie.api.runtime.process.WorkflowProcessInstance
public void setVariable(String name, Object value)
setVariable
in interface org.kie.api.runtime.process.WorkflowProcessInstance
public void setState(int state, String outcome)
setState
in class ProcessInstanceImpl
public void setState(int state)
setState
in class ProcessInstanceImpl
public void disconnect()
disconnect
in class ProcessInstanceImpl
public void reconnect()
reconnect
in class ProcessInstanceImpl
public String toString()
toString
in class ProcessInstanceImpl
public void start()
start
in class ProcessInstanceImpl
public void start(String trigger)
start
in class ProcessInstanceImpl
public void signalEvent(String type, Object event)
signalEvent
in interface org.kie.api.runtime.process.EventListener
signalEvent
in class ProcessInstanceImpl
public void addEventListener(String type, org.kie.api.runtime.process.EventListener listener, boolean external)
public void removeEventListener(String type, org.kie.api.runtime.process.EventListener listener, boolean external)
public String[] getEventTypes()
getEventTypes
in interface org.kie.api.runtime.process.EventListener
getEventTypes
in class ProcessInstanceImpl
public void nodeInstanceCompleted(NodeInstance nodeInstance, String outType)
public void addCompletedNodeId(String uniqueId)
public int getCurrentLevel()
public void setCurrentLevel(int currentLevel)
public boolean isPersisted()
public void setPersisted(boolean persisted)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.