Package org.jbpm.workflow.core.node
Class Split
java.lang.Object
org.jbpm.workflow.core.impl.NodeImpl
org.jbpm.workflow.core.node.Split
- All Implemented Interfaces:
Serializable,Mappable,Contextable,ContextResolver,Node,Constrainable,org.kie.api.definition.process.Node,org.kie.api.definition.process.WorkflowElement,KogitoNode
Default implementation of a split node.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAll outgoing connections of a split of this type are triggered when its incoming connection has been triggered.static final intOne or multiple outgoing connections of a split of this type are triggered when its incoming connection has been triggered.static final intstatic final intstatic final intExactly one outgoing connection of a split of this type is triggered when its incoming connection has been triggered.Fields 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 TypeMethodDescriptiongetConstraints(org.kie.api.definition.process.Connection connection) intgetType()voidbooleanisDefault(org.kie.api.definition.process.Connection connection) voidremoveConstraint(org.kie.api.definition.process.Connection connection) voidremoveOutgoingConnection(String type, org.kie.api.definition.process.Connection connection) voidsetConstraint(org.kie.api.definition.process.Connection connection, Constraint constraint) voidsetType(int type) voidvalidateAddIncomingConnection(String type, org.kie.api.definition.process.Connection connection) voidvalidateAddOutgoingConnection(String type, org.kie.api.definition.process.Connection connection) Methods inherited from class org.jbpm.workflow.core.impl.NodeImpl
addConstraint, addInAssociation, addIncomingConnection, addInMapping, addOutAssociation, addOutgoingConnection, addOutMapping, clearIncomingConnection, clearOutgoingConnection, getConstraint, getConstraints, getContext, getDefaultIncomingConnections, getDefaultOutgoingConnections, getFrom, getId, getInAssociations, getIncomingConnections, getIncomingConnections, getInMapping, getInMappings, getIoSpecification, getMetaData, getMetaData, getMultiInstanceSpecification, getName, getNodeContainer, getOutAssociations, getOutgoingConnections, getOutgoingConnections, getOutMapping, getOutMappings, getParentContainer, getProcess, getTo, internalGetConstraint, removeIncomingConnection, resolveContext, setContext, setId, setIoSpecification, setMetaData, setMetaData, setMultiInstanceSpecification, setName, setParentContainer, validateRemoveIncomingConnection, validateRemoveOutgoingConnectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jbpm.workflow.core.node.Constrainable
addConstraintMethods inherited from interface org.kie.api.definition.process.Node
getNodeTypeMethods inherited from interface org.kie.api.definition.process.WorkflowElement
getUniqueId
-
Field Details
-
TYPE_UNDEFINED
public static final int TYPE_UNDEFINED- See Also:
-
TYPE_AND
public static final int TYPE_ANDAll outgoing connections of a split of this type are triggered when its incoming connection has been triggered. A split of this type should have no constraints linked to any of its outgoing connections.- See Also:
-
TYPE_XOR
public static final int TYPE_XORExactly one outgoing connection of a split of this type is triggered when its incoming connection has been triggered. Which connection is based on the constraints associated with each of the connections: the connection with the highest priority whose constraint is satisfied is triggered.- See Also:
-
TYPE_OR
public static final int TYPE_OROne or multiple outgoing connections of a split of this type are triggered when its incoming connection has been triggered. Which connections is based on the constraints associated with each of the connections: all connections whose constraint is satisfied are triggered.- See Also:
-
TYPE_XAND
public static final int TYPE_XAND- See Also:
-
-
Constructor Details
-
Split
public Split() -
Split
public Split(int type)
-
-
Method Details
-
setType
public void setType(int type) -
getType
public int getType() -
isDefault
public boolean isDefault(org.kie.api.definition.process.Connection connection) -
getConstraints
- Overrides:
getConstraintsin classNodeImpl
-
setConstraint
public void setConstraint(org.kie.api.definition.process.Connection connection, Constraint constraint) - Overrides:
setConstraintin classNodeImpl
-
validateAddIncomingConnection
public void validateAddIncomingConnection(String type, org.kie.api.definition.process.Connection connection) - Overrides:
validateAddIncomingConnectionin classNodeImpl
-
validateAddOutgoingConnection
public void validateAddOutgoingConnection(String type, org.kie.api.definition.process.Connection connection) - Overrides:
validateAddOutgoingConnectionin classNodeImpl
-
removeOutgoingConnection
public void removeOutgoingConnection(String type, org.kie.api.definition.process.Connection connection) - Specified by:
removeOutgoingConnectionin interfaceNode- Overrides:
removeOutgoingConnectionin classNodeImpl
-
removeConstraint
public void removeConstraint(org.kie.api.definition.process.Connection connection) -
internalRemoveConstraint
-