| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod FindAndCreateAllImportObjectGroupCIM ( | 
|   MPSync owner | 
| ) as owning ImportObjectGroupCIMs | 
| { | 
|   Description: 'Check whether all the object group cm are created, else create it.' | 
|   TextBody: | 
|   [* | 
|     // Store all ImportObjectGroups in the model | 
|     allimportobjectgroupscim := construct( ImportObjectGroupCIMs ); | 
|     objectgroupscim := ImportObjectGroupCIM::GetObjectGroupsCIMID(); | 
|     traverse( objectgroupscim, Elements, objectgroupcim ) | 
|     { | 
|       result := ImportObjectGroupCIM::FindImportObjectGroupCIMTypeIndex( objectgroupcim ); | 
|       if( isnull( result ) ) | 
|       { | 
|         importobjectgroupcim := ImportObjectGroupCIM::Create( owner, objectgroupcim ); | 
|         allimportobjectgroupscim.Add( importobjectgroupcim ); | 
|       } | 
|     } | 
|      | 
|     return &allimportobjectgroupscim; | 
|   *] | 
| } |