yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
  *]
}