| Quintiq file version 2.0 | 
| #parent: #root | 
| MethodOverride Execute | 
| { | 
|   TextBody: | 
|   [* | 
|     // Overriden, Execute import logic | 
|     opt := DatasetFindOptions::Construct( this.MacroPlanDatasetName() ); | 
|     mp := MDSMacroPlan::Find( opt ); | 
|      | 
|     opt := DatasetFindOptions::Construct(); | 
|     mpsync := MDSMPSync::Find( opt ); | 
|      | 
|     opt := DatasetFindOptions::Construct(); | 
|     databroker := MDSLibDEF_DataBroker::Find( opt ); | 
|      | 
|     this | 
|     ->SetStatusInProgress() | 
|     ->( streamImportPlannedOrder ) | 
|     { | 
|       mp->ImportPlannedOrder( mpsync, | 
|                               databroker, | 
|                               this, | 
|                               this.ImportType(), | 
|                               this.IsImportParameter(), | 
|                               this.IsImportSCPlan() ) | 
|     } | 
|     ->|this->SetStatusDone() | 
|     ->|mp->SetLastImportTime(); | 
|   *] | 
| } |