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
26
27
28
29
Quintiq file version 2.0
#parent: #root
Method ReceiveDataSuccess (NamedValueTree nvt_i, LibDEF_System sender_i, LibDEF_IntegrationEvent event_i)
{
  Description: 'Receive Data-Success message, to be handled by the System of the sender, or the System representing local.'
  TextBody:
  [*
    // Jacky CHAN May-26-2016 (created)
    LibDEF_Util::EventLog( event_i, "Processing Data-Success message" );
    
    // retrieve type
    type := LibDEF_DataAccessor::GetDataHeaderPropertyAsString( nvt_i, LibDEF_DataAccessor::HEADER_TYPE() );
    
    if( type = LibDEF_DataAccessor::TYPE_DATA_GETSET() )
    {
      sender_i.ReceiveDataSuccessGetSet( nvt_i, event_i );
    }
    else if( type = LibDEF_DataAccessor::TYPE_DATA_GETSETCHUNKED() )
    {
      sender_i.ReceiveDataByChunk( nvt_i, event_i );
    }
    else
    {
      LibDEF_Util::EventLogError( event_i, 
                                  "Failed to process Data-Success message",
                                  "Failed to process Data-Success message, no handler defined for the Type '" + type + "'." );
    }
  *]
}