我的口水有问题,但我无法定义究竟是什么问题对糟糕的解释感到非常抱歉。这是我的drl文件:
#created on: 17.05.2012
package ru.abc.one.rules;
import ru.abc.one.entity.application.KBKIForm;
rule "1 risc category"
when
kbkiForm : KBKIForm
(
creditHistoryClassification.contains("Положительная абсолютно")
||
creditHistoryClassification.contains("Положительная существенно") && kup > 0 && kup < 1
)
then
kbkiForm.setClientRiskCategory("1");
end
我的测试代码:
KnowledgeBase kbase = readKnowledgeBase(path);
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.insert(kbkiForm);
ksession.fireAllRules();
这是我的错误信息:
2013-03-18 09:10:29,991 ERROR: Rule Compilation error The import ru.abc.one.entity.application cannot be resolved
ru.abc.one.entity.application cannot be resolved to a type [ru.abc.one.rules.RulesServiceTest]
PS我真的需要你们的帮助!