MULE表达式变换器不被接受
问题描述:
我正在尝试学习Mule ESB,但是遇到了示例项目的问题。为什么这些行
下划线为红色,不在Message流中表示?
I'm trying to learn Mule ESB but get problems with example projects. Why are these lines underlined red and not represented in the Message flow?
<expression-transformer name="returnAttachments">
<return-argument evaluator="attachments-list" expression="*.txt,*.ozb,*.xml" optional="false"/>
</expression-transformer>
作为示例项目的一部分,我从mulesoft.org剪切并粘贴了这些行。 p>
I've cut and pasted these lines from mulesoft.org as part of a sample project.
答
@genjosanzo是对的,MEL相当于:
@genjosanzo is right, the MEL equivalent would be:
<expression-transformer
expression="#[($.value in message.inboundAttachments.entrySet() if $.key ~= '(.*\\.txt|.*\\.ozb|.*\\.xml)')]" />