Java Doc for Workflow.java in  » Workflow-Engines » OSWorkflow » com » opensymphony » 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 » Workflow Engines » OSWorkflow » com.opensymphony.workflow 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.opensymphony.workflow.Workflow

All known Subclasses:   com.opensymphony.workflow.soap.OfbizSOAPWorkflow,  com.opensymphony.workflow.soap.BasicSOAPWorkflow,  com.opensymphony.workflow.ejb.EJBWorkflow,  com.opensymphony.workflow.AbstractWorkflow,
Workflow
public interface Workflow (Code)
The core workflow interface.
author:
   Patrick Lightbody


Field Summary
 StringBSF_COL
    
 StringBSF_LANGUAGE
    
 StringBSF_ROW
    
 StringBSF_SCRIPT
    
 StringBSF_SOURCE
    
 StringBSH_SCRIPT
    
 StringCLASS_NAME
    
 StringEJB_LOCATION
    
 StringJNDI_LOCATION
    


Method Summary
public  booleancanInitialize(String workflowName, int initialStep)
     Check if the calling user has enough permissions to initialise the specified workflow.
Parameters:
  workflowName - The name of the workflow to check.
Parameters:
  initialStep - The id of the initial state to check.
 booleancanInitialize(String workflowName, int initialAction, Map inputs)
     Determine if a particular workflow can be initialized.
Parameters:
  workflowName - The workflow name to check.
Parameters:
  initialAction - The potential initial action.
Parameters:
  inputs - The inputs to check.
public  booleancanModifyEntryState(long id, int newState)
     Check if the state of the specified workflow instance can be changed to the new specified one.
Parameters:
  id - The workflow instance id.
Parameters:
  newState - The new state id.
public  voidchangeEntryState(long id, int newState)
     Modify the state of the specified workflow instance.
Parameters:
  id - The workflow instance id.
Parameters:
  newState - the new state to change the workflow instance to.If the new state is com.opensymphony.workflow.spi.WorkflowEntry.KILLEDor com.opensymphony.workflow.spi.WorkflowEntry.COMPLETEDthen all current steps are moved to history steps.
public  voiddoAction(long id, int actionId, Map inputs)
     Perform an action on the specified workflow instance.
public  voidexecuteTriggerFunction(long id, int triggerId)
     Executes a special trigger-function using the context of the given workflow instance id.
public  int[]getAvailableActions(long id)
    
 int[]getAvailableActions(long id, Map inputs)
     Get the available actions for the specified workflow instance.
public  ListgetCurrentSteps(long id)
     Returns a Collection of Step objects that are the current steps of the specified workflow instance.
Parameters:
  id - The workflow instance id.
public  intgetEntryState(long id)
     Return the state of the specified workflow instance id.
Parameters:
  id - The workflow instance id.
public  ListgetHistorySteps(long id)
     Returns a list of all steps that are completed for the given workflow instance id.
Parameters:
  id - The workflow instance id.
public  PropertySetgetPropertySet(long id)
     Get the PropertySet for the specified workflow instance id.
public  ListgetSecurityPermissions(long id)
     Get a collection (Strings) of currently defined permissions for the specified workflow instance.
Parameters:
  id - the workflow instance id.
public  ListgetSecurityPermissions(long id, Map inputs)
     Get a collection (Strings) of currently defined permissions for the specified workflow instance.
Parameters:
  id - id the workflow instance id.
Parameters:
  inputs - inputs The inputs to the workflow instance.
public  WorkflowDescriptorgetWorkflowDescriptor(String workflowName)
     Get the workflow descriptor for the specified workflow name.
public  StringgetWorkflowName(long id)
     Get the name of the specified workflow instance.
 String[]getWorkflowNames()
     Get all available workflow names.
public  longinitialize(String workflowName, int initialAction, Map inputs)
     Initializes a workflow so that it can begin processing.
public  Listquery(WorkflowQuery query)
    
public  Listquery(WorkflowExpressionQuery query)
    
 booleanremoveWorkflowDescriptor(String workflowName)
     Remove the specified workflow descriptor.
Parameters:
  workflowName - The workflow name of the workflow to remove.
 booleansaveWorkflowDescriptor(String workflowName, WorkflowDescriptor descriptor, boolean replace)
    
 voidsetConfiguration(Configuration configuration)
     Set the configuration for this workflow.

Field Detail
BSF_COL
String BSF_COL(Code)



BSF_LANGUAGE
String BSF_LANGUAGE(Code)



BSF_ROW
String BSF_ROW(Code)



BSF_SCRIPT
String BSF_SCRIPT(Code)



BSF_SOURCE
String BSF_SOURCE(Code)



BSH_SCRIPT
String BSH_SCRIPT(Code)



CLASS_NAME
String CLASS_NAME(Code)



EJB_LOCATION
String EJB_LOCATION(Code)



JNDI_LOCATION
String JNDI_LOCATION(Code)





Method Detail
canInitialize
public boolean canInitialize(String workflowName, int initialStep)(Code)
Check if the calling user has enough permissions to initialise the specified workflow.
Parameters:
  workflowName - The name of the workflow to check.
Parameters:
  initialStep - The id of the initial state to check. true if the user can successfully call initialize, false otherwise.



canInitialize
boolean canInitialize(String workflowName, int initialAction, Map inputs)(Code)
Determine if a particular workflow can be initialized.
Parameters:
  workflowName - The workflow name to check.
Parameters:
  initialAction - The potential initial action.
Parameters:
  inputs - The inputs to check. true if the workflow can be initialized, false otherwise.



canModifyEntryState
public boolean canModifyEntryState(long id, int newState)(Code)
Check if the state of the specified workflow instance can be changed to the new specified one.
Parameters:
  id - The workflow instance id.
Parameters:
  newState - The new state id. true if the state of the workflow can be modified, false otherwise.



changeEntryState
public void changeEntryState(long id, int newState) throws WorkflowException(Code)
Modify the state of the specified workflow instance.
Parameters:
  id - The workflow instance id.
Parameters:
  newState - the new state to change the workflow instance to.If the new state is com.opensymphony.workflow.spi.WorkflowEntry.KILLEDor com.opensymphony.workflow.spi.WorkflowEntry.COMPLETEDthen all current steps are moved to history steps. If the new state is



doAction
public void doAction(long id, int actionId, Map inputs) throws InvalidInputException, WorkflowException(Code)
Perform an action on the specified workflow instance.
Parameters:
  id - The workflow instance id.
Parameters:
  actionId - The action id to perform (action id's are listed in the workflow descriptor).
Parameters:
  inputs - The inputs to the workflow instance.
throws:
  InvalidInputException - if a validator is specified and an input is invalid.
throws:
  InvalidActionException - if the action is invalid for the specified workflowinstance's current state.



executeTriggerFunction
public void executeTriggerFunction(long id, int triggerId) throws WorkflowException(Code)
Executes a special trigger-function using the context of the given workflow instance id. Note that this method is exposed for Quartz trigger jobs, user code should never call it.
Parameters:
  id - The workflow instance id
Parameters:
  triggerId - The id of the speciail trigger-function



getAvailableActions
public int[] getAvailableActions(long id)(Code)
Workflow.getAvailableActions(long,Map)



getAvailableActions
int[] getAvailableActions(long id, Map inputs)(Code)
Get the available actions for the specified workflow instance.
Parameters:
  id - The workflow instance id.
Parameters:
  inputs - The inputs map to pass on to conditions An array of action id's that can be performed on the specified entry
throws:
  IllegalArgumentException - if the specified id does not exist, or if its workflowdescriptor is no longer available or has become invalid.



getCurrentSteps
public List getCurrentSteps(long id)(Code)
Returns a Collection of Step objects that are the current steps of the specified workflow instance.
Parameters:
  id - The workflow instance id. The steps that the workflow instance is currently in.



getEntryState
public int getEntryState(long id)(Code)
Return the state of the specified workflow instance id.
Parameters:
  id - The workflow instance id. int The state id of the specified workflow



getHistorySteps
public List getHistorySteps(long id)(Code)
Returns a list of all steps that are completed for the given workflow instance id.
Parameters:
  id - The workflow instance id. a List of Steps
See Also:   com.opensymphony.workflow.spi.Step



getPropertySet
public PropertySet getPropertySet(long id)(Code)
Get the PropertySet for the specified workflow instance id.
Parameters:
  id - The workflow instance id.



getSecurityPermissions
public List getSecurityPermissions(long id)(Code)
Get a collection (Strings) of currently defined permissions for the specified workflow instance.
Parameters:
  id - the workflow instance id. A List of permissions specified currently (a permission is a string name).Workflow.getSecurityPermissions(long,java.util.Map)



getSecurityPermissions
public List getSecurityPermissions(long id, Map inputs)(Code)
Get a collection (Strings) of currently defined permissions for the specified workflow instance.
Parameters:
  id - id the workflow instance id.
Parameters:
  inputs - inputs The inputs to the workflow instance. A List of permissions specified currently (a permission is a string name).



getWorkflowDescriptor
public WorkflowDescriptor getWorkflowDescriptor(String workflowName)(Code)
Get the workflow descriptor for the specified workflow name.
Parameters:
  workflowName - The workflow name.



getWorkflowName
public String getWorkflowName(long id)(Code)
Get the name of the specified workflow instance.
Parameters:
  id - the workflow instance id.



getWorkflowNames
String[] getWorkflowNames()(Code)
Get all available workflow names.



initialize
public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, WorkflowException, InvalidEntryStateException, InvalidActionException(Code)
Initializes a workflow so that it can begin processing. A workflow must be initialized before it can begin any sort of activity. It can only be initialized once.
Parameters:
  workflowName - The workflow name to create and initialize an instance for
Parameters:
  initialAction - The initial step to start the workflow
Parameters:
  inputs - The inputs entered by the end-user
throws:
  InvalidRoleException - if the user can't start this function
throws:
  InvalidInputException - if a validator is specified and an input is invalid.
throws:
  InvalidActionException - if the specified initial action is invalid for the specified workflow.



query
public List query(WorkflowQuery query) throws WorkflowException(Code)
Query the workflow store for matching instances Workflow.query(WorkflowExpressionQuery)



query
public List query(WorkflowExpressionQuery query) throws WorkflowException(Code)
Query the workflow store for matching instances



removeWorkflowDescriptor
boolean removeWorkflowDescriptor(String workflowName) throws FactoryException(Code)
Remove the specified workflow descriptor.
Parameters:
  workflowName - The workflow name of the workflow to remove. true if the workflow was removed, false otherwise.
throws:
  FactoryException - If the underlying workflow factory has an error removing the workflow,or if it does not support the removal of workflows.



saveWorkflowDescriptor
boolean saveWorkflowDescriptor(String workflowName, WorkflowDescriptor descriptor, boolean replace) throws FactoryException(Code)
Add a new workflow descriptor
Parameters:
  workflowName - The workflow name of the workflow to add
Parameters:
  descriptor - The workflow descriptor to add
Parameters:
  replace - true, if an existing descriptor should be overwritten true if the workflow was added, fales otherwise
throws:
  FactoryException - If the underlying workflow factory has an error adding the workflow,or if it does not support adding workflows.



setConfiguration
void setConfiguration(Configuration configuration)(Code)
Set the configuration for this workflow. If not set, then the workflow will use the default configuration static instance.
Parameters:
  configuration - a workflow configuration



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