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

The connected component shows, to which calculation chain this object is included. For objects (links between objects) of one chain the connected component value is the same.

Connected component value itself determines calculation order of chain, which the object belongs to. The less is the value, the earlier this chain is calculated.

NOTE. To change the order of chain calculation, change connected component value for all chain objects and also links between objects.

Fore Example

Executing the example requires that the repository contains 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 the 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 into task");
    Else
        System.Diagnostics.Debug.WriteLine("Component is not included into task");
    End If;
End Sub;

After executing the 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