Hi,

This solution works perfectly. Thanks you very much.

Regards,
Thibault

2012/3/16 Marco Westermann [via Camel] <
[email protected]>

> Hi, you may try building the predicat by simple language:
>
> .when(simple("${property.input.format} == 'test'"))
>
> compare to http://camel.apache.org/simple.html
>
> regards, marco
>
> Am 16.03.2012 15:53, schrieb Thibault:
>
> > Hi all,
> >
> > I have this DSL route definition:
> >
> >
> >> from("seda:InTransform")
> >>     .choice()
> >>         .when(property("input.format").isEqualsTo("test"))
> >>            .to("jbi:endpoint:MyService:MyEndpoint")
> >>         .otherwise()
> >>            .to("jbi:endpoint:AnotherService:AnotherEndpoint");
> >>
> > (I want to test a value that i have already set as "input.format"
> property)
> > The DSL compiles, but when I show the route on Karaf (camel:show-route),
> it
> > only displays this:
> >
> >
> >
> >> (...)
> >> <choice>
> >>    <when>
> >>        <expressionDefinition />
> >>        <to uri="jbi:endpoint:MyService:MyEndpoint" id="to3"/>
> >>    </when>
> >>    <otherwise>
> >>       (...)
> >>    </otherwise>
> >> </choice>
> >> (...)
> >>
> > Why doesn't the predicate on the property "input.format" appear in the
> route
> > ? Did I write something wrong ?
> >
> > Regards,
> > Thibault
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Choice-When-always-generate-empty-predicate-tp5571443p5571443.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Choice-When-always-generate-empty-predicate-tp5571443p5571617.html
>  To unsubscribe from Choice() When() always generate empty predicate, click
> here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5571443&code=dGhpYmF1bHQuY2Fzc2FuQGdtYWlsLmNvbXw1NTcxNDQzfDEyMTg5MTAyNjc=>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: 
http://camel.465427.n5.nabble.com/Choice-When-always-generate-empty-predicate-tp5571443p5576952.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to