Problems loading class drool

I have a problem with my saliva, but I canโ€™t determine which problem apologizes for the poor explanations. Here is my drl file:

#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 

My test code is:

  KnowledgeBase kbase = readKnowledgeBase(path); StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); ksession.insert(kbkiForm); ksession.fireAllRules(); 

And here is my error message:

 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 I really need your help guys!

+4
source share
1 answer

Please include in your jar file the path file for the class you are importing, or the class itself.

ru.abc.one.entity.application.KBKIForm

Drools cannot find this package to throw this error.

Hoping this helps.

Greetings !!

0
source

All Articles