Leveraging Business Processes in the Case Study


The case study leverages the business process as the primary interface to the outside world. The Business Object/Business Object Collection patterns, with respect to Web Services, are used internally and, in some cases, exposed but not expected to be consumed by clients other than yourself.

In some cases, a business process may consist of a single business activity. When this occurs, the business process constructs represent points of flexibility in the system. Without the business process abstraction, your application would become inflexible in certain business processes and, in theory, be less maintainable in the future. Further, without the business process abstraction, you will have a more difficult time interacting with applications that choose to standardize on a business process interface ( assuming you use a standardized WSDL file for your business process interface). Simplifying the standardized interface would undermine the fundamental value of Web Services: interoperability.

The business processes in the application are not standards based. Depending on when you build your own application and what domain it is in, you may find existing business process standards and behavior guidelines. Be sure to allocate a proper amount of time to research and leverage standards early in development, preferably before creating your internal object model. The earlier you can reuse another person's (or group 's) analysis, the more benefits you will derive from that analysis. Reusing a business process definition will shape the internal object model and its implementation of business activities.

Identifying Important Classes and Files in the Case Study

Table 8-1 shows the primary code discussed in this chapter that you should browse in the downloaded source code. This source code evolves over the next few chapters, so you will see some slight modifications in the source code. For this chapter, look primarily at the structure of the ProductOrderImpl class and the business activities on which it relies.

Table 8-1: Sample Location

FILE

LOCATION

DESCRIPTION

ProductOrderImpl.java

src\com\servicefoundry\books\ webservices \processes

The product order business process from which Listing 8-2 originated

ProductOrderTest.java

src\com\servicefoundry\books\webservices\tests

A main program that uses the product order business process from a client program

Using Ant Targets to Run the Case Study

Table 8-2 describes the targets to run for the ant environment to see the programs and chapter samples in operation. Before running any samples, be sure you read and perform all of the install steps in Appendix A. Like the programs themselves , this sample evolves over the next few chapters, so there are some remaining concepts before you understand the whole test program and Web Service implementation.

Table 8-2: Ant Targets

TARGET

DESCRIPTION

testproductorder

Runs the product order sample business process




Web Service Patterns
Web Services Patterns: Java Edition
ISBN: 1590590848
EAN: 2147483647
Year: 2003
Pages: 190

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net