【发布时间】:2015-11-27 17:16:14
【问题描述】:
是否可以直接在通配符或表达式过滤器中使用flowVariable。 我需要根据流变量值停止流。
示例:我的流变量名称keyValue 的值类似于customer/feed/h26/h56 在此“h26/h56”中应动态设置,但customer/feed 始终为常量。如果过滤器包含任何字符,我只需要在“/feed/”之后设置过滤器。
<flow name="testFlow1" doc:name="testFlow1">
<file:inbound-endpoint responseTimeout="10000" doc:name="File" path="c:/in"/>
.......( Many component)
<set-variable variableName="keyValue" value="#[customer/feed/h26/h56]" doc:name="Variable"/>
.......( Many component)
<message-filter doc:name="Message">
<wildcard-filter pattern="customer/feed/+*" caseSensitive="true"/>
</message-filter>
</flow>
在模式中使用+ 来检查它是否包含一个或多个字符。
我也使用了表达式过滤器,不知道如何在过滤器表达式中使用流变量。你能帮我解决这个问题吗?
我不想使用属性过滤器。
【问题讨论】:
标签: regex mule mule-studio mule-component mule-el