Re: [rules-users] Drools Solver - Multiple Entries ScoreDrl
I think that there was a error in a package. It works now. Thank you and congratulations by the framework 2010/4/28 Geoffrey De Smet ge0ffrey.s...@gmail.com That should work. Check your getFacts() method. If you can reproduce on trunk (and prove it by putting an error in the DRL which isn't loaded), feel free to open an issue. With kind regards, Geoffrey De Smet Antonio Neto schreef: Hi all, In the Drools Solver documentation there is a point that say we can add multiples entries ScoreDrl. But when I try do that, Drools Solver uses just one entry to calculate the score, and I need put 2 files in the input. Anybody could help me, please? Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools Solver - Multiple Entries ScoreDrl
Hi All, I am using drools API, and developed a webservice out of it. I created rule binary package using BRMS Guvnor. I used RuleAgent to acces the properties file. ie RuleAgent agent = RuleAgent.newRuleAgent(/application.properties); application.properties file was stored in current working directory. I executed my application using eclipse, it was fine . For testing purpose i deployed the application in tomcat application server. Now it is unable to find application.properties file. and shows following in catalina.out file: java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at org.drools.agent.RuleAgent.loadFromProperties(RuleAgent.java:299) at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:256) My question is, in which location should i keep the application.properties file , so that RuleAgent can access it. Could you please tell me the solution. Thanks Regards Shekhar ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools Solver - Multiple Entries ScoreDrl
Hello Shekhar, 1) You need to read http://www.jboss.org/drools/lists.html (the list of todos) if you expect folks to help you. You have replied to a totally different thread!! 2) You don't need to create a webservice out of the Drools API. There is already one, called drools-server. Read documentation and examples for it. Regards, Prem 2010/4/29 shekharputtur puttur shekharput...@gmail.com Hi All, I am using drools API, and developed a webservice out of it. I created rule binary package using BRMS Guvnor. I used RuleAgent to acces the properties file. ie RuleAgent agent = RuleAgent.newRuleAgent(/application.properties); application.properties file was stored in current working directory. I executed my application using eclipse, it was fine . For testing purpose i deployed the application in tomcat application server. Now it is unable to find application.properties file. and shows following in catalina.out file: java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at org.drools.agent.RuleAgent.loadFromProperties(RuleAgent.java:299) at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:256) My question is, in which location should i keep the application.properties file , so that RuleAgent can access it. Could you please tell me the solution. Thanks Regards Shekhar ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools Solver - Multiple Entries ScoreDrl
Hi all, In the Drools Solver documentation there is a point that say we can add multiples entries ScoreDrl. But when I try do that, Drools Solver uses just one entry to calculate the score, and I need put 2 files in the input. Anybody could help me, please? Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools Solver - Multiple Entries ScoreDrl
That should work. Check your getFacts() method. If you can reproduce on trunk (and prove it by putting an error in the DRL which isn't loaded), feel free to open an issue. With kind regards, Geoffrey De Smet Antonio Neto schreef: Hi all, In the Drools Solver documentation there is a point that say we can add multiples entries ScoreDrl. But when I try do that, Drools Solver uses just one entry to calculate the score, and I need put 2 files in the input. Anybody could help me, please? Thank you ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users