You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/05/18 17:24:50 UTC

[jira] Assigned: (CAMEL-1419) PredicateBuilder - Support type converter to coerce types into compatible types for comparisons

     [ https://issues.apache.org/activemq/browse/CAMEL-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-1419:
----------------------------------

    Assignee: Claus Ibsen

> PredicateBuilder - Support type converter to coerce types into compatible types for comparisons
> -----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1419
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1419
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>
> Using predicates in routes in eg choice DSL does not support type convertions so you need to do this manual or ensure types are compatible
> We could improve this by testing for true until
> - try with types given
> - try again by convert right to left
> - try again by convert left to right
> This allows you to do routing, eg route with a header value as string by you can do
> {code}
> choice(when("foo").isEqualTo(2))...
> choice(when("foo").isGreaterThan(50))...
> {code}
> See nabble:
> http://www.nabble.com/Re%3A-Camel-Routing-based-on-bean-return-object-td22249549.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.