|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xflow.common.Node
The Node class represents a node in a directed graph. A directed graph is used to represent a workflow model.
Field Summary | |
static java.lang.String |
AND
|
static java.lang.String |
CONTAINER
|
static java.lang.String |
END
|
static java.lang.String |
OR
|
static java.lang.String |
PROCESS
|
static java.lang.String |
START
|
Constructor Summary | |
Node(int nodeId)
Constructs a new node |
|
Node(java.lang.String nodeName,
java.lang.String nodeType)
Constructs a new node |
Method Summary | |
void |
addDestination(xflow.common.Node node,
java.lang.String rule)
Adds a destination and a rule to evaluate a workflowobject's transition to this destination. |
void |
addFromNode(xflow.common.Node n)
Adds a fromNode to this node |
boolean |
detectCycle()
Detects if the graph contains cycles. |
void |
expand(int gid,
java.sql.Connection con)
Recursively loads this node and all nodes reachable from this node from database. |
java.lang.String |
getContainee()
Returns the node's containee graph name. |
int |
getContaineeVersion()
Returns the node's containee graph version. |
java.lang.String |
getDescription()
Returns node description |
java.util.Vector |
getDestinations()
|
java.util.Vector |
getFromNodes()
|
xflow.common.Node |
getNode(int nodeId)
Finds and returns a node within a graph given a node ID |
xflow.common.Node |
getNode(java.lang.String name)
Finds and returns a node within a graph given a node name |
int |
getNodeId()
Returns the node ID |
java.lang.Integer |
getNodeIdAsInteger()
Returns the node ID |
java.lang.String |
getNodeName()
Returns the node name |
java.util.Vector |
getNodes()
|
java.util.Vector |
getNodes(java.lang.String nodeType)
|
java.lang.String |
getNodeType()
Returns the node type |
java.lang.Object |
getProperty(java.lang.String key)
Gets a node's property |
java.lang.String |
getTimeoutHandler()
Gets the timeout handler for a Process node |
int |
getTimeoutMinutes()
Gets the timeout for a Process node |
void |
print()
Prints out node id and description of node. |
void |
saveDB(int gid,
java.sql.Connection con)
Recursively saves a node, its destinations and all links between nodes to the database. |
void |
setContainee(java.lang.String graphName)
Sets the node's containee graph name. |
void |
setContaineeVersion(int i)
Sets the node's containee graph version. |
void |
setDescription(java.lang.String d)
Sets the node description |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets a property on a node |
void |
setTimeoutHandler(java.lang.String handler)
Sets the timeout handler for a Process node |
void |
setTimeoutMinutes(int tout)
Sets the timeout value for a Process node |
void |
traverse()
Recursively traverses all the nodes of a graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROCESS
public static final java.lang.String AND
public static final java.lang.String OR
public static final java.lang.String START
public static final java.lang.String END
public static final java.lang.String CONTAINER
Constructor Detail |
public Node(java.lang.String nodeName, java.lang.String nodeType)
public Node(int nodeId)
Method Detail |
public int getNodeId()
public java.lang.Integer getNodeIdAsInteger()
public java.lang.String getNodeName()
public java.lang.String getNodeType()
public java.lang.String getDescription()
public void setDescription(java.lang.String d)
public java.lang.String getContainee()
public void setContainee(java.lang.String graphName)
public int getContaineeVersion()
public void setContaineeVersion(int i)
public void expand(int gid, java.sql.Connection con)
public void saveDB(int gid, java.sql.Connection con)
public boolean detectCycle()
public void traverse()
public void print()
public xflow.common.Node getNode(int nodeId)
public xflow.common.Node getNode(java.lang.String name)
public void addDestination(xflow.common.Node node, java.lang.String rule)
public java.util.Vector getDestinations()
public void addFromNode(xflow.common.Node n)
public java.util.Vector getFromNodes()
public java.util.Vector getNodes(java.lang.String nodeType)
public java.util.Vector getNodes()
public void setProperty(java.lang.String key, java.lang.Object value)
key
- the property namevalue
- the property value - must be serializablepublic java.lang.Object getProperty(java.lang.String key)
key
- the property name
public void setTimeoutMinutes(int tout)
public int getTimeoutMinutes()
public void setTimeoutHandler(java.lang.String handler)
public java.lang.String getTimeoutHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |