admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
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 UpdateLocalSystemConfiguration (LibDEF_IntegrationEvent event_i)
{
  Description: 'Update configurations of local System representation from model settings.'
  TextBody:
  [*
    // Jacky CHAN Apr-29-2016 (created)
    // instantiate local System
    if( isnull( this.SystemLocal() ) )
    {
      LibDEF_System::CreateAsLocal( this, event_i );
    }
    // DO NOT update local System coordinate, as it might clash with other known Systems
    // instead, send the local coordinate to BootNode and then update when receive acknowledgement
    
    localSystem := this.SystemLocal();
    
    // Set DEF version
    localSystem.UpdateVersion( LibDEF_DataAccessor::MAJORVERSION_VALUE(), LibDEF_DataAccessor::MINORVERSION_VALUE() );
    
    // update local System-Name
    systemName := LibDEF_Util::GetSettingValueSystemName();
    localSystem.Name( systemName );
  *]
}