当单元为空时,Drools会生成空的“ when”子句

时间:2018-10-31 16:04:00

标签: templates drools kie

我创建了以下规则模板,以制定仅在特定单元格为空时才应执行的规则:

template header
synonym
question
decision

package org.test.templates

import org.test.beans.DiseaseBean

template "disease_decisions"

rule "Disease_@{row.rowNumber}"
    when
        $disease: DiseaseBean(longDesc == "@{synonym}" && "" == "@{question}")
    then
        $disease.setDecision("@{decision}")
end
end template

执行上述模板后,Drools将为问题单元格为空的行生成空的“ when”子句。例如:

rule "Disease_279"
    when

    then
        $disease.setDecision("Approve")
end

有什么想法我做错了吗?

Drools 7.3.0

0 个答案:

没有答案