| Quintiq file version 2.0 | 
| #parent: #root | 
| Method CheckActiveSnapshotGenerator ( | 
|   shadow[KpiSnapshotGenerator] generator | 
| ) as Boolean id:Method_Kpi_GlobalState_CheckActiveSnapshotGenerator | 
| { | 
|   #keys: '[146874.1.154161244]' | 
|   Body: | 
|   [* | 
|     // Check if the Snapshot generator is initialized. | 
|     feedback := FeedbackObject::LocalFeedback(); | 
|      | 
|     if ( not feedback.CheckHard( not isnull( generator ) ) ) | 
|     { | 
|       feedback.AddHard( Translations::Kpi_SnapshotGenerator_GeneratorNotInitialized() ); | 
|     } | 
|      | 
|     return feedback.IsAllowed(); | 
|   *] | 
| } |