Execute(Callback: IEtlExecutionCallback);
Callback is an object that notifies about the process of ETL task execution.
The Execute method executes ETL task.
To stop ETL task execution, use IEtlTask.StopExecute.
Executing this example requires an ETL task with the Etl identifier in a repository.
Public Class MyClass: Object, IEtlExecutionCallback
Sub OnObject(Object: IEtlObject);
Begin
Debug.WriteLine("Execution of the object: " + Object.Id);
End Sub OnObject;
Sub OnProgress(Progress: Integer);
Begin
Debug.WriteLine("Executed: " + Progress.ToString + "%");
End Sub OnProgress;
End Class MyClass;
Sub Main;
Var
MB: IMetabase;
Etltask: IEtlTask;
C: MyClass;
Begin
MB := MetabaseClass.active;
Etltask := MB.ItemById("ETL").Bind As IEtlTask;
C := New MyClass.Create;
Etltask.Execute(C);
End Sub Main;
On executing the example ETL task execution is started. Information about execution status is displayed in development environment console.
See also: