Re: [rules-users] Using Drools for modeling with rule-driven agents

2009-09-09 Thread Andrew Waterman
Hi Russ, We are using Drools for games based on participatory modeling work here in Chiapas. Our games have agents that participate against human players (or they could play each other in a typical multi-agent system if we wanted). I use JMS to broadcast updates to the games; our agents

Re: [rules-users] (no subject)

2009-09-09 Thread Garner, Shawn
end function String hasForbiddenWordsSet(Set wordsSet, String value) { #do something useful here } But it doesn't work, tried some other things and still no success. Could someone help me? Thanks in advance. -- Leandro Carvalho -- next part -- An HTML attachment

Re: [rules-users] Getting the return from a funcion

2009-09-09 Thread Chandana Pingle
hi from what i see from the code given, System.out.println("ERROR: " + word); u missed the $ symbol,it should be System.out.println("ERROR: " + $word); Hope that works chandana On 9/10/09, Leandro Carvalho wrote: > Hi! I'm new here and a have a doubt about rules and functions in Drools. > >

[rules-users] Drools running in OSGi

2009-09-09 Thread diego.vera
Hi all, I am trying to run Drools as a bundle with Equinox, however I found an issue with Drools 5 with the classloader, apparently Drools 5 does not always uses the classloader that I pass in the configuration (PackageBuilderConfiguration). Then I decided to test it with Drools 4.0.7 and I do

Re: [rules-users] Maven Plugin to build pkg files

2009-09-09 Thread Andrew Waterman
You might want to take a look at this JIRA on the subject: https://jira.jboss.org/jira/browse/JBRULES-1273 There's some nice attached source (contributed by Rainer Langbehn) that builds into a compiler plugin and examples. It seems to be working; no documentation, however. best wishes, And

[rules-users] More knowledge bases in application - Performance Hit ?

2009-09-09 Thread Kumar Mynam
Hello All, Does KnowledgeBase has lot of overhead in it..? Would there be a performance hit on an application if it has 200 different KnowledgeBases, because of the size of the KnowledgeBase, overhead storage of the KnowledgeBase object or for any other reason..? Ofcourse, Application would onl

[rules-users] Getting the return from a funcion

2009-09-09 Thread Leandro Carvalho
Hi! I'm new here and a have a doubt about rules and functions in Drools. I have this rule: rule "ProductDescription validation" when $listing : Listing( $description:productDescription != null ) eval( $description.getTitle() != null ) eval( hasForbiddenWordsSet( wordsS

Re: [rules-users] Running drools 4 code using drools 5 jars

2009-09-09 Thread Michael Neale
Indeed - consider them pre-deprecated ;) but AFAIK should work fine. 2009/9/9 Macon Pegram > It is my understanding that the "Rule" apis are being discouraged in favor > of the "Knowledge" APIs. They do still work in Drools 5 however, so you > should be ok just using that Jar file. > > In my o

Re: [rules-users] Running drools 4 code using drools 5 jars

2009-09-09 Thread Macon Pegram
It is my understanding that the "Rule" apis are being discouraged in favor of the "Knowledge" APIs. They do still work in Drools 5 however, so you should be ok just using that Jar file. In my own project it was actually quite easy to make the switch since most of the APIs are basic renamings. I

[rules-users] Rule-base doubt

2009-09-09 Thread ganesh ezhilarasu
Hi am using drools -guvnor. i need to help Now the rules are created and persistence in reposity path. i need persistence to data base what i have need to do? when i create rule in my setting path .How to move the file in user environment ? one more am persistence rule in database. How to move us

[rules-users] Running drools 4 code using drools 5 jars

2009-09-09 Thread Nikhil D. Deshpande
Hi, I have written some code using drools 4 jars. Now as drools 5 is launched, I want to migrate my existing 'RuleBase' (drools 4) to 'KnowledgeBase'(drools 5). 1. Can I/Should I use RuleBase, PackageBuilder, ExternalSpreadSheetCompiler using drools 5 jars?? I can use these classes as t