将输入值注入 Orbeon 服务请求
Inject input's value into Orbeon service request
我创建了一个 POST 请求,该请求在某些定义的操作之后执行。
这是我的正文:
<json type="object">
<variables type="object">
<customerId type="object">
<value ref="control-1">CUSTOMERID</value>
<type>String</type>
</customerId>
</variables>
</json>
我想做的是从 control-1
中获取值并替换 customerId->value
值。它不起作用。但是,我注意到设置 name=
而不是 ref=
会使值变为空。
解决方案是在操作编辑器中使用 XPath 设置服务请求值:
/json/variables/customerId/value
我创建了一个 POST 请求,该请求在某些定义的操作之后执行。
这是我的正文:
<json type="object">
<variables type="object">
<customerId type="object">
<value ref="control-1">CUSTOMERID</value>
<type>String</type>
</customerId>
</variables>
</json>
我想做的是从 control-1
中获取值并替换 customerId->value
值。它不起作用。但是,我注意到设置 name=
而不是 ref=
会使值变为空。
解决方案是在操作编辑器中使用 XPath 设置服务请求值:
/json/variables/customerId/value