Java Doc for Node.java in  » Workflow-Engines » xflow1.2 » xflow » common » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » xflow1.2 » xflow.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   xflow.common.Node

Node
public class Node implements Serializable(Code)
The Node class represents a node in a directed graph. A directed graph is used to represent a workflow model.


Field Summary
final public static  StringAND
    
final public static  StringCONTAINER
    
final public static  StringEND
    
final public static  StringOR
    
final public static  StringPROCESS
    
final public static  StringSTART
    
static  intcount
    

Constructor Summary
public  Node(String nodeName, String nodeType)
    
public  Node(int nodeId)
    

Method Summary
public  voidaddDestination(Node node, String rule)
     Adds a destination and a rule to evaluate a workflowobject's transition to this destination.
public  voidaddFromNode(Node n)
    
public  booleandetectCycle()
     Detects if the graph contains cycles.
public  voidexpand(int gid, Connection con)
     Recursively loads this node and all nodes reachable from this node from database.
public  StringgetContainee()
     Returns the node's containee graph name.
public  intgetContaineeVersion()
     Returns the node's containee graph version.
public  StringgetDescription()
    
public  VectorgetDestinations()
    
public  VectorgetFromNodes()
    
public  NodegetNode(int nodeId)
    
public  NodegetNode(String name)
    
public  intgetNodeId()
    
public  IntegergetNodeIdAsInteger()
    
public  StringgetNodeName()
    
public  StringgetNodeType()
    
public  VectorgetNodes(String nodeType)
    
public  VectorgetNodes()
    
public  ObjectgetProperty(String key)
    
public  StringgetTimeoutHandler()
    
public  intgetTimeoutMinutes()
    
public  voidprint()
     Prints out node id and description of node.
public  voidsaveDB(int gid, Connection con)
     Recursively saves a node, its destinations and all links between nodes to the database.
public  voidsetContainee(String graphName)
     Sets the node's containee graph name.
public  voidsetContaineeVersion(int i)
     Sets the node's containee graph version.
public  voidsetDescription(String d)
    
public  voidsetProperty(String key, Object value)
    
public  voidsetTimeoutHandler(String handler)
    
public  voidsetTimeoutMinutes(int tout)
    
public  voidtraverse()
     Recursively traverses all the nodes of a graph.

Field Detail
AND
final public static String AND(Code)



CONTAINER
final public static String CONTAINER(Code)



END
final public static String END(Code)



OR
final public static String OR(Code)



PROCESS
final public static String PROCESS(Code)



START
final public static String START(Code)



count
static int count(Code)




Constructor Detail
Node
public Node(String nodeName, String nodeType)(Code)
Constructs a new node
Parameters:
  String - nodeName



Node
public Node(int nodeId)(Code)
Constructs a new node int nodeId




Method Detail
addDestination
public void addDestination(Node node, String rule)(Code)
Adds a destination and a rule to evaluate a workflowobject's transition to this destination.
Parameters:
  Node - node The destination node
Parameters:
  String - rule The rule for reaching this destination



addFromNode
public void addFromNode(Node n)(Code)
Adds a fromNode to this node
Parameters:
  Node - node The from node



detectCycle
public boolean detectCycle()(Code)
Detects if the graph contains cycles.



expand
public void expand(int gid, Connection con)(Code)
Recursively loads this node and all nodes reachable from this node from database. int gid The graph ID



getContainee
public String getContainee()(Code)
Returns the node's containee graph name. Only valid if node's type is CONTAINER containee



getContaineeVersion
public int getContaineeVersion()(Code)
Returns the node's containee graph version. Only valid if node's type is CONTAINER containeeVersion



getDescription
public String getDescription()(Code)
Returns node description description



getDestinations
public Vector getDestinations()(Code)
Vector - this node's list of destinations



getFromNodes
public Vector getFromNodes()(Code)
Vector - this node's list of from nodes



getNode
public Node getNode(int nodeId)(Code)
Finds and returns a node within a graph given a node ID int nodeId The node ID for finding Node the result, null if not found



getNode
public Node getNode(String name)(Code)
Finds and returns a node within a graph given a node name
Parameters:
  String - name The node name for finding Node the result, null if not found



getNodeId
public int getNodeId()(Code)
Returns the node ID int nodeId



getNodeIdAsInteger
public Integer getNodeIdAsInteger()(Code)
Returns the node ID Integer nodeId



getNodeName
public String getNodeName()(Code)
Returns the node name String node name



getNodeType
public String getNodeType()(Code)
Returns the node type String node type



getNodes
public Vector getNodes(String nodeType)(Code)
Vector - all descendant nodes of specified type



getNodes
public Vector getNodes()(Code)
Vector - all descendant nodes



getProperty
public Object getProperty(String key)(Code)
Gets a node's property
Parameters:
  key - the property name the property value



getTimeoutHandler
public String getTimeoutHandler()(Code)
Gets the timeout handler for a Process node the timeout handler name



getTimeoutMinutes
public int getTimeoutMinutes()(Code)
Gets the timeout for a Process node the timeout in minutes



print
public void print()(Code)
Prints out node id and description of node. Useful for debugging.



saveDB
public void saveDB(int gid, Connection con)(Code)
Recursively saves a node, its destinations and all links between nodes to the database. int gid The graph ID



setContainee
public void setContainee(String graphName)(Code)
Sets the node's containee graph name. Only valid if node's type is CONTAINER
Parameters:
  String - grapghName



setContaineeVersion
public void setContaineeVersion(int i)(Code)
Sets the node's containee graph version. Only valid if node's type is CONTAINER int version



setDescription
public void setDescription(String d)(Code)
Sets the node description
Parameters:
  String - d



setProperty
public void setProperty(String key, Object value)(Code)
Sets a property on a node
Parameters:
  key - the property name
Parameters:
  value - the property value - must be serializable



setTimeoutHandler
public void setTimeoutHandler(String handler)(Code)
Sets the timeout handler for a Process node
Parameters:
  timeoutHandler - the name of the timeout handler (a workflow name)



setTimeoutMinutes
public void setTimeoutMinutes(int tout)(Code)
Sets the timeout value for a Process node
Parameters:
  timeoutMinutes - the timeout in minutes



traverse
public void traverse()(Code)
Recursively traverses all the nodes of a graph. Useful for debugging.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.