Package org.jbpm.workflow.core.node
Class ForEachNode
-
- All Implemented Interfaces:
Serializable,Contextable,ContextContainer,ContextResolver,Node,EventNodeInterface,NodeContainer,org.kie.api.definition.process.Node,org.kie.api.definition.process.NodeContainer
public class ForEachNode extends CompositeContextNode
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classForEachNode.ForEachJoinNodestatic classForEachNode.ForEachSplitNode-
Nested classes/interfaces inherited from class org.jbpm.workflow.core.node.CompositeNode
CompositeNode.CompositeNodeEnd, CompositeNode.CompositeNodeStart, CompositeNode.NodeAndType
-
-
Field Summary
-
Fields inherited from class org.jbpm.workflow.core.impl.ExtendedNodeImpl
EVENT_NODE_BOUNDARY, EVENT_NODE_ENTER, EVENT_NODE_EXIT
-
Fields inherited from class org.jbpm.workflow.core.impl.NodeImpl
constraints, EMPTY_NODE_ARRAY
-
Fields inherited from interface org.jbpm.workflow.core.Node
CONNECTION_DEFAULT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ForEachNode()
-
Method Summary
-
Methods inherited from class org.jbpm.workflow.core.node.CompositeContextNode
getDefaultContext, resolveContext
-
Methods inherited from class org.jbpm.workflow.core.node.CompositeNode
acceptsEvent, acceptsEvent, addIncomingConnection, addOutgoingConnection, getLinkedIncomingNodes, getLinkedOutgoingNodes, getNodeByUniqueId, isAutoComplete, isCancelRemainingInstances, linkIncomingConnections, linkOutgoingConnections, removeIncomingConnection, removeOutgoingConnection, setAutoComplete, setCancelRemainingInstances, validateAddIncomingConnection, validateAddOutgoingConnection, validateRemoveIncomingConnection, validateRemoveOutgoingConnection
-
Methods inherited from class org.jbpm.workflow.core.node.StateBasedNode
addBoundaryEvents, addTimer, getBoundaryEvents, getTimers, removeAllTimers, setBoundaryEvents
-
Methods inherited from class org.jbpm.workflow.core.impl.ExtendedNodeImpl
containsActions, getActions, getActionTypes, setActions
-
Methods inherited from class org.jbpm.workflow.core.impl.NodeImpl
addConstraint, clearIncomingConnection, clearOutgoingConnection, getConstraint, getConstraints, getDefaultIncomingConnections, getDefaultOutgoingConnections, getFrom, getId, getIncomingConnections, getIncomingConnections, getMetaData, getMetaData, getName, getNodeContainer, getNodeType, getNodeUniqueId, getOutgoingConnections, getOutgoingConnections, getTo, getUniqueId, internalGetConstraint, setConstraint, setContext, setId, setMetaData, setMetaData, setName, setNodeContainer, setNodeType
-
-
-
-
Method Detail
-
getVariableName
public String getVariableName()
-
getVariableType
public DataType getVariableType()
-
getOutputVariableName
public String getOutputVariableName()
-
getOutputVariableType
public DataType getOutputVariableType()
-
getCompositeNode
public CompositeContextNode getCompositeNode()
-
getForEachSplitNode
public ForEachNode.ForEachSplitNode getForEachSplitNode()
-
getForEachJoinNode
public ForEachNode.ForEachJoinNode getForEachJoinNode()
-
addNode
public void addNode(org.kie.api.definition.process.Node node)
Description copied from interface:NodeContainerMethod for adding a node to this node container. Note that the node will get an id unique for this node container.- Specified by:
addNodein interfaceNodeContainer- Overrides:
addNodein classCompositeNode- Parameters:
node- the node to be added
-
internalAddNode
protected void internalAddNode(org.kie.api.definition.process.Node node)
- Overrides:
internalAddNodein classCompositeNode
-
getNode
public org.kie.api.definition.process.Node getNode(long id)
- Specified by:
getNodein interfaceorg.kie.api.definition.process.NodeContainer- Overrides:
getNodein classCompositeNode
-
internalGetNode
public org.kie.api.definition.process.Node internalGetNode(long id)
- Specified by:
internalGetNodein interfaceNodeContainer- Overrides:
internalGetNodein classCompositeNode
-
getNodes
public org.kie.api.definition.process.Node[] getNodes()
- Specified by:
getNodesin interfaceorg.kie.api.definition.process.NodeContainer- Overrides:
getNodesin classCompositeNode
-
internalGetNodes
public org.kie.api.definition.process.Node[] internalGetNodes()
- Overrides:
internalGetNodesin classCompositeNode
-
removeNode
public void removeNode(org.kie.api.definition.process.Node node)
Description copied from interface:NodeContainerMethod for removing a node from this node container- Specified by:
removeNodein interfaceNodeContainer- Overrides:
removeNodein classCompositeNode- Parameters:
node- the node to be removed
-
internalRemoveNode
protected void internalRemoveNode(org.kie.api.definition.process.Node node)
- Overrides:
internalRemoveNodein classCompositeNode
-
linkIncomingConnections
public void linkIncomingConnections(String inType, long inNodeId, String inNodeType)
- Overrides:
linkIncomingConnectionsin classCompositeNode
-
linkOutgoingConnections
public void linkOutgoingConnections(long outNodeId, String outNodeType, String outType)- Overrides:
linkOutgoingConnectionsin classCompositeNode
-
getLinkedIncomingNode
public CompositeNode.NodeAndType getLinkedIncomingNode(String inType)
- Overrides:
getLinkedIncomingNodein classCompositeNode
-
internalGetLinkedIncomingNode
public CompositeNode.NodeAndType internalGetLinkedIncomingNode(String inType)
- Overrides:
internalGetLinkedIncomingNodein classCompositeNode
-
getLinkedOutgoingNode
public CompositeNode.NodeAndType getLinkedOutgoingNode(String inType)
- Overrides:
getLinkedOutgoingNodein classCompositeNode
-
internalGetLinkedOutgoingNode
public CompositeNode.NodeAndType internalGetLinkedOutgoingNode(String inType)
- Overrides:
internalGetLinkedOutgoingNodein classCompositeNode
-
getCollectionExpression
public String getCollectionExpression()
-
setCollectionExpression
public void setCollectionExpression(String collectionExpression)
-
getOutputCollectionExpression
public String getOutputCollectionExpression()
-
setOutputCollectionExpression
public void setOutputCollectionExpression(String collectionExpression)
-
isWaitForCompletion
public boolean isWaitForCompletion()
-
setWaitForCompletion
public void setWaitForCompletion(boolean waitForCompletion)
-
isSequential
public boolean isSequential()
-
setSequential
public void setSequential(boolean sequential)
-
getContext
public Context getContext(String contextType)
- Specified by:
getContextin interfaceContextable- Overrides:
getContextin classNodeImpl
-
addContext
public void addContext(Context context)
- Specified by:
addContextin interfaceContextContainer- Overrides:
addContextin classCompositeContextNode
-
setDefaultContext
public void setDefaultContext(Context context)
- Specified by:
setDefaultContextin interfaceContextContainer- Overrides:
setDefaultContextin classCompositeContextNode
-
getContexts
public List<Context> getContexts(String contextType)
- Specified by:
getContextsin interfaceContextContainer- Overrides:
getContextsin classCompositeContextNode
-
getContext
public Context getContext(String contextType, long id)
- Specified by:
getContextin interfaceContextContainer- Overrides:
getContextin classCompositeContextNode
-
getCompletionConditionExpression
public String getCompletionConditionExpression()
-
setCompletionConditionExpression
public void setCompletionConditionExpression(String completionConditionExpression)
-
-