Java Doc for KualiWorkflowUtils.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » 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 » ERP CRM Financial » Kuali Financial System » org.kuali.workflow 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.kuali.core.workflow.WorkflowUtils
      org.kuali.workflow.KualiWorkflowUtils

KualiWorkflowUtils
public class KualiWorkflowUtils extends WorkflowUtils (Code)
This class contains static utility methods used by the Kuali Workflow Attribute Classes.

Inner Class :public class RouteLevels
Inner Class :public class RouteLevelNames

Field Summary
final public static  StringACCOUNTS_PAYABLE_CREDIT_MEMO_DOCUMENT_TYPE
    
final public static  StringACCOUNTS_PAYABLE_PAYMENT_REQUEST_DOCUMENT_TYPE
    
final public static  StringACCOUNT_CHANGE_DOC_TYPE
    
final public static  StringACCOUNT_DELEGATE_GLOBAL_DOC_TYPE
    
final public static  StringACCOUNT_DEL_DOC_TYPE
    
final public static  StringACCOUNT_DOC_TYPE
    
final public static  StringACCOUNT_GLOBAL_DETAILS_XPATH
    
final public static  StringBUDGET_ADJUSTMENT_DOC_TYPE
    
final public static  StringCHART_ORG_WORKGROUP_DOC_TYPE
    
final public static  StringC_G_AWARD_DOC_TYPE
    
final public static  StringC_G_PROPOSAL_DOC_TYPE
    
final public static  StringDISBURSEMENT_VOCHER_DOC_TYPE
    
final public static  StringFINANCIAL_DOCUMENT_TOTAL_AMOUNT_XPATH
    
final public static  StringFINANCIAL_DOC_TYPE
    
final public static  StringFINANCIAL_YEAR_END_DOC_TYPE
    
final public static  StringFIS_USER_DOC_TYPE
    
final public static  StringGENERAL_ERROR_CORRECTION_DOC_TYPE
    
final public static  StringGENERAL_LEDGER_ERROR_CORRECTION_DOC_TYPE
    
final public static  StringINTERNAL_BILLING_DOC_TYPE
    
final public static  StringKRA_BUDGET_DOC_TYPE
    
final public static  StringKRA_ROUTING_FORM_DOC_TYPE
    
final public static  StringMAINTENANCE_DOC_TYPE
    
final public static  StringNEW_MAINTAINABLE_PREFIX
    
final public static  StringNEW_MAINTAINABLE_PREFIX_NTS
    
final public static  StringNON_CHECK_DISBURSEMENT_DOC_TYPE
    
final public static  StringOBJECT_CODE_CHANGE_DOC_TYPE
    
final public static  StringOLD_MAINTAINABLE_PREFIX
    
final public static  StringOLD_MAINTAINABLE_PREFIX_NTS
    
final public static  StringORGANIZATION_DOC_TYPE
    
final public static  StringORG_REVERSION_CHANGE_DOC_TYPE
    
final public static  StringORG_REVERSION_GLOBALS_XPATH
    
final public static  StringPRE_ENCUMBRANCE_DOC_TYPE
    
final public static  StringPROCUREMENT_CARD_DOC_TYPE
    
final public static  StringPROJECT_CODE_DOC_TYPE
    
final public static  StringSIMPLE_MAINTENANCE_DOC_TYPE
    
final public static  SetSOURCE_LINE_ONLY_DOCUMENT_TYPES
    
final public static  StringSUB_ACCOUNT_DOC_TYPE
    
final public static  StringSUB_OBJECT_CODE_CHANGE_DOC_TYPE
    
final public static  StringSUB_OBJECT_DOC_TYPE
    
final public static  SetTARGET_LINE_ONLY_DOCUMENT_TYPES
    
final public static  StringUSER_DOC_TYPE
    
final public static  StringXML_REPORT_DOC_CONTENT_PREFIX
    
final public static  StringXML_REPORT_DOC_CONTENT_SUFFIX
    
final public static  StringXML_REPORT_DOC_CONTENT_XPATH_PREFIX
    
final public static  StringXPATH_ELEMENT_SEPARATOR
    


Method Summary
public static  edu.iu.uis.eden.lookupable.RowbuildTextRow(Class propertyClass, String boPropertyName, String workflowPropertyKey)
     This method builds a workflow-lookup-screen Row of type TEXT, with no quickfinder/lookup.
Parameters:
  propertyClass - The Class of the BO that this row is based on.
public static  edu.iu.uis.eden.lookupable.RowbuildTextRowWithLookup(Class propertyClass, String boPropertyName, String workflowPropertyKey)
     This method builds a workflow-lookup-screen Row of type TEXT, with the attached lookup icon and functionality.
Parameters:
  propertyClass - The Class of the BO that this row is based on.
public static  edu.iu.uis.eden.lookupable.RowbuildTextRowWithLookup(Class propertyClass, String boPropertyName, String workflowPropertyKey, Map fieldConversionsByBoPropertyName)
     This method builds a workflow-lookup-screen Row of type TEXT, with the attached lookup icon and functionality.
Parameters:
  propertyClass - The Class of the BO that this row is based on.
final public static  StringgetBusinessObjectAttributeLabel(Class businessObjectClass, String attributeName)
    
final public static  DocumentgetDocument(String xmlDocumentContent)
     TODO: remove this method when we upgrade to workflow 2.2 - the problem that this helps with is as follows: StandardWorkflowEngine is not currently setting up the DocumentContent on the RouteContext object.
public static  KualiDecimalgetFinancialDocumentTotalAmount(RouteContext routeContext)
     This method gets the document total amount from the DocumentHeader If an XPathExpressionException is thrown, this will be re-thrown within a RuntimeException.
public static  KualiDecimalgetFinancialDocumentTotalAmount(Document document)
     This method gets the document total amount from the DocumentHeader
If an XPathExpressionException is thrown, this will be re-thrown within a RuntimeException.
final public static  StringgetSourceAccountingLineClassName(String documentTypeName)
     This method uses the document type name to get the AccountingDocument implementation class from the data dictionary, creates a new instance and uses the getSourceAccountingLine method to get the name of the source accounting line class.
final public static  StringgetTargetAccountingLineClassName(String documentTypeName)
     This method uses the document type name to get the AccountingDocument implementation class from the data dictionary, creates a new instance and uses the getTargetAccountingLine method to get the name of the target accounting line class.
final public static  booleanisMaintenanceDocument(DocumentType documentType)
    
public static  booleanisSourceLineOnly(String documentTypeName)
    
public static  booleanisTargetLineOnly(String documentTypeName)
    
public static  ListsetKualiFieldValues(List workflowRows, String businessObjectClassName)
     This is for use by xml WorkflowAttribute implementations.
final public static  StringxstreamSafeEval(XPath xpath, String xpathExpression, Object item)
     This method will do a simple XPath.evaluate, while wrapping your xpathExpression with the xstreamSafe function.
final public static  StringxstreamSafeXPath(String xpathExpression)
     This method wraps the passed-in XPath expression in XStream Safe wrappers, so that XStream generated reference links will be handled correctly.
Parameters:
  xpathExpression - The XPath Expression you wish to use.

Field Detail
ACCOUNTS_PAYABLE_CREDIT_MEMO_DOCUMENT_TYPE
final public static String ACCOUNTS_PAYABLE_CREDIT_MEMO_DOCUMENT_TYPE(Code)



ACCOUNTS_PAYABLE_PAYMENT_REQUEST_DOCUMENT_TYPE
final public static String ACCOUNTS_PAYABLE_PAYMENT_REQUEST_DOCUMENT_TYPE(Code)



ACCOUNT_CHANGE_DOC_TYPE
final public static String ACCOUNT_CHANGE_DOC_TYPE(Code)



ACCOUNT_DELEGATE_GLOBAL_DOC_TYPE
final public static String ACCOUNT_DELEGATE_GLOBAL_DOC_TYPE(Code)



ACCOUNT_DEL_DOC_TYPE
final public static String ACCOUNT_DEL_DOC_TYPE(Code)



ACCOUNT_DOC_TYPE
final public static String ACCOUNT_DOC_TYPE(Code)



ACCOUNT_GLOBAL_DETAILS_XPATH
final public static String ACCOUNT_GLOBAL_DETAILS_XPATH(Code)



BUDGET_ADJUSTMENT_DOC_TYPE
final public static String BUDGET_ADJUSTMENT_DOC_TYPE(Code)



CHART_ORG_WORKGROUP_DOC_TYPE
final public static String CHART_ORG_WORKGROUP_DOC_TYPE(Code)



C_G_AWARD_DOC_TYPE
final public static String C_G_AWARD_DOC_TYPE(Code)



C_G_PROPOSAL_DOC_TYPE
final public static String C_G_PROPOSAL_DOC_TYPE(Code)



DISBURSEMENT_VOCHER_DOC_TYPE
final public static String DISBURSEMENT_VOCHER_DOC_TYPE(Code)



FINANCIAL_DOCUMENT_TOTAL_AMOUNT_XPATH
final public static String FINANCIAL_DOCUMENT_TOTAL_AMOUNT_XPATH(Code)



FINANCIAL_DOC_TYPE
final public static String FINANCIAL_DOC_TYPE(Code)



FINANCIAL_YEAR_END_DOC_TYPE
final public static String FINANCIAL_YEAR_END_DOC_TYPE(Code)



FIS_USER_DOC_TYPE
final public static String FIS_USER_DOC_TYPE(Code)



GENERAL_ERROR_CORRECTION_DOC_TYPE
final public static String GENERAL_ERROR_CORRECTION_DOC_TYPE(Code)



GENERAL_LEDGER_ERROR_CORRECTION_DOC_TYPE
final public static String GENERAL_LEDGER_ERROR_CORRECTION_DOC_TYPE(Code)



INTERNAL_BILLING_DOC_TYPE
final public static String INTERNAL_BILLING_DOC_TYPE(Code)



KRA_BUDGET_DOC_TYPE
final public static String KRA_BUDGET_DOC_TYPE(Code)



KRA_ROUTING_FORM_DOC_TYPE
final public static String KRA_ROUTING_FORM_DOC_TYPE(Code)



MAINTENANCE_DOC_TYPE
final public static String MAINTENANCE_DOC_TYPE(Code)



NEW_MAINTAINABLE_PREFIX
final public static String NEW_MAINTAINABLE_PREFIX(Code)



NEW_MAINTAINABLE_PREFIX_NTS
final public static String NEW_MAINTAINABLE_PREFIX_NTS(Code)



NON_CHECK_DISBURSEMENT_DOC_TYPE
final public static String NON_CHECK_DISBURSEMENT_DOC_TYPE(Code)



OBJECT_CODE_CHANGE_DOC_TYPE
final public static String OBJECT_CODE_CHANGE_DOC_TYPE(Code)



OLD_MAINTAINABLE_PREFIX
final public static String OLD_MAINTAINABLE_PREFIX(Code)



OLD_MAINTAINABLE_PREFIX_NTS
final public static String OLD_MAINTAINABLE_PREFIX_NTS(Code)



ORGANIZATION_DOC_TYPE
final public static String ORGANIZATION_DOC_TYPE(Code)



ORG_REVERSION_CHANGE_DOC_TYPE
final public static String ORG_REVERSION_CHANGE_DOC_TYPE(Code)



ORG_REVERSION_GLOBALS_XPATH
final public static String ORG_REVERSION_GLOBALS_XPATH(Code)



PRE_ENCUMBRANCE_DOC_TYPE
final public static String PRE_ENCUMBRANCE_DOC_TYPE(Code)



PROCUREMENT_CARD_DOC_TYPE
final public static String PROCUREMENT_CARD_DOC_TYPE(Code)



PROJECT_CODE_DOC_TYPE
final public static String PROJECT_CODE_DOC_TYPE(Code)



SIMPLE_MAINTENANCE_DOC_TYPE
final public static String SIMPLE_MAINTENANCE_DOC_TYPE(Code)



SOURCE_LINE_ONLY_DOCUMENT_TYPES
final public static Set SOURCE_LINE_ONLY_DOCUMENT_TYPES(Code)



SUB_ACCOUNT_DOC_TYPE
final public static String SUB_ACCOUNT_DOC_TYPE(Code)



SUB_OBJECT_CODE_CHANGE_DOC_TYPE
final public static String SUB_OBJECT_CODE_CHANGE_DOC_TYPE(Code)



SUB_OBJECT_DOC_TYPE
final public static String SUB_OBJECT_DOC_TYPE(Code)



TARGET_LINE_ONLY_DOCUMENT_TYPES
final public static Set TARGET_LINE_ONLY_DOCUMENT_TYPES(Code)



USER_DOC_TYPE
final public static String USER_DOC_TYPE(Code)



XML_REPORT_DOC_CONTENT_PREFIX
final public static String XML_REPORT_DOC_CONTENT_PREFIX(Code)



XML_REPORT_DOC_CONTENT_SUFFIX
final public static String XML_REPORT_DOC_CONTENT_SUFFIX(Code)



XML_REPORT_DOC_CONTENT_XPATH_PREFIX
final public static String XML_REPORT_DOC_CONTENT_XPATH_PREFIX(Code)



XPATH_ELEMENT_SEPARATOR
final public static String XPATH_ELEMENT_SEPARATOR(Code)





Method Detail
buildTextRow
public static edu.iu.uis.eden.lookupable.Row buildTextRow(Class propertyClass, String boPropertyName, String workflowPropertyKey)(Code)
This method builds a workflow-lookup-screen Row of type TEXT, with no quickfinder/lookup.
Parameters:
  propertyClass - The Class of the BO that this row is based on. For example, Account.class for accountNumber.
Parameters:
  boPropertyName - The property name on the BO that this row is based on. For example, accountNumber forAccount.accountNumber.
Parameters:
  workflowPropertyKey - The workflow-lookup-screen property key. For example, account_nbr for Account.accountNumber. Thiskey can be anything, but needs to be consistent with what is used for the row/field key on the java attribute, soeverything links up correctly. A populated and ready-to-use workflow lookupable.Row.



buildTextRowWithLookup
public static edu.iu.uis.eden.lookupable.Row buildTextRowWithLookup(Class propertyClass, String boPropertyName, String workflowPropertyKey)(Code)
This method builds a workflow-lookup-screen Row of type TEXT, with the attached lookup icon and functionality.
Parameters:
  propertyClass - The Class of the BO that this row is based on. For example, Account.class for accountNumber.
Parameters:
  boPropertyName - The property name on the BO that this row is based on. For example, accountNumber forAccount.accountNumber.
Parameters:
  workflowPropertyKey - The workflow-lookup-screen property key. For example, account_nbr for Account.accountNumber. Thiskey can be anything, but needs to be consistent with what is used for the row/field key on the java attribute, soeverything links up correctly. A populated and ready-to-use workflow lookupable.Row, which includes both the property field and the lookup icon.



buildTextRowWithLookup
public static edu.iu.uis.eden.lookupable.Row buildTextRowWithLookup(Class propertyClass, String boPropertyName, String workflowPropertyKey, Map fieldConversionsByBoPropertyName)(Code)
This method builds a workflow-lookup-screen Row of type TEXT, with the attached lookup icon and functionality.
Parameters:
  propertyClass - The Class of the BO that this row is based on. For example, Account.class for accountNumber.
Parameters:
  boPropertyName - The property name on the BO that this row is based on. For example, accountNumber forAccount.accountNumber.
Parameters:
  workflowPropertyKey - The workflow-lookup-screen property key. For example, account_nbr for Account.accountNumber. Thiskey can be anything, but needs to be consistent with what is used for the row/field key on the java attribute, soeverything links up correctly.
Parameters:
  fieldConversionsByBoPropertyName - A list of extra field conversions where the key is the business object property nameand the value is the workflow property key A populated and ready-to-use workflow lookupable.Row, which includes both the property field and the lookup icon.



getBusinessObjectAttributeLabel
final public static String getBusinessObjectAttributeLabel(Class businessObjectClass, String attributeName)(Code)
This method returns a label from the data dictionary service
Parameters:
  businessObjectClass - - class where the label should come from
Parameters:
  attributeName - - name of the attribute you need the label for the label from the data dictionary for the given Class and attributeName or null if not found



getDocument
final public static Document getDocument(String xmlDocumentContent)(Code)
TODO: remove this method when we upgrade to workflow 2.2 - the problem that this helps with is as follows: StandardWorkflowEngine is not currently setting up the DocumentContent on the RouteContext object. Instead that's being handled by the RequestsNode which, in the case of the BudgetAdjustmentDocument, we never pass through before hitting the first split. So, in that particular case, we have to reference an attribute that gives us the xml string and translate that to a dom document ourselves.
Parameters:
  xmlDocumentContent - a dom representation of the xml provided



getFinancialDocumentTotalAmount
public static KualiDecimal getFinancialDocumentTotalAmount(RouteContext routeContext)(Code)
This method gets the document total amount from the DocumentHeader If an XPathExpressionException is thrown, this will be re-thrown within a RuntimeException.
Parameters:
  routeContext - The RouteContext object from the workflow system the KualiDecimal value of the total amount from the document's workflow document content or null if the amount valuecannot be found.



getFinancialDocumentTotalAmount
public static KualiDecimal getFinancialDocumentTotalAmount(Document document)(Code)
This method gets the document total amount from the DocumentHeader
If an XPathExpressionException is thrown, this will be re-thrown within a RuntimeException.
Parameters:
  document - - the document object from the workflow system the KualiDecimal value of the total amount from the document's workflow document content or null if the amount valuecannot be found.



getSourceAccountingLineClassName
final public static String getSourceAccountingLineClassName(String documentTypeName)(Code)
This method uses the document type name to get the AccountingDocument implementation class from the data dictionary, creates a new instance and uses the getSourceAccountingLine method to get the name of the source accounting line class. It is intended for use by our workflow attributes when building xpath expressions
Parameters:
  documentTypeName - the document type name to use when querying the TransactionalDocumentDataDictionaryService the name of the source accounting line class associated with the specified workflow document type name



getTargetAccountingLineClassName
final public static String getTargetAccountingLineClassName(String documentTypeName)(Code)
This method uses the document type name to get the AccountingDocument implementation class from the data dictionary, creates a new instance and uses the getTargetAccountingLine method to get the name of the target accounting line class. It is intended for use by our workflow attributes when building xpath expressions
Parameters:
  documentTypeName - the document type name to use when querying the TransactionalDocumentDataDictionaryService the name of the target accounting line class associated with the specified workflow document type name



isMaintenanceDocument
final public static boolean isMaintenanceDocument(DocumentType documentType)(Code)



isSourceLineOnly
public static boolean isSourceLineOnly(String documentTypeName)(Code)



isTargetLineOnly
public static boolean isTargetLineOnly(String documentTypeName)(Code)



setKualiFieldValues
public static List setKualiFieldValues(List workflowRows, String businessObjectClassName)(Code)
This is for use by xml WorkflowAttribute implementations. It overrides the label and help url of the test fields on the edu.iu.uis.eden.lookupable.Rows obtained from the workflow parent class with the appropriate values from the data dictionary.
Parameters:
  workflowRows - A list of edu.iu.uis.eden.lookupable.Row objects provided by the workflow superclass, based on the XMLattribute definition.
Parameters:
  businessObjectClass - The BusinessObject Class extracted from the meta data specified in the XML attribute definition,which is used in querying the data dictionary for the field definition.



xstreamSafeEval
final public static String xstreamSafeEval(XPath xpath, String xpathExpression, Object item)(Code)
This method will do a simple XPath.evaluate, while wrapping your xpathExpression with the xstreamSafe function. It assumes a String result, and will return such. If an XPathExpressionException is thrown, this will be re-thrown within a RuntimeException.
Parameters:
  xpath - A correctly initialized XPath instance.
Parameters:
  xpathExpression - Your XPath Expression that needs to be wrapped in an xstreamSafe wrapper and run.
Parameters:
  item - The document contents you will be searching within. The string value of the xpath.evaluate().



xstreamSafeXPath
final public static String xstreamSafeXPath(String xpathExpression)(Code)
This method wraps the passed-in XPath expression in XStream Safe wrappers, so that XStream generated reference links will be handled correctly.
Parameters:
  xpathExpression - The XPath Expression you wish to use. Your XPath Expression wrapped in the XStreamSafe wrapper.



Fields inherited from org.kuali.core.workflow.WorkflowUtils
final public static String XSTREAM_MATCH_ANYWHERE_PREFIX(Code)(Java Doc)
final public static String XSTREAM_MATCH_RELATIVE_PREFIX(Code)(Java Doc)
final public static String XSTREAM_SAFE_PREFIX(Code)(Java Doc)
final public static String XSTREAM_SAFE_SUFFIX(Code)(Java Doc)

Methods inherited from org.kuali.core.workflow.WorkflowUtils
public static String getHelpUrl(org.kuali.core.web.ui.Field field)(Code)(Java Doc)
final public static XPath getXPath(Document document)(Code)(Java Doc)
final public static XPath getXPath(RouteContext routeContext)(Code)(Java Doc)

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.