如何在 Camel 的 HTTP url 中使用来自 bean 的变量

How to use a variable from a bean, in a HTTP url in Camel

我是 Camel 的新手,过去几天才开始使用它。

我想在 bean "retreiveDetails" 中做一些处理,然后在路由的下一步中使用来自那个 bean "retreiveDetails" 的变量 "idValue",它是一个 http url。 Routebuilder的一部分class如下,

 .to("bean:retreiveDetails?method=process")
   .to("http://10.80.80.90:51555/patients?id=${idValue}")
    .to("bean:empiResults?method=process") 

如何在 bean "retreiveDetails" 中设置 "idValue" 的值?以及如何在 Routebuilder 的路线中使用它?

请参阅有关在以下位置使用动态值的常见问题解答: http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html