Quintiq file version 2.0 
 | 
#parent: #root 
 | 
MethodOverride ReceiveNotification ( 
 | 
  String origin_node_id, 
 | 
  String notification_type, 
 | 
  String notification_info 
 | 
) as Boolean 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    processed := super.ReceiveNotification(origin_node_id, notification_type, notification_info); 
 | 
    if ( not processed ) 
 | 
    { 
 | 
      if ( notification_type = DSP_DistributedServiceProviderBase::NotificationType_RegisterConfirmation() ) 
 | 
      { 
 | 
        info ( "DSP - Registration confirmation from master received" ); 
 | 
        this.IsRegisteredAtMaster( true ); 
 | 
        this.DistributedServiceProviderBase().OnRegisteredAtMaster(); 
 | 
        processed := true; 
 | 
      }   
 | 
      else if ( notification_type = DSP_DistributedServiceProviderBase::NotificationType_RequestSyncAck() ) 
 | 
      { 
 | 
        info ( "DSP - Sync confirmation from master received. Flushing Inqueue" ); 
 | 
        this.InboundMessageQueue().Flush(); 
 | 
        this.IsWaitingForSyncResponse( false ); 
 | 
      }   
 | 
    }   
 | 
     
 | 
    return processed; 
 | 
  *] 
 | 
} 
 |