Java Doc for AbstractWorkflow.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) 


java.lang.Object
   com.opensymphony.workflow.AbstractWorkflow

All known Subclasses:   com.opensymphony.workflow.ofbiz.OfbizWorkflow,  com.opensymphony.workflow.ejb.WorkflowEJB,  com.opensymphony.workflow.basic.BasicWorkflow,
AbstractWorkflow
public class AbstractWorkflow implements Workflow(Code)
Abstract workflow instance that serves as the base for specific implementations, such as EJB or SOAP.
author:
   Pat Lightbody
author:
   Hani Suleiman


Field Summary
protected  WorkflowContextcontext
    

Constructor Summary
public  AbstractWorkflow()
    

Method Summary
public  booleancanInitialize(String workflowName, int initialAction)
    
public  booleancanInitialize(String workflowName, int initialAction, Map inputs)
    
public  booleancanModifyEntryState(long id, int newState)
    
public  voidchangeEntryState(long id, int newState)
    
protected  voidcheckImplicitFinish(ActionDescriptor action, long id)
    
protected  voidcompleteEntry(ActionDescriptor action, long id, Collection currentSteps, int state)
     Mark the specified entry as completed, and move all current steps to history.
public  voiddoAction(long id, int actionId, Map inputs)
    
protected  voidexecuteFunction(FunctionDescriptor function, Map transientVars, PropertySet ps)
     Executes a function.
public  voidexecuteTriggerFunction(long id, int triggerId)
    
public  int[]getAvailableActions(long id)
    
public  int[]getAvailableActions(long id, Map inputs)
     Get the available actions for the specified workflow instance.
protected  ListgetAvailableActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps)
    
protected  int[]getAvailableAutoActions(long id, Map inputs)
    
protected  ListgetAvailableAutoActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps)
    
public  ConfigurationgetConfiguration()
     Get the configuration for this workflow.
public  ListgetCurrentSteps(long id)
    
public  intgetEntryState(long id)
    
public  ListgetHistorySteps(long id)
    
protected  WorkflowStoregetPersistence()
    
public  PropertiesgetPersistenceProperties()
    
public  PropertySetgetPropertySet(long id)
    
public  TypeResolvergetResolver()
    
public  ListgetSecurityPermissions(long id)
    
public  ListgetSecurityPermissions(long id, Map inputs)
    
public  WorkflowDescriptorgetWorkflowDescriptor(String workflowName)
     Returns a workflow definition object associated with the given name.
public  StringgetWorkflowName(long id)
    
public  String[]getWorkflowNames()
    
public  longinitialize(String workflowName, int initialAction, Map inputs)
    
protected  booleanpassesCondition(ConditionDescriptor conditionDesc, Map transientVars, PropertySet ps, int currentStepId)
    
protected  booleanpassesConditions(String conditionType, List conditions, Map transientVars, PropertySet ps, int currentStepId)
    
protected  booleanpassesConditions(ConditionsDescriptor descriptor, Map transientVars, PropertySet ps, int currentStepId)
    
protected  voidpopulateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps, PropertySet ps)
    
public  Listquery(WorkflowQuery query)
    
public  Listquery(WorkflowExpressionQuery query)
    
public  booleanremoveWorkflowDescriptor(String workflowName)
    
public  booleansaveWorkflowDescriptor(String workflowName, WorkflowDescriptor descriptor, boolean replace)
    
public  voidsetConfiguration(Configuration configuration)
    
public  voidsetResolver(TypeResolver resolver)
    
protected  booleantransitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps)
    
protected  voidverifyInputs(WorkflowEntry entry, List validators, Map transientVars, PropertySet ps)
     Validates input against a list of ValidatorDescriptor objects.

Field Detail
context
protected WorkflowContext context(Code)




Constructor Detail
AbstractWorkflow
public AbstractWorkflow()(Code)




Method Detail
canInitialize
public boolean canInitialize(String workflowName, int initialAction)(Code)



canInitialize
public boolean canInitialize(String workflowName, int initialAction, Map inputs)(Code)

Parameters:
  workflowName - the name of the workflow to check
Parameters:
  initialAction - The initial action to check
Parameters:
  inputs - the inputs map true if the workflow can be initialized



canModifyEntryState
public boolean canModifyEntryState(long id, int newState)(Code)



changeEntryState
public void changeEntryState(long id, int newState) throws WorkflowException(Code)



checkImplicitFinish
protected void checkImplicitFinish(ActionDescriptor action, long id) throws WorkflowException(Code)



completeEntry
protected void completeEntry(ActionDescriptor action, long id, Collection currentSteps, int state) throws StoreException(Code)
Mark the specified entry as completed, and move all current steps to history.



doAction
public void doAction(long id, int actionId, Map inputs) throws WorkflowException(Code)



executeFunction
protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException(Code)
Executes a function.
Parameters:
  function - the function to execute
Parameters:
  transientVars - the transientVars given by the end-user
Parameters:
  ps - the persistence variables



executeTriggerFunction
public void executeTriggerFunction(long id, int triggerId) throws WorkflowException(Code)



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



getAvailableActions
public 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.



getAvailableActionsForStep
protected List getAvailableActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps) throws WorkflowException(Code)



getAvailableAutoActions
protected int[] getAvailableAutoActions(long id, Map inputs)(Code)



getAvailableAutoActionsForStep
protected List getAvailableAutoActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps) throws WorkflowException(Code)
Get just auto action availables for a step



getConfiguration
public Configuration getConfiguration()(Code)
Get the configuration for this workflow. This method also checks if the configuration has been initialized, and if not, initializes it. The configuration that was set.If no configuration was set, then the default (static) configuration is returned.



getCurrentSteps
public List getCurrentSteps(long id)(Code)



getEntryState
public int getEntryState(long id)(Code)



getHistorySteps
public List getHistorySteps(long id)(Code)



getPersistence
protected WorkflowStore getPersistence() throws StoreException(Code)



getPersistenceProperties
public Properties getPersistenceProperties()(Code)



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



getResolver
public TypeResolver getResolver()(Code)



getSecurityPermissions
public List getSecurityPermissions(long id)(Code)



getSecurityPermissions
public List getSecurityPermissions(long id, Map inputs)(Code)



getWorkflowDescriptor
public WorkflowDescriptor getWorkflowDescriptor(String workflowName)(Code)
Returns a workflow definition object associated with the given name.
Parameters:
  workflowName - the name of the workflow the object graph that represents a workflow definition



getWorkflowName
public String getWorkflowName(long id)(Code)



getWorkflowNames
public String[] getWorkflowNames()(Code)
Get a list of workflow names available String[] an array of workflow names.



initialize
public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, WorkflowException(Code)



passesCondition
protected boolean passesCondition(ConditionDescriptor conditionDesc, Map transientVars, PropertySet ps, int currentStepId) throws WorkflowException(Code)



passesConditions
protected boolean passesConditions(String conditionType, List conditions, Map transientVars, PropertySet ps, int currentStepId) throws WorkflowException(Code)



passesConditions
protected boolean passesConditions(ConditionsDescriptor descriptor, Map transientVars, PropertySet ps, int currentStepId) throws WorkflowException(Code)



populateTransientMap
protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps, PropertySet ps) throws WorkflowException(Code)



query
public List query(WorkflowQuery query) throws StoreException(Code)



query
public List query(WorkflowExpressionQuery query) throws WorkflowException(Code)



removeWorkflowDescriptor
public boolean removeWorkflowDescriptor(String workflowName) throws FactoryException(Code)



saveWorkflowDescriptor
public boolean saveWorkflowDescriptor(String workflowName, WorkflowDescriptor descriptor, boolean replace) throws FactoryException(Code)



setConfiguration
public void setConfiguration(Configuration configuration)(Code)



setResolver
public void setResolver(TypeResolver resolver)(Code)



transitionWorkflow
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException(Code)
true if the instance has been explicitly completed is this transition, false otherwise
throws:
  WorkflowException -



verifyInputs
protected void verifyInputs(WorkflowEntry entry, List validators, Map transientVars, PropertySet ps) throws WorkflowException(Code)
Validates input against a list of ValidatorDescriptor objects.
Parameters:
  entry - the workflow instance
Parameters:
  validators - the list of ValidatorDescriptors
Parameters:
  transientVars - the transientVars
Parameters:
  ps - the persistence variables
throws:
  InvalidInputException - if the input is deemed invalid by any validator



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.