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


Chapter 2 TIBCO ActiveMatrix BusinessWorks: Working with the AccountGet API Call : Running the Example

Running the Example
Perform the following tasks to run the example.
Task G Starting the Adapter
1.
Edit the adkenan.tra file. This is located in $TIBCO_HOME/adapter/adkenan/<version_num>/bin. Specify the repourl as the location where the local repository was saved in the previous section (Refer to Task F, Converting the repository into .dat format). Specify the configurl as /tibco/private/adapter/KenanAdapterConfiguration.
2.
Open a new console session on the UNIX machine where the adapter is installed and the Kenan/FX middleware is running.
3.
Move to $TIBCO_HOME/adapter/adkenan/<version_num>/bin and type adkenan. This brings up the adapter and displays the message Successfully initialized the adapter.
Task H Running the TIBCO ActiveMatrix BusinessWorks Process
1.
Start TIBCO Designer.
Click Programs > TIBCO > TIBCO Designer <version_num> > Designer <version_num>.
2.
In the initial dialog box, click Open Existing Project. Browse and select the location where the project was saved in Task E, Importing the project in the section, Set up the AccountGet Example.
3.
Click on procGetAccount in the Process folder. The BusinessWorks process is displayed as shown next.
4.
Check the value or the RvDaemon global variable to see whether it reflects the same Daemon parameter of the repository which is being used by the adapter to run.
5.
Provide a valid location for the output file in both the Write File activities titled success and error. The file associated with success will have the reply XML message sent by Kenan/BP to the request sent by the adapter and the other one (associated with error) will have the Exception message being sent by the adapter, in case of errors. To provide a valid location for the output file, double-click the corresponding Write File icon, select the Input tab, and edit the filename parameter.
6.
Provide a valid value for the AccountInternalId field in the Render-XML task. Double-click the Render-XML icon, select the Input tab, expand the AccountGet node till you see the AccountInternalId field. The adapter will search for the account with the same Internal ID. The Render-XML task will be displayed as shown next:
 
There are two Write File activities. The first Write File is used to store the result of successful API execution. The second Write File is used to store an exception, if any.
7.
Trigger the TIBCO ActiveMatrix BusinessWorksprocess. Select the Tester tab in the project panel and press F9. In the next dialog box, click Load & Start Current.

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