Event Handling

The Event Handling page in the ETL task editing wizard is used to specify a development environment object and a class that contains implementation of event handlers for ETL task.

Set the following options:

NOTE. The class handler is initialized each time ETL task is executed.

Example of Event Handler

The unit containing the designer and templates of ETL task events:

Class EventsClass: EtlTaskExecutionEvents
    Constructor Create;
    Begin
    End Constructor Create;
    
    Public Sub OnStartTask(Task: IEtlTask);
    Begin
    End Sub OnStartTask;
    
    Public Sub OnEndTask(Task: IEtlTask; Duration, TotalRec, ErrorRec: Integer);
    Begin
    End Sub OnEndTask;
    
    Public Sub OnStartBlock(Task: IEtlTask; Object: IEtlObject);
    Begin
    End Sub OnStartBlock;
    
    Public Sub OnEndBlock(Task: IEtlTask; Object: IEtlObject; Duration: Integer; TotalRecIn, TotalRecOut, ErrorRec: IDictionary);
    Begin
    End Sub OnEndBlock;
    
    Public Sub OnProgress(Task: IEtlTask; Progress: Integer);
    Begin
    End Sub OnProgress;

    Public Sub OnError(Task: IEtlTask; Object: IEtlObject; Excep: IException);
    Begin
    End Sub OnError;
End Class EventsClass;

See also:

ETL Task Settings