Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17467

camel-core - Add method to ValueBuilder for java based predicate/expressions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.15.0
    • camel-bean, camel-core
    • None
    • Unknown

    Description

      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?

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: