lazhen
2025-01-09 8afe90b633046db39042aada36b88193062f8cff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Quintiq file version 2.0
#parent: #root
MethodOverride SentMessages (
  String destination_node_id,
  DSP_OperationMessageSequence message_set
) as Boolean
{
  TextBody:
  [*
    // Disable undo 
    this.DisableTransactionRecords();
    
    this.Log( "Sending " + [String] message_set.Size() + " message(s) to node " + destination_node_id + ". Messages: " + message_set.ToString(), true );   
    
    // Set the destination and origin node ids in the message
    origin_node_id := this.GetMyNodeId();
    traverse( message_set, Message, msg )
    {
      msg.DestinationNodeId( destination_node_id );
      msg.OriginNodeId( origin_node_id );
    }
    
    return this.OnSentMessages( destination_node_id, message_set );
  *]
}