Knowledge API Legacy5 Adapter 6.0.0.CR4-Pre1

org.drools.impl.adapters
Class NodeInstanceAdapter

java.lang.Object
  extended by org.drools.impl.adapters.NodeInstanceAdapter
All Implemented Interfaces:
NodeInstance

public class NodeInstanceAdapter
extends Object
implements NodeInstance


Field Summary
 org.kie.api.runtime.process.NodeInstance delegate
           
 
Constructor Summary
NodeInstanceAdapter(org.kie.api.runtime.process.NodeInstance delegate)
           
 
Method Summary
 long getId()
          The id of the node instance.
 Node getNode()
          Return the node this node instance refers to.
 long getNodeId()
          The id of the node this node instance refers to.
 NodeInstanceContainer getNodeInstanceContainer()
          The node instance container that this node instance is part of.
 String getNodeName()
          The name of the node this node instance refers to.
 WorkflowProcessInstance getProcessInstance()
          The process instance that this node instance is executing in.
 Object getVariable(String variableName)
           
 void setVariable(String variableName, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

public org.kie.api.runtime.process.NodeInstance delegate
Constructor Detail

NodeInstanceAdapter

public NodeInstanceAdapter(org.kie.api.runtime.process.NodeInstance delegate)
Method Detail

getId

public long getId()
Description copied from interface: NodeInstance
The id of the node instance. This is unique within the node instance container this node instance lives in.

Specified by:
getId in interface NodeInstance
Returns:
the id of the node instance

getNodeId

public long getNodeId()
Description copied from interface: NodeInstance
The id of the node this node instance refers to. The node represents the definition that this node instance was based on.

Specified by:
getNodeId in interface NodeInstance
Returns:
the id of the node this node instance refers to

getNode

public Node getNode()
Description copied from interface: NodeInstance
Return the node this node instance refers to. The node represents the definition that this node instance was based on.

Specified by:
getNode in interface NodeInstance
Returns:
the node this node instance refers to

getNodeName

public String getNodeName()
Description copied from interface: NodeInstance
The name of the node this node instance refers to.

Specified by:
getNodeName in interface NodeInstance
Returns:
the name of the node this node instance refers to

getProcessInstance

public WorkflowProcessInstance getProcessInstance()
Description copied from interface: NodeInstance
The process instance that this node instance is executing in.

Specified by:
getProcessInstance in interface NodeInstance
Returns:
the process instance that this node instance is executing in

getNodeInstanceContainer

public NodeInstanceContainer getNodeInstanceContainer()
Description copied from interface: NodeInstance
The node instance container that this node instance is part of. If the node was defined in the top-level process scope, this is the same as the process instance. If not, it is the node instance container this node instance is executing in.

Specified by:
getNodeInstanceContainer in interface NodeInstance
Returns:
the process instance that this node instance is executing in

getVariable

public Object getVariable(String variableName)
Specified by:
getVariable in interface NodeInstance

setVariable

public void setVariable(String variableName,
                        Object value)
Specified by:
setVariable in interface NodeInstance

Knowledge API Legacy5 Adapter 6.0.0.CR4-Pre1

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