| Quintiq file version 2.0 | 
| #parent: #root | 
| Method CheckContainsEvent ( | 
|   structured[Object] objects_i | 
| ) as Boolean id:Method_LibCal_GlobalState_CheckContainsEvent | 
| { | 
|   #keys: '[146730.0.163089651]' | 
|   Body: | 
|   [* | 
|     // Check if objects_i contains at least one LeadingParticipation. | 
|     feedback  := FeedbackObject::LocalFeedback(); | 
|     isAllowed := exists( objects_i, Elements, object, true, object.istype( LibCal_LeadingParticipation ) ); | 
|      | 
|     if( not feedback.CheckHard( isAllowed ) ) | 
|     { | 
|       feedback.AddHard( Translations::Participation_DoesNotContain( "an event" ) ); | 
|     } | 
|      | 
|     return feedback.IsAllowed(); | 
|   *] | 
| } |