Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The example of such a rule:

Code Block
languagebashxml
		<!-- Send email on every session status change. Ignore Temp sessions.-->
		<Rule Description="Send emails with session state change notifications" >
  			<Source>
    				<!—Apply--Apply to each internal message -->
   				<FixSession SenderCompID="fake" TargetCompID="fake" />
  <			</Source>
  			<Condition>
				<!—Apply--Apply to  35 35=C only -->
   <MsgType><Val>C</Val><
				<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 				<Send>
					<Client Name="TestSMTPClient"/><>
				</Send>
  			</Action>
		</Rule>	

This rule sends the notification to the SMTP TA client if any of configured FIX sessions changes its state.

...