如何在rest骆驼xml路由上设置动态查询参数值



我有如下骆驼式路由,在日志上我可以打印"更新Id:1113",但是当使用查询参数调用rest服务时,我无法获得${property.id}的值。在rest服务器上登录="/测试/更新?id=$%7Bproperty.id%7D";。如何在camelrest xml路由中动态传递查询参数值?

<camel:setProperty propertyName="id">
<camel:jsonpath>$.id</camel:jsonpath></camel:setProperty>
<camel:log logName="Fuse_Service" message="update Id : ${property.id}"/>
<simple>${property.http_method} == 'PUT'</simple>
<camel:setHeader headerName="Content-Type"><constant>application/json</constant> 
</camel:setHeader>
<camel:setHeader headerName="CamelHttpMethod"><constant>PUT</constant> 
</camel:setHeader>
<setHeader headerName="CamelHttpQuery">
<constant>id=${property.id}</constant>        
</setHeader>
<camel:to uri="http4://{{test.api.url}}/test/update" />

这是我的错误,我使用常量元素:

<常量>id=${property.id}</常数>。

正确的方法是使用简单元素

<简单>id=${property.id}</简单>