| Quintiq file version 2.0 | 
| #parent: #root | 
| Method AssignToInputGroup ( | 
|   OperationInputGroup inputgroup | 
| ) | 
| { | 
|   Description: 'Assign operation input to a group' | 
|   TextBody: | 
|   [* | 
|     linkgroupid := guard( inputgroup.InputGroupID(), | 
|                           BaseOperationLink::GetGroupID( this.Operation(), true, false ) ); | 
|      | 
|     if( not isnull( this.BaseOperationLink() ) ) | 
|     { | 
|       this.BaseOperationLink().AssignToInputGroup( linkgroupid ) | 
|     } | 
|      | 
|     if( isnull( inputgroup ) ) | 
|     { | 
|       this.BaseOperationLink().DeleteDependentDemandInputGroups(); | 
|     } | 
|     else | 
|     { | 
|       this.Operation().SynchronizePeriodTasks(); | 
|     } | 
|   *] | 
| } |