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


Chapter 2 TIBCO ActiveMatrix BusinessWorks: Example of Basic LDAP Operations : Running the Examples

Running the Examples
Running ReceivePub Process
1.
In the Project panel, click the Processes folder, expand the ODSEE folder, and select the ReceivePub item.
2.
In the Design panel, click the Write File icon.
3.
Click the Input tab in the Configuration panel, and click the plus sign (+) on the left of the WriteActivityInputTextClass item in the activity input tree. Edit the variable fileName to specify the name and the location of the generated file that will record the modification in the LDAP server, with the help of the global variable FileName. Edit the textContent to specify the content of the generated field.
4.
Click the Apply button.
Figure 3 Customize ReceivePub Process
 
5.
In the Global Variables panel, expand the ODSEE folder. Use the global variable editor to set the global variable FileName, which specifies directly the filename and the location of the .txt file that will record the modification in the LDAP server. In this example, its value is C:\publish.txt.
6.
Click the Tester panel, and click the Start Testing Viewed Process button.
7.
In the Select Processes To Load dialog that appears, the ReceivePub(current) checkbox is checked by default. Click the Load Selected button. The process is now in the Test mode.
Figure 4 Select Processes to Load
8.
9.
Figure 5 Specify LDAP Schema Classes in Schema View Tab
10.
Open C:\publish.txt, and you will see that its content has recorded the type of change that occurred to the Oracle Directory Server Enterprise Edition (MODIFY, ADD, DELETE, and so on). See Figure 10 for the contents of the .txt file.
11.
Click the Stop Testing button to return to the Design mode.
Running Operations Process
1.
In the Project panel, click the Processes folder, expand the ODSEE folder, and select the Operations.
2.
3.
Click the Apply button.
Figure 6 Customize Operation Process Activities
4.
Click the Tester panel, and click the Start Testing Viewed Process button.
5.
In the Select Processes To Load window that appears, check the Operation(current) checkbox. Click the Load Selected button. The process is now in the Test mode.
6.
7.
When the process executes, you will find the black arrows that point to each activity have turned to green. Click each icon of the nine activities in the Design panel, then click the Output tab in the Configuration panel. Expand the __caret_returnValue_caret_ item. Success is displayed in the errorString field. See Figure 11 for the result.
8.
Click the Stop Testing buttonto return to the Design mode.
Running Search Process
1.
In the Project panel, click the Processes folder, expand the ODSEE folder, and select Search item.
2.
3.
Click the Apply button.
Figure 7 Customize Search Process Activities
4.
Click the Tester panel, and click the Start Testing Viewed Process button.
5.
In the Select Processes To Load dialog that appears, check the Search(current) checkbox. Click the Load Selected button. The process is now in the Test mode.
6.
7.
When the process executes, you will find the black arrows that point to each activity have turned to green. Click each icon of the three activities in the Design panel, then click the Output tab in the Configuration panel. Expand the __caret_returnValue_caret_ item. Success is displayed in the errorString field. That means the corresponding activity has been successfully executed. Expand the parameter DN in the Output tab, you will see the search results. See Figure 12 for the results.
8.
Click the Stop Testing buttonto return to the Design mode.
Running TestSubService Process
Since you add an entry, then delete it in this process, the Oracle Directory Server Enterprise Edition will appear intact after the execution of the entire process. To better observe the results after the execution of each activity, run this process by using the breakpoints. Follow the steps below:
1.
In the Project panel, click the Processes folder, expand the ODSEE folder, and select the TestSubService item.
2.
Click the Set breakpoints button.
3.
In the dialog that appears, click the Select All button, then click the OK button.
Breakpoints allow you to step through the process. Stepping helps you to see what happens when each activity is executed.
Figure 8 Set Break Points for TestSubService Process
 
4.
Figure 9 Customize TestSubService Process Activities
5.
Click the Apply button.
6.
Click the Tester panel, and click the Start Testing Viewed Process button.
7.
In the Select Processes To Load window that appears, check the TestSubService(current) checkbox. Click the Load Selected button. The process is now in the Test mode.
8.
9.
Click the Step To Next Activity button to step through the process.
10.
11.
When the process executes, you can see the sentence that contains PersonSubscriptionService in the Console tab of the Adapter Tester dialog. If no error message appears, then it indicates that the corresponding activity has been successfully executed. See the red rectangle area in Figure 13 and Figure 14 for the results.
12.
Click the Stop Testing buttonto return to the Design mode.
 

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