无法为'inline-eval'构建表达式:null'facts [“XYZ”] ==“ABC”'

时间:2014-03-04 10:52:17

标签: java mule drools

当我将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']

任何帮助将不胜感激:)

0 个答案:

没有答案