站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

IJoin (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.ruleflow.core
Interface IJoin

All Superinterfaces:
INode, Serializable
All Known Implementing Classes:
Join

public interface IJoin
extends INode

Represents a join node in a RuleFlow. A join is a special kind of node with multiple incoming connections and one outgoing connection. The type of join decides when the outgoing connections will be triggered (based on which incoming connections have been triggered).

Author:
Kris Verlaenen

Field Summary
static int TYPE_AND
          The outgoing connection of a join of this type is triggered when all its incoming connections have been triggered.
static int TYPE_UNDEFINED
           
static int TYPE_XOR
          The outgoing connection of a join of this type is triggered when one of its incoming connections has been triggered.
 
Method Summary
 IConnection getTo()
          Convenience method for returning the outgoing connection of the join
 int getType()
          Returns the type of the join.
 void setType(int type)
          Sets the type of the join.
 
Methods inherited from interface org.drools.ruleflow.core.INode
getId, getIncomingConnections, getName, getOutgoingConnections, setId, setName
 

Field Detail

TYPE_UNDEFINED

static final int TYPE_UNDEFINED
See Also:
Constant Field Values

TYPE_AND

static final int TYPE_AND
The outgoing connection of a join of this type is triggered when all its incoming connections have been triggered.

See Also:
Constant Field Values

TYPE_XOR

static final int TYPE_XOR
The outgoing connection of a join of this type is triggered when one of its incoming connections has been triggered.

See Also:
Constant Field Values
Method Detail

setType

void setType(int type)
Sets the type of the join.

Parameters:
type - The type of the join
Throws:
IllegalArgumentException - if type is null

getType

int getType()
Returns the type of the join.

Returns:
the type of the join.

getTo

IConnection getTo()
Convenience method for returning the outgoing connection of the join

Returns:
the outgoing connection of the join


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.