Java Doc for WorkflowManager.java in  » Content-Management-System » daisy » org » outerj » daisy » workflow » 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 » daisy » org.outerj.daisy.workflow 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.outerj.daisy.workflow.WorkflowManager

All known Subclasses:   org.outerj.daisy.workflow.clientimpl.RemoteWorkflowManager,  org.outerj.daisy.workflow.serverimpl.WorkflowManagerImpl,
WorkflowManager
public interface WorkflowManager (Code)
The main interface for accessing Daisy's workflow functionality.

This is an optional repository extension component.

All workflow operations are performed through this interface. The returned objects are pure value objects (data snapshots), with no active behaviour.

The WorkflowManager is obtained from the org.outerj.daisy.repository.Repository Repository as follows:

 WorkflowManager wfManager = (WorkflowManager)repository.getExtension("WorkflowManager");
 

In the remote repository API, the WorkflowManager extension can be registered as follows:

 RemoteRepositoryManager repositoryManager = ...;
 repositoryManager.registerExtension("WorkflowManager",
 new Packages.org.outerj.daisy.workflow.clientimpl.RemoteWorkflowManagerProvider());
 




Method Summary
 WfTaskassignTask(String taskId, WfActorKey actor, boolean overwriteSwimlane, Locale locale)
     Assigns (possibly re-assigns) a task to the given actor (user or pools).
 voiddeleteProcess(String processInstanceId)
    
 voiddeleteProcessDefinition(String processDefinitionId)
     Deletes a workflow definition.
 WfProcessDefinitiondeployProcessDefinition(InputStream is, String mimeType, Locale locale)
     Defines (deploys) a new workflow definition.
 WfTaskendTask(String taskId, TaskUpdateData taskUpdateData, String transitionName, Locale locale)
    
 List<WfProcessDefinition>getAllLatestProcessDefinitions(Locale locale)
     Gets a list of the latest versions of all workflow definitions defined in the system.
 List<WfProcessDefinition>getAllProcessDefinitions(Locale locale)
     Gets a list of all workflow definitions (in all versions) defined in the system.
 List<WfVariable>getInitialVariables(String processDefinitionId, WfVersionKey contextDocument)
     Calculates initial values for start-state task variables.
 WfProcessDefinitiongetLatestProcessDefinition(String workflowName, Locale locale)
    
 List<WfTask>getMyTasks(Locale locale)
     Gets the open tasks for the current user.
 WfPoolManagergetPoolManager()
    
 List<WfTask>getPooledTasks(Locale locale)
    
 WfProcessInstancegetProcess(String processInstanceId, Locale locale)
    
 WfProcessDefinitiongetProcessDefinition(String processDefinitionId, Locale locale)
    
 Map<String, Integer>getProcessInstanceCounts()
     Returns the number of process instances of each process definition.
 List<WfProcessInstance>getProcesses(QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale)
    
 WfTaskgetTask(String taskId, Locale locale)
    
 List<WfTask>getTasks(QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale)
    
 WfTimergetTimer(String timerId, Locale locale)
    
 List<WfTimer>getTimers(QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale)
    
 voidloadSampleWorkflows()
     Re-installs the built-in sample workflows.
 WfTaskrequestPooledTask(String taskId, Locale locale)
    
 WfProcessInstanceresumeProcess(String processInstanceId, Locale locale)
    
 SearchResultDocumentsearchProcesses(List<QuerySelectItem> selectItems, QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale)
    
 SearchResultDocumentsearchTasks(List<QuerySelectItem> selectItems, QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale)
    
 SearchResultDocumentsearchTimers(List<QuerySelectItem> selectItems, QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale)
    
 WfExecutionPathsignal(String processInstanceId, String executionPathFullName, String transitionName, Locale locale)
    
 WfProcessInstancestartProcess(String processDefinitionId, TaskUpdateData startTaskData, String initialTransition, Locale locale)
    
 WfProcessInstancesuspendProcess(String processInstanceId, Locale locale)
    
 WfTaskunassignTask(String taskId, Locale locale)
     Unassigns a task from its current assignee, putting it back in the pool.
 WfTaskupdateTask(String taskId, TaskUpdateData taskUpdateData, Locale locale)
    



Method Detail
assignTask
WfTask assignTask(String taskId, WfActorKey actor, boolean overwriteSwimlane, Locale locale) throws RepositoryException(Code)
Assigns (possibly re-assigns) a task to the given actor (user or pools).
Parameters:
  overwriteSwimlane - if the task is associated with a swimlane, should the swimlane be reassigned too? Usually yes.



deleteProcess
void deleteProcess(String processInstanceId) throws RepositoryException(Code)



deleteProcessDefinition
void deleteProcessDefinition(String processDefinitionId) throws RepositoryException(Code)
Deletes a workflow definition.

Warning: this removes all process instances that use this workflow definition.




deployProcessDefinition
WfProcessDefinition deployProcessDefinition(InputStream is, String mimeType, Locale locale) throws RepositoryException(Code)
Defines (deploys) a new workflow definition.

It is the responsibility of the caller to close the input stream.
Parameters:
  mimeType - Use application/zip for zipped workflow archives, or text/xml for XML-described workflows.




endTask
WfTask endTask(String taskId, TaskUpdateData taskUpdateData, String transitionName, Locale locale) throws RepositoryException(Code)



getAllLatestProcessDefinitions
List<WfProcessDefinition> getAllLatestProcessDefinitions(Locale locale) throws RepositoryException(Code)
Gets a list of the latest versions of all workflow definitions defined in the system.



getAllProcessDefinitions
List<WfProcessDefinition> getAllProcessDefinitions(Locale locale) throws RepositoryException(Code)
Gets a list of all workflow definitions (in all versions) defined in the system.

See WorkflowManager.getAllLatestProcessDefinitions(Locale) to only get the latest versions.




getInitialVariables
List<WfVariable> getInitialVariables(String processDefinitionId, WfVersionKey contextDocument) throws RepositoryException(Code)
Calculates initial values for start-state task variables.



getLatestProcessDefinition
WfProcessDefinition getLatestProcessDefinition(String workflowName, Locale locale) throws RepositoryException(Code)



getMyTasks
List<WfTask> getMyTasks(Locale locale) throws RepositoryException(Code)
Gets the open tasks for the current user.



getPoolManager
WfPoolManager getPoolManager()(Code)



getPooledTasks
List<WfTask> getPooledTasks(Locale locale) throws RepositoryException(Code)



getProcess
WfProcessInstance getProcess(String processInstanceId, Locale locale) throws RepositoryException(Code)



getProcessDefinition
WfProcessDefinition getProcessDefinition(String processDefinitionId, Locale locale) throws RepositoryException(Code)

throws:
  ProcessDefinitionNotFoundException - in case the workflow definition does not exist.



getProcessInstanceCounts
Map<String, Integer> getProcessInstanceCounts() throws RepositoryException(Code)
Returns the number of process instances of each process definition. The key in the map is the process definition id, the value the instance count.



getProcesses
List<WfProcessInstance> getProcesses(QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale) throws RepositoryException(Code)



getTask
WfTask getTask(String taskId, Locale locale) throws RepositoryException(Code)



getTasks
List<WfTask> getTasks(QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale) throws RepositoryException(Code)

Parameters:
  chunkOffset - specify -1 to ignore
Parameters:
  chunkLength - specify -1 to ignore



getTimer
WfTimer getTimer(String timerId, Locale locale) throws RepositoryException(Code)



getTimers
List<WfTimer> getTimers(QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale) throws RepositoryException(Code)



loadSampleWorkflows
void loadSampleWorkflows() throws RepositoryException(Code)
Re-installs the built-in sample workflows. Can be useful after upgrading.



requestPooledTask
WfTask requestPooledTask(String taskId, Locale locale) throws RepositoryException(Code)



resumeProcess
WfProcessInstance resumeProcess(String processInstanceId, Locale locale) throws RepositoryException(Code)



searchProcesses
SearchResultDocument searchProcesses(List<QuerySelectItem> selectItems, QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale) throws RepositoryException(Code)



searchTasks
SearchResultDocument searchTasks(List<QuerySelectItem> selectItems, QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale) throws RepositoryException(Code)



searchTimers
SearchResultDocument searchTimers(List<QuerySelectItem> selectItems, QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale) throws RepositoryException(Code)



signal
WfExecutionPath signal(String processInstanceId, String executionPathFullName, String transitionName, Locale locale) throws RepositoryException(Code)

Parameters:
  executionPathFullName - fullName property of the execution path
Parameters:
  transitionName - allowed to be null



startProcess
WfProcessInstance startProcess(String processDefinitionId, TaskUpdateData startTaskData, String initialTransition, Locale locale) throws RepositoryException(Code)

Parameters:
  startTaskData - parameters for the start task of the workflow
Parameters:
  initialTransition - the transition to take from the start node



suspendProcess
WfProcessInstance suspendProcess(String processInstanceId, Locale locale) throws RepositoryException(Code)



unassignTask
WfTask unassignTask(String taskId, Locale locale) throws RepositoryException(Code)
Unassigns a task from its current assignee, putting it back in the pool. Unassignment is not allowed if there are no pooled actors to fall back too.



updateTask
WfTask updateTask(String taskId, TaskUpdateData taskUpdateData, Locale locale) throws RepositoryException(Code)



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