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
Quintiq file version 2.0
#parent: #root
StaticMethod DeleteWithoutFinalize (LibOpt_Runs set)
{
  Description:
  [*
    This will delete all the `LibOpt_Run` objects that are passed in AND skip the Finalize of any `LibOpt_Tasks` that are still attached to the run.
    This allows you to delete runs that have not had their `LibOpt_Tasks` cleaned up as expected.
    This should only be used when the normal delete does not work anymore. 
    This may also leave the dataset in an invalid state since the optimizer has not executed the expected cleanup.
  *]
  TextBody:
  [*
    traverse( set, Elements, run )
    {
      run.SkipTaskFinalize( true );
      run.Delete();
    }
  *]
  InterfaceProperties { Accessibility: 'Module' }
}