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
Post a Comment