title: Apache NiFi to split data based on condition
body: <p>Our requirement is split the flow data based on condition. 
  We thought to use "ExecuteStreamCommand" processor for that (intern it will use java class) but it is giving single flow data file only. We would like to have two flow data files, one is for matched and another is for unmatched criteria.</p>
  
  <p>I looked at "RouteText" processor but it has no feature to use java class as part of it.</p>
  
  <p>Let me know if anyone has any suggestion.</p>