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 ReceiveConfigurationSuccess (NamedValueTree nvt_i, NamedValue body_i, LibDEF_IntegrationEvent event_i)
{
  Description: 'Receive Configuration-Success message.'
  TextBody:
  [*
    // Jacky CHAN Apr-21-2016 (created)
    LibDEF_Util::EventLog( event_i, "Processing Configuration-Success message." );
    
    // retrieve type
    type := LibDEF_DataAccessor::GetConfigurationHeaderPropertyAsString( nvt_i, LibDEF_DataAccessor::HEADER_TYPE() );
    
    if( type = LibDEF_DataAccessor::TYPE_CONFIGURATION_JOIN() )
    {
      this.ReceiveConfigurationSuccessJoin( nvt_i, body_i, event_i );
    }
    else if( type = LibDEF_DataAccessor::TYPE_CONFIGURATION_LEAVE() )
    {
      this.ReceiveConfigurationSuccessLeave( event_i );
    }
    else if( type = LibDEF_DataAccessor::TYPE_CONFIGURATION_PING() )
    {
      this.ReceiveConfigurationSuccessPing( nvt_i, body_i, event_i );
    }
    else if( type = LibDEF_DataAccessor::TYPE_CONFIGURATION_COPYROUTINGTABLE() )
    {
      this.ReceiveConfigurationSuccessCopyRoutingTable( nvt_i, body_i, event_i );
    }
    else
    {
      LibDEF_Util::EventLogError( event_i,
                                  "Failed to process Configuration-Success message",
                                  "Failed to process Configuration-Success message, no handler defined for the Type '" + type + "'." );
    }
  *]
}