org.jbpm.workflow.instance.impl
Class NodeInstanceImpl

java.lang.Object
  extended by org.jbpm.workflow.instance.impl.NodeInstanceImpl
All Implemented Interfaces:
Serializable, org.drools.runtime.process.NodeInstance
Direct Known Subclasses:
ActionNodeInstance, CatchLinkNodeInstance, CompositeNodeInstance.CompositeNodeEndInstance, CompositeNodeInstance.CompositeNodeStartInstance, EventNodeInstance, ExtendedNodeInstanceImpl, FaultNodeInstance, ForEachNodeInstance.ForEachJoinNodeInstance, ForEachNodeInstance.ForEachSplitNodeInstance, JoinInstance, SplitInstance, StartNodeInstance, ThrowLinkNodeInstance

public abstract class NodeInstanceImpl
extends Object
implements NodeInstance, Serializable

Default implementation of a RuleFlow node instance.

See Also:
Serialized Form

Constructor Summary
NodeInstanceImpl()
           
 
Method Summary
 void cancel()
           
protected  NodeInstance followConnection(org.drools.definition.process.Connection connection)
           
 long getId()
           
 Map<String,Object> getMetaData()
           
 org.drools.definition.process.Node getNode()
           
 long getNodeId()
           
 org.drools.runtime.process.NodeInstanceContainer getNodeInstanceContainer()
           
 String getNodeName()
           
 WorkflowProcessInstance getProcessInstance()
           
 String getUniqueId()
           
 Object getVariable(String variableName)
           
abstract  void internalTrigger(org.drools.runtime.process.NodeInstance from, String type)
           
 boolean isInversionOfControl()
           
 Context resolveContext(String contextId, Object param)
           
 ContextInstance resolveContextInstance(String contextId, Object param)
           
 void setId(long id)
           
 void setMetaData(String name, Object data)
           
 void setNodeId(long nodeId)
           
 void setNodeInstanceContainer(org.drools.runtime.process.NodeInstanceContainer nodeInstanceContainer)
           
 void setProcessInstance(WorkflowProcessInstance processInstance)
           
 void setVariable(String variableName, Object value)
           
 void trigger(org.drools.runtime.process.NodeInstance from, String type)
           
protected  void triggerCompleted(String type, boolean remove)
           
protected  void triggerConnection(org.drools.definition.process.Connection connection)
           
protected  void triggerNodeInstance(NodeInstance nodeInstance, String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeInstanceImpl

public NodeInstanceImpl()
Method Detail

setId

public void setId(long id)

getId

public long getId()
Specified by:
getId in interface org.drools.runtime.process.NodeInstance

setNodeId

public void setNodeId(long nodeId)

getNodeId

public long getNodeId()
Specified by:
getNodeId in interface org.drools.runtime.process.NodeInstance

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface org.drools.runtime.process.NodeInstance

setProcessInstance

public void setProcessInstance(WorkflowProcessInstance processInstance)

getProcessInstance

public WorkflowProcessInstance getProcessInstance()
Specified by:
getProcessInstance in interface org.drools.runtime.process.NodeInstance

getNodeInstanceContainer

public org.drools.runtime.process.NodeInstanceContainer getNodeInstanceContainer()
Specified by:
getNodeInstanceContainer in interface org.drools.runtime.process.NodeInstance

setNodeInstanceContainer

public void setNodeInstanceContainer(org.drools.runtime.process.NodeInstanceContainer nodeInstanceContainer)

getNode

public org.drools.definition.process.Node getNode()
Specified by:
getNode in interface org.drools.runtime.process.NodeInstance

isInversionOfControl

public boolean isInversionOfControl()

cancel

public void cancel()

trigger

public final void trigger(org.drools.runtime.process.NodeInstance from,
                          String type)

internalTrigger

public abstract void internalTrigger(org.drools.runtime.process.NodeInstance from,
                                     String type)

triggerCompleted

protected void triggerCompleted(String type,
                                boolean remove)

followConnection

protected NodeInstance followConnection(org.drools.definition.process.Connection connection)

triggerNodeInstance

protected void triggerNodeInstance(NodeInstance nodeInstance,
                                   String type)

triggerConnection

protected void triggerConnection(org.drools.definition.process.Connection connection)

resolveContext

public Context resolveContext(String contextId,
                              Object param)

resolveContextInstance

public ContextInstance resolveContextInstance(String contextId,
                                              Object param)

getVariable

public Object getVariable(String variableName)
Specified by:
getVariable in interface org.drools.runtime.process.NodeInstance

setVariable

public void setVariable(String variableName,
                        Object value)
Specified by:
setVariable in interface org.drools.runtime.process.NodeInstance

getUniqueId

public String getUniqueId()

getMetaData

public Map<String,Object> getMetaData()

setMetaData

public void setMetaData(String name,
                        Object data)


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