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 + "'." );
|
}
|
*]
|
}
|