Hi All,
I have a flat file schema, which allows producing empty files (let’s say minOccurs=0 for a record).
Now, I don’t want empty files to be populated in a folder. In other words, I want File adapter to act on sending in the way similar to receiving, when it just ignores any empty source.
Is there any way to achieve it without implementing custom File adapter?
I tried to check dataSize in custom pipeline component using InMsg.BodyPart.GetSize(out dataSize, out implemented). It didn’t work. I reckon, it couldn’t identify size of the outbound stream.
Another option I see is using temporary folder for the output files and another set Receive/Send ports to move files to the real destination using simple PassThru pipeline. It definitely will work, but I would rather prefer to avoid that kind of config.
Any thoughts are very much appreciated.
P.S. Mapping is applied inside send port. No orchestration is used for sending.
Regards,
Nick