| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod GetInstanceText ( | 
|   OperationLink operationlink | 
| ) declarative remote as String | 
| { | 
|   Description: 'Return instance string for type OperationLink' | 
|   TextBody: | 
|   [* | 
|     // Adhi Feb-19-2016 (created) | 
|     sourceoperation := operationlink.AsSourceOperation(); | 
|     destoperation := operationlink.AsDestinationOperation(); | 
|      | 
|     sourceunit := MacroPlan::GetSubstituteName( guard( sourceoperation.Unit().Name(), '' ) ); | 
|     sourcers := MacroPlan::GetSubstituteName( guard( sourceoperation.RoutingStep().Name(), '' ) ); | 
|     destunit := MacroPlan::GetSubstituteName( guard( destoperation.Unit().Name(), '' ) ); | 
|     destrs := MacroPlan::GetSubstituteName( guard( destoperation.RoutingStep().Name(), '' ) ); | 
|     routing :=  MacroPlan::GetSubstituteName( sourceoperation.RoutingStep().Routing().Name() ); | 
|      | 
|      | 
|     instancetext := Translations::MP_OperationLink_Instance( sourceunit, | 
|                                                              sourcers, | 
|                                                              destunit, | 
|                                                              destrs, | 
|                                                              routing ); | 
|      | 
|     return instancetext; | 
|   *] | 
| } |