2009/2/25 david_geary <david_ge...@lagan.com>: > > Hi, > > I'm using an xpath filter in the xml configuration eg > > <filter> > <xpath>//cs:case/@queue="13"</xpath> > <to uri=..../> > </filter> > > What's the easiest way to combine filters eg I want to accept it if its on > queue 13 OR 14 (or if on queue 13 AND some other attribute is a particular > value?) > > I know I can set up separate filters and chain them to get 'AND' logic or > achieve 'OR' logic by putting the results onto the same seda queue say but > is there an easier general way to do this with the <filter> or <xpath> xml > syntax?
There is org.apache.camel.builder.PredicateBuilder class that has helper methods that allows you to nicely combine Predicates. Unfortunately it helps with Java DSL only.