Java Doc for WorkflowBuilder.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » workflow » impl » 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 » Content Management System » apache lenya 2.0 » org.apache.lenya.workflow.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.lenya.workflow.impl.WorkflowBuilder

WorkflowBuilder
public class WorkflowBuilder extends AbstractLogEnabled (Code)
Utility class to build a workflow schema from a file.


Field Summary
final protected static  StringASSIGNMENT_ELEMENT
    
final protected static  StringCLASS_ATTRIBUTE
    
final protected static  StringCONDITION_ELEMENT
    
final protected static  StringDESTINATION_ATTRIBUTE
    
final protected static  StringEVENT_ELEMENT
    
final protected static  StringID_ATTRIBUTE
    
final protected static  StringINITIAL_ATTRIBUTE
    
final protected static  StringNAME_ATTRIBUTE
    
final protected static  StringSOURCE_ATTRIBUTE
    
final protected static  StringSTATE_ELEMENT
    
final protected static  StringSYNCHRONIZED_ATTRIBUTE
    
final protected static  StringTRANSITION_ELEMENT
    
final protected static  StringVALUE_ATTRIBUTE
    
final protected static  StringVARIABLE_ATTRIBUTE
    
final protected static  StringVARIABLE_ELEMENT
    

Constructor Summary
public  WorkflowBuilder(Logger logger)
     Ctor.

Method Summary
protected  BooleanVariableAssignmentImplbuildAssignment(Element element)
     Builds an assignment object from an XML element.
Parameters:
  element - An XML element.
protected  ConditionbuildCondition(Element element)
     Builds a condition from an XML element.
Parameters:
  element - An XML element.
protected  StringbuildEvent(Element element)
     Builds an event from an XML element.
Parameters:
  element - An XML element.
protected  StringbuildState(Element element)
     Builds a state from an XML element.
Parameters:
  element - An XML element.
protected  TransitionImplbuildTransition(Element element)
     Builds a transition from an XML element.
Parameters:
  element - An XML element.
protected  BooleanVariableImplbuildVariable(Element element)
     Builds a boolean variable from an XML element.
Parameters:
  element - An XML element.
public  WorkflowImplbuildWorkflow(String name, File file)
     Builds a workflow schema from a file.
Parameters:
  name - The workflow name.
Parameters:
  file - The file.
protected  WorkflowImplbuildWorkflow(String name, Document document)
     Builds a workflow object from an XML document.
Parameters:
  name - The workflow name.
Parameters:
  document - The XML document.
protected  booleanisInitialStateElement(Element element)
     Checks if a state element contains the initial state.
Parameters:
  element - An XML element.

Field Detail
ASSIGNMENT_ELEMENT
final protected static String ASSIGNMENT_ELEMENT(Code)



CLASS_ATTRIBUTE
final protected static String CLASS_ATTRIBUTE(Code)



CONDITION_ELEMENT
final protected static String CONDITION_ELEMENT(Code)



DESTINATION_ATTRIBUTE
final protected static String DESTINATION_ATTRIBUTE(Code)



EVENT_ELEMENT
final protected static String EVENT_ELEMENT(Code)



ID_ATTRIBUTE
final protected static String ID_ATTRIBUTE(Code)



INITIAL_ATTRIBUTE
final protected static String INITIAL_ATTRIBUTE(Code)



NAME_ATTRIBUTE
final protected static String NAME_ATTRIBUTE(Code)



SOURCE_ATTRIBUTE
final protected static String SOURCE_ATTRIBUTE(Code)



STATE_ELEMENT
final protected static String STATE_ELEMENT(Code)



SYNCHRONIZED_ATTRIBUTE
final protected static String SYNCHRONIZED_ATTRIBUTE(Code)



TRANSITION_ELEMENT
final protected static String TRANSITION_ELEMENT(Code)



VALUE_ATTRIBUTE
final protected static String VALUE_ATTRIBUTE(Code)



VARIABLE_ATTRIBUTE
final protected static String VARIABLE_ATTRIBUTE(Code)



VARIABLE_ELEMENT
final protected static String VARIABLE_ELEMENT(Code)




Constructor Detail
WorkflowBuilder
public WorkflowBuilder(Logger logger)(Code)
Ctor.
Parameters:
  logger - The logger to use.




Method Detail
buildAssignment
protected BooleanVariableAssignmentImpl buildAssignment(Element element) throws WorkflowException(Code)
Builds an assignment object from an XML element.
Parameters:
  element - An XML element. An assignment object.
throws:
  WorkflowException - when something went wrong.



buildCondition
protected Condition buildCondition(Element element) throws WorkflowException(Code)
Builds a condition from an XML element.
Parameters:
  element - An XML element. A condition.
throws:
  WorkflowException - when something went wrong.



buildEvent
protected String buildEvent(Element element)(Code)
Builds an event from an XML element.
Parameters:
  element - An XML element. An event.



buildState
protected String buildState(Element element)(Code)
Builds a state from an XML element.
Parameters:
  element - An XML element. A state.



buildTransition
protected TransitionImpl buildTransition(Element element) throws WorkflowException(Code)
Builds a transition from an XML element.
Parameters:
  element - An XML element. A transition.
throws:
  WorkflowException - when something went wrong.



buildVariable
protected BooleanVariableImpl buildVariable(Element element)(Code)
Builds a boolean variable from an XML element.
Parameters:
  element - An XML element. A boolean variable.



buildWorkflow
public WorkflowImpl buildWorkflow(String name, File file) throws WorkflowException(Code)
Builds a workflow schema from a file.
Parameters:
  name - The workflow name.
Parameters:
  file - The file. A workflow schema implementation.
throws:
  WorkflowException - if the file does not represent a valid workflowschema.



buildWorkflow
protected WorkflowImpl buildWorkflow(String name, Document document) throws WorkflowException(Code)
Builds a workflow object from an XML document.
Parameters:
  name - The workflow name.
Parameters:
  document - The XML document. A workflow implementation.
throws:
  WorkflowException - when something went wrong.



isInitialStateElement
protected boolean isInitialStateElement(Element element)(Code)
Checks if a state element contains the initial state.
Parameters:
  element - An XML element. A boolean value.



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