帮助Drools与Scala集成 [英] Help Drools integration with Scala

查看:128
本文介绍了帮助Drools与Scala集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Drools陌生。我正在将Drools与Scala集成在一起。我正在尝试在 http://上给出的项目www.gettingcirrius.com/2010/12/using-jboss-rules-drools-in-scala.html
我对代码进行了小幅更改,以提供如下所示的Drools规则文件:

I am new with Drools. I am integrating Drools with Scala. I am trying the project given at http://www.gettingcirrius.com/2010/12/using-jboss-rules-drools-in-scala.html. I have made a small change in the code to supply the Drools rule file as given below:

File f = new File("WeatherRules.drl"); 
kbuilder.add(ResourceFactory.newFileResource(f), ResourceType.DRL); 

代码运行良好,没有错误,但是规则不起作用。我得到的输出是:

The code is running fine and there is no error but the rules are not working. The output I got is:

Creating Knowledge Session 
Creating and insertng Temperature 
Firing all rules 

似乎配置的规则不起作用。我在其中使用的依赖项是:

It seems that the configured rules are not working. The dependencies I am using in for is:

Scala: 2.9.0.1
Sbt: 0.7.7 
jaxb-xjc: 2.2.4-1 
drools-core: 5.2.0.Final 
drools-compiler: 5.2.0.Final 
jxl: 2.6 
xstream: 1.3.1 

我错过了什么吗?请帮助我将Drools与Scala集成。提前致谢。任何帮助将不胜感激。

Am I missing something? Please help me to integrate Drools with scala. Thanks in advance. Any help will be appreciated.

谢谢,
Puneet

thanks, Puneet

推荐答案

解决问题。解决方案是:

I got the solution to the problem. The solution is at:

http://drools.46999.n3.nabble.com/Drools5-2-2-integration-with-scala2-9-0-1-td3229566 .html

Puneet

这篇关于帮助Drools与Scala集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆