org.jbpm.workflow.instance.node
Class CompositeNodeInstance
java.lang.Object
org.jbpm.workflow.instance.impl.NodeInstanceImpl
org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
org.jbpm.workflow.instance.node.StateBasedNodeInstance
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
Methods inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl |
followConnection, getId, getMetaData, getNode, getNodeId, getNodeInstanceContainer, getNodeName, getProcessInstance, getUniqueId, getVariable, isInversionOfControl, resolveContext, resolveContextInstance, setId, setMetaData, setNodeId, setNodeInstanceContainer, setVariable, trigger, triggerConnection, triggerNodeInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeNodeInstance
public CompositeNodeInstance()
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()
- 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
getNodeInstances
public Collection<NodeInstance> getNodeInstances(boolean recursive)
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
getFirstNodeInstance
public NodeInstance getFirstNodeInstance(long nodeId)
getNodeInstance
public NodeInstance getNodeInstance(Node node)
signalEvent
public void signalEvent(String type,
Object event)
- Description copied from interface:
EventListener
- Signals that an event has occurred. The type parameter defines
which type of event and the event parameter can contain additional information
related to the event.
- Specified by:
signalEvent
in interface EventListener
- Specified by:
signalEvent
in interface EventNodeInstanceInterface
- Overrides:
signalEvent
in class StateBasedNodeInstance
- Parameters:
type
- the type of eventevent
- the data associated with this event
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)
setState
public void setState(int state)
getState
public int getState()
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.