Tutorial: Building Your First Business Process

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Tutorial: Building Your First Business Process

WebLogic Integration's business process management (BPM) functionality enables the integration of diverse applications and human participants, as well as the coordinated exchange of information between trading partners outside of the enterprise.

This tutorial provides a tour of the features available to design business processes in the BEA Workshop graphical design environment. It describes how to create a business process that orchestrates the processing of a Request for Quote.

 


Tutorial Goals

The goal of the tutorial is to provide the steps to create and test a business process using the graphical environment provided in BEA Workshop. It includes:

Tutorial Overview

The business process in this scenario is started as a result of receiving a Request for Quote from clients. The business process checks the enterprise's inventory and pricing systems to determine whether the order can be filled. Based on the shipping address provided by the client, the process also determines whether sales tax should be added to the quote. Finally the business process compiles a single quote document from the sales tax, price, and availability data, logs the quote by writing it to your file system and sends it to the client.

Designing the Request for Quote Business Process

The following sequence summarizes the steps in the request for quote process and describes how the business process is designed:

  1. Receive a Request for Quote from a client.
  2. You design a Client Request node in your business process to handle the receipt of an XML document that contains the customer name, shipping address, and the identity and quantity of the items for which the quote is requested. You design the business process so that it starts when it receives a Request for Quote message from a client.

  3. Evaluate a condition to determine whether sales tax should be included in the quote.
  4. In this case, you design a Decision node to create different paths of execution based on the evaluation of a condition. The Decision node includes, on one path, a call to a Web service that calculates sales tax. Business Processes communicate with other services via controls. You design a Control Send node to communicate with a Web service that calculates the sales tax for your quote.

  5. Process the items sent in the Request for Quote message.
  6. The business process must calculate the price and determine the availability of the items and quantities requested in the incoming XML message. This involves the creation of the following nodes in your business process:

    • For Each: For Each nodes represent points in a business process at which a set of activities is performed repeatedly, once for each item in a list. For Each nodes include an iterator node (on which a list of items is specified) and a loop (in which the activities to be performed for each item in the list are defined)
    • Parallel: Parallel nodes represent points in a business process at which a number of activities are executed in parallel. In this case, you design a Parallel node containing two branches: one to execute the events that calculate the price for the quote, the second to execute the events that determine the availability of items for the quote.
    • Control nodes: Control Send and Control Receive nodes on each path handle the asynchronous exchange of messages between a business process and Web service resources (via controls). A pricing Web service returns the price for the items in the Request Quote document. An availability Web service returns information about the availability of the requested items.
  7. Compile price, availability, and tax information calculated by the business process into a quote document.
  8. Your business process calculates a price quote, availability information, and sales tax rate. You design your business process to use Transformation controls that map the various pieces of data to an XML document that is returned to the client as the quote.

  9. Keep a record of the quote created by the business process.
  10. Your business process uses a File control to write the quote to your file system.

  11. Send a response, containing the quote, to the client.
  12. You design a Client Response node to send a response to the client. The response contains the data calculated by the business process.

Actors in the Tutorial Scenario

The actors in the tutorial scenario are represented in the Figure 1-1, and described in the text that follows the figure:

Figure 1-1 Tutorial Scenario

Tutorial Scenario

The actors in the scenario include:

Steps in This Tutorial

This tutorial creates a business process that meets the following requirements: receives Request for Quote messages from clients, starts the business process on receipt of the Request for Quote, validates and processes the request, and sends the status of the Request for Quote to the client.

The tutorial is organized into parts:

Part I

In Part I, you learn how to create a new business process, specify how the process is started at run time, and design a Decision node that includes asynchronous calls to a Web Service. Lastly, you can run and test the business process you created. To get started, proceed to Build and Run a Simple Business Process.

Part II

In Part II, you learn how to replace the asynchronous call to the Web service you designed in Part I with an asynchronous call to another business process. You learn how to create a process control and how the control's framework makes it easy to change the interactions your business process makes with various resources. To learn about the specific steps to complete this part, see Call a Business Process Using a Process Control.

Part III

In Part III, you add more complex business logic to the business process you created in the preceding parts. You learn how to create looping logic, design parallel processing nodes, transform the price and availability data from untyped XML data to typed XML, use a File control to write your quote to a file system, and use a Client Response node to return the quote to the client invoking the business process. At the end of this part, you can run and test the business process you built. To learn about the specific steps to complete this part, see Adding Looping Logic, Parallel Paths . . .

Part IV

In Part IV, you add a message broker, to the business process and run and test the business process. To learn more see Using the Message Broker.

  Back to Top       Previous  Next