Java Doc for WfMCSampleTools.java in  » Workflow-Engines » obe-1.0 » org » wfmc » sample » 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 » obe 1.0 » org.wfmc.sample 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wfmc.sample.WfMCSampleTools

WfMCSampleTools
public class WfMCSampleTools (Code)
Implements Tools used by the WfMC Sample Workflow Process.

Caveat emptor: Like the WfMC sample workflow itself, this class implements a simplistic treatment of the problem domain. There's no synchronization, transactionality, persistence, etc. In other words, don't try and use any of this stuff as the basis for a real-life application!
author:
   Adrian Price



Field Summary
final public static  String[][]_accountInfo
    


Method Summary
public static  voidbillAccount(int orderNumber)
     Charges the credit card and prepares a receipt for a credit order.
public static  voidcancelOrder(int orderNumber)
     [WfMC activity description was wrong - copy/paste from shipOrder.] Cancels an order.
public static  StringcheckData(Document orderInfo)
     Validates an order.
Parameters:
  orderInfo - An instance of the Order type as defined inorderschema.xsd.
public static  StringcheckVendor(int accountNumber, double amount)
     Checks a vendor [what does that mean?].
public static  voidcomposeMessage(String status, int orderNumber)
     Composes a message.
public static  StringcreateInvoice(int orderNumber)
     Creates an invoice using the order information and stores it on a server.
Parameters:
  orderNumber - The order number.
public static  StringcreateReceipt(int orderNumber)
     Creates a receipt using the order information and stores it on a server.
Parameters:
  orderNumber - The order number.
public static  intenterOrder(Document orderInfo)
     Enters order details.
Parameters:
  orderInfo - An XML document conforming to the Order element asdefined in orderschema.xsd.
public static  DocumentgetCreditInfo(int orderNumber)
     Returns the credit info for the specified order.
[WfMC Description was wrong (copy/paste from shipOrder)]
Parameters:
  orderNumber - The order number.
public static  DocumentsetCreditInfo(int accountNumber, double amount, String cardType)
     Creates and initializes a CreditInfo object.
public static  StringsetOrderStatus(String creditStatus)
     Converts status returned by credit check to OrderStatus.
public static  StringshipOrder(int orderNumber)
     This application presents a screen that presents order information for the order identified by shipOrder.
public static  DocumenttransformData(String orderString)
     Transforms a string representing an order into an XML document.

Field Detail
_accountInfo
final public static String[][] _accountInfo(Code)





Method Detail
billAccount
public static void billAccount(int orderNumber)(Code)
Charges the credit card and prepares a receipt for a credit order.
Parameters:
  orderNumber - The order number.



cancelOrder
public static void cancelOrder(int orderNumber)(Code)
[WfMC activity description was wrong - copy/paste from shipOrder.] Cancels an order.
Parameters:
  orderNumber - The order number.



checkData
public static String checkData(Document orderInfo)(Code)
Validates an order.
Parameters:
  orderInfo - An instance of the Order type as defined inorderschema.xsd. An string conforming to the OrderType schema defined inlinein wfmc-sample.xpdl. The string is restricted to: ValidData,InvalidData,Accept,BadCredit,OverLimit,BadDataFormat.



checkVendor
public static String checkVendor(int accountNumber, double amount)(Code)
Checks a vendor [what does that mean?]. Why are we talking about vendors? This is a Sales Order Processing workflow not a Purchase Order Processing workflow - our concern is with customers, not vendors.
Parameters:
  accountNumber - The [vendor's?] account number.
Parameters:
  amount - The total amount of the order. An string conforming to the OrderType schema defined inlinein wfmc-sample.xpdl. The string is restricted to: ValidData,InvalidData,Accept,BadCredit,OverLimit,BadDataFormat.



composeMessage
public static void composeMessage(String status, int orderNumber)(Code)
Composes a message.
Parameters:
  status - An XML document conforming to the OrderType schema definedinline in wfmc-sample.xpdl.
Parameters:
  orderNumber - The order number.



createInvoice
public static String createInvoice(int orderNumber)(Code)
Creates an invoice using the order information and stores it on a server.
Parameters:
  orderNumber - The order number. The WEBDAV URL of the resulting invoice.



createReceipt
public static String createReceipt(int orderNumber)(Code)
Creates a receipt using the order information and stores it on a server.
Parameters:
  orderNumber - The order number. The WEBDAV URL of the resulting receipt.



enterOrder
public static int enterOrder(Document orderInfo)(Code)
Enters order details.
Parameters:
  orderInfo - An XML document conforming to the Order element asdefined in orderschema.xsd. A newly allocated order number.



getCreditInfo
public static Document getCreditInfo(int orderNumber)(Code)
Returns the credit info for the specified order.
[WfMC Description was wrong (copy/paste from shipOrder)]
Parameters:
  orderNumber - The order number. An XML document conforming to the CreditInfo element defined increditService.wsdl.



setCreditInfo
public static Document setCreditInfo(int accountNumber, double amount, String cardType)(Code)
Creates and initializes a CreditInfo object.
Parameters:
  accountNumber - Account number to check.
Parameters:
  amount - Amount to authorize.
Parameters:
  cardType - As defined by CardType in orderSchema.xsd An XML document conforming to the CreditInfo element defined increditService.wsdl.



setOrderStatus
public static String setOrderStatus(String creditStatus)(Code)
Converts status returned by credit check to OrderStatus.
Parameters:
  creditStatus - The order status.



shipOrder
public static String shipOrder(int orderNumber)(Code)
This application presents a screen that presents order information for the order identified by shipOrder. The user may update the order with any changes such as back order information. It returns a string indicating whether the order is complete or on back order.
Parameters:
  orderNumber - The order number. Order status: "Complete" or "Backorder".



transformData
public static Document transformData(String orderString)(Code)
Transforms a string representing an order into an XML document.
Parameters:
  orderString - An XML document conforming to the Order element as defined inorderschema.xsd.



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.