Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 4 Example for Configuring a CI Subscription Service and Wiring It with BWSE : Setting Up the Example

Setting Up the Example
To set up the environment for the example, you need to complete the following tasks:
To create a new SOA project instead of using the pre configured one, proceed with Task D through Task J.
 
Task A Preparing PeopleSoft
For detailed information about preparing PeopleSoft, refer to TIBCO ActiveMatrix Adapter Service Engine for PeopleSoft Configuration and Deployment.
Task B Configuring the Environment for TIBCO ActiveMatrix
For detailed information about configuring the Environment for TIBCO ActiveMatrix, refer to Configuring the Environment for TIBCO ActiveMatrix.
Task C Importing the Adapter Project, SOA Project and TIBCO Designer Project
To import the Adapter project, the SOA project and the TIBCO Designer project into the TIBCO Business Studio, refer to Importing the Projects into TIBCO Business Studio.
The Adapter project PSAdapterCISubSample, the SOA project PSAdapterCISubSOASample and the TIBCO Designer project PSAdapterCISubBWSample must be imported into your workspace for this example.
If you want to create a new SOA project and a new TIBCO Designer project instead of using the pre configured ones, proceed with the following tasks.
Task D Creating an SOA Project
To create a new SOA project, follow these steps:
1.
2.
Select File > New > Project... from the Menu to open the New Project dialog.
3.
Expand TIBCO ActiveMatrix > ActiveMatrix SOA Project, and then click the Next button.
4.
Type PSAdapterCISubSOASample in the Project name field, and then click the Next button.
5.
Click the Finish button.
Task E Creating a TIBCO Designer Project
To create a TIBCO Designer Project, follow these steps:
1.
Select File > New > Project from the Menu to open the New Project dialog.
2.
Select TIBCO Designer > TIBCO Designer Project in the Select a wizard page, and then click the Next button.
3.
Type PSAdapterCISubBWSample in the Project name field, and select the Create new project in the workspace radio button.
4.
Click the Finish button.
Task F Generating the Adapter WSDL
Before performing this task, make sure all the settings for the PSAdapterCISubSample project are correct.
To generate the adapter WSDL file, follow these steps:
1.
In the Project Explorer Panel, right-click PeopleSoftAdapterConfiguration.adpsft8model under the imported Adapter project PSAdapterCISubSample.
2.
Select Generate Adapter WSDL from the pop-up menu.
3.
In the Target Project dialog, select PSAdapterCISubSOASample as the matching resource.
4.
Click the OK button.
Task G Importing Resources to the TIBCO Designer Project
To import resources to the newly created TIBCO Designer Project, follow these steps:
1.
2.
Select File > Import... from the Menu to open the Import dialog.
3.
Expand the General folder and select File System, and then click the Next button.
4.
Click the Browse button to locate the SOA project PSAdapterCISubSOASample in the From directory drop-down list, and check the PeopleSoftAdapterConfiguration_genresources and schema checkboxes in the left pane.
5.
Click the Finish button.
Task H Configuring the SOA Project and the TIBCO Designer Project
To configure the SOA project and the TIBCO Designer project, follow these steps:
1.
In the Project Explorer Panel, select the SOA project PSAdapterCISubSOASample, expand the Composites folder, and then double-click PSAdapterCISubSOASample.composite to launch the Composite Editor on the right.
2.
a.
Drag the PeoplesoftAdapter component from the Palette to the Components column and enter PSAdapterComp as the component name.
b.
In the Properties view, click the Services tab and then click the Add button to open the Resource Picker dialog. Expand the tree in the left pane and select the adapter endpoint CURRENCY, and then click the Add button to add it into the Selected Adapter Endpoint pane on the right. Click the OK button, and the added service will appear under the Services tab.
3.
a.
Drag the BusinessWorks component from the Palette to the Components column and enter BWComp as the component name.
b.
Click the Reference tab in the Properties view.
Click the Add button to add the service reference that you have imported in Task G. The BusinessWorks process, PeopleSoftAdapterConfiguration_CURRENCY.process, will now be generated in the TIBCO Designer project PSAdapterCISubBWSample.
Click the radio button next to PSAdapterComp->CURRENCY to draw a wire between the BWComp component and the PSAdapterComp component.
4.
Double click the TIBCO Designer project PSAdapterCISubBWSample to open the Editor View panel on the right. Right-click the mouse and select Add Resource > HTTP > HTTP Connection from the pop-up menu to create a HTTP Connection Activity.
Task I Configuring the BusinessWorks Process in the Designer Project.
In Task H, the BusinessWorks process, PeopleSoftAdapterConfiguration_CURRENCY.process, has been generated in the TIBCO Designer project.
To configure the BusinessWorks process, follow these steps:
1.
Double-click PeopleSoftAdapterConfiguration_CURRENCY.process to open the Editor View on the right pane.
2.
a.
Right-click the Editor View pane and select Add Resource > HTTP > HTTP Receiver from the pop-up menu. Ensure that the default Start activity has been changed, otherwise, it will not work.
b.
Click the HTTP Receiver activity to open the Configuration View panel. Set HTTP Connection to the HTTP connection activity created previously and Operation in this panel and add three string parameters DESCR, DESCRSHORT, and CURRENCY here.
3.
a.
Drag and drop the Invoke Partner icon from the Palette Panel into the Design Panel.
b.
In the Configuration tab, select the BusinessWorks component that you have configured in Task H in the Partner drop-down list and select Operation.
c.
d.
Click the Apply button.
4.
Connect the HTTP Receiver, Invoke Partner, and End activities.
Task J Creating the Service Assembly
To create the service assembly, follow these steps:
1.
In the Project Explorer, select the PSAdapterCISubSOASample project.
2.
Right-click the composite file PSAdapterCISubSOASample.composite, and then select Service Assembly from the pop-up menu. Save the composite if prompted.
3.
Expand the Deployment Packages folder, right-click PSAdapterCISubSOASample.saf, and then select Build Archive from the pop-up menu. Save the file if prompted.
After completing the building process, you can see an PSAdapterCISubSOASample.zip file which has been created in the Deployment packages folder. This is the SA Project to be deployed to TIBCO ActiveMatrix Administrator.

Copyright © TIBCO Software Inc. All Rights Reserved