BEA Logo BEA WebLogic Process Integrator Release 1.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WebLogic Process Integrator Doc Home   |   Tutorial   |   Previous Topic   |   Next Topic   |   Contents   |  

Overview of the Example

 

The following sections provide an overview of the WebLogic Process Integrator workflow example:

 


Description

The example presented in this document involves the following workflows:

The example workflows interact by way of XML messaging and are supplied with the product on the WebLogic Process Integrator software CD and can be imported into your database. This document describes in detail how to define these workflows and in doing so describes the main functions of WebLogic Process Integrator.

About the Example

The example derives the flow from the confirmation of the order through shipping the item to and billing the customer. The front end handling the order is abstracted for the purpose of this exercise into an XML document, which provides the ordering information to the Order Processing workflow. (In a live situation, the XML document would be generated by a front-end customer application.)

The order process is split into two workflows: Order Processing, which processes the order, and ShipBill, which handles the shipping and billing of the order. The third workflow, Start Order Processing, is a workflow that has been created for this example. Its function is simply to start the order process. For the purposes of this example, the Start Order Processing workflow takes the place of the customer application.

It is important to note that this example could have been implemented as one workflow interaction with explicit calls to application functions through the use of several actions and without necessarily using XML.

Example Workflows

The three workflows are as follows:

The following diagram illustrates the interaction between the workflows defined in this tutorial.

Figure 1-1 Workflow Interaction

Important Terms

Before you get started with this tutorial, it is important to understand the following key terms:

 


Main Steps

The main steps for defining and running the workflow example are as follows. These steps are described later in this document and in other documents.

  1. Create the following user, role, and organization within WebLogic Server by adding them to the "WLPI Specific Section" of the weblogic.properties file:

  2. Activate the user, role, and organization that you added to the weblogic.properties file in WebLogic Process Integrator Studio following the instructions provided in the Chapter 2, "Administering Data within WebLogic Process Integrator," in the BEA WebLogic Process Integrator Studio Guide.

  3. Deploy the JavaBean POBean, which is used in the Order Processing workflow to check the inventory for the item ordered and return the results to the workflow. The file POBean.jar is provided on the product CD in the following directory:

    Drive:/wlprocessintegrator/studio/examples

    or for UNIX:

    \root\studio\examples

    The weblogic.properties file has the setup required to deploy this bean.

  4. Import the workflow template definitions for Start Order Processing and ShipBill using the procedure described in Importing the Start Order Processing Workflow Template Definition in Defining the Start Order Processing Workflow. The example discussed in this document involves three workflow template definitions, all of which are available in the following directory of the WebLogic Process Integrator CD:

    Drive:/wlprocessintegrator/studio/examples

    or for UNIX:

    \root\studio\examples

    You will follow the instructions provided in this guide to create and define the Order Processing workflow, so you do not need to import this workflow template definition. However, if you want to import all three example workflows and read this document with the workflows already set up and available in your database, you must import the workflows in the following order:

    1. Start Order Processing

    2. ShipBill

    3. Order Processing

      Note: Importing the workflows in this sequence is only mandatory if you are importing all three workflows, rather than the suggested two workflows (Start Order Processing and ShipBill).

  5. Define the workflows. (See Defining the Order Processing Workflow, Defining the Start Order Processing Workflow, and Defining the ShipBill Workflow.)

    You must redefine a few actions in the Order Processing and ShipBill workflows to resolve some external references. A warning message is displayed that the workflow contains some unresolved references. They are as follows:

  6. Execute the workflow. (See Executing the Workflow Example.)