java - Complex when on a Camel route -


i new camel have lot of questions. before ask try research issue carefully. on issue can't find solution. may key words generic.

i need have , condition on routing. (soap messages) there 2 fields in header have specific values before route used. how specify

if(x == 1 , y == 2) 

using routebuilder?

i think can use simple (http://camel.apache.org/simple). predicates (http://camel.apache.org/predicate.html).

in xml-dsl like:

<choice>             <when><simple>${header.x} == '1' && ${header.y} == '2'</simple>                 <log message="do message"/>             </when>             <otherwise>                 <log message="do else"/>             </otherwise> </choice> 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -