【发布时间】:2018-06-27 03:52:54
【问题描述】:
我在这里做错了吗?即使 json 有效载荷是 [],它也会使用默认值而不是错误日志。
<choice doc:name="If Payload is Null">
<when expression="#[payload == empty]">
<mule-logger-module:logger-exception message="Null Payload" doc:name="Log Error"/>
</when>
<otherwise>
<mule-logger-module:log-default message="Payload Received" type="EXIT" doc:name="Log End"/>
</otherwise>
</choice>
【问题讨论】:
-
在这之前是一个 json 字符串吗?还是一个数组?