| Quintiq file version 2.0 | 
| #parent: #root | 
| Method MessageSendToSystem (Boolean isNotificationOnly_i, structured_Object data_i) as owning NamedValueTree | 
| { | 
|   Description: | 
|   [* | 
|     Create the NVT that will be send to a System. | 
|     (1) Is meant to be called by methods that handle sending of specific types of Messages. | 
|   *] | 
|   TextBody: | 
|   [* | 
|     // Generate a NVT that contains the data. | 
|     // If applicable the data is transformed to the generic format of the Channel first. | 
|     nvt := this.GenerateNVT( data_i, false ); | 
|      | 
|     // Add additional information to the header of the NTV that is specific for sending to a System. | 
|     if( isNotificationOnly_i ) | 
|     { | 
|       LibInt_MessageAccessor::SetHeaderProperty( nvt, LibDMF_CommunicationChannel::HEADER_IS_NOTIFICATION(), true ); | 
|     } | 
|      | 
|     return &nvt; | 
|   *] | 
| } |