2013/11/11 Claus Ibsen <claus.ib...@gmail.com>:
> Hi
>
> Nice work keep it going.
>
> A cron like predicate would be nice.

Hi Claus,
thanks, I'll consider this.


I was able to get this working

from("direct:start").filter("when", "MON-FRI 9:30-18:30").to(...)

but I'm struggling with the matches method. This works:

    .filter(header("anyHeader").matches( new
LanguageExpression("when", timeExpression) ))


but I'd like to do something like:

                  .filter(header("anyHeader").matches(
language("when", "MON-FRI") ))

or even better

                  .filter(header("anyHeader").matches("when", "MON-FRI"))

or maybe (quite dangerous, but more flexible):

                  .filter(header("anyHeader").matches("{when} MON-FRI"))


Is this already possible? Should I file a RFE?


Thanks, bye

Lorenzo

Reply via email to