Step 5: Run Your Business Process

To run and test the business process that you have created, complete the following steps:

  1. If WebLogic Server is not already running, from the WebLogic Workshop menu, choose Tools —> WebLogic Server —> Start WebLogic Server.
  2. When WebLogic Server is running, the following indicator is visible in the status bar at the bottom of the WebLogic Workshop visual development environment:

    image

  3. After the Server is running, from the WebLogic Workshop menu, click Build —> Build Application. WebLogic Workshop builds your application.
  4. After the build finishes, click the Start button image on the menu bar to run your business process. The Workshop Test Browser is launched. You can use it to test your business process using sample input values.
  5. If the Test Form page is not already open, click the Test Form tab.
  6. 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.

  7. Open the file browser by clicking Browse beside the xml requestXML (file value) field.
  8. Select QuoteRequest.xml from the requestquote\testxml folder in your project.
  9. The QuoteRequest.xml file is available at the following location in your file system: myapplications\Tutorial_Process_Application\
    Tutorial_Process_ApplicationWeb\requestquote\testxml\QuoteRequest.xml

    In the preceding line, myapplications represents the location in which you created your Tutorial_Process_Application application.

  10. Click the button labeled with the method name on your business process (quoteRequest) to start the business process.
  11. image

    The Test Form page refreshes to display a summary of your request parameters and the responses from the Web service in the Message Log.

    image

  12. Click Refresh on the Message Log to refresh the entries in the log until this instance of the business process completes running. Entries in the Message Log correspond to the methods on your business process:
  13. You can click any of the methods in the Message Log to view the details of the call. For example, if you click quoteRequest, the Service Request panel displays the XML message sent by the client (you) when the method was called.

    If you click taxCalculation.returnTaxRate, you can view the response from the taxCalculation service—in this case, the tax rate was calculated, based on the input value (NJ) for the state element in the test XML.

    image

    In the sample XML message you used, state="NJ". That is, the state to which the order is shipped is NJ. This XML message is designed to cause the flow of execution through the Yes branch on your Sales Tax Calculation Needed? node. The preceding figure shows the rate of sales tax returned for this test XML message.

    <returnTaxRate xmlns="http://www.openuri.org/">
    <taxRate>0.08</taxRate>
    </returnTaxRate>

    By following these steps you ran and tested a simple business process, which contains a Start node and a Decision node, and includes an asynchronous call to a Web service, via a control.

  14. To stop the Test Browser, you can simply close it, or return to WebLogic Workshop and click image on the tool bar.

Subsequent steps in this tutorial build on the business process you have created so far.

Note About Additional Functionality in the Test Browser

The following additional links are available from the Test Form page in the Test Browser:

Related Topics

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

Previous Document