我有一个从消息的有效负载中提取并设置为出站属性的属性(以使其更易于访问)。我想简单地检查这个属性的大小,但我所有最好的猜测都给了我例外。
我尝试使用 #[header:OUTBOUND:count] 语法,将 evaluator="header" 属性添加到 <when> 标记,但似乎没有任何效果。我也尝试过其他评估器,但我找不到任何带有语法示例的 Mule 文档,所以我只是猜测应该如何形成表达式。
<choice doc:name="Choice">
        <when expression="message.outboundProperties['count']==0">
            <processor-chain>
                ... something here ...
            </processor-chain>
        </when>
        <otherwise>
            <processor-chain>
                ... alternate option ...
            </processor-chain>
        </otherwise>
    </choice>