title: spring batch: how to write valid data to one table, and invalid data another table
body: <p>I have a csv file like</p>
  
  <pre><code>day,cost
  20140101, 20
  2014-01-5, 20
  20140101, ab
  </code></pre>
  
  <p>so there are some invalid data and I want to load the valid data into table_normal, and invalid data into table_unnormal
  so the final data should be
  for table of table_normal</p>
  
  <pre><code>day,cost
  20140101, 20
  </code></pre>
  
  <p>for table of table_unnormal</p>
  
  <pre><code>day,cost, reason
  2014-01-5, 20, 'invalid day'
  20140101, ab,'invalid cost'
  </code></pre>
  
  <p>I know how to get the reason in processor, but how could be job write to different tables?</p>