Aug 8th, 2012, 12:37 PM
onSkipInProcess Should be called with ItemProcessor Output
I have a CompositeItemProcessor with 2 ItemProccessor's. The first one takes a string as input and converts it to a bean. The second one takes the bean as input, validates and then outputs the same bean. When the second ItemProcessor throws an exception, the type that gets passed to onSkipInProcess is a string (input of the first processor) and not the bean. I would have expected it to be the bean since the exception was thrown from the second processor and that processor only knows about the bean.
Is there any way to have skip listeners mapped to specific processors?
Aug 12th, 2012, 03:50 AM
you could do that yourself, yes. After all the CompositeItemProcessor is rather trivial, it just takes a list of processor and loop on them. That being said, maybe this is worth a Jira issue so that at least this is configurable
Tags for this Thread