Michael
04/20/2018, 7:04 PMPair
, and a CompositeItemWriter
that sends half the pair to each of two individual writers. But if something goes wrong, I only want to write to one: normally you can return null from a processor and nothing gets written, but if I return Pair(object1, null)
, then the writer that receives the null gives me a Target object must not be null
. Am I approaching this the wrong way, or is there a way around this?poohbar
04/20/2018, 7:24 PMMichael
04/20/2018, 7:29 PMpoohbar
04/20/2018, 7:36 PMpoohbar
04/20/2018, 7:36 PMMichael
04/20/2018, 7:37 PMpoohbar
04/20/2018, 7:40 PMnull
has a special meaning for batch because it's a mark of end of input.. so you can't easily "skip" the null because then it won't know when to finishpoohbar
04/20/2018, 7:41 PMMichael
04/20/2018, 9:18 PMClassifierCompositeItemWriter
, and based on if the send thing is null, either return the CompositeWriter or the single Writer.tmg
04/23/2018, 8:21 AMtmg
04/23/2018, 8:22 AM