Jboss 基于xml节点名的路由
Jboss 基于xml节点名的路由,jboss,Jboss,无效的 数据验证错误(产品代码长度无效。) #A16 xpath表达式是//ProductMasterDataStatus,因此您应该检查它是否为null <camelContext id="cbr-example-context" xmlns="http://camel.apache.org/schema/spring"> <route id="_route1"> <from id="_from1" uri="file://
无效的
数据验证错误(产品代码长度无效。)
#A16
xpath表达式是//ProductMasterDataStatus,因此您应该检查它是否为null
<camelContext id="cbr-example-context" xmlns="http://camel.apache.org/schema/spring">
<route id="_route1">
<from id="_from1" uri="file:///d:/in"/>
<camel:choice id="_choice1">
<camel:when id="_when1">
<camel:xpath>//ProductMasterDataStatus != null</camel:xpath>
<camel:to id="_to1" uri="file:C:/outbox_Denmark"/>
</camel:when>
<process id="_process_transform" ref="myTransform"/>
<to id="_to1" uri="file:///d:/out?fileName=Product.xml"/>
</route>
//ProductMasterDataStatus!=无效的
Hello@Sameera Athukorala,你看到我的提案了吗?它适合你吗?我想检查这里的节点名,这一个ProductMasterDataStatus不是它的值我以为你最初说的是“状态”,无论如何你可以写//ProductMasterDataStatus。我也会改变我的答案。这样行吗?它正在工作?我想检查这个标记ProductMasterDataStatus是否包含在这个xml中。这种方法可以做到这一点吗?你看到我的答案了吗//ProductMasterDataStatus!=这对你有用吗,你试过了吗?