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.
- You must have WebLogic Integration installed.
- The sample application needs to be targeted to an Integration-enabled WebLogic domain.
- Make sure you configure WTC in this domain as instructed for the Bankapp Web Service sample.
- Create a new Process application. In the WebLogic Workshop IDE select File->New->Application.
- 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.
- Click Create.
- 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.
- 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.
- 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.
- Now delete the default process.jpd file created by WebLogic Workshop. Right-click on process.jpd in the processes folder and select Delete.
- 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.
- In step 1 of the dialog, enter bankSvc in the Variable name field.
- 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.
- Click Create in the Insert Control - Tuxedo dialog.
- Open the file bankBusinessProcess.jpd in WebLogic Workshop and then start the test browser. Choose the tab to test the SOAP message.
- 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