org.jbpm.workflow.instance.node
Class CompositeNodeInstance

java.lang.Object
  extended by org.jbpm.workflow.instance.impl.NodeInstanceImpl
      extended by org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
          extended by org.jbpm.workflow.instance.node.StateBasedNodeInstance
              extended by org.jbpm.workflow.instance.node.CompositeNodeInstance
All Implemented Interfaces:
Serializable, EventListener, NodeInstance, NodeInstanceContainer, EventBasedNodeInstanceInterface, EventNodeInstanceInterface
Direct Known Subclasses:
CompositeContextNodeInstance, ForEachNodeInstance

public class CompositeNodeInstance
extends StateBasedNodeInstance
implements NodeInstanceContainer, EventNodeInstanceInterface, EventBasedNodeInstanceInterface

Runtime counterpart of a composite node.

See Also:
Serialized Form

Nested Class Summary
 class CompositeNodeInstance.CompositeNodeEndInstance
           
 class CompositeNodeInstance.CompositeNodeStartInstance
           
 
Constructor Summary
CompositeNodeInstance()
           
 
Method Summary
 void addEventListeners()
           
 void addNodeInstance(NodeInstance nodeInstance)
           
 void cancel()
           
protected  CompositeNode getCompositeNode()
           
 NodeInstance getFirstNodeInstance(long nodeId)
           
 NodeContainer getNodeContainer()
           
 NodeInstance getNodeInstance(long nodeInstanceId)
           
 NodeInstance getNodeInstance(Node node)
           
 Collection<NodeInstance> getNodeInstances()
           
 Collection<NodeInstance> getNodeInstances(boolean recursive)
           
 List<NodeInstance> getNodeInstances(long nodeId)
           
 void internalTrigger(NodeInstance from, String type)
           
protected  boolean isLinkedIncomingNodeRequired()
           
 void nodeInstanceCompleted(NodeInstance nodeInstance, String outType)
           
 void removeEventListeners()
           
 void removeNodeInstance(NodeInstance nodeInstance)
           
 void setProcessInstance(WorkflowProcessInstance processInstance)
           
 void signalEvent(String type, Object event)
           
 void triggerCompleted(String outType)
           
 
Methods inherited from class org.jbpm.workflow.instance.node.StateBasedNodeInstance
addTimerListener, createTimerInstance, getEventBasedNode, getEventTypes, getTimerInstances, internalSetTimerInstances, triggerCompleted, triggerCompleted
 
Methods inherited from class org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
executeAction, getExtendedNode, triggerCompleted, triggerEvent
 
Methods inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl
getId, getMetaData, getNode, getNodeId, getNodeInstanceContainer, getNodeName, getProcessInstance, getUniqueId, getVariable, isInversionOfControl, resolveContext, resolveContextInstance, setId, setMetaData, setNodeId, setNodeInstanceContainer, setVariable, trigger, triggerConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeNodeInstance

public CompositeNodeInstance()
Method Detail

setProcessInstance

public void setProcessInstance(WorkflowProcessInstance processInstance)
Overrides:
setProcessInstance in class NodeInstanceImpl

getCompositeNode

protected CompositeNode getCompositeNode()

getNodeContainer

public NodeContainer getNodeContainer()

internalTrigger

public void internalTrigger(NodeInstance from,
                            String type)
Overrides:
internalTrigger in class StateBasedNodeInstance

isLinkedIncomingNodeRequired

protected boolean isLinkedIncomingNodeRequired()

triggerCompleted

public void triggerCompleted(String outType)

cancel

public void cancel()
Overrides:
cancel in class StateBasedNodeInstance

addNodeInstance

public void addNodeInstance(NodeInstance nodeInstance)

removeNodeInstance

public void removeNodeInstance(NodeInstance nodeInstance)

getNodeInstances

public Collection<NodeInstance> getNodeInstances()
Specified by:
getNodeInstances in interface NodeInstanceContainer

getNodeInstances

public Collection<NodeInstance> getNodeInstances(boolean recursive)

getNodeInstance

public NodeInstance getNodeInstance(long nodeInstanceId)
Specified by:
getNodeInstance in interface NodeInstanceContainer

getFirstNodeInstance

public NodeInstance getFirstNodeInstance(long nodeId)

getNodeInstance

public NodeInstance getNodeInstance(Node node)

signalEvent

public void signalEvent(String type,
                        Object event)
Specified by:
signalEvent in interface EventListener
Specified by:
signalEvent in interface EventNodeInstanceInterface
Overrides:
signalEvent in class StateBasedNodeInstance

getNodeInstances

public List<NodeInstance> getNodeInstances(long nodeId)

addEventListeners

public void addEventListeners()
Specified by:
addEventListeners in interface EventBasedNodeInstanceInterface
Overrides:
addEventListeners in class StateBasedNodeInstance

removeEventListeners

public void removeEventListeners()
Specified by:
removeEventListeners in interface EventBasedNodeInstanceInterface
Overrides:
removeEventListeners in class StateBasedNodeInstance

nodeInstanceCompleted

public void nodeInstanceCompleted(NodeInstance nodeInstance,
                                  String outType)


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