On Wed, Feb 25, 2009 at 2:32 PM, Roman Kalukiewicz
<roman.kalukiew...@gmail.com> wrote:
> 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.
>
Take a look at his blog entry demonstrating how to use the Java DSL
predicate to combine predicates.
http://davsclaus.blogspot.com/2009/02/apache-camel-and-using-compound.html


-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Reply via email to