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

public class Split extends NodeImpl implements Constrainable
Default implementation of a split node.
See Also:
  • Field Details

    • TYPE_UNDEFINED

      public static final int TYPE_UNDEFINED
      See Also:
    • TYPE_AND

      public static final int TYPE_AND
      All 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_XOR
      Exactly 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_OR
      One 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

      public Collection<Constraint> getConstraints(org.kie.api.definition.process.Connection connection)
      Overrides:
      getConstraints in class NodeImpl
    • setConstraint

      public void setConstraint(org.kie.api.definition.process.Connection connection, Constraint constraint)
      Overrides:
      setConstraint in class NodeImpl
    • validateAddIncomingConnection

      public void validateAddIncomingConnection(String type, org.kie.api.definition.process.Connection connection)
      Overrides:
      validateAddIncomingConnection in class NodeImpl
    • validateAddOutgoingConnection

      public void validateAddOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
      Overrides:
      validateAddOutgoingConnection in class NodeImpl
    • removeOutgoingConnection

      public void removeOutgoingConnection(String type, org.kie.api.definition.process.Connection connection)
      Specified by:
      removeOutgoingConnection in interface Node
      Overrides:
      removeOutgoingConnection in class NodeImpl
    • removeConstraint

      public void removeConstraint(org.kie.api.definition.process.Connection connection)
    • internalRemoveConstraint

      public void internalRemoveConstraint(ConnectionRef ref)