IEtlObject.ConnCompId

Fore syntax

ConnCompId: Integer;

Fore.NET syntax

ConnCompId: integer;

Description

The ConnCompId property determines index of connected component of ETL task object.

Comments

Connected component shows in what calculation chain a specified object enters. For objects (links between objects) of one chain connected component value is the same.

Connected component value itself determines calculation order of chain object belongs to. The smaller is the value, the earlier calculation of specified chain is performed.

NOTE. To change the order of chain calculation it is necessary to change connected component value for all chain objects and also links between objects.

Fore example

Executing this example requires an ETL task with the ETL identifier.

Add links to the Metabase and ETL system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    EtlTask: IEtlTask;
    Object: IEtlObject;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    EtlTask := MB.ItemById("ETL").Bind As IEtlTask;
    Object := EtlTask.Item(0);
    i := Object.ConnCompId;
    If Object.IsActive Then
        Debug.WriteLine("Component is included to task");
    Else
        Debug.WriteLine("Component is not included to task");
    End If;
End Sub UserProc;

After executing this example the "i" variable contains an index of connected component of the first ETL task object. The console window displays information of whether the first object is included into the ETL task.

Fore.NET example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Etl;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    EtlTask: IEtlTask;
    Object: IEtlObject;
    i: integer;
Begin
    MB := Params.Metabase;
    EtlTask := MB.ItemById["ETL"].Bind() As IEtlTask;
    Object := EtlTask.Item[0];
    i := Object.ConnCompId;
    If Object.IsActive Then
        System.Diagnostics.Debug.WriteLine("Component is included to task");
    Else
        System.Diagnostics.Debug.WriteLine("Component is not included to task");
    End If;
End Sub;

After executing this example the "i" variable contains an index of connected component of the first ETL task object. The console window displays information of whether the first object is included into the ETL task.

See also:

IEtlObject