iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Routing and Processing Messages > Generating NACK Messages in Iguana 4.0 and Later > Creating the Filtering Python Script |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Now that you have a filtering VMD file, the next step is to create a Global Inbound Script to detect rejected messages. This script uses the reject_evn Python module that you created earlier when determining whether an ACK message or a NACK message should be sent. To create the Global Inbound Script:
The Global Inbound Script calls reject_message() to determine whether the incoming message has been rejected. If it has been rejected, MSH.9.3 is set to REJECTED. This ensures that this message will be matched by the RejectedMessage message definition. Now that you have created the VMD file, the next step to configure the Filter component in the channel to ignore all messages matched by the RejectedMessage message definition. You will do this in the following section. |