Java Doc for WorkflowEngineEJB.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.ejbs.admin.WorkflowEngineEJB

WorkflowEngineEJB
public class WorkflowEngineEJB implements SessionBean(Code)
The session bean WorkflowEngineEJB gives access to the workflow engine. The remote and home interfaces of this EJB are declared in package de.danet.an.workflow.ejbs.util as de.danet.an.workflow.ejbs.WorkflowEngineWorkflowEngine and de.danet.an.workflow.ejbs.WorkflowEngineHomeWorkflowEngineHome because the interfaces are needed in all sub-packages and putting the interfaces in a subpackage will result in cyclic dependencies. Implementation is in de.danet.an.workflow.ejbs.admin this package , however, because it relies on other EJBs from this package.

Setting log level to debug for this class results in progress messages during event handling, adds stack traces to warning messages and logs the event queue data delivered to clients.





Method Summary
public  WfResourceasResource(Principal principal)
     Return the resource associated with the given principal.
public  Collectionauthorizers(WfResource resource)
     Return the authorizers for the given resource.
public  Principalcaller()
     Returns the user currently authenticated as a Principal.
public  Configurationconfiguration()
     Return the workflow engine configuration.
public  voiddoAbandon(Activity act, ExceptionResult result)
     Abandon an activity in a new transaction, i.e.
public  voiddoAbandonLocal(Activity act, ExceptionResult result)
     Abandon an activity in a new transaction, i.e.
public  voiddoFinish(WfActivity act, Map result)
     Set a result and complete an activity in a new transaction, i.e.
public  voiddoFinishLocal(WfActivity act, Map result)
     Set a result and complete an activity in a new transaction, i.e.
public  InvocationResultdoInvokeLocal(ExtApplication appl, Activity act, Map params)
     Invoke a tool in a new transaction, i.e.
public  voiddoTerminateLocal(ExtApplication appl, Activity act)
     Terminate a tool in a new transaction, i.e.
public  voidejbActivate()
     Not called for stateless EJB.
public  voidejbCreate()
     Create a new instance of ProcessDefinitonDirectoryBean.
public  voidejbPassivate()
     Not called for stateless EJB.
public  voidejbRemove()
     A container invokes this method before it ends the life of the session object.
public  Object[]eventServiceData()
     Return the event service connection data.
public  ObjectexecuteBatch(Batch batch)
     Execute a batch in the context of the workflow service i.e.
public  Collectionhistory(WfExecutionObject execObj)
     Returns a collection of WfAuditEvents associated with this process describing its history.
public  booleanisMemberOfWorkItems(WfResource resource, WfAssignment assignment)
     Find out if a given assignment belongs to the work items assigned to a particular resource.
Parameters:
  resource - the resource.
Parameters:
  assignment - the assignment in question.
public  CollectionknownResources()
     Return the known resources.
public  de.danet.an.workflow.api.ProcessDefinitionDirectoryprocessDefinitionDirectory()
     Return the process definition directory of the workflow engine.
public  ProcessDirectoryprocessDirectory()
     Return the process directory of the workflow engine.
public  ExtProcessDirectoryLocalprocessDirectoryLocal()
     Return the process directory of the workflow engine.
public  voidprocessEvent(WfAuditEvent event)
     Process the given event.
public  voidremoveAuditEvents(String procKey)
     Clears the history of the process with the given key.
public  ResourceAssignmentServiceresourceAssignmentService()
     Return the resource assignment service used by the workflow engine.
public  WfResourceresourceByKey(String key)
     Return the resource associated with the given key.
public  voidsetSessionContext(SessionContext context)
     Set the session context and get new data source.
public  CollectionworkItems(WfResource resource)
     Return the assignments of a given resource.
Parameters:
  resource - the resource.



Method Detail
asResource
public WfResource asResource(Principal principal) throws RemoteException, InvalidKeyException(Code)
Return the resource associated with the given principal.
Parameters:
  principal - the principal the resource
throws:
  RemoteException - if a communication error occurs.
throws:
  InvalidKeyException - if there is no known resourceassociated with this principal



authorizers
public Collection authorizers(WfResource resource) throws RemoteException(Code)
Return the authorizers for the given resource.
Parameters:
  resource - the resource the authorizers
throws:
  RemoteException - if a communication error occurs.



caller
public Principal caller()(Code)
Returns the user currently authenticated as a Principal. the caller principal.



configuration
public Configuration configuration()(Code)
Return the workflow engine configuration. the configuration.



doAbandon
public void doAbandon(Activity act, ExceptionResult result) throws TransitionNotAllowedException(Code)
Abandon an activity in a new transaction, i.e. the transaction attribute of this method is set to RequiresNew.


Parameters:
  act - the WfActivity
Parameters:
  result - the exception result to signal
throws:
  TransitionNotAllowedException - see de.danet.an.workflow.api.Activity.abandon(String)Activity.abandon()




doAbandonLocal
public void doAbandonLocal(Activity act, ExceptionResult result) throws TransitionNotAllowedException(Code)
Abandon an activity in a new transaction, i.e. the transaction attribute of this method is set to RequiresNew.


Parameters:
  act - the WfActivity
Parameters:
  result - the exception result to signal
throws:
  TransitionNotAllowedException - see de.danet.an.workflow.api.Activity.abandon(String)Activity.abandon()




doFinish
public void doFinish(WfActivity act, Map result) throws InvalidDataException, CannotCompleteException(Code)
Set a result and complete an activity in a new transaction, i.e. the transaction attribute of this method is set to RequiresNew.


Parameters:
  act - the WfActivity
Parameters:
  result - the tool's result data. If null donot call setResult.
throws:
  InvalidDataException - see de.danet.an.workflow.omgcore.WfActivity.setResultWfActivity.setResult(...)
throws:
  CannotCompleteException - see de.danet.an.workflow.omgcore.WfActivity.completeWfActivity.complete()




doFinishLocal
public void doFinishLocal(WfActivity act, Map result) throws InvalidDataException, CannotCompleteException(Code)
Set a result and complete an activity in a new transaction, i.e. the transaction attribute of this method is set to RequiresNew.


Parameters:
  act - the WfActivity
Parameters:
  result - the tool's result data. If null donot call setResult.
throws:
  InvalidDataException - see de.danet.an.workflow.omgcore.WfActivity.setResultWfActivity.setResult(...)
throws:
  CannotCompleteException - see de.danet.an.workflow.omgcore.WfActivity.completeWfActivity.complete()




doInvokeLocal
public InvocationResult doInvokeLocal(ExtApplication appl, Activity act, Map params) throws ToolInvocationException(Code)
Invoke a tool in a new transaction, i.e. the transaction attribute of this method is set to RequiresNew.

The implementation simply calls appl.invoke(act, params).
Parameters:
  appl - the application description of the tool
Parameters:
  act - the WfActivity
Parameters:
  params - the invocation parameters the invocation result
throws:
  ToolInvocationException - if execution is not possible




doTerminateLocal
public void doTerminateLocal(ExtApplication appl, Activity act) throws ApplicationNotStoppedException(Code)
Terminate a tool in a new transaction, i.e. the transaction attribute of this method is set to RequiresNew.

The implementation simply calls appl.terminate(act).
Parameters:
  appl - the application description of the tool
Parameters:
  act - the WfActivity
throws:
  ApplicationNotStoppedException - if termination is notpossible




ejbActivate
public void ejbActivate()(Code)
Not called for stateless EJB.



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



ejbPassivate
public void ejbPassivate()(Code)
Not called for stateless EJB.



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



eventServiceData
public Object[] eventServiceData()(Code)
Return the event service connection data. Used by StandardWorkflowService only. This allows to configure the data needed by the client in the server environment and thus eases client configuration. the data.



executeBatch
public Object executeBatch(Batch batch) throws InvocationTargetException(Code)
Execute a batch in the context of the workflow service i.e. on the server.


Parameters:
  batch - the batch to be executed. the result.
throws:
  InvocationTargetException - wraps exceptions as definedby the implementing class




history
public Collection history(WfExecutionObject execObj) throws HistoryNotAvailableException(Code)
Returns a collection of WfAuditEvents associated with this process describing its history.
Parameters:
  execObj - the execution object for which to select the audit events the collection of audit events
throws:
  HistoryNotAvailableException - in case the history is not available for any reason



isMemberOfWorkItems
public boolean isMemberOfWorkItems(WfResource resource, WfAssignment assignment) throws NoSuchResourceException(Code)
Find out if a given assignment belongs to the work items assigned to a particular resource.
Parameters:
  resource - the resource.
Parameters:
  assignment - the assignment in question. true if the assignment belongs to the work items of the resource.
throws:
  RemoteException - if a system-level error occurs.
throws:
  NoSuchResourceException - if the resource is invalid.As the environment is a concurrent multi user environment, WfResource objects may become invalid.



knownResources
public Collection knownResources() throws RemoteException(Code)
Return the known resources. the known resources
throws:
  RemoteException - if a communication error occurs.



processDefinitionDirectory
public de.danet.an.workflow.api.ProcessDefinitionDirectory processDefinitionDirectory()(Code)
Return the process definition directory of the workflow engine. the process definition directory.



processDirectory
public ProcessDirectory processDirectory()(Code)
Return the process directory of the workflow engine. the process directory.



processDirectoryLocal
public ExtProcessDirectoryLocal processDirectoryLocal()(Code)
Return the process directory of the workflow engine. the process directory.



processEvent
public void processEvent(WfAuditEvent event) throws RedeliveryRequiredException(Code)
Process the given event. The transaction attribute of this method is set to RequiresNew, so processing will be done in its own transaction.
Parameters:
  event - the event.
throws:
  RedeliveryRequiredException - if the event should be redelivered



removeAuditEvents
public void removeAuditEvents(String procKey)(Code)
Clears the history of the process with the given key.
Parameters:
  procKey - the process key.



resourceAssignmentService
public ResourceAssignmentService resourceAssignmentService()(Code)
Return the resource assignment service used by the workflow engine. the resource assignment service



resourceByKey
public WfResource resourceByKey(String key) throws InvalidKeyException, RemoteException(Code)
Return the resource associated with the given key.
Parameters:
  key - the key the resource
throws:
  InvalidKeyException - if there is no known resourcewith this key
throws:
  RemoteException - if a communication error occurs.



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.



workItems
public Collection workItems(WfResource resource) throws NoSuchResourceException(Code)
Return the assignments of a given resource.
Parameters:
  resource - the resource. the collection of assigned work items (instances ofde.danet.an.workflow.omgcore.WfAssignmentWfAssignment).
throws:
  RemoteException - if a system-level error occurs.
throws:
  NoSuchResourceException - if the resource is invalid.As the environment is a concurrent multi user environment, WfResource objects may become invalid.



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.