You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/01/10 19:52:00 UTC

[jira] [Resolved] (CAMEL-17467) camel-core - Add method to ValueBuilder for java based predicate/expressions

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

Claus Ibsen resolved CAMEL-17467.
---------------------------------
    Resolution: Fixed

> camel-core - Add method to ValueBuilder for java based predicate/expressions
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-17467
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17467
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-bean, camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.15.0
>
>
> Asked on mailing list
> I'm migrating some service from 2.25 to 3.13 using the migration guide - so far so good, but there is one thing I can't figure out (in a reasonable amount of time).
> The code that compiles in 2.25 looks like this:
> Predicate hasNoEmail = and(body().isInstanceOf(Some.class), bodyAs(Some.class).method("getCustomer")
>                 .convertTo(CustomerInfo.class).method("getEmail").isNull());
> With 3.13 it fails because .method() is not available anymore, so there should be some other way? What is it?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)