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, EventBasedNodeInstanceInterface, EventNodeInstanceInterface, EventListener, NodeInstance, NodeInstanceContainer
- Direct Known Subclasses:
- CompositeContextNodeInstance
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.node.StateBasedNodeInstance |
addTimerListener, checkProcessInstance, configureTimerInstance, createTimerInstance, getActivationType, getEventBasedNode, getEventTypes, getTimerInstances, internalSetTimerInstances, triggerCompleted, triggerCompleted |
Methods inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl |
executeAction, followConnection, getId, getLevel, getMetaData, getMetaData, getNode, getNodeId, getNodeInstanceContainer, getNodeName, getProcessInstance, getUniqueId, getVariable, isInversionOfControl, resolveContext, resolveContextInstance, retrigger, setId, setLevel, setMetaData, setNodeId, setNodeInstanceContainer, setVariable, trigger, triggerConnection, triggerNode, triggerNodeInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeNodeInstance
public CompositeNodeInstance()
getLevelForNode
public int getLevelForNode(String uniqueID)
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
internalTriggerOnlyParent
protected void internalTriggerOnlyParent(NodeInstance from,
String type)
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 EventNodeInstanceInterface
- Specified by:
signalEvent
in interface EventListener
- 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()
getCurrentLevel
public int getCurrentLevel()
setCurrentLevel
public void setCurrentLevel(int currentLevel)
getIterationLevels
public Map<String,Integer> getIterationLevels()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.