I'm waiting for acknowledgement for an HL7 message before processing the message again, so I'm trying to send the message back through the same channel in the Ack Script. I've found qie.addInboundMessage and I'm passing in the string for the HL7 message that was processed once already, but I don't know what is expected in the second parameter "originalFile" when the message did not come from a file at all.
I keep getting errors, particularly "WrappedException: Wrapped java.lang.NullPointerException", whether I put an empty string, a fake path, or a real path with a real message. I'd rather not write or read to a file at all. Excluding the second parameter gives me an error that the function isn't recognized. Is there a function that allows me to re-process the message or send the message to a new channel from the Ack Script?
qie.addInboundMessage(source.toString(), 'C:\\Temp\\empty.zxz')