Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Example for Configuring a CI Publication 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 an 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 PSAdapterCIPubSample, the SOA project PSAdapterCIPubSOASample and the TIBCO Designer project PSAdapterCIPubBWSample 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 PSAdapterCIPubSOASample 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 PSAdapterCIPubBWSample 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 PSAdapterPubSample 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 PSAdapterCIPubSample.
2.
Select Generate Adapter WSDL from the pop-up menu.
3.
In the Target Project dialog, select PSAdapterCIPubSOASample 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 PSAdapterCIPubSOASample 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
To configure the SOA project, follow these steps:
1.
In the Project Explorer Panel, select the SOA project PSAdapterCIPubSOASample, expand the Composites folder, and then double-click PSAdapterCIPubSOASample.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 COUNTRY, 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_COUNTRY.process, will now be generated in the TIBCO Designer project.
Click the radio button next to PSAdapterComp->COUNTRY to draw a wire between the BWComp component and the PSAdapterComp component.
Task I Configuring the BusinessWorks process in the Designer Project.
In Task H, the BusinessWorks process, PeopleSoftAdapterConfiguration_COUNTRY.process, was generated in the TIBCO Designer project.
To configure the BusinessWorks process, follow these steps:
1.
Double-click PeopleSoftAdapterConfiguration_COUNTRY.process to open the Editor View on the right pane.
2.
a.
Right-click the Editor View pane and select Add Resource > Service > Receive Partner Notification from the pop-up menu. Ensure that the default Start activity has been changed, otherwise, it will not work.
b.
Click the Receive Partner Notification activity to open the Configuration View panel. Configure Partner and Operation in this panel.
3.
a.
Drag a Write File activity from the Palettes panel into the process.
b.
Click the Write File activity to open the Configuration View panel.
c.
In the Input tab, type "PubResult.txt" in the fileName field and fill in the textContent field with the following content:
concat("<COUNTRY>",$Receive-Partner-Notification/ns1:COUNTRY_data/data/ns:COUNTRY/PROPERTIES/COUNTRY,"</COUNTRY><DESCR>",$Receive-Partner-Notification/ns1:COUNTRY_data/data/ns:COUNTRY/PROPERTIES/DESCR,"</DESCR><DESCRSHORT>",$Receive-Partner-Notification/ns1:COUNTRY_data/data/ns:COUNTRY/PROPERTIES/DESCRSHORT,"</DESCRSHORT><COUNTRY__2CHAR>",$Receive-Partner-Notification/ns1:COUNTRY_data/data/ns:COUNTRY/PROPERTIES/COUNTRY__2CHAR,"</COUNTRY__2CHAR><EU__MEMBER__STATE>",$Receive-Partner-Notification/ns1:COUNTRY_data/data/ns:COUNTRY/PROPERTIES/EU__MEMBER__STATE,"</EU__MEMBER__STATE><POST__SRCH__AVAIL>",$Receive-Partner-Notification/ns1:COUNTRY_data/data/ns:COUNTRY/PROPERTIES/POST__SRCH__AVAIL,"</POST__SRCH__AVAIL>")
d.
Connect the Receive Partner Notification, Write File and End activities.
Task J Creating the Service Assembly
To create the service assembly, follow these steps:
1.
In the Project Explorer, select the PSAdapterCIPubSOASample project.
2.
Right-click the composite file PSAdapterCIPubSOASample.composite, and then select Service Assembly from the pop-up menu. Save the composite if prompted.
3.
Expand the Deployment Packages folder, right-click PSAdapterCIPubSOASample.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 PSAdapterCIPubSOASample.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