Ah
Yeah then you cannot use <header>.
You can use <simple>${header.workflowId} == null</simple> instead
On Wed, Feb 19, 2014 at 10:18 PM, simholte <[email protected]> wrote:
> Thanks for the quick response!
>
> That works great, but I'm trying to make a decision on the absence of that
> key. I've added an otherwise block to make my solution work but I'm
> wondering if there's a better solution using a not or something?
>
> my new route:
> <route>
> <from uri="direct:input" />
> <choice>
> <when>
> <header>workflowId</header>
> </when>
> <otherwise>
> <to
> uri="bean:com.acme.activator.ExampleProcessor"/>
> </otherwise>
> </choice>
> </route>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Make-decision-on-whether-header-key-exists-in-XML-DSL-tp5747585p5747599.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