Mule 不能使用&&;选项组件中when属性的运算符

Mule 不能使用&&;选项组件中when属性的运算符,mule,mule-studio,mule-el,Mule,Mule Studio,Mule El,当我在Mule中定义以下表达式时,Mule提供了一个错误,说明以下内容 ERROR 2014-05-19 11:48:51,189 [main] org.mule.module.launcher.application.DefaultMuleApplication: null org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.

当我在Mule中定义以下表达式时,Mule提供了一个错误,说明以下内容

ERROR 2014-05-19 11:48:51,189 [main] org.mule.module.launcher.application.DefaultMuleApplication: null
org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
Mule声明:

<when expression="#[(sessionVars['varCountMule'] &lt;= 18) && (message.payload == null)]">


为什么Mule不能正确地计算&&运算符?

&
是XML中具有特殊含义的字符之一,异常消息是由于解析器希望使用这种特殊用法

要将其用于XML文档中的其他内容,需要将其编码为
&。因此,只需将您的
&
替换为
&&


使用
而不是
&