drools-flow

Help Drools integration with Scala

我的梦境 提交于 2019-12-01 09:04:54
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

Help Drools integration with Scala

拜拜、爱过 提交于 2019-12-01 07:04:57
问题 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