iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Routing and Processing Messages > Ignoring Duplicate Messages > Step 2 - Setting Up the VMD File |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Now that you have some sample data to work with, you can use Chameleon and this sample data to create a VMD (Visual Message Definition) file. This VMD file will contain two message definitions:
The first step is to create the VMD file and import the MSH segment:
This is the first segment of the first sample message that you will be using in testing. You do not need to provide a complete message, as this VMD file will be parsing this segment only.
Now that you have imported the MSH segment, the next step is to create the default message definition:
The message definition named default is now the default message definition for this VMD file. If a message cannot be processed by any other definition, it will be processed by this one. The next step is to create the message definition for duplicate messages:
This indicates that a message will be treated as a duplicate if the third subfield of the ninth field of the MSH segment (also known as MSH.9.3) is set to DUPLICATE. Normally, this field is empty. In the next step of this tutorial, you will write a Python script that checks for duplicate messages and sets this subfield if a duplicate is found. |