当我将mule版本3.3.2
升级到3.4.2
时,我面临bpm规则引擎的这个问题。
drools 5.0.1
升级spring
依赖项3.2.1.RELEASE
,这是我的drl:
#From row number: 13
rule "TEST Block Rule 1"
salience 65523
when
dto: DroolsDTO(facts["XYZ"]=="ABC", facts["MESSAGE_ASC_FLAG"]=="Y")
then
dto.setState("PQR", "XYZ");
end
和等效的mule条目:
<foreach collection="#[groovy:flowVars.TAGS]" counterVariableName="TAG_IDX">
<bpm:rules rulesDefinition="${drools.config.path}/Determination.xls.drl"
initialFacts-ref="NoFactsBean" doc:name="Fire Drools" />
</foreach>
这在3.3.2中运行良好,但给出了这个堆栈跟踪:
org.mule.api.config.ConfigurationException: Errors while parsing ruleset defined in file drools/Determination.xls.drl : Unable to build expression for 'inline-eval' : null'facts["XYZ"] == "ABC"'
null : [Rule name='TEST Block Rule 1']
任何帮助将不胜感激:)