| Quintiq file version 2.0 | 
| #parent: #root | 
| Method UpdateTypeIndex ( | 
|   String sourceoperationid, | 
|   String destinationoperationid | 
| ) | 
| { | 
|   Description: 'Update operation link type index' | 
|   TextBody: | 
|   [* | 
|     // DWE2 Feb-18-2016 (created) | 
|      | 
|     if( this.SourceOperationID() <> sourceoperationid | 
|         or this.DestOperationID() <> destinationoperationid ) | 
|     { | 
|       OperationLink::ChangeKeyOperationLinkTypeIndex( this, sourceoperationid, destinationoperationid ); | 
|       this.IsManuallyConfigured( true ); | 
|       // Propagate the relation after updating the destination ID, so that synchronize can happend correctly. | 
|       // E.g Synchornize Input Group when moving OperationInput | 
|       Transaction::Transaction().Propagate( relation( OperationLink, AsDestinationOperation ) ); | 
|     } | 
|   *] | 
| } |