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

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


org.drools.ruleflow.core
Interface IRuleFlowProcess

All Superinterfaces:
IProcess
All Known Implementing Classes:
RuleFlowProcess

public interface IRuleFlowProcess
extends IProcess

Represents a RuleFlow process.

Author:
Kris Verlaenen

Method Summary
 void addNode(INode node)
          Method for adding a node to this RuleFlow process.
 INode getNode(long id)
          Returns the node with the given id
 INode[] getNodes()
          Returns the nodes of this RuleFlow process.
 IStartNode getStart()
          Returns the start node of this RuleFlow process.
 String[] getVariableNames()
          Returns the names of the global variables used in this RuleFlow process
 List getVariables()
          Returns the global variables used in this RuleFlow process
 void removeNode(INode node)
          Method for removing a node from this RuleFlow process
 void setVariables(List variables)
          Sets the global variables used in this RuleFlow process
 
Methods inherited from interface org.drools.ruleflow.common.core.IProcess
getId, getName, getType, getVersion, setId, setName, setType, setVersion
 

Method Detail

getStart

IStartNode getStart()
Returns the start node of this RuleFlow process.

Returns:
the start node

getNodes

INode[] getNodes()
Returns the nodes of this RuleFlow process.

Returns:
the nodes of this RuleFlow process

getNode

INode getNode(long id)
Returns the node with the given id

Parameters:
id - the node id
Returns:
the node with the given id
Throws:
IllegalArgumentException - if an unknown id is passed

addNode

void addNode(INode node)
Method for adding a node to this RuleFlow process. Note that the node will get an id unique for this process.

Parameters:
node - the node to be added
Throws:
IllegalArgumentException - if node is null

removeNode

void removeNode(INode node)
Method for removing a node from this RuleFlow process

Parameters:
node - the node to be removed
Throws:
IllegalArgumentException - if node is null or unknown

getVariables

List getVariables()
Returns the global variables used in this RuleFlow process

Returns:
a list of variables of this RuleFlow process

setVariables

void setVariables(List variables)
Sets the global variables used in this RuleFlow process

Parameters:
variables - the variables
Throws:
IllegalArugmentException - if variables is null

getVariableNames

String[] getVariableNames()
Returns the names of the global variables used in this RuleFlow process

Returns:
the variable names of this RuleFlow process


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