You are correct about using the discard destination node.
On the source node you could point to a file folder that would not ever contain documents or file extension that would not ever exist like c:\temp\*.zzz
Or you could create your mapping function in the source node using a Script source node. Or even pass in a template inbound message using qie.addInboundMessage('template', 'template');