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 class
ForEachNode.ForEachJoinNode
static class
ForEachNode.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:NodeContainer
Method for adding a node to this node container. Note that the node will get an id unique for this node container.- Specified by:
addNode
in interfaceNodeContainer
- Overrides:
addNode
in classCompositeNode
- Parameters:
node
- the node to be added
-
internalAddNode
protected void internalAddNode(org.kie.api.definition.process.Node node)
- Overrides:
internalAddNode
in classCompositeNode
-
getNode
public org.kie.api.definition.process.Node getNode(long id)
- Specified by:
getNode
in interfaceorg.kie.api.definition.process.NodeContainer
- Overrides:
getNode
in classCompositeNode
-
internalGetNode
public org.kie.api.definition.process.Node internalGetNode(long id)
- Specified by:
internalGetNode
in interfaceNodeContainer
- Overrides:
internalGetNode
in classCompositeNode
-
getNodes
public org.kie.api.definition.process.Node[] getNodes()
- Specified by:
getNodes
in interfaceorg.kie.api.definition.process.NodeContainer
- Overrides:
getNodes
in classCompositeNode
-
internalGetNodes
public org.kie.api.definition.process.Node[] internalGetNodes()
- Overrides:
internalGetNodes
in classCompositeNode
-
removeNode
public void removeNode(org.kie.api.definition.process.Node node)
Description copied from interface:NodeContainer
Method for removing a node from this node container- Specified by:
removeNode
in interfaceNodeContainer
- Overrides:
removeNode
in classCompositeNode
- Parameters:
node
- the node to be removed
-
internalRemoveNode
protected void internalRemoveNode(org.kie.api.definition.process.Node node)
- Overrides:
internalRemoveNode
in classCompositeNode
-
linkIncomingConnections
public void linkIncomingConnections(String inType, long inNodeId, String inNodeType)
- Overrides:
linkIncomingConnections
in classCompositeNode
-
linkOutgoingConnections
public void linkOutgoingConnections(long outNodeId, String outNodeType, String outType)
- Overrides:
linkOutgoingConnections
in classCompositeNode
-
getLinkedIncomingNode
public CompositeNode.NodeAndType getLinkedIncomingNode(String inType)
- Overrides:
getLinkedIncomingNode
in classCompositeNode
-
internalGetLinkedIncomingNode
public CompositeNode.NodeAndType internalGetLinkedIncomingNode(String inType)
- Overrides:
internalGetLinkedIncomingNode
in classCompositeNode
-
getLinkedOutgoingNode
public CompositeNode.NodeAndType getLinkedOutgoingNode(String inType)
- Overrides:
getLinkedOutgoingNode
in classCompositeNode
-
internalGetLinkedOutgoingNode
public CompositeNode.NodeAndType internalGetLinkedOutgoingNode(String inType)
- Overrides:
internalGetLinkedOutgoingNode
in 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:
getContext
in interfaceContextable
- Overrides:
getContext
in classNodeImpl
-
addContext
public void addContext(Context context)
- Specified by:
addContext
in interfaceContextContainer
- Overrides:
addContext
in classCompositeContextNode
-
setDefaultContext
public void setDefaultContext(Context context)
- Specified by:
setDefaultContext
in interfaceContextContainer
- Overrides:
setDefaultContext
in classCompositeContextNode
-
getContexts
public List<Context> getContexts(String contextType)
- Specified by:
getContexts
in interfaceContextContainer
- Overrides:
getContexts
in classCompositeContextNode
-
getContext
public Context getContext(String contextType, long id)
- Specified by:
getContext
in interfaceContextContainer
- Overrides:
getContext
in classCompositeContextNode
-
getCompletionConditionExpression
public String getCompletionConditionExpression()
-
setCompletionConditionExpression
public void setCompletionConditionExpression(String completionConditionExpression)
-
-