The FIXEdge has the opportunity option to send an e-mail alerts once the FIX session changes its status.
In order to use such functionality it is required to perform the following steps:
- configure the SMTP transport adaptor (TA);
- create a business rule for notifications forwarding.
The SMTP TA is configured in the FixEdge.properties file.
The configuration section for the SMTP TA usually exists in the FixEdge.properties file by default – so it is required just to specify the correct ServerName, To, and From properties:
...
So you should create a BL rule that will forward such notifications to the SMTP client.
The example of such a rule:
Code Block | ||
---|---|---|
| ||
<Rule Description="Send session state change notifications" > <Source> <!—Apply to each internal message --> <FixSession SenderCompID="fake" TargetCompID="fake" /> </Source> <Condition> <!—Apply to 35=C only --> <MsgType><Val>C</Val></MsgType> <!-- Apply to messages with 147 tag filled with session status --> <MatchField Field="147" Value=".*(AttemptToConnect|Established|Terminated correctly|Non-gracefully terminated)" /> </Condition> <Action> <!-- Forward the message to SmtpClient --> <Send><Client Name="TestSMTPClient"/></Send> </Action> </Rule> |
...