Tivoli Connection Guide and Reference


Adding events visually

The events are located in the Tivoli Connection category on the parts palette of the Composition Editor. First, select a Tivoli event part and drop it on the free-form surface of your application. Then connect an application event to the action of the part. For example, you might connect the openedWidget event for your application window to the Application Start action of the part, Application Start Event.

A sample application, TivTecTestPart illustrates how to do this and can be found in TivoliConnectionRunApp. The following figure shows the sample application in the Composition Editor.
TivTecTestPart

This sample shows how to visually connect event parts to add the following events:

The Initialize Tivoli Event DLL and Application Startup events are generated when the openedWidget event is sent to the application window.

The Application Idle, Application Error, Application Shutdown, and Application Close events are generated by the clicked event for the associated push buttons. Error messages and error numbers can be selected from the Error text or Error number drop-down boxes and used as input to the Application Error event.

This application should be run in test mode (TestMode=YES in TECEIF.CFG), so that you can view the generated events in the logfile. The Display Logfile push button displays the events that were generated and recorded in the logfile, TECEIF.LOG, while running the sample application in test mode.

A test application created from TivTecTestPart is shown in the following figure.
Tivoli Test Application

By selecting the Display Logfile push button you can view the contents of the logfile as illustrated below.
Display Logfile

The left box lists the generated events. When an event is selected, the detailed information about the event is displayed in the Event detailsbox on the right.

Select the Close push button to return to the Test application.

The following figure illustrates how Tivoli events appear on the Tivoli Enterprise Console.
Tivoli Enterprise Console


[ Top of Page | Previous Page | Next Page | Table of Contents ]