|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISplit
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 | |
---|---|
IConstraint |
getConstraint(IConnection connection)
Returns the corresponding constraint of the given outgoing connection |
Map |
getConstraints()
Returns the constraints of the split. |
IConnection |
getFrom()
Convenience method for returning the incoming connection of the split. |
int |
getType()
Returns the type of the split. |
void |
setConstraint(IConnection connection,
IConstraint 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.INode |
---|
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
IllegalArgumentException
- if type is nullint getType()
IConstraint getConstraint(IConnection connection)
connection
- the outgoing connection
IllegalArgumentException
- if connection
is
not a valid outgoing connection for this split
UnsupportedOperationException
- if this method is called
on a split with split type of something else than XOR or ORvoid setConstraint(IConnection connection, IConstraint constraint)
connection
- the outgoing connectionconstraint
- the constraint
IllegalArgumentException
- if connection
is
not a valid outgoing connection for this split
UnsupportedOperationException
- if the split type is
something else than XOR or ORMap getConstraints()
UnsupportedOperationException
- if this method is called
on a split with split type of something else than XOR or ORIConnection getFrom()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |