Hi,

As per http://camel.apache.org/message-router.html

How could I do something like that :

    <route>
        <from uri="direct:a"/>
        <choice>
            <when>
                <allTestsShouldBeTrue>
                   <xpath>$foo1 = 'bar'</xpath>
                   <xpath>$foo2 = 'bar'</xpath>
                   <xpath>$foo3 = 'bar'</xpath>
                </allTestsShouldBeTrue>
                <to uri="direct:b"/>
            </when>
            <when>
                <allTestsShouldBeTrue>
                   <xpath>$foo1 = 'cheese'</xpath>
                   <xpath>$foo2 = 'cheese'</xpath>
                   <xpath>$foo3 = 'cheese'</xpath>
                </allTestsShouldBeTrue>
                <to uri="direct:c"/>
            </when>
            <otherwise>
                <to uri="direct:d"/>
            </otherwise>
        </choice>
    </route>

Thanks in advance,
Regards.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Message-router-multiple-values-tp5743857.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to