当我尝试执行下面提到的规则时,从drools引擎获得运行时异常,
规则:
package com.org.model;
rule "Rule "
when
messageObj: com.org.model.message(myTime after 00:00:00, myTime before 23:00:00 )
then
messageObj.setMessage("Completed");
end
尝试使用myTime >=00:00:00, myTime <= 23:00:00
myTime after 00:00:00, myTime before 23:00:00
也是
myTime - java.sql.Time - 00:00:00格式
错误:
Error while creating KieBase[Message [id=1, level=ERROR, path=com/rule/myDrl.drl, line=5, column=0
text=[ERR 102] Line xx:xx mismatched input ':' in rule "Rule "], Message [id=2, level=ERROR, path=com/rule/myDrl.drl, line=0, column=0
text=Parser returned a null Package]]