我必须在Drools中比较String。
我试过了:
rule "R52"
agenda-group "update rules"
salience -52
when
$flgDetCnbFinOld == 'S'
then
...
flgDetCnbFinOld 从Java传递,我得到的错误是:
引起:com.hp.drools.KieBuildException:错误:消息:{id = 1, level = ERROR,path = rules / doc-rules.drl,line = 863,column = 0,text =" [ERR 102]第863行:22输入不匹配' =='在规则" R52""}消息: {id = 2,level = ERROR,path = rules / doc-rules.drl,line = 0,column = 0, text =" Parser返回了一个null包"}
在Drools中比较String的正确方法是什么?