Folks,
Do you know what I'm missing here?

                from("timer://kickoff_5?period=10000").
                setHeader("a").constant("aa").setBody().constant("bbb").
                choice().when().el("in.headers['a'] == 'aa'").to("mock:true").
                otherwise().to("mock:false");


I see in the trace that the message on the choise input has required headers:

2008-10-06 06:37:04,418 [_5?period=10000] INFO TraceInterceptor - ID-ubuntu/52774-1223275024293/2-0 -> choice1 Choice[ [When[ elExpression[in.headers['a'] == 'aa'] -> [To[mock:true]]]] Otherwise[[To[mock:false]]]] InOnly Properties:{org.apache.camel.timer.name=kickoff_5, org.apache.camel.timer.firedTime=Mon Oct 06 06:37:04 GMT 2008, org.apache.camel.timer.period=10000} Headers:{a=aa, firedTime=Mon Oct 06 06:37:04 GMT 2008} BodyType:String Body:bbb

Vadim.

Reply via email to