Announcement Announcement Module
No announcement yet.
onSkipInProcess Should be called with ItemProcessor Output Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    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