qie.addInboundMessage is not availabe in an ack script it would appear. I will report that.
However there is a solution:
1. error the message in the ackScript with an error of your choice. I used "resubmitMe"
message.error('resubmitMe');
2. Add a scheduled script to resubmit the error.
var errors = errorManager.searchErrors('error=resubmitMe');
for (var errorId = 0; errorId < errors.size(); errorId++) {
var messageQueueId = errors.get(errorId);
var sourceMessage = errorManager.getSource(messageQueueId);
qie.debug('messageQueueId: ' + messageQueueId);
errorManager.resolveError(messageQueueId, sourceMessage);
}
