Java Doc for WorkflowDocument.java in  » ERP-CRM-Financial » Kuali-Financial-System » edu » iu » uis » eden » clientapp » 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 » ERP CRM Financial » Kuali Financial System » edu.iu.uis.eden.clientapp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   edu.iu.uis.eden.clientapp.WorkflowDocument

WorkflowDocument
public class WorkflowDocument implements java.io.Serializable(Code)
Represents a document in Workflow from the perspective of the client. This class is one of two (Java) client interfaces to the KEW system (the other being WorkflowInfo class). The first time an instance of this class is created, it will read the client configuration to determine how to connect to KEW.

This class is used by creating new instances using the appropriate constructor. To create a new document in KEW, create an instance of this class passing a UserIdVO and a document type name. To load an existing document, create an instance of this class passing a UserIdVO and a document ID number.

Internally, this wrapper interacts with the WorkflowDocumentActions service exported over the KSB, maintaining state.

This class is not thread safe and must by synchronized externally for concurrent access.
author:
   rkirkend
author:
   ewestfal




Constructor Summary
public  WorkflowDocument(UserIdVO userId, String documentType)
     Constructs a WorkflowDocument representing a new document in the workflow system.
public  WorkflowDocument(UserIdVO userId, Long routeHeaderId)
     Loads a workflow document with the given route header ID for the given User.

Method Summary
public  voidacknowledge(String annotation)
     Performs the 'acknowledge' action on the document this WorkflowDocument represents.
public  voidaddAttributeDefinition(WorkflowAttributeDefinitionVO attributeDefinition)
     Adds an attribute definition which defines creation parameters for a WorkflowAttribute implementation.
public  voidaddSearchableDefinition(WorkflowAttributeDefinitionVO searchableDefinition)
     Adds a searchable attribute definition which defines creation parameters for a SearchableAttribute implementation.
public  voidappSpecificRouteDocumentToUser(String actionRequested, String nodeName, int priority, String annotation, UserIdVO recipient, String responsibilityDesc, boolean ignorePreviousActions)
    
public  voidappSpecificRouteDocumentToUser(String actionRequested, String annotation, UserIdVO recipient, String responsibilityDesc, boolean ignorePreviousActions)
     Sends an ad hoc request to the specified user at the current active node on the document.
public  voidappSpecificRouteDocumentToUser(String actionRequested, String nodeName, String annotation, UserIdVO recipient, String responsibilityDesc, boolean ignorePreviousActions)
     Sends an ad hoc request to the specified user at the specified node on the document.
public  voidappSpecificRouteDocumentToWorkgroup(String actionRequested, String nodeName, int priority, String annotation, WorkgroupIdVO workgroupId, String responsibilityDesc, boolean ignorePreviousActions)
    
public  voidappSpecificRouteDocumentToWorkgroup(String actionRequested, String annotation, WorkgroupIdVO workgroupId, String responsibilityDesc, boolean ignorePreviousActions)
     Sends an ad hoc request to the specified workgroup at the current active node on the document.
public  voidappSpecificRouteDocumentToWorkgroup(String actionRequested, String nodeName, String annotation, WorkgroupIdVO workgroupId, String responsibilityDesc, boolean ignorePreviousActions)
     Sends an ad hoc request to the specified workgroup at the specified node on the document.
public  voidapprove(String annotation)
     Performs the 'approve' action on the document this WorkflowDocument represents.
public  voidblanketApprove(String annotation)
     Performs the 'blanket-approve' action on the document this WorkflowDocument represents.
public  voidblanketApprove(String annotation, String nodeName)
     Performs the 'blanketApprove' action on the document this WorkflowDocument represents.
public  voidblanketApprove(String annotation, String[] nodeNames)
     Performs the 'blanketApprove' action on the document this WorkflowDocument represents.
public  voidblanketApprove(String annotation, Integer routeLevel)
    
public  voidcancel(String annotation)
     Performs the 'cancel' action on the document this WorkflowDocument represents.
public  voidclearAttributeContent()
     Clears all attribute document content from the document. Typically, this will be used if it is necessary to update the attribute doc content on the document.
public  voidclearAttributeDefinitions()
     Removes all attribute definitions from the document content.
public  voidclearFYI()
     Performs the 'clearFYI' action on the document this WorkflowDocument represents.
public  voidclearSearchableContent()
     Clears the searchable content from the document content.
public  voidclearSearchableDefinitions()
     Removes all searchable attribute definitions from the document content.
public  voidcomplete(String annotation)
     Performs the 'complete' action on the document this WorkflowDocument represents.
public  voiddelete()
     Performs the 'delete' action on the document this WorkflowDocument represents.
public  voiddeleteNote(NoteVO noteVO)
     Deletes a note from the document.
public  voiddisapprove(String annotation)
     Performs the 'disapprove' action on the document this WorkflowDocument represents.
public  voidfyi()
     Performs the 'fyi' action on the document this WorkflowDocument represents.
public  ActionRequestVO[]getActionRequests()
     Returns VOs of the pending ActionRequests on this document.
public  ActionTakenVO[]getActionsTaken()
     Returns VOs of the actions taken on this document.
public  StringgetAppDocId()
    
public  StringgetApplicationContent()
     Returns the application specific section of the document content.
public  StringgetAttributeContent()
     Returns the attribute-generated section of the document content.
public  WorkflowAttributeDefinitionVO[]getAttributeDefinitions()
     Returns the attribute definition VOs currently defined on the document content.
public  TimestampgetDateCreated()
    
public  DocumentDetailVOgetDetail()
     Returns a document detail VO representing the route header along with action requests, actions taken, and route node instances.
public  IntegergetDocRouteLevel()
    
public  StringgetDocRouteLevelName()
    
public  DocumentContentVOgetDocumentContent()
     Returns an up-to-date DocumentContent of this document.
public  StringgetDocumentType()
    
public  StringgetInitiatorNetworkId()
    
public  String[]getNodeNames()
     Returns names of all active nodes the document is currently at.
public  List<NoteVO>getNoteList()
    
public  String[]getPreviousNodeNames()
     Returns Array of Route Nodes Names that can be safely returned to using the 'returnToPreviousXXX' methods.
public  RouteHeaderVOgetRouteHeader()
    
public  LonggetRouteHeaderId()
     Returns the id of the workflow document this WorkflowDocument represents.
public  StringgetRouteMethodName()
    
public  RouteNodeInstanceVO[]getRouteNodeInstances()
     Returns the route node instances that have been created so far during the life of this document.
public  WorkflowAttributeDefinitionVO[]getSearchableDefinitions()
     Returns the searchable attribute definitions on the document content.
public  StringgetStatusDisplayValue()
    
public  StringgetTitle()
    
public  UserIdVOgetUserId()
    
public  StringgetVariable(String name)
     Gets the value of a variable on the document, creating the document first if it does not exist.
public  booleanisAcknowledgeRequested()
     Returns whether an acknowledge is requested of the user for this document.
public  booleanisActionCodeValidForDocument(String actionTakenCode)
    
public  booleanisApprovalRequested()
     Returns whether an approval is requested of the user for this document.
public  booleanisBlanketApproveCapable()
    
public  booleanisCompletionRequested()
     Returns whether a completion is requested of the user for this document.
public  booleanisFYIRequested()
     Returns whether an FYI is requested of the user for this document.
public  booleanisRouteCapable()
     Returns whether the user passed into WorkflowDocument at instantiation can route the document.
public  booleanisSuperUser()
    
public  voidlogDocumentAction(String annotation)
     Performs the 'logDocumentAction' action on the document this WorkflowDocument represents.
public  voidmoveDocument(MovePointVO movePoint, String annotation)
     Moves the document from a current node in it's route to another node.
public  voidrefreshContent()
     Reloads the document route header.
public  voidreleaseWorkgroupAuthority(String annotation, WorkgroupIdVO workgroupId)
     The user that took the group authority is putting the action items back in the other users action lists.
public  voidremoveAttributeDefinition(WorkflowAttributeDefinitionVO attributeDefinition)
     Removes an attribute definition from the document content.
public  voidremoveSearchableDefinition(WorkflowAttributeDefinitionVO searchableDefinition)
     Removes a searchable attribute definition from the document content.
public  voidreturnToPreviousNode(String annotation, String nodeName)
     Performs the 'returnToPrevious' action on the document this WorkflowDocument represents.
public  voidreturnToPreviousNode(String annotation, ReturnPointVO returnPoint)
     Performs the 'returnToPrevious' action on the document this WorkflowDocument represents.
public  voidreturnToPreviousRouteLevel(String annotation, Integer destRouteLevel)
    
public  voidrevokeAdHocRequests(AdHocRevokeVO revoke, String annotation)
     Revokes AdHoc request(s) according to the given AdHocRevokeVO which is passed in.
public  voidrouteDocument(String annotation)
     Performs the 'route' action on the document this WorkflowDocument represents.
public  voidsaveDocument(String annotation)
     Performs the 'save' action on the document this WorkflowDocument represents.
public  DocumentContentVOsaveDocumentContent(DocumentContentVO documentContent)
     Saves the given DocumentContentVO for this document.
public  voidsaveRoutingData()
     Commits any changes made to the local copy of this document to the workflow system.
public  voidsetAppDocId(String appDocId)
    
public  voidsetApplicationContent(String applicationContent)
     Sets the application specific section of the document content.
public  voidsetTitle(String title)
     Sets the title of the document, empty string if null is specified.
public  voidsetUserId(UserIdVO userId)
    
public  voidsetVariable(String name, String value)
     Sets a variable on the document.
public  booleanstateIsApproved()
     Indicates if the document is in the approved state or not.
public  booleanstateIsCanceled()
     Indicates if the document is in the canceled state or not.
public  booleanstateIsDisapproved()
     Indicates if the document is in the disapproved state or not.
public  booleanstateIsEnroute()
     Indicates if the document is in the enroute state or not.
public  booleanstateIsException()
     Indicates if the document is in the exception state or not.
public  booleanstateIsFinal()
     Indicates if the document is in the final state or not.
public  booleanstateIsInitiated()
     Indicates if the document is in the initiated state or not.
public  booleanstateIsProcessed()
     Indicates if the document is in the processed state or not.
public  booleanstateIsSaved()
     Indicates if the document is in the saved state or not.
public  voidsuperUserActionRequestApprove(Long actionRequestId, String annotation)
    
public  voidsuperUserApprove(String annotation)
     Performs the 'super-user-approve' action on the document this WorkflowDocument represents.
public  voidsuperUserCancel(String annotation)
     Performs the 'super-user-cancel' action on the document this WorkflowDocument represents.
public  voidsuperUserDisapprove(String annotation)
     Performs the 'super-user-disapprove' action on the document this WorkflowDocument represents.
public  voidtakeWorkgroupAuthority(String annotation, WorkgroupIdVO workgroupId)
     The user taking action removes the action items for this workgroup and document from all other group members' action lists.
public  voidupdateNote(NoteVO noteVO)
     Updates the note of the same note id, on the document.
public  WorkflowAttributeValidationErrorVO[]validateAttributeDefinition(WorkflowAttributeDefinitionVO attributeDefinition)
     Validate the WorkflowAttributeDefinition against it's attribute on the server.


Constructor Detail
WorkflowDocument
public WorkflowDocument(UserIdVO userId, String documentType) throws WorkflowException(Code)
Constructs a WorkflowDocument representing a new document in the workflow system. Creation/committing of the new document is deferred until the first action is taken on the document.
Parameters:
  userId - the user as which to take actions on the document
Parameters:
  documentType - the type of the document to create
throws:
  WorkflowException - if anything goes awry



WorkflowDocument
public WorkflowDocument(UserIdVO userId, Long routeHeaderId) throws WorkflowException(Code)
Loads a workflow document with the given route header ID for the given User. If no document can be found with the given ID, then the getRouteHeader() method of the WorkflowDocument which is created will return null.
throws:
  WorkflowException - if there is a problem loading the WorkflowDocument




Method Detail
acknowledge
public void acknowledge(String annotation) throws WorkflowException(Code)
Performs the 'acknowledge' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs acknowledging the document
See Also:   WorkflowDocumentActions.acknowledgeDocument(UserIdVORouteHeaderVOString)



addAttributeDefinition
public void addAttributeDefinition(WorkflowAttributeDefinitionVO attributeDefinition)(Code)
Adds an attribute definition which defines creation parameters for a WorkflowAttribute implementation. The created attribute will be used to generate attribute document content. When the document is sent to the server, this will be appended to the existing attribute doc content. If it is required to replace the attribute document content, then the clearAttributeContent() method should be invoked prior to adding attribute definitions. This is a convenience method that delegates to the DocumentContentVO .
See Also:   DocumentContentVO.addAttributeDefinition(WorkflowAttributeDefinitionVO)



addSearchableDefinition
public void addSearchableDefinition(WorkflowAttributeDefinitionVO searchableDefinition)(Code)
Adds a searchable attribute definition which defines creation parameters for a SearchableAttribute implementation. The created attribute will be used to generate searchable document content. When the document is sent to the server, this will be appended to the existing searchable doc content. If it is required to replace the searchable document content, then the clearSearchableContent() method should be invoked prior to adding definitions. This is a convenience method that delegates to the DocumentContentVO .



appSpecificRouteDocumentToUser
public void appSpecificRouteDocumentToUser(String actionRequested, String nodeName, int priority, String annotation, UserIdVO recipient, String responsibilityDesc, boolean ignorePreviousActions) throws WorkflowException(Code)
WorkflowDocument.appSpecificRouteDocumentToUser(String,String,String,UserIdVO,String,boolean)



appSpecificRouteDocumentToUser
public void appSpecificRouteDocumentToUser(String actionRequested, String annotation, UserIdVO recipient, String responsibilityDesc, boolean ignorePreviousActions) throws WorkflowException(Code)
Sends an ad hoc request to the specified user at the current active node on the document. If the document is in a terminal state, the request will be attached to the terminal node.
See Also:   WorkflowDocument.appSpecificRouteDocumentToUser(String,String,String,UserIdVO,String,boolean)
See Also:   WorkflowDocumentActions.appSpecificRouteDocument(UserIdVORouteHeaderVOStringStringStringResponsiblePartyVOStringboolean)



appSpecificRouteDocumentToUser
public void appSpecificRouteDocumentToUser(String actionRequested, String nodeName, String annotation, UserIdVO recipient, String responsibilityDesc, boolean ignorePreviousActions) throws WorkflowException(Code)
Sends an ad hoc request to the specified user at the specified node on the document. If the document is in a terminal state, the request will be attached to the terminal node.
See Also:   WorkflowDocument.appSpecificRouteDocumentToUser(String,String,UserIdVO,String,boolean)
See Also:   WorkflowDocumentActions.appSpecificRouteDocument(UserIdVORouteHeaderVOStringStringStringResponsiblePartyVOStringboolean)



appSpecificRouteDocumentToWorkgroup
public void appSpecificRouteDocumentToWorkgroup(String actionRequested, String nodeName, int priority, String annotation, WorkgroupIdVO workgroupId, String responsibilityDesc, boolean ignorePreviousActions) throws WorkflowException(Code)
WorkflowDocument.appSpecificRouteDocumentToWorkgroup(String,String,String,WorkgroupIdVO,String,boolean)



appSpecificRouteDocumentToWorkgroup
public void appSpecificRouteDocumentToWorkgroup(String actionRequested, String annotation, WorkgroupIdVO workgroupId, String responsibilityDesc, boolean ignorePreviousActions) throws WorkflowException(Code)
Sends an ad hoc request to the specified workgroup at the current active node on the document. If the document is in a terminal state, the request will be attached to the terminal node.
See Also:   WorkflowDocument.appSpecificRouteDocumentToWorkgroup(String,String,String,WorkgroupIdVO,String,boolean)
See Also:   WorkflowDocumentActions.appSpecificRouteDocument(UserIdVORouteHeaderVOStringStringStringResponsiblePartyVOStringboolean)



appSpecificRouteDocumentToWorkgroup
public void appSpecificRouteDocumentToWorkgroup(String actionRequested, String nodeName, String annotation, WorkgroupIdVO workgroupId, String responsibilityDesc, boolean ignorePreviousActions) throws WorkflowException(Code)
Sends an ad hoc request to the specified workgroup at the specified node on the document. If the document is in a terminal state, the request will be attached to the terminal node.
See Also:   WorkflowDocument.appSpecificRouteDocumentToWorkgroup(String,String,String,WorkgroupIdVO,String,boolean)
See Also:   WorkflowDocumentActions.appSpecificRouteDocument(UserIdVORouteHeaderVOStringStringStringResponsiblePartyVOStringboolean)



approve
public void approve(String annotation) throws WorkflowException(Code)
Performs the 'approve' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs approving the document
See Also:   WorkflowDocumentActions.approveDocument(UserIdVORouteHeaderVOString)



blanketApprove
public void blanketApprove(String annotation) throws WorkflowException(Code)
Performs the 'blanket-approve' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs blanket-approving the document
See Also:   WorkflowDocumentActions.blanketApprovalToNodes(UserIdVORouteHeaderVOStringString[])



blanketApprove
public void blanketApprove(String annotation, String nodeName) throws WorkflowException(Code)
Performs the 'blanketApprove' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
Parameters:
  nodeName - the extent to which to blanket approve; blanket approval will stop at this node
throws:
  WorkflowException - in case an error occurs blanket-approving the document
See Also:   WorkflowDocumentActions.blanketApprovalToNodes(UserIdVORouteHeaderVOStringString[])



blanketApprove
public void blanketApprove(String annotation, String[] nodeNames) throws WorkflowException(Code)
Performs the 'blanketApprove' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
Parameters:
  nodeNames - the nodes at which blanket approval will stop (in case the blanket approval traverses a split, in which case there may be multiple "active" nodes)
throws:
  WorkflowException - in case an error occurs blanket-approving the document
See Also:   WorkflowDocumentActions.blanketApprovalToNodes(UserIdVORouteHeaderVOStringString[])



blanketApprove
public void blanketApprove(String annotation, Integer routeLevel) throws WorkflowException(Code)



cancel
public void cancel(String annotation) throws WorkflowException(Code)
Performs the 'cancel' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs canceling the document
See Also:   WorkflowDocumentActions.cancelDocument(UserIdVORouteHeaderVOString)



clearAttributeContent
public void clearAttributeContent()(Code)
Clears all attribute document content from the document. Typically, this will be used if it is necessary to update the attribute doc content on the document. This can be accomplished by clearing the content and then adding the desired attribute definitions. This is a convenience method that delegates to the DocumentContentVO . In order for these changes to take effect, an action must be performed on the document (such as "save").



clearAttributeDefinitions
public void clearAttributeDefinitions()(Code)
Removes all attribute definitions from the document content. This is a convenience method that delegates to the DocumentContentVO .



clearFYI
public void clearFYI() throws WorkflowException(Code)
Performs the 'clearFYI' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs clearing FYI on the document
See Also:   WorkflowDocumentActions.clearFYIDocument(UserIdVORouteHeaderVO)



clearSearchableContent
public void clearSearchableContent()(Code)
Clears the searchable content from the document content. This is a convenience method that delegates to the DocumentContentVO .



clearSearchableDefinitions
public void clearSearchableDefinitions()(Code)
Removes all searchable attribute definitions from the document content. This is a convenience method that delegates to the DocumentContentVO .



complete
public void complete(String annotation) throws WorkflowException(Code)
Performs the 'complete' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs clearing completing the document
See Also:   WorkflowDocumentActions.completeDocument(UserIdVORouteHeaderVOString)



delete
public void delete() throws WorkflowException(Code)
Performs the 'delete' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs deleting the document
See Also:   WorkflowDocumentActions.deleteDocument(UserIdVORouteHeaderVO)



deleteNote
public void deleteNote(NoteVO noteVO)(Code)
Deletes a note from the document. The deletion is deferred until the next time the document is committed (via an action).
Parameters:
  noteVO - the note to remove from the document



disapprove
public void disapprove(String annotation) throws WorkflowException(Code)
Performs the 'disapprove' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs disapproving the document
See Also:   WorkflowDocumentActions.disapproveDocument(UserIdVORouteHeaderVOString)



fyi
public void fyi() throws WorkflowException(Code)
Performs the 'fyi' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs fyi-ing the document



getActionRequests
public ActionRequestVO[] getActionRequests() throws WorkflowException(Code)
Returns VOs of the pending ActionRequests on this document. If this object represents a new document that has not yet been created, then an empty array will be returned. The ordering of ActionRequests returned by this method is not guaranteed. This method relies on the WorkflowUtility service VOs of the pending ActionRequests on this document
throws:
  WorkflowException - if an error occurs obtaining the pending action requests for this document
See Also:   WorkflowUtility.getActionRequests(Long)



getActionsTaken
public ActionTakenVO[] getActionsTaken() throws WorkflowException(Code)
Returns VOs of the actions taken on this document. If this object represents a new document that has not yet been created, then an empty array will be returned. The ordering of actions taken returned by this method is not guaranteed. This method relies on the WorkflowUtility service VOs of the actions that have been taken on this document
throws:
  WorkflowException - if an error occurs obtaining the actions taken on this document
See Also:   WorkflowUtility.getActionsTaken(Long)



getAppDocId
public String getAppDocId()(Code)
Returns the "application doc id" set on this workflow document (if any) the "application doc id" set on this workflow document (if any)



getApplicationContent
public String getApplicationContent()(Code)
Returns the application specific section of the document content. This is a convenience method that delegates to the DocumentContentVO . For documents routed prior to Workflow 2.0: If the application did NOT use attributes for XML generation, this method will return the entire document content XML. Otherwise it will return the empty string.
See Also:   DocumentContentVO.getApplicationContent



getAttributeContent
public String getAttributeContent()(Code)
Returns the attribute-generated section of the document content. This is a convenience method that delegates to the DocumentContentVO .
See Also:   DocumentContentVO.getAttributeContent



getAttributeDefinitions
public WorkflowAttributeDefinitionVO[] getAttributeDefinitions()(Code)
Returns the attribute definition VOs currently defined on the document content. This is a convenience method that delegates to the DocumentContentVO . the attribute definition VOs currently defined on the document content.
See Also:   DocumentContentVO.getAttributeDefinitions



getDateCreated
public Timestamp getDateCreated()(Code)
Returns the date/time the document was created, or null if the document has not yet been created the date/time the document was created, or null if the document has not yet been created



getDetail
public DocumentDetailVO getDetail() throws WorkflowException(Code)
Returns a document detail VO representing the route header along with action requests, actions taken, and route node instances. Returns a document detail VO representing the route header along with action requests, actions taken, and route node instances.
throws:
  WorkflowException -



getDocRouteLevel
public Integer getDocRouteLevel()(Code)



getDocRouteLevelName
public String getDocRouteLevelName() throws WorkflowException(Code)
TODO this method still needs to be updated to work properly for Workflow 2.1 it would probably be easier to just put this info on bean from the server



getDocumentContent
public DocumentContentVO getDocumentContent()(Code)
Returns an up-to-date DocumentContent of this document.
See Also:   WorkflowUtility.getDocumentContent(Long)



getDocumentType
public String getDocumentType()(Code)
Returns the document type of the workflow document the document type of the workflow document
throws:
  RuntimeException - if document does not exist (is not yet created)
See Also:   RouteHeaderVO.getDocTypeName



getInitiatorNetworkId
public String getInitiatorNetworkId()(Code)



getNodeNames
public String[] getNodeNames() throws WorkflowException(Code)
Returns names of all active nodes the document is currently at. names of all active nodes the document is currently at.
throws:
  WorkflowException - if there is an error obtaining the currently active nodes on the document
See Also:   WorkflowUtility.getActiveNodeInstances(Long)



getNoteList
public List<NoteVO> getNoteList()(Code)
Returns a list of NoteVO representing the notes on the document a list of NoteVO representing the notes on the document
See Also:   RouteHeaderVO.getNotes



getPreviousNodeNames
public String[] getPreviousNodeNames() throws WorkflowException(Code)
Returns Array of Route Nodes Names that can be safely returned to using the 'returnToPreviousXXX' methods. Names are sorted in reverse chronological order. array of Route Nodes Names that can be safely returned to using the 'returnToPreviousXXX' methods
throws:
  WorkflowException - if an error occurs obtaining the names of the previous route nodes for this document
See Also:   WorkflowUtility.getPreviousRouteNodeNames(Long)



getRouteHeader
public RouteHeaderVO getRouteHeader()(Code)
Returns the RouteHeaderVO for the workflow document this WorkflowDocument represents



getRouteHeaderId
public Long getRouteHeaderId() throws WorkflowException(Code)
Returns the id of the workflow document this WorkflowDocument represents. If this is a new document that has not yet been created, the document is first created (and therefore this will return a new id) the id of the workflow document this WorkflowDocument represents
throws:
  WorkflowException - if an error occurs during document creation



getRouteMethodName
public String getRouteMethodName() throws WorkflowException(Code)
TODO this method still needs to be updated to work properly for Workflow 2.1 it would probably be easier to just put this info on bean from the server



getRouteNodeInstances
public RouteNodeInstanceVO[] getRouteNodeInstances() throws WorkflowException(Code)
Returns the route node instances that have been created so far during the life of this document. This includes all previous instances which have already been processed and are no longer active. the route node instances that have been created so far during the life of this document
throws:
  WorkflowException - if there is an error getting the route node instances for the document
See Also:   WorkflowUtility.getDocumentRouteNodeInstances(Long)



getSearchableDefinitions
public WorkflowAttributeDefinitionVO[] getSearchableDefinitions()(Code)
Returns the searchable attribute definitions on the document content. This is a convenience method that delegates to the DocumentContentVO . the searchable attribute definitions on the document content.
See Also:   DocumentContentVO.getSearchableDefinitions



getStatusDisplayValue
public String getStatusDisplayValue()(Code)
Returns the display value of the current document status the display value of the current document status



getTitle
public String getTitle()(Code)
Returns the title of the document the title of the document



getUserId
public UserIdVO getUserId()(Code)
Returns the userId with which this WorkflowDocument was constructed the userId with which this WorkflowDocument was constructed



getVariable
public String getVariable(String name) throws WorkflowException(Code)
Gets the value of a variable on the document, creating the document first if it does not exist.
Parameters:
  name - variable name variable value



isAcknowledgeRequested
public boolean isAcknowledgeRequested()(Code)
Returns whether an acknowledge is requested of the user for this document. This is a convenience method that delegates to RouteHeaderVO.isAckRequested . whether an acknowledge is requested of the user for this document
See Also:   RouteHeaderVO.isAckRequested



isActionCodeValidForDocument
public boolean isActionCodeValidForDocument(String actionTakenCode)(Code)
Returns whether the specified action code is valid for the current user and document whether the user can blanket approve the document
See Also:   RouteHeaderVO.getValidActions



isApprovalRequested
public boolean isApprovalRequested()(Code)
Returns whether an approval is requested of the user for this document. This is a convenience method that delegates to RouteHeaderVO.isApproveRequested . whether an approval is requested of the user for this document
See Also:   RouteHeaderVO.isApproveRequested



isBlanketApproveCapable
public boolean isBlanketApproveCapable()(Code)
Returns whether the user can blanket approve the document whether the user can blanket approve the document
See Also:   RouteHeaderVO.getValidActions



isCompletionRequested
public boolean isCompletionRequested()(Code)
Returns whether a completion is requested of the user for this document. This is a convenience method that delegates to RouteHeaderVO.isCompleteRequested . whether an approval is requested of the user for this document
See Also:   RouteHeaderVO.isCompleteRequested



isFYIRequested
public boolean isFYIRequested()(Code)
Returns whether an FYI is requested of the user for this document. This is a convenience method that delegates to RouteHeaderVO.isFyiRequested . whether an FYI is requested of the user for this document
See Also:   RouteHeaderVO.isFyiRequested



isRouteCapable
public boolean isRouteCapable()(Code)
Returns whether the user passed into WorkflowDocument at instantiation can route the document. if user passed into WorkflowDocument at instantiation can routethe document.



isSuperUser
public boolean isSuperUser() throws WorkflowException(Code)
Returns whether the user is a super user on this document whether the user is a super user on this document
throws:
  WorkflowException - if an error occurs determining whether the user is a super user on this document
See Also:   WorkflowUtility.isSuperUserForDocumentType(UserIdVOLong)



logDocumentAction
public void logDocumentAction(String annotation) throws WorkflowException(Code)
Performs the 'logDocumentAction' action on the document this WorkflowDocument represents. If this is a new document, the document is created first. The 'logDocumentAction' simply logs a message on the document.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs logging a document action on the document
See Also:   WorkflowDocumentActions.logDocumentAction(UserIdVORouteHeaderVOString)



moveDocument
public void moveDocument(MovePointVO movePoint, String annotation) throws WorkflowException(Code)
Moves the document from a current node in it's route to another node. If this is a new document, the document is created first.
Parameters:
  MovePointVO - VO representing the node at which to start, and the number of steps to move (negative steps is reverse)
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs moving the document
See Also:   WorkflowDocumentActions.moveDocument(UserIdVORouteHeaderVOMovePointVOString)



refreshContent
public void refreshContent() throws WorkflowException(Code)
Reloads the document route header. If this is a new document, the document is created first. Next time document content is accessed, an up-to-date copy will be retrieved from workflow.
throws:
  WorkflowException - in case an error occurs retrieving the route header



releaseWorkgroupAuthority
public void releaseWorkgroupAuthority(String annotation, WorkgroupIdVO workgroupId) throws WorkflowException(Code)
The user that took the group authority is putting the action items back in the other users action lists. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
Parameters:
  workgroupId - the workgroup on which to take authority
throws:
  WorkflowException - user taking action is not in workgroup or did not take workgroup authority



removeAttributeDefinition
public void removeAttributeDefinition(WorkflowAttributeDefinitionVO attributeDefinition)(Code)
Removes an attribute definition from the document content. This is a convenience method that delegates to the DocumentContentVO .
Parameters:
  attributeDefinition - the attribute definition VO to remove



removeSearchableDefinition
public void removeSearchableDefinition(WorkflowAttributeDefinitionVO searchableDefinition)(Code)
Removes a searchable attribute definition from the document content. This is a convenience method that delegates to the DocumentContentVO .
Parameters:
  searchableDefinition - the searchable attribute definition to remove



returnToPreviousNode
public void returnToPreviousNode(String annotation, String nodeName) throws WorkflowException(Code)
Performs the 'returnToPrevious' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
Parameters:
  nodeName - the node to return to
throws:
  WorkflowException - in case an error occurs returning to previous node
See Also:   WorkflowDocumentActions.returnDocumentToPreviousNode(UserIdVORouteHeaderVOReturnPointVOString)



returnToPreviousNode
public void returnToPreviousNode(String annotation, ReturnPointVO returnPoint) throws WorkflowException(Code)
Performs the 'returnToPrevious' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
Parameters:
  ReturnPointVO - the node to return to
throws:
  WorkflowException - in case an error occurs returning to previous node
See Also:   WorkflowDocumentActions.returnDocumentToPreviousNode(UserIdVORouteHeaderVOReturnPointVOString)



returnToPreviousRouteLevel
public void returnToPreviousRouteLevel(String annotation, Integer destRouteLevel) throws WorkflowException(Code)



revokeAdHocRequests
public void revokeAdHocRequests(AdHocRevokeVO revoke, String annotation) throws WorkflowException(Code)
Revokes AdHoc request(s) according to the given AdHocRevokeVO which is passed in. If a specific action request ID is specified on the revoke bean, and that ID is not a valid ID, this method should throw a WorkflowException.
Parameters:
  revoke - AdHocRevokeVO
Parameters:
  annotation - message to note for this action
throws:
  WorkflowException - if an error occurs revoking adhoc requests
See Also:   WorkflowDocumentActions.revokeAdHocRequests(UserIdVORouteHeaderVOAdHocRevokeVOString)



routeDocument
public void routeDocument(String annotation) throws WorkflowException(Code)
Performs the 'route' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs routing the document
See Also:   WorkflowDocumentActions.routeDocument(UserIdVORouteHeaderVOString)



saveDocument
public void saveDocument(String annotation) throws WorkflowException(Code)
Performs the 'save' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs saving the document
See Also:   WorkflowDocumentActions.saveDocument(UserIdVORouteHeaderVOString)



saveDocumentContent
public DocumentContentVO saveDocumentContent(DocumentContentVO documentContent) throws WorkflowException(Code)
Saves the given DocumentContentVO for this document.
Parameters:
  documentContent - document content VO to store for this document
since:
   2.3
See Also:   WorkflowDocumentActions.saveDocumentContent(DocumentContentVO)



saveRoutingData
public void saveRoutingData() throws WorkflowException(Code)
Commits any changes made to the local copy of this document to the workflow system. If this is a new document, the document is created first.
throws:
  WorkflowException - in case an error occurs saving the document
See Also:   WorkflowDocumentActions.saveRoutingData(UserIdVORouteHeaderVO)



setAppDocId
public void setAppDocId(String appDocId)(Code)
Sets the "application doc id" on the document
Parameters:
  appDocId - the "application doc id" to set on the workflow document



setApplicationContent
public void setApplicationContent(String applicationContent)(Code)
Sets the application specific section of the document content. This is a convenience method that delegates to the DocumentContentVO .



setTitle
public void setTitle(String title) throws WorkflowException(Code)
Sets the title of the document, empty string if null is specified.
Parameters:
  title - title of the document to set, or null



setUserId
public void setUserId(UserIdVO userId)(Code)
Sets the userId under which actions against this document should be taken
Parameters:
  userId - userId under which actions against this document should be taken



setVariable
public void setVariable(String name, String value) throws WorkflowException(Code)
Sets a variable on the document. The assignment is deferred until the next time the document is committed (via an action).
Parameters:
  name - name of the variable
Parameters:
  value - value of the variable



stateIsApproved
public boolean stateIsApproved()(Code)
Indicates if the document is in the approved state or not. Will answer true is document is in Processed or Finalized state. true if in the specified state



stateIsCanceled
public boolean stateIsCanceled()(Code)
Indicates if the document is in the canceled state or not. true if in the specified state



stateIsDisapproved
public boolean stateIsDisapproved()(Code)
Indicates if the document is in the disapproved state or not. true if in the specified state



stateIsEnroute
public boolean stateIsEnroute()(Code)
Indicates if the document is in the enroute state or not. true if in the specified state



stateIsException
public boolean stateIsException()(Code)
Indicates if the document is in the exception state or not. true if in the specified state



stateIsFinal
public boolean stateIsFinal()(Code)
Indicates if the document is in the final state or not. true if in the specified state



stateIsInitiated
public boolean stateIsInitiated()(Code)
Indicates if the document is in the initiated state or not. true if in the specified state



stateIsProcessed
public boolean stateIsProcessed()(Code)
Indicates if the document is in the processed state or not. true if in the specified state



stateIsSaved
public boolean stateIsSaved()(Code)
Indicates if the document is in the saved state or not. true if in the specified state



superUserActionRequestApprove
public void superUserActionRequestApprove(Long actionRequestId, String annotation) throws WorkflowException(Code)



superUserApprove
public void superUserApprove(String annotation) throws WorkflowException(Code)
Performs the 'super-user-approve' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs super-user-approve-ing the document
See Also:   WorkflowDocumentActions.superUserApprove(UserIdVORouteHeaderVOString)



superUserCancel
public void superUserCancel(String annotation) throws WorkflowException(Code)
Performs the 'super-user-cancel' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs super-user-cancel-ing the document
See Also:   WorkflowDocumentActions.superUserCancel(UserIdVORouteHeaderVOString)



superUserDisapprove
public void superUserDisapprove(String annotation) throws WorkflowException(Code)
Performs the 'super-user-disapprove' action on the document this WorkflowDocument represents. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
throws:
  WorkflowException - in case an error occurs super-user-disapprove-ing the document
See Also:   WorkflowDocumentActions.superUserDisapprove(UserIdVORouteHeaderVOString)



takeWorkgroupAuthority
public void takeWorkgroupAuthority(String annotation, WorkgroupIdVO workgroupId) throws WorkflowException(Code)
The user taking action removes the action items for this workgroup and document from all other group members' action lists. If this is a new document, the document is created first.
Parameters:
  annotation - the message to log for the action
Parameters:
  workgroupId - the workgroup on which to take authority
throws:
  WorkflowException - user taking action is not in workgroup
See Also:   WorkflowDocumentActions.takeWorkgroupAuthority(UserIdVORouteHeaderVOWorkgroupIdVOString)



updateNote
public void updateNote(NoteVO noteVO)(Code)
Updates the note of the same note id, on the document. The update is deferred until the next time the document is committed (via an action).
Parameters:
  noteVO - the note to update



validateAttributeDefinition
public WorkflowAttributeValidationErrorVO[] validateAttributeDefinition(WorkflowAttributeDefinitionVO attributeDefinition) throws WorkflowException(Code)
Validate the WorkflowAttributeDefinition against it's attribute on the server. This will validate the inputs that will eventually become xml. Only applies to attributes implementing WorkflowAttributeXmlValidator. This is a call through to the WorkflowInfo object and is here for convenience.
Parameters:
  attributeDefinition - the workflow attribute definition VO to validate WorkflowAttributeValidationErrorVO[] of error from the attribute
throws:
  WorkflowException - when attribute doesn't implement WorkflowAttributeXmlValidator
See Also:   WorkflowUtility.validateWorkflowAttributeDefinitionVO(WorkflowAttributeDefinitionVO)



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.