lazhen
2025-01-09 8afe90b633046db39042aada36b88193062f8cff
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
30
31
32
33
34
35
36
37
Quintiq file version 2.0
#parent: #root
Method ReceiveDataManagerConfiguration (String host_i, Number port_i, String datasetKind_i, 
  String datasetFolder_i, String datasetName_i, String systemName_i, 
  String systemQProductName_i)
{
  Description:
  [*
    Receive DataManager configuration from Data Manager and reply with Systems configuration to DataManager
    (i) This method should only be triggered in a System
  *]
  TextBody:
  [*
    // Store the received DataManager configuration
    // This method should only be triggered in a System
    if( not this.IsDataManager() )
    {
      globalParam := this.GlobalParameters();
      globalParam.DM_Host(          host_i          );
      globalParam.DM_Port(          port_i          );
      globalParam.DM_DatasetKind(   datasetKind_i   );
      globalParam.DM_DatasetFolder( datasetFolder_i );
      globalParam.DM_DatasetName(   datasetName_i   );
    
      this.SystemName( systemName_i );
      this.SystemQProductName( systemQProductName_i );
    
      // Send Systems configuration to DataManager
      this.SendSystemConfigurationToDM();
    }
    else
    {
      LibDMF_Util::LogError( this.SystemShortName(),
                             "LibDMF_CommunicationChannelRoot.ReceiveDataManagerConfiguration() method should only be triggered in a System, not in the DataManager." );
    }
  *]
}