yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Quintiq file version 2.0
#parent: #root
Method OnConstructedDataset
{
  Description:
  [*
    There should be no reason to unload a `LibOpt_OptimizerRunController` dataset during an optimizer run.
    Therefore, we can assume that a `LibOpt_OptimizerRunController` only gets unloaded when a server is restarted. 
    This implies that any unfinished `LibOpt_ControllerRuns` can be marked as aborted when the `LibOpt_OptimizerRunController` dataset is loaded.
  *]
  TextBody:
  [*
    // evr3 May-2-2022 (created)
    traverse( this, 
              ControllerRun, 
              run,
              not run.HasStopped() )
    {
      run.Abort();
    }
  *]
  InterfaceProperties { Accessibility: 'Module' }
}