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
30
31
32
33
34
35
| Quintiq file version 2.0
| #parent: #root
| Method MessageSendToSystem (String messageType_i, String setTypeName_i, String setName_i,
| Boolean isNotificationOnly_i, structured_Object data_i, String socDatasetKind_i,
| String socDatasetName_i, String sourceKind_i, String sourceName_i,
| DateTime lastUpdate_i)
| {
| Description:
| [*
| Determine the correct message to be sent to a System based on the MessageType
| 1) Meant to be called by the Job that sends specific types of Message to a System
| *]
| TextBody:
| [*
| soc := this.GetSystemOnChannel( socDatasetKind_i, socDatasetName_i );
| root := this.CommunicationChannelRoot();
|
| // Create an IntegrationEvent
| root.EventCreate( socDatasetKind_i, socDatasetName_i, false );
|
| if( messageType_i = LibDMF_CommunicationChannel::MESSAGETYPE_SETUPDATED()
| or messageType_i = LibDMF_CommunicationChannel::MESSAGETYPE_HIERARCHYUPDATED() )
| {
| this.MessageSendSetUpdatedToSystem( setTypeName_i, setName_i, isNotificationOnly_i, data_i, soc, sourceKind_i, sourceName_i, lastUpdate_i );
| }
| else if( messageType_i = LibDMF_CommunicationChannel::MESSAGETYPE_SETCREATED() )
| {
| this.MessageSendSetCreatedToSystem( setTypeName_i, setName_i, isNotificationOnly_i, data_i, soc, sourceKind_i, sourceName_i, lastUpdate_i );
| }
| else if( messageType_i = LibDMF_CommunicationChannel::MESSAGETYPE_SETREMOVED() )
| {
| this.MessageSendSetRemovedToSystem( setTypeName_i, setName_i, isNotificationOnly_i, data_i, soc, sourceKind_i, sourceName_i, lastUpdate_i );
| }
| *]
| }
|
|