chenqinghong
2024-05-07 3ec06a830367465068963156dcc1d8e522571c13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Quintiq file version 2.0
#parent: #root
Method GetIntegrationObjects (
  LibDIF_DataTransformation dataTransformation_i,
  String context_i
) as owning LibDIO_IntegrationObjects
{
  Description:
  [*
    Get the integration objects that are relevant for the provided DataTransformation, if applicable in the provided context.
    These integration objects can then be transformed to model objects, or be deleted before a new import.
  *]
  TextBody:
  [*
    // Call the method that must be overridden and implemented at the Implementation Level.
    integrationObjects := this.DoGetIntegrationObjects( dataTransformation_i, context_i );
    
    // Raise an error if the method was not implemented for the DataTransformation.
    if( isnull( integrationObjects ) )
    {
      LibDIF_Util::Error( this.DefinitionName() + ".DoGetIntegrationObjects() is not implemented for DataTransformation '" + dataTransformation_i.DefinitionName() + "' | ID = '" + dataTransformation_i.ID() + "'" );
    }
    
    return &integrationObjects;
  *]
}