gpt4 book ai didi

java - Camel 拆分器返回 ExpressionNode

转载 作者:行者123 更新时间:2023-11-30 09:28:44 25 4
gpt4 key购买 nike

我有路线:

    from(SU_NAME)
.choice()
.when(STATUS_IS_OK)
.to("xslt:xsl/RemoveNode.xsl")
.split().tokenizeXML("Event", "Header").to(XP_NAME)
.otherwise()
.dynamicRouter(method(router, "slip"))
.end();

如果我移除分离器,一切正常,但在我的 route 使用它会给我:

java.lang.Error: Unresolved compilation problem: 
The method otherwise() is undefined for the type ExpressionNode

我需要分离器作为路线的一部分,你能帮帮我吗?我知道应该选择 ChoiceDefinition 而不是 ExpressionNode,而不是我如何修改代码来获得它。

最佳答案

请参阅此常见问题解答 - 为什么我不能在 Java Camel 路由中使用 when/otherwise? http://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html

关于java - Camel 拆分器返回 ExpressionNode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13879208/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com