| |
|
| org.drools.ruleflow.core.Split
All known Subclasses: org.drools.ruleflow.core.impl.SplitImpl,
Split | public interface Split extends Node(Code) | | Represents a split node in a RuleFlow.
A split is a special kind of node with one incoming connection and
multiple outgoing connections. The type of split decides which of the
outgoing connections will be triggered when the incoming connection
has been triggered.
author: Kris Verlaenen |
Field Summary | |
int | TYPE_AND All outgoing connections of a split of this type are triggered
when its incoming connection has been triggered. | int | TYPE_OR One or multiple outgoing connections of a split of this type are
triggered when its incoming connection has been triggered. | int | TYPE_UNDEFINED | int | TYPE_XOR Exactly one outgoing connection of a split of this type is triggered
when its incoming connection has been triggered. |
TYPE_AND | int TYPE_AND(Code) | | 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.
|
TYPE_OR | int TYPE_OR(Code) | | 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.
|
TYPE_UNDEFINED | int TYPE_UNDEFINED(Code) | | |
TYPE_XOR | int TYPE_XOR(Code) | | 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.
|
getConstraint | Constraint getConstraint(Connection connection)(Code) | | Returns the corresponding constraint of the given outgoing connection
Parameters: connection - the outgoing connection the corresponding constraint of the given outgoing connection throws: IllegalArgumentException - if connection isnot a valid outgoing connection for this split throws: UnsupportedOperationException - if this method is calledon a split with split type of something else than XOR or OR |
getConstraints | Map getConstraints()(Code) | | Returns the constraints of the split.
a map containing for each connection the constraint associated withthat connection, or null if no constraint has been specified yet for that connection throws: UnsupportedOperationException - if this method is calledon a split with split type of something else than XOR or OR |
getFrom | Connection getFrom()(Code) | | Convenience method for returning the incoming connection of the split.
the incoming connection ot the split. |
getType | int getType()(Code) | | Returns the type of the split.
the type of the split. |
setConstraint | void setConstraint(Connection connection, Constraint constraint)(Code) | | Method for setting a constraint corresponding to the given
outgoing connection
Parameters: connection - the outgoing connection Parameters: constraint - the constraint throws: IllegalArgumentException - if connection isnot a valid outgoing connection for this split throws: UnsupportedOperationException - if the split type is something else than XOR or OR |
setType | void setType(int type)(Code) | | Sets the type of the split.
Parameters: type - The type of the split throws: IllegalArgumentException - if type is null |
|
|
|