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
27
28
29
Quintiq file version 2.0
#parent: #root
Method DoGetIntegrationObjects (
  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:
  [*
    LibDIF_Util::MustBeOverridden( "DoGetIntegrationObjects()", this.DefinitionName() );
    
    integrationObjects := null( LibDIO_IntegrationObjects, owning );
    
    /* example
    if( dataTransformation_i.istype( LibDII_DataTransformationArticles ) )
    {
      // Get the integration objects for the Articles.
      integrationObjects := this.IntegrationArticle( relget );
    }
    */
    
    return &integrationObjects;
  *]
}