Step 15: Run and Test the Request Quote Business Process With the Quote Validation Service

In the same way you ran and tested the business process you created when you finished Part III of the tutorial, you can run and test the functionality of the business process you created in Part IV using WebLogic Workshop's browser-based interface.

To Launch the Test Browser

  1. Ensure that the RequestQuote business process is displayed in the Design View.
  2. If the WebLogic Server is not already running, from the WebLogic Workshop menu, choose Tools —> WebLogic Server —> Start WebLogic Server.
  3. If WebLogic Server is running, the following indicator is visible in the status bar at the bottom of the WebLogic Workshop visual development environment:

    image

  4. From the WebLogic Workshop menu, click Build —> Build Application. WebLogic Workshop builds your application.
  5. Click the Start button image on the menu bar to run your business process. The Workshop Test Browser is launched, through which you can test your business process using sample input values.
  6. If necessary, open the Test Form page.
  7. You can enter data that your business process can receive as part of a client request directly on the Test Form page. Alternatively, you can browse your file system and upload a file which contains your test data. In this case, test XML data are provided in the tutorial application for you to use.

  8. Click Browse beside the xml requestXML (file value) field to open the file browser.
  9. Select QuoteRequest_a.xml from the testxml folder in your project (Tutorial_Process_ApplicationWeb\requestquote\testxml\QuoteRequest_a.xml).
  10. Note: QuoteRequest_a.xml contains data that specify an order for a quantity of widgets of 400 or more. This data is designed to fail the validation check carried out by the ValidateOrder business process.

  11. Click the button labeled with the method name on your business process (quoteRequest) to invoke the method. The Test Form page refreshes to display a summary of your request parameters and the response from the external services in the Message Log:
  12. image

    The message log reflects the order of execution of methods in your RequestQuote business process and the services it calls. For the scenario logged in the preceding figure, note the following entries in the message log:

To Monitor Instances of Your Business Process

You can use the WebLogic Integration Administration Console to monitor your processes.

  1. Invoke the Administration Console in one of the following ways:
  2. The default username is weblogic and the password for the sample integration server is also weblogic.

  3. The WebLogic Integration Administration Console opens on the Process Instance Details page.
  4. image

  5. Click Process Instance Monitoring to open a page that allows you to:
  6. If you invoked the Process Instance Monitoring page after running the RequestQuote business process, as described in this step, three business processes are listed in the Process Instance Statistics page: RequestQuote, TaxCalcProcess, and Validate Order.

    image

  7. Click the name of any business process in the Display Name column to go to a page that displays more information about that process. For example, to learn more about the instance of the ValidateOrder business process that ran in your test:
  8. Click ValidateOrder in the Display Name column on the Process Instance Statistics page displayed in the preceding figure.
  9. A Process Instance Summary page is displayed. This page lists all the instances of the ValidateOrder business process that ran or are running.
  10. To display a page which contains more details about any instance, click the Instance ID in the ID column on the Process Instance Summary page.
  11. On the Process Instance Details page, click Graphical View to display a graphical representation of this instance of the ValidateOrder business process.
  12. To display information about the nodes, click each node of the ValidateOrder business process. Note that if you started your RequestQuote business process in the WebLogic Workshop Test Browser with the QuoteRequest_a.xml test data, the ValidateOrder process determines that the order is not valid. In that case, the No path on the Valid Order? Decision node is executed and highlighted in the Process Graph; the Yes path is gray, indicating that this path was not executed for this instance.

To learn more about Process Instance Monitoring in the WebLogic Integration Administration Console, see the Process Instance Monitoring topic in the Administration Console online help.

To Monitor the Message Broker Channels

You can use the WebLogic Integration Administration Console to monitor the Message Broker channels in your system, specifically the name, status, and the number of subscribers for each channel.

Open the Channel Summary List page in one of the following ways:

The Channel Summary List page is displayed. The list displays all the channels in your system (in the samples integration domain in this case). Note that the TutorialPrefix/Tutorial/StopQuote and TutorialPrefix/Tutorial/ValidateOrder channels used by your business process in Part IV of the tutorial are displayed:

image

Note the following information about the Message Broker channels:

To learn more about the Message Broker module in the WebLogic Integration Administration Console, see the Message Broker topic in the Administration Console online help.

Related Topics

Managing WebLogic Integration Solutions at http://edocs.bea.com/wli/docs81/manage/index.html

Running and Testing Your Business Process

Previous Document Next Document