|
Understanding How Python Scripts are InvokedIt is important to understand a few facts about how Python scripts are invoked within Chameleon to understand how the mechanism works:
For example: When the MSH outgoing script of field 9 is fired, the value variable is used to set the contents of field 9 of the MSH segment of the message being generated. When the MSH inbound script for field 5 is fired, the value variable contains the contents of field 5 of the MSH segment of the message being parsed. Finally, an important concept to understand is the difference between parsing and generating messages. The inbound scripts are fired during the parsing of a message (during the parsing of the message for which you are attempting to generate an ACK message for). The outbound scripts are fired during the generation of a message; that is, during the generation of an ACK message. |