public class WorkflowProcessInstanceAdapter extends ProcessInstanceAdapter implements WorkflowProcessInstance
delegate
STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED
Constructor and Description |
---|
WorkflowProcessInstanceAdapter(org.kie.api.runtime.process.WorkflowProcessInstance delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.kie.api.runtime.process.WorkflowProcessInstance |
getDelegate() |
NodeInstance |
getNodeInstance(long nodeInstanceId)
Returns the node instance with the given id, or
null
if the node instance cannot be found. |
Collection<NodeInstance> |
getNodeInstances()
Returns all node instances that are currently active
within this container.
|
Object |
getVariable(String name)
Returns the value of the variable with the given name.
|
int |
hashCode() |
void |
setVariable(String name,
Object value) |
adaptProcessInstances, getEventTypes, getId, getProcess, getProcessId, getProcessName, getState, signalEvent
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getId, getProcess, getProcessId, getProcessName, getState
getEventTypes, signalEvent
public WorkflowProcessInstanceAdapter(org.kie.api.runtime.process.WorkflowProcessInstance delegate)
public org.kie.api.runtime.process.WorkflowProcessInstance getDelegate()
getDelegate
in class ProcessInstanceAdapter
public Collection<NodeInstance> getNodeInstances()
NodeInstanceContainer
getNodeInstances
in interface NodeInstanceContainer
public NodeInstance getNodeInstance(long nodeInstanceId)
NodeInstanceContainer
null
if the node instance cannot be found.getNodeInstance
in interface NodeInstanceContainer
public Object getVariable(String name)
WorkflowProcessInstance
null
if the value of the variable is null
or if the variable cannot be found.getVariable
in interface WorkflowProcessInstance
name
- the name of the variablenull
if it cannot be foundpublic void setVariable(String name, Object value)
setVariable
in interface WorkflowProcessInstance
public int hashCode()
hashCode
in class ProcessInstanceAdapter
public boolean equals(Object obj)
equals
in class ProcessInstanceAdapter
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.