|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Split
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.
Field Summary | |
---|---|
static int |
TYPE_AND
All outgoing connections of a split of this type are triggered when its incoming connection has been triggered. |
static int |
TYPE_OR
One or multiple outgoing connections of a split of this type are triggered when its incoming connection has been triggered. |
static int |
TYPE_UNDEFINED
|
static int |
TYPE_XOR
Exactly one outgoing connection of a split of this type is triggered when its incoming connection has been triggered. |
Method Summary | |
---|---|
Constraint |
getConstraint(Connection connection)
Returns the corresponding constraint of the given outgoing connection |
java.util.Map |
getConstraints()
Returns the constraints of the split. |
Connection |
getFrom()
Convenience method for returning the incoming connection of the split. |
int |
getType()
Returns the type of the split. |
void |
setConstraint(Connection connection,
Constraint constraint)
Method for setting a constraint corresponding to the given outgoing connection |
void |
setType(int type)
Sets the type of the split. |
Methods inherited from interface org.drools.ruleflow.core.Node |
---|
getId, getIncomingConnections, getName, getOutgoingConnections, setId, setName |
Field Detail |
---|
static final int TYPE_UNDEFINED
static final int TYPE_AND
static final int TYPE_XOR
static final int TYPE_OR
Method Detail |
---|
void setType(int type)
type
- The type of the split
java.lang.IllegalArgumentException
- if type is nullint getType()
Constraint getConstraint(Connection connection)
connection
- the outgoing connection
java.lang.IllegalArgumentException
- if connection
is
not a valid outgoing connection for this split
java.lang.UnsupportedOperationException
- if this method is called
on a split with split type of something else than XOR or ORvoid setConstraint(Connection connection, Constraint constraint)
connection
- the outgoing connectionconstraint
- the constraint
java.lang.IllegalArgumentException
- if connection
is
not a valid outgoing connection for this split
java.lang.UnsupportedOperationException
- if the split type is
something else than XOR or ORjava.util.Map getConstraints()
java.lang.UnsupportedOperationException
- if this method is called
on a split with split type of something else than XOR or ORConnection getFrom()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |