Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ImportWithQI (String concept_i, String dataTransformationID_i, Boolean doSynchronize_i) as Boolean id:Method_LibDIF_GlobalState_ImportWithQI 
 | 
{ 
 | 
  #keys: '[131092.1.825602425]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Import data with the QI. 
 | 
    success := false; 
 | 
     
 | 
    // Make sure that the Integration-dataset is selected. 
 | 
    if( this.EnsureIntegrationDataset() ) 
 | 
    { 
 | 
      // Call the QIntegrator to import the data as integration objects. 
 | 
      // Synchronize the data if applicable. 
 | 
      api := this.GetIntegrationAPI(); 
 | 
      if( not isnull( api ) ) 
 | 
      { 
 | 
        if( doSynchronize_i ) 
 | 
        { 
 | 
          api.ImportWithQIAndSynchronize( concept_i, dataTransformationID_i ); 
 | 
        } 
 | 
        else 
 | 
        { 
 | 
          api.ImportWithQI( concept_i, dataTransformationID_i ); 
 | 
        } 
 | 
       
 | 
        success := true; 
 | 
      } 
 | 
    } 
 | 
     
 | 
    return success; 
 | 
  *] 
 | 
} 
 |