Setting Up Event Handling

The development environment object and class containing implementation of event handlers for the ETL task are specified on the Event Handling page.

To open the dialog box

Select a development environment object in the Unit drop-down list, select a class that contains implementation of event handlers for ETL task in the Class drop-down list. A list of handler classes contains all classes inherited from the EtlTaskExecutionEvents class.

If required, an event handler can be created automatically by clicking the Create button. In this case a Fore unit or Fore.NET assembly with unit is created. Unit code is generated automatically and opened in the development environment.

Event handler class can be included into the designer opened at each class initialization. The designer must not contain any parameters. If the class has several designers without parameters, the first one is called (located above the others in the code). If the designer is used to handle events of .NET assembly, it should be claimed with the Public access modifier.

NOTE. Class handler is initialized each time ETL task is executed.

Example of event handler code:

Fore

Fore.NET

See also:

Executing ETL Task