iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Routing and Processing Messages > Generating NACK Messages in Iguana 4.0 and Later > Creating the Segment Outbound Script |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
The next step is to create a Segment Outbound Script for the first field of the MSA segment of the acknowledgment message that the VMD file is generating. This field indicates whether the incoming message has been accepted or rejected:
To create this Segment Outbound Script:
The MSA Segment window appears, displaying a table. Each row of this table corresponds to a field in the MSA segment:
This sets the value of the first field of the MSA segment to AA, which indicates that the message is an ACK message. Modify this Python script to be the following:
This script uses the value of the reject variable, set by the Global Inbound Script, to determine whether the message is a positive acknowledgment (ACK) message or a negative acknowledgment (NACK) message.
|