2.3.3 Integrating processes

The HelloProductArrangement sample program introduced here assumes that shop staff use a business system to perform stock allocation and delivery arrangement when securing products.

The following figure and table describe the processing details of the HelloProductArrangement sample program:

Figure 2-6 Processing details of the HelloProductArrangement sample program

[Figure]

Table 2-3 Processing contents of the HelloProductArrangement sample program

ComponentTypeDescription
Service requesterHTML
Servlet
JSP
  • Displays the input screen, and calls the product arrangement business process.
  • Obtains (as the return value) the results of calling the stock management service, and displays them on the output screen.
  • Obtains (as the return value) the results of calling the delivery reception service, and displays them on the output screen.
Product arrangement business processBusiness process
  • Receives a request from the service requester, and calls the stock management service via the stock management adapter.
  • Receives a request from the service requester, and calls the delivery reception service via the delivery reception adapter.
  • Obtains the results of calling the stock management service via the stock management adapter, and returns them to the service requester.
  • Obtains the results of calling the delivery reception service via the delivery reception adapter, and returns them to the service requester.
Stock management adapterService adapter
  • Receives a request from the product arrangement business process, and calls the stock management service.
  • Returns the response of the stock management service to the product arrangement business process.
Delivery reception adapterService adapter
  • Receives a request from the product arrangement business process, and calls the delivery reception service.
  • Returns the response of the delivery reception service to the product arrangement business process.
Stock management serviceWeb Service
  • In response to a call from the product arrangement business process, allocates product stock and returns the allocation number to the product arrangement business process.
Delivery reception serviceWeb Service
  • In response to a call from the product arrangement business process, returns the delivery number obtained as a result of delivery arrangement.