SCT Inst Report Router (ReportMessageRouter)
Overview
- PSR: Pre-Settlement File
- RSF: Result of Settlement File (XML)
- DRR: Daily Reconciliation Report
- MSR: Monthly Statistics Report
- RTF: Routing Table File
ReportMessageRouterInbound
'<?xm'
indicating Result of Settlement Files (RSF) message'SCI '
indicating Routing Table File (RTF) message'HPSR'
indicating Pre-Settlement Report (PSR) message'HDRR'
indicating Daily Reconciliation Report (DRR) message'HMSR'
indicating Monthly Statistics Report (MSR) message
Alternatively if the message received is XML format, then the message type is determined by examining the <FType> element under the root element.
A config value that is stored as a channel parameter, and the identified message type are used to retrieve a value table configuration entry. This entry indicates the correct mapper to be used to map the received message.
The Report From CSM channel is
configured to use the ReportMessageRouterInbound mapper, with a CONFIG=IP_MAP_CFG_REPORT_FROM_CSM parameter.
If a Daily Reconciliation Report (DRR) message is sent to the channel, ReportMessageRouterInbound determines a
message type value of 'DRR' from the presence of 'HDRR'
as the first four characters in the
BLOB, and the channel parameters provide the config value IP_MAP_CFG_REPORT_FROM_CSM. The config value table
contains an entry with category IP_MAP_CFG_REPORT_FROM_CSM and a <type> value of 'DRR', and this
configuration value will also specify the mapper name to be used for this message, LogOnlyMessageToISFMapper.
Currently, all EBA reports are mapped by the Log Only Mapper.
If a configuration value with a matching <type> value is not found, an exception with error "Mapper not found" is thrown.
Category | Key | Configuration value |
---|---|---|
IP_MAP_CFG_REPORT_FROM_CSM | msgTypeCfg_DRR |
Note: <type> element matches, with <mapName> element identifying correct mapper.
|
IP_MAP_CFG_REPORT_FROM_CSM | msgTypeCfg_MSR |
|
IP_MAP_CFG_REPORT_FROM_CSM | msgTypeCfg_PSR |
|
IP_MAP_CFG_REPORT_FROM_CSM | msgTypeCfg_RSF |
|
IP_MAP_CFG_REPORT_FROM_CSM | msgTypeCfg_RTF |
|
After the mapper to be used for the body of the incoming message is identified, ReportMessageRouterInbound sets an environment variable containing the value for message type which was determined (so that the upcoming mapper does not also need to decode and examine the message, in the case of a BLOB being received).
The incoming message is then redirected to the appropriate dedicated body mapper from the Route to Label node in ReportMessageRouterInbound, and then redirected back to ReportMessageRouterInbound when the body mapper is finished.
Inbound wrapper mapper:
Example inbound ISO mapper: