Hi Claus, Great - thanks for the quick fix! Best Regards, Andreas Mit freundlichen Grüßen / Best regards
Andreas Klug Middleware Development (CI/XDM1) Robert Bosch GmbH | Postfach 30 02 20 | 70442 Stuttgart | GERMANY | www.bosch.com Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000; Aufsichtsratsvorsitzender: Franz Fehrenbach; Geschäftsführung: Dr. Volkmar Denner, Prof. Dr. Stefan Asenkerschbaumer, Filiz Albrecht, Dr. Christian Fischer, Dr. Stefan Hartung, Dr. Markus Heyn, Harald Kröger, Rolf Najork -----Original Message----- From: Claus Ibsen <claus.ib...@gmail.com> Sent: Dienstag, 23. November 2021 15:17 To: users@camel.apache.org Subject: Re: Behavior change 3.11.3>3.13.0? Hi I took a look and found the bug, so I created a ticket https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FCAMEL-17225&data=04%7C01%7CAndreas.Klug2%40de.bosch.com%7C72c895a890114083ae8b08d9ae8bf5fa%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637732738411943520%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=7l78HqWawmD7U2p3hc2F%2BcuDeO8lIPynfRS30BboDvE%3D&reserved=0 On Tue, Nov 23, 2021 at 2:29 PM Claus Ibsen <claus.ib...@gmail.com> wrote: > > Hi > > Ah okay, so its that rarely used or/and builder that we only have in Java DSL. > Can you create a JIRA ticket. That or thingy need likely some init to > prepare the simple language. > > On Mon, Nov 22, 2021 at 12:22 PM Klug Andreas (CI/XDM1) > <andreas.kl...@de.bosch.com.invalid> wrote: > > > > Hello everyone, > > > > Can anybody pls. give me a hint whether there is a change between Camel > > 3.13.0 and 3.11.3 which might cause the following behavior? > > The body is a list having one entry. > > In 3.11.3 the or() evaluates to false. > > In 3.13.0 the or() evaluates to true. > > Is there anything I overlooked? > > > > .process(e->e.getMessage().setBody(Collections.singletonList("AN ENTRY"))) > > .choice() > > .when(body().isNull()) > > .log(INFO,"There is no list") > > .otherwise() > > .log(INFO,"There is a list") > > .end() > > > > .choice() > > .when(simple("${body.size()} == 0")) > > .log(INFO,"The list has no entries") > > .otherwise() > > .log(INFO,"The list has entries") > > .end() > > > > .choice() > > .when(or(body().isNull(),simple("${body.size()} == 0"))) > > .log(INFO,"There is no list or the list has no > > entries") > > .otherwise() > > .log(INFO,"There is a list having at least an > > entry") > > .end() > > > > Running that route with 3.11.3 results in: > > INFO test.route 481523C07BAAEC8-0000000000000006 > > There is a list > > INFO test.route 481523C07BAAEC8-0000000000000006 > > The list has entries > > INFO test.route 481523C07BAAEC8-0000000000000006 > > There is a list having at least an entry > > > > Running that route with 3.13.0 results in: > > INFO test.route 2BB218D90DB24AB-0000000000000016 > > There is a list > > INFO test.route 2BB218D90DB24AB-0000000000000016 > > The list has entries > > INFO test.route 2BB218D90DB24AB-0000000000000016 > > There is no list or the list has no entries > > > > > > > > Mit freundlichen Grüßen / Best regards > > > > Andreas Klug > > > > Middleware Development (CI/XDM1) > > Robert Bosch GmbH | Postfach 30 02 20 | 70442 Stuttgart | GERMANY | > > www.bosch.com > > > > Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000; > > Aufsichtsratsvorsitzender: Franz Fehrenbach; Geschäftsführung: Dr. > > Volkmar Denner, Prof. Dr. Stefan Asenkerschbaumer, Filiz Albrecht, > > Dr. Christian Fischer, Dr. Stefan Hartung, Dr. Markus Heyn, Harald > > Kröger, Rolf Najork > > > > > -- > Claus Ibsen > ----------------- > https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdavsc > laus.com%2F&data=04%7C01%7CAndreas.Klug2%40de.bosch.com%7C72c895a8 > 90114083ae8b08d9ae8bf5fa%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C > 637732738411943520%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjo > iV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=RXg2lrfRQgDoS > DKL9qqGNrcnJkB4JtoStxZOmoGLCd8%3D&reserved=0 @davsclaus Camel in > Action 2: > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. > manning.com%2Fibsen2&data=04%7C01%7CAndreas.Klug2%40de.bosch.com%7 > C72c895a890114083ae8b08d9ae8bf5fa%7C0ae51e1907c84e4bbb6d648ee58410f4%7 > C0%7C0%7C637732738411953521%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMD > AiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=o3ez > VN05kJgZJi42AUffxi1Gb3n72x7Ku9wDvhVg6xY%3D&reserved=0 -- Claus Ibsen ----------------- https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdavsclaus.com%2F&data=04%7C01%7CAndreas.Klug2%40de.bosch.com%7C72c895a890114083ae8b08d9ae8bf5fa%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637732738411953521%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=oMjy0TcAMXFXDmJpQ0%2FkF5cbXXTvj1mtj9PA02yyOCE%3D&reserved=0 @davsclaus Camel in Action 2: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.manning.com%2Fibsen2&data=04%7C01%7CAndreas.Klug2%40de.bosch.com%7C72c895a890114083ae8b08d9ae8bf5fa%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637732738411953521%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=o3ezVN05kJgZJi42AUffxi1Gb3n72x7Ku9wDvhVg6xY%3D&reserved=0