Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ExecuteSupplyChainParametersBrokers ( 
 | 
  Boolean isexcel, 
 | 
  BinaryValues binarydatas, 
 | 
  Strings brokers 
 | 
) 
 | 
{ 
 | 
  Description: 'Execute brokers that are associated with objects in SupplyChainParameters ObjectGroup' 
 | 
  TextBody: 
 | 
  [* 
 | 
    if( not isexcel ) 
 | 
    { 
 | 
      this.MPSync().MPSync_ImportCurrenciesFromDBBroker().Execute(); 
 | 
      this.MPSync().MPSync_ImportUnitOfMeasuresFromDBBroker().Execute(); 
 | 
      this.MPSync().MPSync_ImportPrioritiesFromDBBroker().Execute(); 
 | 
    } 
 | 
    else 
 | 
    { 
 | 
      brokername :=""; 
 | 
      try 
 | 
      { 
 | 
        // Currencies 
 | 
        brokername := typeof( MPSync_ImportCurrenciesFromExcelBroker ).ShortName(); 
 | 
        binaryvalue := this.GetBinaryData( binarydatas, brokers, brokername ); 
 | 
        this.ValidateBroker( brokername, 
 | 
                             this.MPSync().MPSync_ImportCurrenciesFromExcelBroker().Source(), 
 | 
                             binaryvalue ); 
 | 
        this.MPSync().MPSync_ImportCurrenciesFromExcelBroker().ExecuteFromXLS( binaryvalue.AsBinaryData(), true ); 
 | 
      } 
 | 
      onfailure 
 | 
      { 
 | 
        this.UpdateLastExecutedImportObjectGroupErrorMessage( brokername + ":" + e.GeneralInformation() ); 
 | 
      }   
 | 
       
 | 
      try 
 | 
      {     
 | 
        // Priorities 
 | 
        brokername := typeof( MPSync_ImportPrioritiesFromExcelBroker ).ShortName(); 
 | 
        binaryvalue := this.GetBinaryData( binarydatas, brokers, brokername ); 
 | 
        this.ValidateBroker( brokername, 
 | 
                             this.MPSync().MPSync_ImportPrioritiesFromExcelBroker().Source(), 
 | 
                             binaryvalue ); 
 | 
        this.MPSync().MPSync_ImportPrioritiesFromExcelBroker().ExecuteFromXLS( binaryvalue.AsBinaryData(), true ); 
 | 
      } 
 | 
      onfailure 
 | 
      { 
 | 
        this.UpdateLastExecutedImportObjectGroupErrorMessage( brokername + ":" + e.GeneralInformation() ); 
 | 
      }     
 | 
       
 | 
      try 
 | 
      {   
 | 
        // Unit of measures 
 | 
        brokername := typeof( MPSync_ImportUnitOfMeasuresFromExcelBroker ).ShortName(); 
 | 
        binaryvalue := this.GetBinaryData( binarydatas, brokers, brokername ); 
 | 
        this.ValidateBroker( brokername, 
 | 
                             this.MPSync().MPSync_ImportUnitOfMeasuresFromExcelBroker().Source(), 
 | 
                             binaryvalue ); 
 | 
        this.MPSync().MPSync_ImportUnitOfMeasuresFromExcelBroker().ExecuteFromXLS( binaryvalue.AsBinaryData(), true ); 
 | 
      } 
 | 
      onfailure 
 | 
      { 
 | 
        this.UpdateLastExecutedImportObjectGroupErrorMessage( brokername + ":" + e.GeneralInformation() ); 
 | 
      }     
 | 
    } 
 | 
  *] 
 | 
  InterfaceProperties { Accessibility: 'Extensible' } 
 | 
} 
 |