org.jbpm.workflow.core.node
Class ForEachNode
java.lang.Object
org.jbpm.workflow.core.impl.NodeImpl
org.jbpm.workflow.core.impl.ExtendedNodeImpl
org.jbpm.workflow.core.node.StateBasedNode
org.jbpm.workflow.core.node.CompositeNode
org.jbpm.workflow.core.node.ForEachNode
- All Implemented Interfaces:
- Serializable, Node, NodeContainer, Contextable, ContextResolver, EventNodeInterface
public class ForEachNode
- extends CompositeNode
A for each node.
This node activates the contained subflow for each element of a collection.
The node continues if all activated the subflow has been completed for each
of the elements in the collection.
- See Also:
- Serialized Form
Methods inherited from class org.jbpm.workflow.core.node.CompositeNode |
acceptsEvent, addIncomingConnection, addOutgoingConnection, getLinkedIncomingNodes, getLinkedOutgoingNodes, isCancelRemainingInstances, linkIncomingConnections, linkOutgoingConnections, removeIncomingConnection, removeOutgoingConnection, setCancelRemainingInstances, validateAddIncomingConnection, validateAddOutgoingConnection, validateRemoveIncomingConnection, validateRemoveOutgoingConnection |
Methods inherited from class org.jbpm.workflow.core.impl.NodeImpl |
getContext, getDefaultIncomingConnections, getDefaultOutgoingConnections, getFrom, getId, getIncomingConnections, getIncomingConnections, getMetaData, getMetaData, getName, getNodeContainer, getOutgoingConnections, getOutgoingConnections, getTo, getUniqueId, resolveContext, setContext, setId, setMetaData, setMetaData, setName, setNodeContainer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForEachNode
public ForEachNode()
getVariableName
public String getVariableName()
getVariableType
public org.drools.process.core.datatype.DataType getVariableType()
getCompositeNode
public CompositeContextNode getCompositeNode()
getForEachSplitNode
public ForEachNode.ForEachSplitNode getForEachSplitNode()
getForEachJoinNode
public ForEachNode.ForEachJoinNode getForEachJoinNode()
addNode
public void addNode(Node node)
- Description copied from interface:
NodeContainer
- Method for adding a node to this node container.
Note that the node will get an id unique for this node container.
- Overrides:
addNode
in class CompositeNode
- Parameters:
node
- the node to be added
internalAddNode
protected void internalAddNode(Node node)
- Overrides:
internalAddNode
in class CompositeNode
getNode
public Node getNode(long id)
- Description copied from interface:
NodeContainer
- The node in this NodeContainer with the given id.
- Specified by:
getNode
in interface NodeContainer
- Overrides:
getNode
in class CompositeNode
- Returns:
- the node with the given id
internalGetNode
public Node internalGetNode(long id)
- Overrides:
internalGetNode
in class CompositeNode
getNodes
public Node[] getNodes()
- Description copied from interface:
NodeContainer
- The Nodes of this NodeContainer.
- Specified by:
getNodes
in interface NodeContainer
- Overrides:
getNodes
in class CompositeNode
- Returns:
- the nodes
internalGetNodes
public Node[] internalGetNodes()
- Overrides:
internalGetNodes
in class CompositeNode
removeNode
public void removeNode(Node node)
- Description copied from interface:
NodeContainer
- Method for removing a node from this node container
- Overrides:
removeNode
in class CompositeNode
- Parameters:
node
- the node to be removed
internalRemoveNode
protected void internalRemoveNode(Node node)
- Overrides:
internalRemoveNode
in class CompositeNode
linkIncomingConnections
public void linkIncomingConnections(String inType,
long inNodeId,
String inNodeType)
- Overrides:
linkIncomingConnections
in class CompositeNode
linkOutgoingConnections
public void linkOutgoingConnections(long outNodeId,
String outNodeType,
String outType)
- Overrides:
linkOutgoingConnections
in class CompositeNode
getLinkedIncomingNode
public CompositeNode.NodeAndType getLinkedIncomingNode(String inType)
- Overrides:
getLinkedIncomingNode
in class CompositeNode
internalGetLinkedIncomingNode
public CompositeNode.NodeAndType internalGetLinkedIncomingNode(String inType)
- Overrides:
internalGetLinkedIncomingNode
in class CompositeNode
getLinkedOutgoingNode
public CompositeNode.NodeAndType getLinkedOutgoingNode(String inType)
- Overrides:
getLinkedOutgoingNode
in class CompositeNode
internalGetLinkedOutgoingNode
public CompositeNode.NodeAndType internalGetLinkedOutgoingNode(String inType)
- Overrides:
internalGetLinkedOutgoingNode
in class CompositeNode
setVariable
public void setVariable(String variableName,
org.drools.process.core.datatype.DataType type)
getCollectionExpression
public String getCollectionExpression()
setCollectionExpression
public void setCollectionExpression(String collectionExpression)
isWaitForCompletion
public boolean isWaitForCompletion()
setWaitForCompletion
public void setWaitForCompletion(boolean waitForCompletion)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.