<when><header>someName</header>....</when>

The <header> will just check if there is a header with that key.





On Wed, Feb 19, 2014 at 6:44 PM, simholte <[email protected]> wrote:
> I'm having some problems getting this to work right, I'm hoping this is an
> easy question.
>
> The behavior I want is to check if the header contains a key, then do
> something if that header key doesn't exist.  I've tried several ways to
> accomplish this, my current route that *doesn't accomplish my goal* is
> below.
>
> <route>
>                 <from uri="direct:input" />
>                 <choice>
>                         <when>
>                                 <simple><notcontins>
>                                         ${header.workflowId}
>                                         </notcontins>
>                                 </simple>
>                                 <to 
> uri="bean:com.acme.activator.ExampleProcessor"/>
>                         </when>
>                 </choice>
> </route>
>
> I'm new to Camel so any help would be greatly appreciated.
>
> Thanks,
> Shawn
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Make-decision-on-whether-header-key-exists-in-XML-DSL-tp5747585.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to