Bankapp Workflow

This sample application uses the Tuxedo bankapp service, DEPOSIT, in a Client Request with Response workflow conversation.

Concepts Demonstrated By This Sample

Calling a Tuxedo application, bankapp, and using bankapp services from a WebLogic Integration workflow.

Sample Code

A sample WebLogic Integration workflow is available in <BEA_HOME>/weblogic81/samples/partners/Tuxedo/TuxSampleCode/bankBusinessProcess to assist you in understanding how to specify access to Tuxedo services from a workflow.

This sample application uses the Tuxedo bankapp service, DEPOSIT, in a Client Request with Response workflow conversation.

To use this sample, you must complete the following tasks.

  1. You must have WebLogic Integration installed.
  2. The sample application needs to be targeted to an Integration-enabled WebLogic domain.
  3. Make sure you configure WTC in this domain as instructed for the Bankapp Web Service sample.
  4. Create a new Process application. In the WebLogic Workshop IDE select File->New->Application.
  5. In the New Application dialog, select Process in the left pane and Process Application in the right pane. Type a name for the process application in the Name field. Be sure the application is targeted to an Integration domain, such as the samples Integration domain in <BEA_HOME>/weblogic81/samples/domains/integration.
  6. Click Create.
  7. Import the sample files into your new application. First, select the Schemas node in the Application Pane, then right-click and select Import. Browse to <BEA_HOME>/weblogic81/samples/partners/Tuxedo/TuxSampleCode/bankBusinessProcess/bankBusinessProcessWeb/Schemas and select both xsd files in that directory for Import.
  8. Next, select the Process Web Project node created by Workshop (the name should be your application's name followed by Web, for example myProcessAppWeb). Right-click and select Import. Browse to <BEA_HOME>/weblogic81/samples/partners/Tuxedo/TuxSampleCode/bankBusinessProcess/bankBusinessProcessWeb and select the bankBusinessProcessTransformations and controls folders for Import.
  9. Finally, select the processes folder under the Process Web Project, right click and select Import. Browse to <BEA_HOME>/weblogic81/samples/partners/Tuxedo/TuxSampleCode/bankBusinessProcess/bankBusinessProcessWeb and select the bankBusinessProcess.jpd file for Import.
  10. Now delete the default process.jpd file created by WebLogic Workshop. Right-click on process.jpd in the processes folder and select Delete.
  11. Insert the Tuxedo Control into your application. Open the file bankBusinessProcess.jpd and make sure you are in the Design View. In the Data Palette Pane, select Controls->Add->Tuxedo. The Insert Control - Tuxedo dialog displays.
    1. In step 1 of the dialog, enter bankSvc in the Variable name field.
    2. In step 2 of the dialog click Use a Tuxedo Control already defined by a JCX file to use an existing Tuxedo Control file. Browse to controls/BankCtrl.jcx file and click Select.
    3. Click Create in the Insert Control - Tuxedo dialog.
  12. Open the file bankBusinessProcess.jpd in WebLogic Workshop and then start the test browser. Choose the tab to test the SOAP message.
  13. Replace the text in the ACCOUNT_ID and SAMOUNT fields in the test XML with a valid bankapp account identifier, for example 10001, and dollar amount.

Related Topics