| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method ResultRun ( |  |   Boolean feasible, |  |   Real kpi0score, |  |   Real kpi1score, |  |   Real kpi2score, |  |   Real kpi3score, |  |   Boolean force |  | ) as BenchmarkResultRun |  | { |  |   Description: 'Maintain by R&D' |  |   TextBody: |  |   [* |  |     // rend Sep-6-2012 (created) |  |      |  |     // I want a little time between entries |  |     now := DateTime::ActualTime(); |  |      |  |     last := maxselect( this, BenchmarkResultRun, brr, true, brr.Runtime() ); |  |      |  |     result := null( BenchmarkResultRun ); |  |      |  |     if( force or ( isnull(last) or last.KPI0Score() <> kpi0score or last.KPI1Score() <> kpi1score |  |         or last.KPI2Score() <> kpi2score |  |         or last.KPI3Score() <> kpi3score ) ) |  |     { |  |       result := this.BenchmarkResultRun( relnew, |  |                                          Feasible := feasible, |  |                                          KPI0Score := kpi0score, |  |                                          KPI1Score := kpi1score, |  |                                          KPI2Score := kpi2score, |  |                                          KPI3Score := kpi3score, |  |                                          Runtime := now - this.CreatedOn() ); |  |       this.LastResultRunEntry( now ); |  |     } |  |      |  |     return result; |  |   *] |  | } | 
 |