org.drools.impl.adapters
Class WorkflowProcessInstanceAdapter
java.lang.Object
org.drools.impl.adapters.ProcessInstanceAdapter
org.drools.impl.adapters.WorkflowProcessInstanceAdapter
- All Implemented Interfaces:
- EventListener, NodeInstanceContainer, ProcessInstance, WorkflowProcessInstance
public class WorkflowProcessInstanceAdapter
- extends ProcessInstanceAdapter
- implements WorkflowProcessInstance
WorkflowProcessInstanceAdapter
public WorkflowProcessInstanceAdapter(org.kie.api.runtime.process.WorkflowProcessInstance delegate)
getDelegate
public org.kie.api.runtime.process.WorkflowProcessInstance getDelegate()
- Overrides:
getDelegate in class ProcessInstanceAdapter
getNodeInstances
public Collection<NodeInstance> getNodeInstances()
- Description copied from interface:
NodeInstanceContainer
- Returns all node instances that are currently active
within this container.
- Specified by:
getNodeInstances in interface NodeInstanceContainer
- Returns:
- the list of node instances currently active
getNodeInstance
public NodeInstance getNodeInstance(long nodeInstanceId)
- Description copied from interface:
NodeInstanceContainer
- Returns the node instance with the given id, or
null
if the node instance cannot be found.
- Specified by:
getNodeInstance in interface NodeInstanceContainer
- Returns:
- the node instance with the given id
getVariable
public Object getVariable(String name)
- Description copied from interface:
WorkflowProcessInstance
- Returns the value of the variable with the given name. Note
that only variables in the process-level scope will be searched.
Returns
null if the value of the variable is null
or if the variable cannot be found.
- Specified by:
getVariable in interface WorkflowProcessInstance
- Parameters:
name - the name of the variable
- Returns:
- the value of the variable, or
null if it cannot be found
setVariable
public void setVariable(String name,
Object value)
- Specified by:
setVariable in interface WorkflowProcessInstance
hashCode
public int hashCode()
- Overrides:
hashCode in class ProcessInstanceAdapter
equals
public boolean equals(Object obj)
- Overrides:
equals in class ProcessInstanceAdapter
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.