Knowledge API Legacy5 Adapter 6.2.0.Final

org.drools.impl.adapters
Class WorkflowProcessInstanceAdapter

java.lang.Object
  extended by org.drools.impl.adapters.ProcessInstanceAdapter
      extended by org.drools.impl.adapters.WorkflowProcessInstanceAdapter
All Implemented Interfaces:
EventListener, NodeInstanceContainer, ProcessInstance, WorkflowProcessInstance

public class WorkflowProcessInstanceAdapter
extends ProcessInstanceAdapter
implements WorkflowProcessInstance


Field Summary
 
Fields inherited from class org.drools.impl.adapters.ProcessInstanceAdapter
delegate
 
Fields inherited from interface org.drools.runtime.process.ProcessInstance
STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED
 
Constructor Summary
WorkflowProcessInstanceAdapter(org.kie.api.runtime.process.WorkflowProcessInstance delegate)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.drools.impl.adapters.ProcessInstanceAdapter
adaptProcessInstances, getEventTypes, getId, getProcess, getProcessId, getProcessName, getState, signalEvent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.runtime.process.ProcessInstance
getId, getProcess, getProcessId, getProcessName, getState
 
Methods inherited from interface org.drools.runtime.process.EventListener
getEventTypes, signalEvent
 

Constructor Detail

WorkflowProcessInstanceAdapter

public WorkflowProcessInstanceAdapter(org.kie.api.runtime.process.WorkflowProcessInstance delegate)
Method Detail

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

Knowledge API Legacy5 Adapter 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.