Skip to content

Instantly share code, notes, and snippets.

@colwilson
Created December 4, 2012 16:23
Show Gist options
  • Save colwilson/4205772 to your computer and use it in GitHub Desktop.
Save colwilson/4205772 to your computer and use it in GitHub Desktop.
<route id="report_month_to_date">
<from uri="file:partials" />
<unmarshal><csv/></unmarshal>
<to uri="bean:myCsvHandler?method=doHandleCsvData" />
<aggregate strategyRef="serviceStrategy">
<correlationExpression>
<simple>${header.month} == ${date:now:yyyyMM}</simple>
</correlationExpression>
<completionPredicate>
<simple>${header.CamelBatchComplete}</simple>
</completionPredicate>
<to uri="file:reports/?fileName=${header.month}.csv" />
</aggregate>
</route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment