【发布时间】:2016-08-25 05:25:15
【问题描述】:
当我第一次设置示例 hello world 应用程序时,rules/sample.drl 文件中出现错误
错误如下:
Rule Compilation error Only a type can be imported. com.sample.DroolsTest.Message resolves to a package
Only a type can be imported. org.drools.core.spi.KnowledgeHelper resolves to a package
KnowledgeHelper cannot be resolved to a type
com.sample.DroolsTest.Message cannot be resolved to a type
org.kie.api.runtime.rule.FactHandle cannot be resolved to a type
org.kie.api.runtime.rule.FactHandle cannot be resolved to a type
java.lang.Exception cannot be resolved to a type
org.kie.api.runtime.rule.RuleContext cannot be resolved to a type
Message.GOODBYE cannot be resolved to a type
org.drools.core.util.bitmask.AllSetBitMask cannot be resolved to a type
com.sample.DroolsTest.Message cannot be resolved to a type
我还修复了我写dialect "mvel"时的错误
但由于某种原因,我对这种快速修复不满意。
我是否缺少一些插件或依赖项? 我是流口水规则引擎的新手,我正确地遵循了所有步骤。
【问题讨论】:
标签: drools rule-engine