Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ReceiveConfigurationRequest (owning NamedValueTree nvt_i, NamedValue body_i, LibDEF_IntegrationEvent event_i) 
 | 
{ 
 | 
  Description: 'Receive Configuration-Request message.' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // Jacky CHAN Apr-21-2016 (created) 
 | 
    LibDEF_Util::EventLog( event_i, "Processing Configuration-Request message." ); 
 | 
     
 | 
    // retrieve type 
 | 
    type := LibDEF_DataAccessor::GetConfigurationHeaderPropertyAsString( nvt_i, LibDEF_DataAccessor::HEADER_TYPE() ); 
 | 
     
 | 
    if( type = LibDEF_DataAccessor::TYPE_CONFIGURATION_JOIN() ) 
 | 
    { 
 | 
      this.ReceiveConfigurationRequestJoin( nvt_i, body_i, event_i ); 
 | 
    } 
 | 
    else if( type = LibDEF_DataAccessor::TYPE_CONFIGURATION_LEAVE() ) 
 | 
    { 
 | 
      this.ReceiveConfigurationRequestLeave( nvt_i, body_i, event_i ); 
 | 
    } 
 | 
    else if( type = LibDEF_DataAccessor::TYPE_CONFIGURATION_PING() ) 
 | 
    { 
 | 
      this.ReceiveConfigurationRequestPing( &nvt_i, body_i, event_i ); 
 | 
    } 
 | 
    else if( type = LibDEF_DataAccessor::TYPE_CONFIGURATION_SYNCCONFIG() ) 
 | 
    { 
 | 
      this.ReceiveConfigurationRequestSyncConfig( nvt_i, body_i, event_i ); 
 | 
    } 
 | 
    else 
 | 
    { 
 | 
      LibDEF_Util::EventLogError( event_i,  
 | 
                                  "Failed to process Configuration-Request message", 
 | 
                                  "Failed to process Configuration-Request message, no handler defined for the Type '" + type + "'." ); 
 | 
    } 
 | 
  *] 
 | 
} 
 |