Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 6 TIBCO ActiveMatrix BusinessWorks: Working with the User-Defined Transaction (UDT) API Call : Running the Example

Running the Example
Perform the following tasks to run the example:
 
Task A Running the Adapter
1.
Put the local repository .dat file metioned in the previous section into any location on the UNIX machine where the adapter is installed and the Kenan/FX middleware is running.
2.
Edit the adkenan.tra file. This is located in $TIBCO_HOME/adapter/adkenan/<version_num>/bin.
Specify the repourl as the location of the local repository .dat file mentioned in step 1.
Specify the configurl as KenanAdapterConfiguration if the udt BusinessWorks process runs, and KenanAdapterConfiguration1 if the udt (direct parse) BusinessWorks process runs.
3.
Open a new console session. Change the working directory to $TIBCO_HOME/adapter/adkenan/<version_num>/bin and type adkenan. Executing this command starts the adapter. If the adapter is started successfully, the following message is displayed:
Successfully initialized the adapter.
Task B Running the TIBCO ActiveMatrix BusinessWorksProcess
4.
Start TIBCO Designer.
Click Programs > TIBCO > TIBCO Designer <version_num> > Designer <version_num>
5.
In the initial dialog box, click Open Existing Project. Browse and select the location where the project was saved.
6.
Click KenanAdapterConfiguration. Click UDT Tool > Load UDT Tool. The UDT Tool is displayed:
7.
Provide the Source XSD and Output directory fields with values.
a.
Click the browse button opposite to the Source XSD field to locate the CustomerUdtRequest.xsd file which is provided by CSG. After this .xsd file is selected, the various elements are loaded and displayed in the UDT Tool window.
b.
c.
d.
Click Generate in the UDT Tool window. A message box shows that 8 files are generated in the Output directory.
e.
Click Close to close the UDT Tool window.
8.
a.
Select Project > Import Resources from File, Folder, URL.
b.
Select Folder from the Format drop-down box.
c.
d.
Click OK. The Import Successful message box displays. Click OK.
9.
Edit the process definition.
Click udt under the Process folder in the Project panel. The BusinessWorks process is displayed as shown next:
10.
Set the RvDaemon global variable in the udt process to the value of the RvDaemon parameter in the repository which is used by the adapter.
11.
The file associated with Success includes the response XML message from Kenan/BP. This response is for the request sent by the adapter to Kenan/BP.
To provide a valid location for the output file, click the corresponding Write File icon, select the Input tab and edit the fileName parameter.
12.
In the udt process, click the Mapper activity named Map Data. Select the Input tab and in the Activity Input, go to CustomerUdtRequest>RequestList>Account>AccountGet>Account>Key>AccountInternalId. Provide a valid value for the AccountInternalId field. The value of AccountInternalId specified here must be one of the values in the ACCOUNT_NO column of the CMF table.
13.
In the Activity Input, go to CustomerUdtRequest>RequestList>Product>ProductGet>Product>Key>ViewId. The value of the ViewId specified here must be one of the values in the VIEW_ID column of the PRODUCT_VIEW table.
14.
Trigger the TIBCO ActiveMatrix BusinessWorks process. Select the Tester tab in the project panel and press F9. In the next dialog box, click Load & Start Current. Make sure the configurl is specified as KenanAdapterConfiguration as described in Task A.
15.
Follow the same procedure as described from step 6 to step 11 to edit, check and run the process udt (direct parse). Make sure the configurl is specified as KenanAdapterConfiguration1 as described in Task A.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved