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


Chapter 3 TIBCO ActiveMatrix BusinessWorks: Working with the ProductCreate API Call (Account Level) : Running the Example

Running the Example
Perform the following tasks to run the example.
 
Task A 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. 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 B Running the TIBCO ActiveMatrix BusinessWorksProcess
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.
3.
Click procCreateAccount in the Process folder. The BusinessWorks process is displayed as shown next:
4.
Check the value or the JmsProviderUrl global variable to see whether it reflects the same parameter of the repository which is being used by the adapter to run.
5.
Provide a valid location for the output file in the Write File activity. This file contains the reply XML message sent by Kenan/BP to the request sent by the adapter. Double-click the Write File icon, select the Input tab and edit the filename parameter.
6.
Provide a valid value for the input parameters in the Render-XML task. Double-click the Render-XML icon, select the Input tab and provide the values as desired. The datatype of a particular input field has to be mentioned against the 'e-dtype' tag for it. The Render-XML task will be displayed as shown next:
In this example, the following parameters gave been populated:
BillingAccountInternalId
ElementId (Specific for Account level Products).
OpenItemId
ParentAccountInternalId
TrackingId
TrackingIdServ
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