This is an automated email from the ASF dual-hosted git repository. nfilotto pushed a commit to branch CAMEL-19510/fix-simple-expression in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git
commit 6860591f2b27e41256081195eae9158350c90de8 Author: Nicolas Filotto <nfilo...@talend.com> AuthorDate: Tue Jun 27 17:39:24 2023 +0200 CAMEL-19510: reactive-streams - Fix the simple expression --- .../java/org/apache/camel/example/reactive/streams/RestExample.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java b/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java index 4f6dc0c..ebd72e6 100644 --- a/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java +++ b/reactive-streams/src/main/java/org/apache/camel/example/reactive/streams/RestExample.java @@ -70,8 +70,8 @@ public class RestExample { .to("direct:sum"); from("direct:sum") - .setHeader("num1").simple("headerAs(num1,Long)") - .setHeader("num2").simple("headerAs(num2,Long)") + .setHeader("num1").simple("${headerAs(num1,Long)}") + .setHeader("num2").simple("${headerAs(num2,Long)}") .bean("calculator", "sum") .process(new UnwrapStreamProcessor()) .setBody().simple("The result is: ${body}");