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 : Configuring the Example

Configuring the Example
Task A Configure an adapter instance
5.
Start TIBCO Designer.
Click Programs > TIBCO > TIBCO Designer <version_num> > Designer <version_num>.
6.
In the initial dialog box, click New Empty Project and specify a name for the project in the dialog box titled Save Project. Click OK.
7.
Drag and drop an adapter instance from the palette panel to the design panel.
8.
Provide a name for the adapter instance in the Instance Name field in the Configuration tab.
9.
Select the Global Variables tab in the project panel and provide the value for the following global variables:
adkenanLogin (The User name to connect to the Security Server)
adkenanPassword (The password to connect to the Security Server)
adkenanSecurityRealm (Security Realm variable for the Security Server)
10.
Save the project by selecting Project > Save.
11.
Exit TIBCO Designer.
Task B Convert the project into a DAT file
12.
Start TIBCO Designer.
Click Programs > TIBCO > TIBCO Designer <version_num>> Designer <version_num>.
13.
In the first screen that is displayed, click the Administration tab.
14.
Then click the Convert files to DAT icon.
15.
Browse the Project Directory field and select the location where the project had been saved (point 6 in task A: Configure an adapter instance).
16.
Browse the .dat file field and select the location where you intend to save the .dat file. The only restriction here is that there cannot be a .dat file as well as a project of the same name in the same directory.
17.
Click OK to generate the .dat file in the specified location.
Task C Importing the XSD files
18.
Start TIBCO Designer.
Click Programs > TIBCO > TIBCO Designer <version_num> > Designer <version_num>.
19.
Open the project saved in Task A. This can be done by clicking Open Existing Project and selecting the project.
20.
Create a folder named XSD under the root folder. This will store all the imported XSD files. Create another folder called Process to store the BusinessWorks process.
21.
For Kenan/BP 11.5 or 11.7, import the following XSD files in the order specified: request.xsd, AccountLocate.xsd, ExternalIdAcctMap.xsd, CreditCard.xsd and Account.xsd. For Kenan/BP 12.0, import the following XSD files in the order specified: request.xsd, AccountLocate.xsd, ExternalIdAcctMap.xsd, PaymentProfile.xsd and Account.xsd. The order is useful because Account.xsd includes the schema location of the other XSD files. These XSD files are a part of the Kenan/FX installation.
22.
To import an XSD, select Project > Import Resources from File, Folder, URL. Select the file (.xsd,.xslt,.wsdl) from the drop-down box and browse to point to the XSD location.
Task D Configuring the BusinessWorks process
23.
Create a new TIBCO ActiveMatrix BusinessWorks process by dragging the Process Definition icon from the palette panel and dropping it in the design panel.
24.
Configure a mapper task:
Drag and drop a mapper task from the palette panel.
Click the Input Editor tab.
Click the Add Child button and select XML Element Reference from the Content drop down box.
In the Schema field (which shows a default of <No Namespace>), browse and select the AccountGet element in Account.xsd.
Click OK in the dialog box shown above. Click Apply in the Mapper task dialog box.
Select the Input tab to provide the field values to execute this request.
Expand the AccountGet node in the Activity Input panel. Specify a value for the AccountInternalId and specify int in the e-dtype field.
Click Apply.
Attach a trigger from the Start node to the Mapper task.
25.
Configure a Render-XML task
Drag and drop a Render-XML task from the palette panel to the design panel.
Attach a trigger from the Mapper task to the Render XML task.
In the Configuration tab, select Output Style as text. Select the Validate Input and Format with Default Namespace Prefix check boxes. Select UTF-8 as the encoding.
In the Input Editor tab, select the Request element from Account.xsd. The procedure is exactly same as that of the Mapper task. (Refer to points c and d in the previous section).
Select the Input tab to provide the field values to execute this request.
Expand the Request node in the Activity Input panel. Specify values for the fields under the Header group.
Drag and point the AccountGet node from the Process Data panel (this is the output of the mapper task) to the node named any element or exception.
In the ensuing dialog box titled Mapping Wizard, select (any element). Click Next and then click Finish. The screen is shown next.
26.
Configure an Invoke an Adapter Request-Response Service task
Drag and drop a Invoke an Adapter Request-Response Service task from the palette panel to the design panel.
In the Adapter Service field browse and select the Request-Response Service. Click Apply.
Attach a trigger from the Render XML task to the Invoke task.
Map the Render XML output (a string called XMLstring) to the incoming Request-Response Schemas (a string named InXMLMsg) as shown.
Click Apply.
The subsequent steps (like writing the response to a file) are optional.
 

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