When creating custom scripts for External Messaging Agent, consider the following points:
- The Windows user running External Messaging Agent runs the iScript, which must be stored in [drive:]\inserver\script.
- The iScript function, getInputPairs()returns a object (or an associated array/hash) with the namevalue pairs of the data in the IN_EXTERN_MSG_PROP table as well as the data in the IN_EXTERN_MSG row.
- If the script calls setSuccess(false), then the script failed to process the message. You can create a scheduled task or SQL script to set the msg_status from 4 to 1 to initiate a retry.