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

Step 1: Create Your Business Process Application

In this step, you use WebLogic Workshop to create the application, in which you build the tutorial business process (RequestQuote.java). The tasks in this step include:

To Create a Business Process Tutorial Application
  1. From the BEA Workshop for WebLogic Platform menu, click File Arrow symbolNew Arrow symbolOther. The Select a Wizard dialog box is displayed.
  2. Expand WebLogic Integration, and select Tutorial:Request Quote Process Application, and click Next.
  3. Figure 2-1 Select a Wizard dialog box


    Select a Wizard dialog box

  4. In the Request Quote Process Application dialog box, type the following:
    1. In the Ear Project Name field, enter Tutorial_Process_Application_Ear.
    2. In the Web Project Name field, enter Tutorial_Process_Application_Web.
    3. In the Utility Project Name field, enter Tutorial_Process_Application_Utility.
    4. Select the Add Weblogic Integration System and Control Schemas in Utility Project checkbox to add the System schemas to the Schemas folder under the Utility project.
    5. Figure 2-2 Creating Request Quote Application


      Creating Request Quote Application

  5. Click Finish.
  6. In the displayed Open Associated Perspective? dialog box, click Yes to switch from Workshop Perspective to Process Perspective.
  7. Figure 2-3 Open Associated Perspective


    Open Associated Perspective

Note: Workshop is the default perspective of the 9.2 Workshop for WebLogic Integration. The Process perspective contains all the required views like Node Palette, Data Palette, and so on.
Note: Similarly, XQueryTransformation perspective contains views pertaining to XQuery Transformation like Expression Functions, Expression Variables, Target Expression, and Constraints.
  1. The Tutorial Process Application is created and displayed in the Package Explorer pane.
  2. Figure 2-4 Package Explorer pane


    Package Explorer pane

    The Package Explorer pane displays the files and resources available in the application:

    Web Project Name— A project with WebLogic Integration process facet added to it. Every application contains one or more projects. Projects represent WebLogic Server applications. In other words, when you create a project, you are creating a Web application. (The name of your project is included in the URL that clients use to access your application.)

    Utility Project Name—A project that contains the XML Schemas and the Message Broker channel file used in the application.

    Web Applications are J2EE deployment units that define a collection of Web resources such as business processes, Web services, JSPs, servlets, HTML pages, and can define references to external resources such as EJBs.

    requestquote—contains the business processes, transformation, xq files

    • FileQuote.java—A File control used by your Request for Quote business process to write a file to the file system.
    • PriceAvailTransformations.javaContains data transformations used in RequestQuote.java.
    • RequestQuote.java—The completed business process. (The tutorial walks you through rebuilding this business process. It is provided for reference, and allows you to run and test the business process before you start rebuilding it.)
    • RequestQuoteTransformation.java and TutorialJoin.java)—Contains data transformations used in RequestQuote.java.
    • XQ files—An XQ file is created for each transformation method on a transformation file. XQ files contain the queries (written in the XQuery language) called by the transformation files in your project.

      requestquote.services folder contains services with which your business process interacts. The services folder includes Web services, Web Service controls, business processes and Process controls.

      testxml folder contains XML files which you can use to test the completed business process.

      Note: If you want to run and test the RequestQuote.java provided for you in the application folder, complete the steps in Step 12: Run the Request Quote Business Process.
  3. In this tutorial, you build the RequestQuote.java from scratch. Therefore, to proceed, you must delete the following files from your Tutorial_Process_Application_WEB project:
    • RequestQuote.java
    • RequestQuoteTransformation.java including its XQ files:
    • RequestQuoteavailProcessor_avail.xq
      RequestQuoteavailProcessorGetAvail.xq
      RequestQuotepriceProcessor_returnPrice.xq
      RequestQuotepriceProcessorGetPrice.xq
      RequestQuotetaxCalculationRequestTaxRate.xq

      Figure 2-5 Web Project Files


      Web Project Files

      Note: To delete these files, put your mouse pointer in the Package Explorer tab, then press Shift and select the files you want to delete. Right-click and select Delete. Click Yes in the Delete confirmation dialog box. Delete only the files listed in this step. You need all other files as you build the business process. Files are deleted from the Package Explorer pane (and from your application folder in the file system).
To Begin the Design of Your Request for Quote Business Process

In this step you start the process of recreating the RequestQuote.java business process in the requestquote folder.

  1. In the Package Explorer pane, under the Tutorial_Process_ApplicationWeb\src\requestquote folder, right-click the requestquote folder.
  2. Select NewArrow symbolProcess from the menu that is displayed. The New Process dialog box is displayed.
  3. Figure 2-6 New Process Dialog Box


    New Process Dialog Box

  4. In the Name field, enter RequestQuote.
  5. Click Finish.
  6. The new RequestQuote.java file is created and displayed in the Design view (which for the moment consists only of a Start and a Finish node).


    New Process Dialog Box

Related Topics

Components of Your Application


  Back to Top       Previous  Next