iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Email Notification Rule Examples > Detecting Duplicate Messages > Creating the VMD File |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
To detect when a channel has received duplicate messages, you must:
To create a Transformation Script for a message definition, go to the Chameleon Workspace menu, expand the message definition you want to define a script for, and double-click Transformation Script: In this window, type the following simple Python script, which detects duplicate messages:
This script saves the last read message in a variable named LastMessage. When a new message arrives, it is compared to the message stored in LastMessage. If they are identical, the new message is a duplicate, and a warning message is printed. After you have created the script, the final step is to modify the VMD file to indicate that it is performing scripted transformation. To do this:
Your VMD file is now ready for use. Now that you have defined the VMD file that detects whether a duplicate message has been sent, the next step is to to update your Iguana channel to use this VMD file.
|