Package org.jbpm.workflow.core.node
Class ForEachNode
- All Implemented Interfaces:
Serializable,Mappable,Contextable,ContextContainer,ContextResolver,Node,EventNodeInterface,NodeContainer,org.kie.api.definition.process.Node,org.kie.api.definition.process.NodeContainer,org.kie.api.definition.process.WorkflowElement,KogitoNode
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested 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_ENTER, EVENT_NODE_EXITFields inherited from class org.jbpm.workflow.core.impl.NodeImpl
constraintsFields inherited from interface org.jbpm.workflow.core.Node
CONNECTION_DEFAULT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContext(Context context) addContextVariable(String varRef, String variableName, DataType type) voidaddNode(org.kie.api.definition.process.Node node) Method for adding a node to this node container.getContext(String contextType) getContext(String contextType, long id) getContexts(String contextType) getLinkedIncomingNode(String inType) getLinkedOutgoingNode(String inType) org.kie.api.definition.process.NodegetNode(org.kie.api.definition.process.WorkflowElementIdentifier id) org.kie.api.definition.process.Node[]getNodes()protected voidinternalAddNode(org.kie.api.definition.process.Node node) internalGetLinkedIncomingNode(String inType) internalGetLinkedOutgoingNode(String inType) org.kie.api.definition.process.NodeinternalGetNode(org.kie.api.definition.process.WorkflowElementIdentifier id) org.kie.api.definition.process.Node[]protected voidinternalRemoveNode(org.kie.api.definition.process.Node node) booleanbooleanvoidlinkIncomingConnections(String inType, org.kie.api.definition.process.WorkflowElementIdentifier inNodeId, String inNodeType) voidlinkOutgoingConnections(org.kie.api.definition.process.WorkflowElementIdentifier outNodeId, String outNodeType, String outType) voidremoveNode(org.kie.api.definition.process.Node node) Method for removing a node from this node containervoidsetCollectionExpression(String collectionExpression) voidsetCompletionAction(Action finishAction) voidsetCompletionConditionExpression(String completionConditionExpression) voidsetDefaultContext(Context context) voidsetInputRef(String varRef) voidsetOutputCollectionExpression(String collectionExpression) voidsetOutputRef(String varRef) voidsetSequential(boolean sequential) voidsetWaitForCompletion(boolean waitForCompletion) Methods inherited from class org.jbpm.workflow.core.node.CompositeContextNode
getDefaultContext, resolveContextMethods inherited from class org.jbpm.workflow.core.node.CompositeNode
acceptsEvent, addIncomingConnection, addOutgoingConnection, getLinkedIncomingNodes, getLinkedOutgoingNodes, getNodeByUniqueId, getNodeContainer, isAutoComplete, isCancelRemainingInstances, linkIncomingConnections, linkOutgoingConnections, removeIncomingConnection, removeOutgoingConnection, setAutoComplete, setCancelRemainingInstances, validateAddIncomingConnection, validateAddOutgoingConnection, validateRemoveIncomingConnection, validateRemoveOutgoingConnectionMethods inherited from class org.jbpm.workflow.core.node.StateBasedNode
addBoundaryEvents, addTimer, getBoundaryEvents, getTimeout, getTimers, removeAllTimers, setBoundaryEvents, setTimeoutMethods inherited from class org.jbpm.workflow.core.impl.ExtendedNodeImpl
containsActions, getActions, getActionTypes, hasActions, setActionsMethods inherited from class org.jbpm.workflow.core.impl.NodeImpl
addConstraint, addInAssociation, addInMapping, addOutAssociation, addOutMapping, clearIncomingConnection, clearOutgoingConnection, getConstraint, getConstraints, getConstraints, getDefaultIncomingConnections, getDefaultOutgoingConnections, getFrom, getId, getInAssociations, getIncomingConnections, getIncomingConnections, getInMapping, getInMappings, getIoSpecification, getMetaData, getMetaData, getMultiInstanceSpecification, getName, getOutAssociations, getOutgoingConnections, getOutgoingConnections, getOutMapping, getOutMappings, getParentContainer, getProcess, getTo, internalGetConstraint, setConstraint, setContext, setId, setIoSpecification, setMetaData, setMetaData, setMultiInstanceSpecification, setName, setParentContainerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.api.definition.process.Node
getNodeTypeMethods inherited from interface org.kie.api.definition.process.WorkflowElement
getUniqueId
-
Constructor Details
-
ForEachNode
public ForEachNode() -
ForEachNode
public ForEachNode(org.kie.api.definition.process.WorkflowElementIdentifier id)
-
-
Method Details
-
getVariableName
- Specified by:
getVariableNamein interfaceEventNodeInterface- Overrides:
getVariableNamein classCompositeNode
-
getVariableType
-
getCompletionAction
-
setCompletionAction
-
getEvaluateExpression
-
getOutputVariableName
-
getOutputVariableType
-
getCompositeNode
-
getForEachSplitNode
-
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(org.kie.api.definition.process.WorkflowElementIdentifier id) - Specified by:
getNodein interfaceorg.kie.api.definition.process.NodeContainer- Overrides:
getNodein classCompositeNode
-
internalGetNode
public org.kie.api.definition.process.Node internalGetNode(org.kie.api.definition.process.WorkflowElementIdentifier 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, org.kie.api.definition.process.WorkflowElementIdentifier inNodeId, String inNodeType) - Overrides:
linkIncomingConnectionsin classCompositeNode
-
linkOutgoingConnections
public void linkOutgoingConnections(org.kie.api.definition.process.WorkflowElementIdentifier outNodeId, String outNodeType, String outType) - Overrides:
linkOutgoingConnectionsin classCompositeNode
-
getLinkedIncomingNode
- Overrides:
getLinkedIncomingNodein classCompositeNode
-
internalGetLinkedIncomingNode
- Overrides:
internalGetLinkedIncomingNodein classCompositeNode
-
getLinkedOutgoingNode
- Overrides:
getLinkedOutgoingNodein classCompositeNode
-
internalGetLinkedOutgoingNode
- Overrides:
internalGetLinkedOutgoingNodein classCompositeNode
-
setInputRef
-
setOutputRef
-
addContextVariable
-
getCollectionExpression
-
setCollectionExpression
-
getOutputCollectionExpression
-
setOutputCollectionExpression
-
isWaitForCompletion
public boolean isWaitForCompletion() -
setWaitForCompletion
public void setWaitForCompletion(boolean waitForCompletion) -
getContext
- Specified by:
getContextin interfaceContextable- Overrides:
getContextin classNodeImpl
-
addContext
- Specified by:
addContextin interfaceContextContainer- Overrides:
addContextin classCompositeContextNode
-
setDefaultContext
- Specified by:
setDefaultContextin interfaceContextContainer- Overrides:
setDefaultContextin classCompositeContextNode
-
getContexts
- Specified by:
getContextsin interfaceContextContainer- Overrides:
getContextsin classCompositeContextNode
-
getContext
- Specified by:
getContextin interfaceContextContainer- Overrides:
getContextin classCompositeContextNode
-
getCompletionConditionExpression
-
setCompletionConditionExpression
-
isSequential
public boolean isSequential() -
setSequential
public void setSequential(boolean sequential)
-