Java Doc for ProcessDefinitionDirectoryEJB.java in  » Workflow-Engines » wfmopen-2.1.1 » de » danet » an » workflow » ejbs » admin » 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 » wfmopen 2.1.1 » de.danet.an.workflow.ejbs.admin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.danet.an.workflow.domain.AbstractProcessDefinitionDirectory
      de.danet.an.workflow.ejbs.admin.ProcessDefinitionDirectoryEJB

ProcessDefinitionDirectoryEJB
public class ProcessDefinitionDirectoryEJB extends AbstractProcessDefinitionDirectory implements SessionBean(Code)
The session bean ProcessDefinitionDirectoryEJB manage the process definitions.

Setting log level to DEBUG outputs messages about process definition caching.


Inner Class :public class ProcessDefinitionInfo implements Serializable



Method Summary
public  booleancopyProcessDefinitionToProcess(String procMgr, String procXpdl)
     Copy the given process definition to the first process created using the given process definition that does not have a copy.
public  de.danet.an.workflow.omgcore.WfProcesscreateProcess(String packageId, String processId, WfRequester requester)
     Create a process of the given type with the given requester.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process.
Parameters:
  requester - the requester.
public  WfProcessLocalcreateProcessLocal(String packageId, String processId, WfRequester requester)
     Create a process of the given type with the given requester.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process.
Parameters:
  requester - the requester.
public  voidejbActivate()
     Not called for stateless session bean.
public  voidejbCreate()
     Create an new instance of ProcessDefinitonDirectoryBean.
public  voidejbPassivate()
     Not called for stateless session bean.
public  voidejbRemove()
     A container invokes this method before it ends the life of the session object.
public  ListimportProcessDefinitions(String processDefinitions)
     This operation method import new process definitions from an XPDL description.
Parameters:
  processDefinitions - document describing the process definitions.
public  ListimportProcessDefinitions(byte[] processDefinitions)
     This operation method import new process definitions from an XPDL description.
Parameters:
  processDefinitions - byte array resulting from anInputStream that describes the process definitions.
public  booleanisEnabled(String packageId, String processId)
     This operation method returns true if the process definition with the given ids is enabled.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process.
public  ProcessDefinitionlookupProcessDefinition(String packageId, String processId)
     This method delivers the process definition for the given ids.
public  ProcessDefinitionInfolookupProcessDefinitionInfo(String packageId, String processId)
     This method delivers the process definition for the given ids.
public  booleanprocessDefinitionExists(String packageId, String processId)
     This method checks if a process definiton with the given ids exists in the database.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process.
public  CollectionprocessDefinitions()
     This operation method delivers a collection of all defined process definitions or an empty collection if no process definition are found.
public  ProcessMgrprocessMgr(String packageId, String processId)
     This method delivers the process manager for the given process.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process.
public  voidremoveProcessDefinition(String packageId, String processId)
     This operation method removes a process definition with the given ids from the database.
public  voidsetEnabled(String packageId, String processId, boolean enabled)
     This operation method set the process definition with the given ids as enabled or disabled.
public  voidsetSessionContext(SessionContext context)
     set the session context and get new data source.



Method Detail
copyProcessDefinitionToProcess
public boolean copyProcessDefinitionToProcess(String procMgr, String procXpdl)(Code)
Copy the given process definition to the first process created using the given process definition that does not have a copy.
Parameters:
  procDef - the process definition true if a process was found.



createProcess
public de.danet.an.workflow.omgcore.WfProcess createProcess(String packageId, String processId, WfRequester requester) throws NotEnabledException, InvalidRequesterException, RequesterRequiredException, InvalidKeyException(Code)
Create a process of the given type with the given requester.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process.
Parameters:
  requester - the requester. the new process.
throws:
  NotEnabledException - if processes of this type may not be created.
throws:
  InvalidRequesterException - if the requester is not valid.
throws:
  RequesterRequiredException - if no requester is passed (i.e.parameter is null.
throws:
  InvalidKeyException - if no process definition withthe given ids exists.



createProcessLocal
public WfProcessLocal createProcessLocal(String packageId, String processId, WfRequester requester) throws NotEnabledException, InvalidRequesterException, RequesterRequiredException, InvalidKeyException(Code)
Create a process of the given type with the given requester.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process.
Parameters:
  requester - the requester. the new process.
throws:
  NotEnabledException - if processes of this type may not be created.
throws:
  InvalidRequesterException - if the requester is not valid.
throws:
  RequesterRequiredException - if no requester is passed (i.e.parameter is null.
throws:
  InvalidKeyException - if no process definition withthe given ids exists.



ejbActivate
public void ejbActivate()(Code)
Not called for stateless session bean.



ejbCreate
public void ejbCreate() throws CreateException(Code)
Create an new instance of ProcessDefinitonDirectoryBean.
throws:
  CreateException - Throws if the ProcessDefinitionDirectoryBean can not be created.



ejbPassivate
public void ejbPassivate()(Code)
Not called for stateless session bean.



ejbRemove
public void ejbRemove()(Code)
A container invokes this method before it ends the life of the session object. This happens as a result of a client's invoking a remove operation, or when a container decides to terminate the session object after a timeout.
See Also:   javax.ejb.SessionBean



importProcessDefinitions
public List importProcessDefinitions(String processDefinitions) throws ImportException(Code)
This operation method import new process definitions from an XPDL description.
Parameters:
  processDefinitions - document describing the process definitions. list of prioritized message de.danet.an.workflow.api.PrioritizedMessage PrioritizedMessage
throws:
  ImportException - if the input is not a correct.



importProcessDefinitions
public List importProcessDefinitions(byte[] processDefinitions) throws ImportException(Code)
This operation method import new process definitions from an XPDL description.
Parameters:
  processDefinitions - byte array resulting from anInputStream that describes the process definitions. list of prioritized message de.danet.an.workflow.api.PrioritizedMessage PrioritizedMessage
throws:
  ImportException - if the input is not a correct.



isEnabled
public boolean isEnabled(String packageId, String processId) throws InvalidKeyException(Code)
This operation method returns true if the process definition with the given ids is enabled.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process. true if the process definition is enabled.
throws:
  InvalidKeyException - if no process definition withthe given ids exists.



lookupProcessDefinition
public ProcessDefinition lookupProcessDefinition(String packageId, String processId) throws InvalidKeyException(Code)
This method delivers the process definition for the given ids. If no process definition with the ids exist, it throws an IllegalArgumentException.
Parameters:
  packageId - the package id
Parameters:
  processId - the process definition id the found ProcessDefinition object
throws:
  InvalidKeyException - if no process definition withthe given ids exists.



lookupProcessDefinitionInfo
public ProcessDefinitionInfo lookupProcessDefinitionInfo(String packageId, String processId) throws InvalidKeyException(Code)
This method delivers the process definition for the given ids. If no process definition with the ids exist, it throws an IllegalArgumentException.
Parameters:
  packageId - the package id
Parameters:
  processId - the process definition id the found ProcessDefinition object
throws:
  InvalidKeyException - if no process definition withthe given ids exists.



processDefinitionExists
public boolean processDefinitionExists(String packageId, String processId)(Code)
This method checks if a process definiton with the given ids exists in the database.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process. true if a process definition with the givenid exists, otherwise false.



processDefinitions
public Collection processDefinitions()(Code)
This operation method delivers a collection of all defined process definitions or an empty collection if no process definition are found. collection



processMgr
public ProcessMgr processMgr(String packageId, String processId) throws InvalidKeyException(Code)
This method delivers the process manager for the given process.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process. the process manager for the process type.
throws:
  InvalidKeyException - if no process definition withthe given ids exists.



removeProcessDefinition
public void removeProcessDefinition(String packageId, String processId) throws InvalidKeyException(Code)
This operation method removes a process definition with the given ids from the database. If called for a definition that does not exist, it does nothing.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process.
throws:
  InvalidKeyException - if packageId or processId are(formally) invalid ids.



setEnabled
public void setEnabled(String packageId, String processId, boolean enabled) throws InvalidKeyException(Code)
This operation method set the process definition with the given ids as enabled or disabled.
Parameters:
  packageId - Id attribute of the process package.
Parameters:
  processId - Id attribute of the process.
Parameters:
  enabled - enable the process definition or not.
throws:
  InvalidKeyException - if no process definition withthe given ids exists.



setSessionContext
public void setSessionContext(SessionContext context) throws EJBException(Code)
set the session context and get new data source.
Parameters:
  context - the given session context.
throws:
  EJBException - if problem encountered with getting the data source.



Methods inherited from de.danet.an.workflow.domain.AbstractProcessDefinitionDirectory
public static List parseProcessDefinitions(InputSource toParse) throws ImportException(Code)(Java Doc)

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.